Skip to content
/ conda-jupyter-env Public template

A template repo base for setting up a (mini)conda environment with jupyter

License

Notifications You must be signed in to change notification settings

VCHui/conda-jupyter-env

Repository files navigation

conda-jupyter-env

A repo template for maintaining a conda env and running jupyter-notebook

Apply the template to start a new repo

  • export this repo to ${another_directory}

    git checkout-index --all --prefix=${another_directory}/
  • update this REAMDME.md

The env setup is for development only (not multi-user)

  • env_create.sh to remove and create the env in one step

  • jupyter_setup_kernel.sh to install a separate kernel for the env

    • enable jupyter notebook to use alternative kernels of different envs
  • jupyter notebook.nohup runs like a system service

    • accept connections to jupyter over the network
    • use a self-signed ssl certificate for https
    • maybe useful to set a password
    • save log to file

Using the setup

conda env create/remove

jupyter kernel notebook config

  • in the new env

  • run ./jupyter_setup_kernel.sh to install a jupyter kernel for the env, it nest executes

  • edit ./jupyter_notebook_config.py if needed; the config sets

    • cert and key files to ./jupyter.pem
    • ip 0.0.0.0 to listens all network connections
    • notebook directory to ./ipynb
    • no starting a browser
    • (NOTE password is unset)

run jupyter notebook like a system service

notebook directory ipynb