Ask Your Question

Revision history [back]

In SageMath, there is save_session and load_session which you can use to save and load a session:

  sage: a = 5
  sage: filename = 'session-2022-05-03.sobj'
  sage: save_session(filename)
  sage: del a
  sage: load_session(filename)
  sage: print(a)
  5

In SageMath, there is save_session and load_session which you can use to save and load a session:

  sage: a = 5
  sage: filename = 'session-2022-05-03.sobj'
  sage: save_session(filename)
  sage: del a
  sage: load_session(filename)
  sage: print(a)
  5

This should work the same in the Jupyter notebook.

In SageMath, there is save_session and load_session which you can use to save and load a session:

  sage: a = 5
  sage: filename = 'session-2022-05-03.sobj'
'session-2022-05-03'
  sage: save_session(filename)
  sage: del a
  sage: load_session(filename)
  sage: print(a)
  5

This should work the same in the Jupyter notebook.