This is a way to turn ipython notebooks into markdown files for your jekyll blog.
The idea is that you will (manually) run build
to render any ipython notebooks in _notebooks/
as markdown into your _drafts/
folder. (These folder names can be changed by editing config.env
).
-
Go to your jekyll blog's root folder, for example:
cd ~/Sites/blog
-
Clone this repo into
_notebooks/
mkdir -p _notebooks cd _notebooks git clone https://github.com/mobeets/jekyll-ipython-markdown.git
-
Edit
config.env
if necessary, then create the specified folders by runningprepare
:cd jekyll-ipython-markdown ./prepare
You can build one .ipynb
at a time, or all at once.
Here's all you do:
cd _notebooks
./jekyll-ipython-markdown/build *.ipynb
This will build all your ipython notebook files in _notebooks/
and place the resulting markdown in _drafts/
and the resulting images in images/ipython
. (These folder names can be changed by editing config.env
).
You can also build individual files:
cd _notebooks
./jekyll-ipython-markdown/build test.ipynb
- Use fswatch to auto-build
.ipynb
files as they change