Links

GitHub Issues MIT License npm

Contributors

TheAndroidMaster

Markdown To Jupyter

git://github.com/TheAndroidMaster/MarkdownToJupyter.git

The Markdown to Jupyter Conversion tool (MTJC) is a fairly simple script that converts a markdown file with code blocks to the JSON format used by Jupyter to create Notebooks.

MTJC separates the provided markdown file into “cells”, looking for headers and code blocks to split the content at. Each header and any following text, list, or whatever will be placed in the same block until either another header or a code block (“```”) is encountered.

When a code block is encountered, it writes the code to a file in .temp (relative to the folder it is run in), passes it to the relevant program to run, and stores the result.

For demonstration purposes, here is a sample markdown file and the notebook output from the program as a result.

Limitations

Installation

Assuming that you have already installed npm, in the command line, type either one of the following:

NPM

npm install -g mtjc

From Source

git clone https://github.com/TheAndroidMaster/MarkdownToJupyter
cd MarkdownToJupyter
npm install

Usage

mtjc <file.md>

Or, to specify a path for the output file…

mtjc <file.md> <output.ipynb>
This site may do shady things with cookies and stuff because it's evil. Please don't read my privacy policy. close