On the Design of AI-powered Code Assistants for Notebooks

Andrew M Mcnutt, Chenglong Wang, Robert A Deline and Steven M. Drucker

Abstract

AI-powered code assistants, such as Copilot, are quickly becoming a ubiquitous component of contemporary coding contexts. Among these environments, computational notebooks, such as Jupyter, are of particular interest as they provide rich interface affordances that interleave code and output in a manner that allows for both exploratory and presentational work. Despite their popularity, little is known about the appropriate design of code assistants in notebooks. We investigate the potential of code assistants in computational notebooks by creating a design space (reified from a survey of extant tools) and through an interview-design study (with 15 practicing data scientists). Through this work, we identify challenges and opportunities for future systems in this space, such as the value of disambiguation for tasks like data visualization, the potential of tightly scoped domain-specific tools (like linters), and the importance of polite assistants.

Venue
CHI 2023
Volume
Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3544548.3580940
PDF
https://dl.acm.org/doi/pdf/10.1145/3544548.3580940
Anthology ID
2023.chi.258

Cite

@inproceedings{mcnutt-etal-2023-design,
    title = {{On the Design of AI-powered Code Assistants for Notebooks}},
    author = {Andrew M Mcnutt and Chenglong Wang and Robert A Deline and Steven M. Drucker},
    booktitle = {Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems},
    isbn = {9781450394215},
    year = {2023},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3544548.3580940},
    url = {https://doi.org/10.1145/3544548.3580940},
    abstract = {AI-powered code assistants, such as Copilot, are quickly becoming a ubiquitous component of contemporary coding contexts. Among these environments, computational notebooks, such as Jupyter, are of particular interest as they provide rich interface affordances that interleave code and output in a manner that allows for both exploratory and presentational work. Despite their popularity, little is known about the appropriate design of code assistants in notebooks. We investigate the potential of code assistants in computational notebooks by creating a design space (reified from a survey of extant tools) and through an interview-design study (with 15 practicing data scientists). Through this work, we identify challenges and opportunities for future systems in this space, such as the value of disambiguation for tasks like data visualization, the potential of tightly scoped domain-specific tools (like linters), and the importance of polite assistants.}
}