Skip to content

Instantly share code, notes, and snippets.

View connerxyz's full-sized avatar

Conner Cowling connerxyz

View GitHub Profile
@connerxyz
connerxyz / nbconvert-markdownexporter-with-fileswriter-example.py
Last active March 12, 2021 14:01
Using nbconvert.writers.FilesWriter to convert a Jupyter Notebook to Markdown so that figures *and* the markdown file are output together in an arbitrary directory.
"""
Imagine you have several Jupyter notebooks containing figure you would like to convert to Markdown.
# Using the notebook server:
If you use File->Download as Markdown you get:
Downloads/
notebook.zip