Skip to content

Instantly share code, notes, and snippets.

@jj-github-jj
Last active September 11, 2022 23:08
Show Gist options
  • Save jj-github-jj/c5296f801b71394d3a7074a5aed98bb7 to your computer and use it in GitHub Desktop.
Save jj-github-jj/c5296f801b71394d3a7074a5aed98bb7 to your computer and use it in GitHub Desktop.
environment utility snippets
#force reload of specific module without restarting kernel. Useful for debug
import importlib
importlib.reload(<module name>)
# get path of python exe jupyter lab is using
!python --version
!jupyter kernelspec list
!jupyter --version
!{sys.executable} -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple jjutil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment