-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add missing dependency on jupytext
#236
Add missing dependency on jupytext
#236
Conversation
@steppi, could we please yank the 0.17.0 release on PyPI with this reason, and publish a new 0.17.1 release? Thanks! |
I don't have access to yank on PyPI, but can publish the new release. @martinRenou, @jtpio, would one of you be able to yank 0.17.0? Also, we should add tests in CI that build docs for a simple site to make sure everything works. |
I agree; I was writing an issue about it just now, will post my thoughts there. |
hmm do we need the dependency on I didn't fully followed #221, but could markdown support be achieved with |
Done: |
No, I don't think so, @jtpio – while MyST-parser and markdown-it are essential parts of the tooling around enabling documentation with Markdown, they are solving different problems in comparison – they largely help Sphinx understand Markdown and parse it to HTML, but what we needed for #221 was a way to be able to be able to convert Markdown notebooks to IPyNB files that we could pass on to JupyterLite. For this, Jupytext was the only project in the ecosystem that apparently has the requisite functionality. I had assumed a project like Thus, In the medium term, to achieve proper Markdown notebook support without the need for our internal conversion, I would suggest that we advocate for being able to run Markdown notebooks themselves in JupyterLite: jupyterlite/jupyterlite#1301. When I looked at it some months ago, the only blocker here looked like this comment of yours: jupyterlite/jupyterlite#731 (comment). I wonder if there have been any updates to its surrounding behaviours recently, or if not, could you please share how one can approach a fix for it? I recently did try using the JupyterLab-MyST plugin with JupyterLite through an |
Ah ok, I was wondering if having Another option could be to make the |
Ah, I understand; yes, it would be nice not to inject It makes me think that we are constructing JupyterLite instances with shared dependencies (such as from a project's We could then have configuration options to control the version of JupyterLite, and other dependencies (such as jupyterlite_version = "0.5.0"
# or maybe construct a conda env and add "jupyterlite_conda_dependencies" as well?
jupyterlite_pypi_dependencies = [
"jupyterlab_materialdarker>=0.6.0",
"jupytext==1.14.0"
]
# maybe? or is the recommended way to install nowadays just "pip"?
jupyterlite_npm_dependencies = [
"base16-gruvbox-dark"
] It might look like a bit much, but could be more correct in the long run. Still, it might be possible to find a middle ground in terms of the complexity. |
As a side-effect of having the |
Thanks for that, @jtpio. I noted something the other day where the use of Jupytext shows up in Sphinx-Gallery as well, as Sphinx-Gallery uses it as a dependency:
This warning doesn't fail the Sphinx build and can be suppressed relatively safely – but it does bring back the thought of separating the dependencies required by |
Side note and a request: in the deployment you shared above, I'm unable to press the d key when typing out code in a notebook. Could you please disable the hotkeys from the Read the Docs admin panel? This request is similar to jupyterlite/pyodide-kernel#141, which, BTW, can be closed as it seems to have been fixed. |
Yes maybe we can open a new issue to have it on the radar. It's not a big issue, but it could be confusing to some users and may lead them to think
I can add you to the project on ReadTheDocs directly. If your handle there the same as on GitHub? |
Ah, that's a fair point as well. I'll open a new issue.
Thank you so much. Yes, my handle is the same there: https://app.readthedocs.org/profiles/agriyakhetarpal/ |
Description
The 0.17.0 release added
jupytext
via #221 as a dependency, but it was added in[docs]
but not here – which means thatjupyterlite-sphinx
will fail on import (see conda-forge/jupyterlite-sphinx-feedstock#37).This PR corrects it (my apologies!) and adds it as a default dependency instead. I think the reason I added it to an optional dependency was that I was going to plan it as an optional dependency under an experimental flag, but we didn't have a discussion about it later.