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

make the shift+enter in code editor warning clearer -- (was: "Mysterious error banner") #7650

Open
novoselt opened this issue Jul 1, 2024 · 1 comment

Comments

@novoselt
Copy link
Collaborator

novoselt commented Jul 1, 2024

I got "You can evaluate code in a file with the extension 'sagews' or 'ipynb'. Please create a Sage Worksheet or Jupyter notebook instead." as a red, i.e. error banner while editing a markdown file.

I have no idea why it has appeared, perhaps I've pressed some keyboard shortcut? If so, it would be helpful to see it in the banner "You have pressed Ctrl+XXX ... This does not work in markdown, instead etc." It also should not be an error, perhaps, but a warning or just info.

@williamstein
Copy link
Contributor

Context: This happens when you hit shift+enter. Before we added this, we would regularly get support requests from people trying to use normal documents as if they are Jupyter notebooks are sage worksheets. After adding this, we never got any more such support requests.

@williamstein williamstein changed the title Mysterious error banner make the shift+enter in code editor warning clearer -- (was: "Mysterious error banner") Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants