-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Fix default viewers override #6923
Conversation
Still troubleshooting this. |
Looking better: jupytext-default-viewer.mp4Although not sure why there is no toolbar when opening the markdown file with the default-viewers-jupytext-jupyterlab.mp4 |
cc @parmentelat for awareness, since this PR should already help in case you would like to try it out. As noted above, it seems like there is an issue with the toolbar even with JupyterLab. Maybe this could be addressed as part of the JupyterLab 4 compatibility happening in mwouts/jupyterlab-jupytext#3 |
const urlParams = new URLSearchParams(parsed.search); | ||
let defaultFactory = docRegistry.defaultWidgetFactory(path).name; | ||
|
||
// Explicitely get the default viewers from the settings because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can track that in a JupyterLab issue so it can be discussed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main needs to be merged in, otherwise looks good. Thank you @jtpio
Thanks @andrii-i for the review! Just rebased and CI all green ✔️ |
Troubleshooting #6914
Notebook 7 should respect the
defaultViewers
settings overrides when opening a document.Testing with Jupytext with the following:
pip install jupytext
pip install git+https://github.com/mwouts/jupyterlab-jupytext.git@jupyterlab4