nb2wb

Turns Jupyter notebooks, Markdown articles or Quarto documents into paste-ready HTML for publishing editors that do not understand notebooks or LaTeX. Lets you write in a notebook and publish on platforms like Substack.

Share on XLicense: MIT

Overview

nb2wb is a Python tool that converts notebook-style writing into HTML you can paste into publishing editors. Many web editors do not understand Jupyter, Quarto or LaTeX, so code and math often break when copied. You start from a notebook, a Markdown article or a Quarto document, pick a target such as Substack, Medium, LinkedIn or WordPress, and paste the result. It can also turn published HTML back into a notebook.

Key features

  • Accepts .ipynb, .qmd and .md files as input
  • Renders code cells as syntax-highlighted images
  • Renders display math as images and inline math as Unicode
  • Provides output profiles for Substack, Medium, Ghost, WordPress and more
  • Converts published HTML back into a notebook scaffold

Best for

Writers who draft technical posts in notebooks and publish on platforms without notebook or LaTeX support.

Upstream
the-palindrome/nb2wb
Fork on GitHub
Guo-astro/nb2wb
Upstream stars
23
Category
Documents, media and content
Language
Python
License
MIT
Forked
2026-02-15
Sync status
In syncLast synced 2026-09-29