mwouts / jupytext

Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
https://jupytext.readthedocs.io
MIT License
6.52k stars 385 forks source link

nbviewer integration #743

Open nthiery opened 3 years ago

nthiery commented 3 years ago

It would be great if nbviewer.jupyter.org/ was aware of jupytext, and would display text notebooks like the other notebooks!

nthiery commented 3 years ago

Example: open 2021-02-15-SageOscarDays.md from:

https://nbviewer.jupyter.org/github/nthiery/shared-sage-notebooks/tree/master/

mwouts commented 3 years ago

Hi @nthiery , well sure that is a nice idea! I guess you're thinking of a notebook for which the outputs are not fundamental (as they are not stored in the Jupytext formats) - is that correct?

Now, if you want to make this happen, you could reach out to the nbviewer or maybe even nbconvert projects, and see if they would be open to use jupytext.read in place of nbformat.read to open notebooks.

nthiery commented 3 years ago

Done :-) Thanks for the quick feedback!

PS: I love jupytext, notably for being able to jump back and forth between my favorite text editor and jupyter depending on the kind of editing I do.

mwouts commented 3 years ago

PS: I love jupytext, notably for being able to jump back and forth between my favorite text editor and jupyter depending on the kind of editing I do.

Thank you @nthiery for your kind words! Funny enough it is exactly this use case that I personally enjoy the most :smile: