Skip to content

"eCornell JupyterLab Error Explanation Assistant" - mirrors native error-explain and captures errors and file context for open Jupyter notebooks, with all the guide page contents filtered out, whose only context is the actual contents of Markdown cells and Code cells of open .ipynb files.

Notifications You must be signed in to change notification settings

codio-extensions/eCornell-JupyterLab-Error-Explanation-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

eCornell JupyterLab Error Explanation Assistant

This assistant mirrors the functionality of the native error explanation assistant with the following customizations:

Assistant button name

  • Renamed the assistant button to: Explain this Jupyter error!
  • Edit it in the register function call to change the button name displayed to learners.

Prompt modifications

  • Both system and user prompts have slight changes for jupyter specific context setting.

Open guide pages are screened out of the context

  • This can be verified by checking the userPrompt variable - we've removed the following snippet that would pass the open guide page as context

    <assignment>
    ${context.guidesPage.content}
    </assignment>
    

Passing markdown and code cell types as student file context

  • comments in index.js walk through how we select and filter the code and markdown cell content of the open Jupyterlab notebook.
  • this is then passed as context (in the userPrompt variable)

About

"eCornell JupyterLab Error Explanation Assistant" - mirrors native error-explain and captures errors and file context for open Jupyter notebooks, with all the guide page contents filtered out, whose only context is the actual contents of Markdown cells and Code cells of open .ipynb files.

Resources

Stars

Watchers

Forks

Packages

No packages published