Jupyter Notebook & Anaconda

ssh -L 8000:localhost:8889 tjhouse@udcapture.udel.edu
ssh -L 8000:localhost:8888 muh@apps.ats.udel.edu

Documentation

Snippets

Running jupyter notebook on the background of the server

Source

nohup jupyter notebook --no-browser &
# Terminal
ssh -L 8000:localhost:8889 tjhouse@udcapture.udel.edu

# Kill Thread
lsof nohup.out
kill -9 <PID>

Conda

conda upgrade --all

conda list # List all installed packages
conda install package_name # Install a new package
conda remove package_names # Remove an installed package

conda create -n env_name python=3.6.5 # Create an environment with Python 3.6.5 
source activate env_name # Activate virtual environment
source deactivate # Deactivate virtual environment
conda env export > environment.yaml # Share virtual environment
conda env list # List all the created virtual environment
conda env remove -n env_name # Remove a created virtual environment

Jupyter Notebook

Source

Installation

conda install jupyter notebook

Start

Change default directory

jupyter notebook --notebook-dir=/Users/muh/Dropbox/Github/jupyter-notebook

安装环境自动关联

conda install nb_conda

安装代码自动补全

conda install pyreadline

Jupyter Contrib Nbextensions

Source

conda install -c conda-forge jupyter_contrib_nbextensions

Install Package

python -m pip install <package name>