andersch.dev

<2024-10-26 Sat>

Jupyter

Jupyter is a project which produces browser-based interactive environments for programming, mathematics, and data science. It supports a number of languages via plugins ("kernels"), such as Python, Ruby, Haskell, R, Scala, Julia and Kotlin.

Jupyter notebooks use Markdown as their markup language for formatting text and also supports LaTeX for rendering mathematical equations and symbols.

Jupyter emerged from the IPython project as a broader platform that supports multiple programming languages and provides an interactive computing environment. The IPython kernel remains a component of Jupyter. JupyterLab is "Jupyter's Next-Generation Notebook Interface", while Jupyter Notebook is the original.

Converting between Jupyter Notebooks and Org Mode

Convert your Org-mode files to Jupyter Notebooks:

jupytext --to ipynb my_org_file.org

Or use ox-ipynb

Org-mode integration

print('Hello, world!')
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.plot([1, 2, 3, 4], [1, 4, 2, 3])
pass

Resources