sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 211 forks source link

attach does not work in Jupyter notebooks with the sage-10.3 kernel #2916

Open williamstein opened 6 years ago

williamstein commented 6 years ago
  1. Make a file code.sage with code in it.
  2. Type attach('code.sage'). There is a weird warning that has nothing to do with code.sage, but attach pretends to work.
  3. Try to use something from code.sage -- it does not work.

Note that attach works fine in Sage worksheets and sage on the command line.

See https://cocalc.com/share/4a5f0542-5873-4eed-a85c-a18c706e8bcd/support/2018-06-12-sage-code/notebook.ipynb?viewer=share/

screenshot 2018-06-12 at 11 36 26 am

Attach fails in the same way using upstream plain jupyter, so this is a Sage bug or a problem with our kernel:

screenshot 2018-06-12 at 11 39 04 am

williamstein commented 5 years ago

Still broken, exactly in the same way, with SageMath version 8.8, Release Date: 2019-06-26.

NOTE: the load function works; it's just attach that doesn't... which is pretty serious, since that's an amazing command.

AntoinePinardin commented 2 months ago

Still not working for me with SageMath version 10.4.beta8. Did anyone find a way around this?

williamstein commented 1 month ago

This is an upstream bug in sage 10.3 -- https://github.com/sagemath/sage/issues/26620

image image
williamstein commented 4 days ago

Removing jupyter since this is a sage bug.