Common Functions
Common Jupyterlab and Nodejs functions
install nvm
https://github.com/creationix/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | zsh
### Install latest nodejs
npm install node # "node" is an alias for the latest version
Install nodejs via conda
conda install -c conda-forge nodejs
update npm
sudo npm install -g npm
Rebuild Jupyterlab
jupyter lab build
Remove nodejs and npm
conda remove nodejs npm
Auto import of Libraries
- Navigate to
~/.ipython/profile_default - Create a folder called
startupif it's not already there - Add a new Python file called
start.py - Put your favorite imports in this file
- Launch IPython or a Jupyter Notebook and your favorite libraries will be automatically loaded every time!
Example start.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
Check
Confirm that Libraries are loaded with
globals()