Skip to content

rambasnet/CPP-STL

Repository files navigation

C++ STL and Algorithm Libraries using Jupyter Notebooks

Requirements

  • Linux/MacOS/WSL(Windows Subsystem Layer) on Windows
  • Miniconda Python package manager
  • Jupyter Notebook
  • xeus-cling notebook kernel
  • git

Install required tools

  • Install Miniconda: https://conda.io/miniconda.html
  • create a virual environment to keep C++ specific installtions seperate from base installation
  • open a terminal and run the following commands
    conda create -n cpp python=3.7 # create virtual env named cpp with Python3.7 support
    conda activate cpp #activate the virual environemnt; must do this everytime to run the notebook
    conda install notebook
    conda install -c conda-forge xeus-cling
    conda install -c conda-forge jupyter_contrib_nbextensions
    conda install -c conda-forge jupyter_nbextensions_configurator
    jupyter nbextensions_configurator enable --user

Run notebooks

  • open a terminal and cd into this cloned repo and run jupyter notebook
    conda activate cpp
    cd <cs2notebooks repo folder>
    jupyter notebook

Stop notebooks

  • On the terminal the jupyter notebook is running do the following:
  • Enter ctrl+c to stop jupyter notebook from the terminal where its running from
  • Enter conda deactivate # to deactivate the virtual env and go back to base installation
    ctrl+c # to stop server
    conda deactivate # to get out of virtual environment cpp

About

C++ STL and Algorithm Libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors