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

How to distinguish normal notebooks from MyST notebooks? #128

Open
kolibril13 opened this issue Mar 22, 2023 · 2 comments
Open

How to distinguish normal notebooks from MyST notebooks? #128

kolibril13 opened this issue Mar 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@kolibril13
Copy link
Contributor

Context

It might happen that a user opens a MyST notebook without having MyST installed.
And the user might not even know that jupyterlab-myst exists.
Is there a way to indicate that the notebook is a jupyterlab-myst notebook?

Proposal

One way to give a hint that it's a jupyterlab-myst notebook would be to write it in the notebook metadata on saving.
image
And just another thought:
Would it even be possible to have a button: "Download myst renderer" that downloads and runs the JavaScript on the fly, without having the jupyterlab-myst plugin installed? That would make myst notebooks more portable.

Tasks and updates

No response

@kolibril13 kolibril13 added the enhancement New feature or request label Mar 22, 2023
@rowanc1
Copy link
Collaborator

rowanc1 commented Mar 22, 2023

There is some movement in Jupyter to better define the markdown variant in use:

This would allow better error messages about which renderer to use, and at least alert users to the fact that they should install something.

We have also registered MyST with IANA, to be an official markdown variant:

Steps in that direction at least! 🚀

@agoose77
Copy link
Collaborator

This is a good question, and something we're discussing in several arenas at once, including

The big picture is that right now we're under-standardised here.

Would it even be possible to have a button: "Download myst renderer" that downloads and runs the JavaScript on the fly, without having the jupyterlab-myst plugin installed? That would make myst notebooks more portable.

This has some overlap with the rich-outputs ES6 work that was recently discussed at a widgets workshop. There's no similar analogue for Markdown, but that falls under the idea that we need to augment the notebook format to encode this information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants