Skip to main content

Convert Markdown files to Jupyter notebooks with a single Markdown block

Project description

md2nb - Converting Markdown Files to Jupyter Notebook

GitHub license Julia v1.0.1

by Qin Yu, Nov 2020

Table of Contents

Manifesto

Taking notes using Markdown makes it easier for sharing on GitHub, but GitHub doesn't display Latex-style mathematics in .md files. A good workaround is to write Markdown in Jupyter notebooks and share the .ipynb files on GitHub, since everything inside is usually rendered properly. However, it is easier to take notes on a local text editor such as VSCode with Markdown support, becuase it automatically generates and updates the table of content, and you don't have to run a notebook server to take notes.

This package is quite simple. But the author decided to make it a package because of the encouraging talk by Mark Smith at EuroPython 2019.

Usage

md2nb.py finds all .md files in the current working directory and port them into .ipynb files with a single Markdown block.

You can either install it for easy invocation:

$ python -m pip install md2nb
$ cd <THE FOLDER CONTAINING MARKDOWNS>
$ md2nb

Or simply use the single python script:

$ python md2nb.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

md2nb-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md2nb-0.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file md2nb-0.0.1.tar.gz.

File metadata

  • Download URL: md2nb-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.8

File hashes

Hashes for md2nb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 83310ddc6176f527b0e78605a11430faae90f1e900c203e75f4857a51eae85ea
MD5 f3132ecd3729c2fbfbb8b3d9bec41987
BLAKE2b-256 87b478da9e13b517b1ac1c1c45e8304c75bf188efb6260c2dcbfacb31d70a84c

See more details on using hashes here.

File details

Details for the file md2nb-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: md2nb-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.8

File hashes

Hashes for md2nb-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b3133dca09f1c73c65a5c6aafbff75144668c8d9c42072d09472d8825684d33
MD5 188ee1057e39f558db2517efe3df393b
BLAKE2b-256 45635ee816cc3c1e790be415ed648111222696b221b26a6f4ad5b43f0260f958

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page