By Tyler Biggs
-
Install Anaconda.
-
Create a new Python 3.7 environment.
conda create -n py37 python=3.7 # conda create -n [environment_name] python=[version]
Read more about creating environments.
-
Install Jupyter Lab.
Creating a New IPython Kernel:
See the documentation for descriptions of the commands below and more.
# Activate the environment you wish to create a kernel in.
source activate py37
# Install ipykernel.
conda install ipykernel
# Create the kernel.
python -m ipykernel install --user --name py37 --display-name "Python 3.7"
Launching a server:
jupyter lab
Reloading imports:
%load_ext autoreload # Load the extension.
%autoreload 2 # Reload all modules (except those excluded by %aimport)
# every time before executing the Python code typed.
Enabling imports from parent directories:
import sys, os
sys.path.insert(0, os.path.abspath('..'))
-
dir(__builtin__) # Show the namespace of Python's built-in functions.
-
Python Standard Library for ubiquitous programming needs.
Notebook Examples:
- A gallery of interesting Jupyter Notebooks
- Peter Norvig
- Kaggle Machine Learning Competitions