-
Notifications
You must be signed in to change notification settings - Fork 394
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 execute a notebook created with Jupytext? #231
Comments
Experiments on this subjects are available at https://github.com/mwouts/papermill_jupytext. And the discussion with the papermill team is at nteract/papermill#365. The less intuitive part is probably the kernel information. By default, Jupytext does not set any kernel when the file is converted, the user has to set it explicitly using the Note that there are other examples of jupyter tools that requires a kernel (jupyter-book also does, cf. #230). |
I think #119 is also relevant - a sphinx workflow. One thing I wonder is: could I edit jupytext dualled notebooks, save rst/md or whatever sphinx feeds from, and let Github, for example, automatically generate a Sphinx site from md/rst duals saved from a Jupytext enabled notebook authoring environment? |
In terms of generating publishing routes, I wonder if it would be possible to generate a form of the chapters/slides/exercises md/py used in the spacy course (see also the course-starter-python and course-starter-r). This would then provide a route for generating the md/py feedstock required to publish an interactive course from materials authored in a Jupyter notebook environment? |
Nice links, thanks @psychemedia . Sure there's something to be done in this direction. Maybe we could document what you've done with Jupyter Book: turn a collection of I am also interested in the other frameworks like Sphinx or the spacy course, but maybe there editing these documents as notebooks will not help much, since the final rendering would be done using a different framework. What do you think? |
Re: Jupyter Books things: yes, documenting that is on my to do list; just need to try out a couple of other workflow attempts to see if I can smooth things a bit first. |
@psychemedia, I have added a new
@Chichilele, I know you did not recommend to provide the
(which also works now) was a bit uncomfortable!. And please be reassured, the implementation is super simple and obviously uses |
When a notebook is created from a
.py
or.md
file using Jupytext, it has no outputs.We should document how to recreate those using either
jupyter nbconvert --execute
papermill
Example use cases are
.md
files to Jupyter notebook using Jupytext, execute them, and render the collection of notebooks as a static site using Jupyter Book.The text was updated successfully, but these errors were encountered: