This assistant mirrors the functionality of the native error explanation assistant with the following customizations:
- Renamed the assistant button to: Explain this Jupyter error!
- Edit it in the
registerfunction call to change the button name displayed to learners.
- Both system and user prompts have slight changes for jupyter specific context setting.
-
This can be verified by checking the
userPromptvariable - we've removed the following snippet that would pass the open guide page as context<assignment> ${context.guidesPage.content} </assignment>
- comments in
index.jswalk 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
userPromptvariable)