Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Jupyter Kernel fails to start in MAX 24.6 #277

Open
oforero opened this issue Dec 28, 2024 · 1 comment
Open

[BUG]: Jupyter Kernel fails to start in MAX 24.6 #277

oforero opened this issue Dec 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working max-repo

Comments

@oforero
Copy link

oforero commented Dec 28, 2024

Bug description

It is not possible to run a Jupyter Notebook using MAX 24.6, it tries to start the nightly kernel and fails with the following error:

Failed to start the Kernel.
configparser.NoSectionError: No section: 'mojo-max-nightly'.
View Jupyter log for further details.

It happens at the start, hence it is not related to any code in the notebook.

It happens both when executing jupyter notebook from the magic shell, or when running it in Visual Studio Code.

Steps to reproduce

Try to run a Jupyter Notebook using the MAX kernel in MAX version 24.6

Create a mojo project, add python and jupyter. Try to run a notebook using the Max Kernel.

System information

- What OS did you do install MAX on ?

MacOS 15.2

- Provide version information for MAX by pasting the output of max -v`

That commands fails with 24.6, I get a command not found.

In magic.lock I have:

❯ cat magic.lock | grep max 
    - url: https://conda.modular.com/max/
      - conda: https://conda.modular.com/max/noarch/max-24.6.0-release.conda
      - conda: https://conda.modular.com/max/osx-arm64/max-core-24.6.0-release.conda
      - conda: https://conda.modular.com/max/osx-arm64/max-python-24.6.0-3.12release.conda
      - conda: https://conda.modular.com/max/noarch/mblack-24.6.0-release.conda
      - conda: https://conda.modular.com/max/noarch/mojo-jupyter-24.6.0-release.conda
  name: max
  url: https://conda.modular.com/max/noarch/max-24.6.0-release.conda
  - max-core ==24.6.0 release
  - max-python >=24.6.0,<25.0a0
  name: max-core
  url: https://conda.modular.com/max/osx-arm64/max-core-24.6.0-release.conda
  name: max-python
  url: https://conda.modular.com/max/osx-arm64/max-python-24.6.0-3.12release.conda
  - max-core ==24.6.0 release
  url: https://conda.modular.com/max/noarch/mblack-24.6.0-release.conda
  url: https://conda.modular.com/max/noarch/mojo-jupyter-24.6.0-release.conda
  - max-core ==24.6.0 release


- Provide version information for Mojo by pasting the output of mojo -v`

mojo 24.6.0 (4487cd6e)
python 3.12.8
jupyter 1.1.1

- Provide Magic CLI version by pasting the output of `magic -v`

The command fails, it seems not to be longer supported.

`magic info` returns:

     Magic version: 0.5.1
System
------------
      Pixi version: 0.37.0
          Platform: osx-arm64
  Virtual packages: __unix=0=0
                  : __osx=15.2=0
                  : __archspec=1=m1
         Cache dir: /Users/oscar/Library/Caches/rattler/cache
      Auth storage: /Users/oscar/.rattler/credentials.json
  Config locations: No config files found
@oforero oforero added the bug Something isn't working label Dec 28, 2024
@benz0li
Copy link

benz0li commented Jan 5, 2025

I encountered the same issue. Workaround: Modify Jupyter's kernel.json.

Cross references:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working max-repo
Projects
None yet
Development

No branches or pull requests

4 participants