First time here? Check out the FAQ!

Ask Your Question
1

Getting a kernelspec warning when launching a notebook.

asked 1 year ago

scribe36 gravatar image

updated 1 year ago

FrédéricC gravatar image

I am on macOS Ventura 13.4.1 on a Macbook Air M2. sage --version returns SageMath version 10.0, Release Date: 2023-05-20.

Whenever I run sage -n, everything works fine but before anything is output, this line is printed (to stderr I think?)

WARNING:traitlets:Kernelspec name sagemath cannot be found!

I installed sage via Brew, i. e., brew install sage. Could someone help me get rid of this warning? Oh, and I don't have any outside Jupyter installed, which jupyter returns jupyter not found.

Preview: (hide)

Comments

Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 1 year ago )

1 Answer

Sort by » oldest newest most voted
2

answered 1 year ago

Marc Culler gravatar image

Installing via Homebrew has the same effect as installing directly from

It installs a Sage app in your /Applications folder.

One way to use it is then to double-click the resulting app.

Or from the terminal, run

open -a SageMath-10-0

instead of

sage -n

You will then get that nice little window which allows you to start a Jupyter notebook without any errors, in a correct environment, and with no technical gobbledygook such as:

To access the notebook, open this file in a browser:
        file:///Users/culler/Library/Jupyter/runtime/nbserver-9165-open.html
    Or copy and paste one of these URLs:
        http://localhost:8889/?token=ed6fa0329d7e2f9d63bccead1f7404c09ad60a4161ce2105
     or http://127.0.0.1:8889/?token=ed6fa0329d7e2f9d63bccead1f7404c09ad60a4161ce2105

Instead, the notebook manager will just open up in your default browser, ready to run.

Preview: (hide)
link

Comments

This issue has now been fixed in the Sage 10.1 prerelease, and the fix will appear in the release.

Marc Culler gravatar imageMarc Culler ( 1 year ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 1 year ago

Seen: 595 times

Last updated: Jun 27 '23