After installing Max nightly with magic CLI VS Code Jupyter doesn't run cells with Mojo (Max) Kernel and gives a warning: Failed to start the Kernel.
Steps to reproduce
I removed my previous modular CLI installation and the environment variables $MOJO_PYTHON_LIBRARY and $MODULAR_HOME pointing to old locations. I installed nightly with
Otherwise the installation seems to work as expected, but VS Code Jupyter doesn't run cells with Mojo kernel and fails with:
Failed to start the Kernel.
Unable to start Kernel 'Mojo (max) (default)' due to a timeout waiting for the ports to get used.
View Jupyter [log](command:jupyter.viewOutput) for further details.
The Jupyter log looks like this:
07:31:09.302 [info] Dispose Kernel '~/Nextcloud/Mojo/Testi.ipynb' associated with '~/Nextcloud/Mojo/Testi.ipynb'
07:31:09.302 [error] Error in notebook cell execution Error: Unable to start Kernel 'Mojo (max) (default)' due to a timeout waiting for the ports to get used.
View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd06449df9194ae11fd5cf588b559a3b08b788d55227185f226ac5333bacc723af6#mojo./Users/~/Nextcloud/Mojo/.magic/envs/default/python././users/~/nextcloud/mojo/.magic/envs/default/bin/python#/users/~/nextcloud/mojo/.magic/envs/default/share/jupyter/kernels/mojo/mojokernel.py#-f#{connection_file}#--modular-home#/users/~/nextcloud/mojo/.magic/envs/default/share/max#--mojo-config-section#mojo
> Interpreter Id = ~/Nextcloud/Mojo/.magic/envs/default/bin/python
> at /Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.8.0-darwin-arm64/dist/extension.node.js:299:45839
07:31:09.303 [error] Error in execution (get message for cell) Error: Unable to start Kernel 'Mojo (max) (default)' due to a timeout waiting for the ports to get used.
View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd06449df9194ae11fd5cf588b559a3b08b788d55227185f226ac5333bacc723af6#mojo./Users/~/Nextcloud/Mojo/.magic/envs/default/python././users/~/nextcloud/mojo/.magic/envs/default/bin/python#/users/~/nextcloud/mojo/.magic/envs/default/share/jupyter/kernels/mojo/mojokernel.py#-f#{connection_file}#--modular-home#/users/~/nextcloud/mojo/.magic/envs/default/share/max#--mojo-config-section#mojo
> Interpreter Id = ~/Nextcloud/Mojo/.magic/envs/default/bin/python
> at /Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.8.0-darwin-arm64/dist/extension.node.js:299:45839
Issue description
After installing Max nightly with magic CLI VS Code Jupyter doesn't run cells with Mojo (Max) Kernel and gives a warning: Failed to start the Kernel.
Steps to reproduce
I removed my previous modular CLI installation and the environment variables $MOJO_PYTHON_LIBRARY and $MODULAR_HOME pointing to old locations. I installed nightly with
Otherwise the installation seems to work as expected, but VS Code Jupyter doesn't run cells with Mojo kernel and fails with:
The Jupyter log looks like this:
Version Info
MacOS Sonoma 14.6.1 on MacBookAir (M1, arm64)
magic.lock:
magic --version
magic.lock
file.