Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat interface includes backticks at end of selected code #151

Closed
JasonWeill opened this issue May 7, 2023 · 0 comments · Fixed by #155
Closed

Chat interface includes backticks at end of selected code #151

JasonWeill opened this issue May 7, 2023 · 0 comments · Fixed by #155
Assignees
Labels
bug Something isn't working @jupyter-ai/chatui

Comments

@JasonWeill
Copy link
Collaborator

Description

When I send a message to Jupyternaut using the chat interface and I include the selection with my prompt, the code has three visible backticks at the end.

image

Reproduce

  1. Open examples/code.ipynb and select some code in it.
  2. Open the chat panel and ask Jupyternaut to explain code. Check the box to include the selection.
  3. Observe that the outgoing prompt has a closing triple-backtick visible in the code (see screen shot above)

Expected behavior

The triple-backtick to end a code block is on a line by itself and is not visible in the chat panel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @jupyter-ai/chatui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant