Skip to content

Instantly share code, notes, and snippets.

@jorgeluisrmx
Last active July 10, 2021 12:43
Show Gist options
  • Save jorgeluisrmx/643f010236cbb7777a8c82276742dff5 to your computer and use it in GitHub Desktop.
Save jorgeluisrmx/643f010236cbb7777a8c82276742dff5 to your computer and use it in GitHub Desktop.
pipenv install jupyter # install jupyter notebook
(venv)$ jupyter notebook # run jupyter notebook server
# EXTENSIONS
# Reveal.js - Jupyter/IPython Slideshow Extension (https://rise.readthedocs.io/en/maint-5.5/)
pipenv install RISE
# Hide code
pipenv install hide_code
pipenv run jupyter nbextension install hide_code --py --sys-prefix
pipenv run jupyter nbextension enable hide_code --py --sys-prefix
pipenv run jupyter serverextension enable hide_code --py --sys-prefix
# jupyter_contrib_nbextensions (https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/install.html)
pipenv install jupyter_contrib_nbextensions
pipenv run jupyter contrib nbextension install --user
# pipenv run jupyter nbextension enable <nbextension require path>
pipenv install jupyter_nbextensions_configurator
pipenv run jupyter nbextensions_configurator enable --user
pipenv run jupyter nbextension enable python-markdown
pipenv shell # spawns a shell with the venv
# creates if doesn't exists
(venv)$ exit # exit from venv shell
pipenv run <command> # run command in venv
pipenv <package> # install <package> and add it to Pipfile
pipenv install # install all packages from Pipfile
pipenv --rm # remove the view
pipenv lock # generate Pipfile.lock
pipenv --python 3.7 # creates a new venv with Python 3.7
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
# Installing packages
pipenv install <package>
pipenv install <package> --dev
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
# Installing pipenv
pip3 install pipenv
pipenv uninstall <package>
# Uninstalls all dev-packages but also removes them from Pipfile.
pipenv uninstall --all-dev
# Uninstall all packages to get a fresh environment
pipenv uninstall --all
https://github.com/pypa/pipenv/issues/3184
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment