Convert Markdown files to Jupyter notebooks with a single Markdown block
Project description
md2nb - Converting Markdown Files to Jupyter Notebook
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdb37a2261b82fce44d7249d54d97bb4d153ca876d3629842b1f8b7fefa036ff
|
|
| MD5 |
339327475f17ace2a2c63cba918e7c0c
|
|
| BLAKE2b-256 |
fde51122f3f40c6effe99251ac00cb1b9f32396a194990434336edae22cd53a5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0156359a6dba09b2d1eb9f6273185b413115108e4426fc05fe2ac5a55f1db567
|
|
| MD5 |
5ffab628e6f562d2a3698b1b73b497e4
|
|
| BLAKE2b-256 |
8cf58dce3aaf4901e572cef36c106fcbb1b265f80bd3c33f65661df94f815e08
|