Jupyter
Last updated
# check Jupyter path
$ which -a jupyter
/usr/local/bin/jupyter # sample output
# check default python path
$ which -a python
/usr/bin/python
# check python3 path
$ which -a python3
/usr/local/bin/python3# identify where Jupyter stores kernel information
$ jupyter kernselspec list
Available kernels:
python3 /usr/local/share/jupyter/kernels/python3{
"argv": ["python3",
"-m",
"IPython.kernel",
"-f",
"{connection_file}"],
"display_name": "Python 3",
"language": "python"
}{
"argv": [
"/usr/local/opt/python/bin/python3.7",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Python 3",
"language": "python"
}import sys
sys.executable
'/usr/local/opt/python/bin/python3.7' # this is from kernel.json$ python3
import sys
sys.executable
'/usr/local/opt/python/bin/python3.7'
'/Library/Frameworks/Python.framework/Versions/3.7/bin/python3'pip uninstall jupyter
pip install jupyter