-
Notifications
You must be signed in to change notification settings - Fork 392
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 documentation of myst-nb format #458
Conversation
Codecov Report
@@ Coverage Diff @@
## master #458 +/- ##
==========================================
- Coverage 98.91% 98.88% -0.03%
==========================================
Files 79 79
Lines 7762 7823 +61
==========================================
+ Hits 7678 7736 +58
- Misses 84 87 +3
Continue to review full report at Codecov.
|
Hello @chrisjsewell , thanks for this PR, which looks good to me! I will let @choldgraf have a look at the proposed documentation, and confirm the latest changes, namely:
Also, in the previous PR (#456 ) I think that @choldgraf suggested allowing the
If you do that, then there will be the question of which extension should be the default: |
Thanks @mwouts yes in 316bc2e, I tried adding
IMO ideally it would be something like
Indeed. I did have a quick try at this but couldn't get it to working straight away. I might need some help in that respect. |
Note-to-self: /usr/local/share/jupyter/nbextensions/jupytext/index.js |
Yes, I think so.
With the current code Jupytext will see this as a file with
Sure! First, let's see what @choldgraf thinks about having
Yes, I saw you had issues with the README, didn't the symlink install work? I'd be happy to know how to fix the README... |
Yeh I don't know if its as easy as just changing
There's no real way to differentiate between MyST-md and Jupytext md? The only real way to discriminate, is to parse the whole file (with myst) and check if any code cells have been discovered, which is far from ideal. |
Ok I've added
Nope, |
@mwouts if/when you are happy with this PR (do I need to work out tests to add, to cover the -0.05% decrease!?) I would suggest merging, then @choldgraf can work on the notebook/lab extensions separately |
I'd be OK with having (just a note, I probably will not be working on the lab/notebook extensions, I don't know anything about developing for lab/notebook...but we don't need that to block this PR) |
Hello @chrisjsewell , @choldgraf , well this is going fast! 🚀
Oh no, surely not!! Actually a few months I tried to fix that with
Well, as I user I think I'd prefer to use |
@chrisjsewell , what do you think of this: 6bec0bc ? This gives the option to pair the document to a |
Yeh cheers, if you say it works, then that's good enough for me 😄 |
FYI I just added the nbextension, copied from your branch. Its working great 👍 |
One minor improvement that comes to mind, is to set the common sphinx metadata key |
In 9735b58 I have added the option to store the original source line numbers in the cell metadata, |
Hello @chrisjsewell , great job! I see you've changed the pairing to
Yes, this is possible. I think it should have very little impact, because the filter ignores metadata when it is missing. All you need to do is to modify jupytext/jupytext/metadata_filter.py Lines 6 to 12 in 2a96dfa
|
Thanks @chrisjsewell , I'll merge this, test and release a new version of Jupytext. Thank you for this great contribution ! Just to mention:
|
Thanks @mwouts! (Yeh I'll look into the |
BOOM - way to go everybody 🎉 thanks @chrisjsewell for the hard work on this, and thanks @mwouts for the quick responses and turnaround :-) |
If you like I can take it (and |
Dont merge
Yep that would be great thanks 👍 |
Done! And |
Also added MyST jupyter labextension
cc @choldgraf @jstac @mmcky