Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to load .sobj files into Jupyter Notebook

Hello! I am medium-new with Sage, and I'm trying to figure out how best to load a list across notebooks. I want to keep one notebook up and computing further entries of a list, while saving what I have so far so that I can use it in other codes. However, I can't figure out how to load .sobj files.

When I'm in a notebook, I save my file by save(list,'list') and I see list.sobj in my Jupyter Home directory. But I can't figure out how to load it into another notebook. I've tried load('list.sobj') and various iterations of load('C:\Users\myusername\list.sobj')but it keep getting the same error:

'(list.sobj)' was not found in history, as a file, url, nor in the user namespace.

What am I missing?

How to load .sobj files into Jupyter Notebook

Hello! I am medium-new with Sage, and I'm trying to figure out how best to load a list across notebooks. I want to keep one notebook up and computing further entries of a list, while saving what I have so far so that I can use it in other codes. However, I can't figure out how to load .sobj files.

When I'm in a notebook, I save my file by save(list,'list') and I see list.sobj in my Jupyter Home directory. But I can't figure out how to load it into another notebook. I've tried load('list.sobj') and various iterations of load('C:\Users\myusername\list.sobj')but it keep getting the same error:

'(list.sobj)' was not found in history, as a file, url, nor in the user namespace.

What am I missing?