Skip to main content

Markdown to Jupyter Notebook converter.

Project description

md2ipynb

Markdown to Jupyter Notebook converter.

Minimal example

Here is a minimal example on how to convert a Markdown file. By default, the output is printed into stdout.

md2ipynb examples/pages/example.md

You can also specify an output path with the -o or --output option.

md2ipynb examples/pages/example.md -o examples/notebooks/example.ipynb

Here is the generated notebook on GitHub and Colab.

Run in Colab View on GitHub

Example

Here is a more complete example on specifying an output path, import sections, variables, as well as more metadata for a Colab visualization.

md2ipynb examples/pages/example.md \
    -o examples/notebooks/example.ipynb \
    --imports examples/templates/license.md:0 \
              examples/templates/setup-py.md:1 \
              examples/templates/cleanup.md:-2 \
    --var package=md2ipynb \
          end_message="You're all done 🎉🎉" \
    --notebook-title 'Hello md2ipynb!' \
    --docs-url https://github.com/davidcavazos/md2ipynb \
    --docs-logo-url https://www.tensorflow.org/images/GitHub-Mark-32px.png \
    --github-ipynb-url https://github.com/davidcavazos/md2ipynb/blob/master/examples/notebooks/example.ipynb

Note: For more information on the available options, run md2ipynb --help.

Here is the generated notebook on GitHub and Colab. Note that since we specified the --github-ipynb-url, there is now an "Open in Colab" button in the GitHub ipynb file.

Run in Colab View on GitHub

Contributing

Contributions are welcome! For instructions on how to contribute, please check the Contribution guide.

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

md2ipynb-0.1.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

md2ipynb-0.1.0-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: md2ipynb-0.1.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for md2ipynb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2cbc2beb9b5f9a94eeaf28ddc8c0e3640ddabdc0206d2cf0ca636869abb090bd
MD5 6ec00515fe244f3d3c28be503907bb7b
BLAKE2b-256 2190d60b34273c0b6520b47aabd3289cb4cea9d2503db2e1c70c1e6ce482070f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: md2ipynb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for md2ipynb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a90d251696f1534253682eb10f2595cd314cc91f0a1bbe0d7981f220ba9cf56c
MD5 26c36e0fc108d4bb36dbb5c0bb8d4189
BLAKE2b-256 dd7b7f60beecf3320eec3619418df213063ec94571d81a70d314a902286876e5

See more details on using hashes here.

Supported by

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