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.1.0.tar.gz (3.6 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.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: md2nb-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 cdb37a2261b82fce44d7249d54d97bb4d153ca876d3629842b1f8b7fefa036ff
MD5 339327475f17ace2a2c63cba918e7c0c
BLAKE2b-256 fde51122f3f40c6effe99251ac00cb1b9f32396a194990434336edae22cd53a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: md2nb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0156359a6dba09b2d1eb9f6273185b413115108e4426fc05fe2ac5a55f1db567
MD5 5ffab628e6f562d2a3698b1b73b497e4
BLAKE2b-256 8cf58dce3aaf4901e572cef36c106fcbb1b265f80bd3c33f65661df94f815e08

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