Skip to main content

C++ Interactive Notebook: Xeus-Cling for Jupyter

Pythonistas use Jupyter to run codes interactively and visualize things. C++ programmers can also use Jupyter through Xeus-Cling.

  1. Platform: Linux (including WSL) or macOS.
  2. Prerequisite: a Conda-like package manager. I chose Micromamba (installation).
  3. Create an environment and use it.
    micromamba create -n cling
    micromamba activate cling
  4. Install JupyterLab and Xeus-Cling.
    micromamba install jupyterlab -c conda-forge
    micromamba install xeus-cling -c conda-forge
  5. Run JupyterLab.
    micromamba run jupyter lab

To leave the environment:

micromamba deactivate