Ask Your Question
1

Basics of using notebooks with SageMath

asked 2023-02-02 15:19:00 +0100

fgrieu gravatar image

updated 2023-02-06 19:21:50 +0100

I'm a seasoned user of Mathematica, just moving to SageMath†. I get SageMath running under Linux (under Mint Vera, after installing sagemath 9.5-4 and automatically selected dependencies including jupyter-core 4.9.1-1), and can use SageMath in the terminal. I'd want to use jupyter, or whatever would give me the comfort of notebooks.

When I do sage -n jupyter I end up in Firefox on page localhost:8888/tree showing me 3 tabs Files/Running/Clusters. In the Running tabs I'm told there are no terminals or notebooks running.

How do I make a jupyter (or other) notebook, and what's the local equivalent of the enter key that lets me run a notebook cell ?


† I long wanted to go open-source. The need for Schoof–Elkies–Atkin point counting was what triggered the switch.

edit retag flag offensive close merge delete

Comments

sage -n jupyther ?? Try: sage --notebook jupyter

ortollj gravatar imageortollj ( 2023-02-05 18:33:25 +0100 )edit

@ortollj: my jupyther was a typo in the question, now fixed. It looks like --notebook is the same as -n

fgrieu gravatar imagefgrieu ( 2023-02-06 19:21:25 +0100 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2023-02-06 19:32:00 +0100

fgrieu gravatar image

updated 2023-02-07 10:15:09 +0100

Uh, I was missing the obvious: under the File tab (selected by default), the but-rightmost pull-down menu has "New/Sagemath 9.5".

And Ctrl-Enter executes the current cell.

edit flag offensive delete link more

Comments

1

Congratulations for answering your own question ! Posting this answer is a Good Thing(TM), since it can be retrieved by any future (per-)user of this site with a similar problem.

You should accept your own answer to mark it as solved...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2023-02-07 14:03:22 +0100 )edit

@Emmanuel Charpentier: I need 50 points (karma?) to accept my own answer, but hopefully that will come.

fgrieu gravatar imagefgrieu ( 2023-02-08 09:16:39 +0100 )edit

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: 2023-02-02 15:18:19 +0100

Seen: 402 times

Last updated: Feb 07 '23