Jupyter and GITs

34 views
Skip to first unread message

alexandergar...@gmail.com

unread,
Feb 15, 2019, 7:59:44 AM2/15/19
to Project Jupyter
Hi. I am looking for a way to get a Jupyter notebook directly from the information in a git repo. the idea is simply that the Jupyter is built automatically from information in the git repo. it could for instance be by taking text from the MD files, or having the specs for the Jupyter in a text file, etc. anyone could point me to related experiences? 

Jason Anderson

unread,
Feb 15, 2019, 5:59:46 PM2/15/19
to alexandergar...@gmail.com, jup...@googlegroups.com
Hi Alexander,

As I understand, you are looking for something that will take code and text files in an existing Git repository and somehow automagically create a .ipynb file from them. I am not aware of any project/tool out there that does exactly what you want. However, the Jupyter Notebook format is pretty well-defined and in fact you can probably re-use the nbformat Python module to code something up for this. See https://github.com/jupyter/nbformat/tree/master/nbformat/v4. I imagine you can re-use the functions like `new_code_cell` and `new_markdown_cell`.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
If by chance you are actually looking for a way to generate a Jupyter Notebook server from a Git repository, which is a different problem, that is something that repo2docker can do: https://github.com/jupyter/repo2docker
repo2docker fetches a git repository and builds a container image based on the configuration files found in the repository. See the repo2docker documentation for more information on using repo2docker. See the contributing guide for information on contributing to repo2docker. See our roadmap to learn ...
Hope that helps!

/Jason

From: jup...@googlegroups.com <jup...@googlegroups.com> on behalf of alexandergar...@gmail.com <alexandergar...@gmail.com>
Sent: Friday, February 15, 2019 06:59
To: Project Jupyter
Subject: [jupyter] Jupyter and GITs
 
Hi. I am looking for a way to get a Jupyter notebook directly from the information in a git repo. the idea is simply that the Jupyter is built automatically from information in the git repo. it could for instance be by taking text from the MD files, or having the specs for the Jupyter in a text file, etc. anyone could point me to related experiences? 

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/fc35437b-67c3-480b-b297-3d4e7d43907a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Anderson

unread,
Feb 15, 2019, 6:03:51 PM2/15/19
to alexandergar...@gmail.com, jup...@googlegroups.com
Also, after some curious searching, I found this project, which may also help. You would have to represent your Notebooks as a .py file, but perhaps that would work for you: https://github.com/mwouts/jupytext

/Jason

From: jup...@googlegroups.com <jup...@googlegroups.com> on behalf of Jason Anderson <jasona...@uchicago.edu>
Sent: Friday, February 15, 2019 16:59
To: alexandergar...@gmail.com; jup...@googlegroups.com
Subject: Re: [jupyter] Jupyter and GITs
 
Reply all
Reply to author
Forward
0 new messages