Cheatography
https://cheatography.com
List
A = [1,2,3] B = A[:] |
create new list as copy |
Environments
conda create --name <env name> python=<version> |
create environment |
conda activate <env name> |
activate environment |
conda deactivate |
deactivate environment |
conda install <pkg name> |
install package |
conda update conda |
update conda |
conda info |
verify conda is installed, check version number |
conda env list |
list of environments |
conda list |
list all packages and versions installed in active environment |
conda list --explicit > <text file> |
save environment to a text file |
conda env create --file <text file> |
create environment from a text file |
where python |
location of python installs |
python --version |
python version |
|
|
Change jupyter notebook start directory
jupyter notebook --generate-config |
This writes a file to C:\Users\username\.jupyter\jupyter_notebook_config.py |
Change this line #c.NotebookApp.notebook_dir = '' to this text c.NotebookApp.notebook_dir = '/the/path/to/home/folder/' |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by shribee