Google Cloud config issue : Jupyter loads wrong Python kernel

Hi everyone,

I’m having trouble getting the 2019 course to work on Google Cloud. It seems that the Jupyter notrebook loads the wrong Python kernel.

  • I’ve followed these steps to set u GCP : https://course.fast.ai/start_gcp.html
  • The fastai module doesn’t seem to be recognised from within the jupyter notebook (“no module named fastai”) because it loads the wrong python kernel.
  • The fastai install seems to be linked to Python 3.7.3, in which fastai works from the jupyter terminal, but jupyter loads Python 3.5.3 and thus can’t find any of the installed libraries

I’ve tried the following:

Any suggestions would be more than welcome, I’m really stuck on this one :confused:

Cheers
Nick

1 Like

Update:
I’ve solved this issue by installing a new jupyter kernel based on the active environment using

python -m ipykernel install --user --name myenv --display-name "Python (myenv)"

For more information on installing new kernels, see: https://ipython.readthedocs.io/en/latest/install/kernel_install.html

1 Like