Skip to content
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 write IPython/Jupyter notebooks from programs or simple ascii input #24

Open
hplgit opened this issue May 14, 2015 · 2 comments
Open

Comments

@hplgit
Copy link
Owner

hplgit commented May 14, 2015

Notebooks are meant to be written interactively in the browser, but many would prefer to use an editor like Emacs and write the notebook in plain Markdown and computer code. Others may have lots of LaTeX files that they want to translate to notebooks, and then translating to an ascii format first is attractive. If the ascii format is extended with programming constructs like variables and functions, it also becomes more functional than writing notebooks in the web browser. Here is a description of such an ascii format and how the little compiler can be written:

http://hplgit.github.io/doconce/doc/pub/ipynb/ipynb_generator.html

Note that DocOnce offers the same possibility to write notebooks in ascii format, and with much more functionality, such as copying selected parts of files, capturing output from programs in the text, proper equation referencing in Markdown math, much more testing for potential Mako problems, handling of literature references, references to other sections, etc. The note above is for those who want to create their own independent format and/or learn how to use IPython.nbformat functionality for writing notebooks from programs.

@hplgit hplgit changed the title How to write IPython/Jupyter notebooks How to write IPython/Jupyter notebooks from programs or simple ascii input May 14, 2015
@unpingco
Copy link
Collaborator

unpingco commented Feb 4, 2016

Hi,

Seems like the code that is referenced on this site has been moved. I'm trying to work through the example on this page but I cannot find ipynb_generator.py. If this functionality still supported?

Thanks!

@hplgit
Copy link
Owner Author

hplgit commented Feb 5, 2016

Hi -  doconce clean was run in this directory and cleaned away ipynb_generator.py (this undesired side effect is fixed now). The file is restored, and the functionality has not been changed since the issue was originally written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants