Sage 8.8 Jupyter notebook 404: Page does not exist error

208 views
Skip to first unread message

Jack Borthwick

unread,
Jul 2, 2019, 8:01:02 AM7/2/19
to sage-support
Hi all,

I recently compiled sage 8.8 on my Mac (macOS Mojave) and everything seems to work correctly, except the Sage notebook server that doesn't seem to launch correctly. I often, but not always, get redirected to a page with the error 404: page does not exist.

Is this something someone has already encountered before and is there a known workaround without recompiling sage entirely?

Cheers,

Jack

kcrisman

unread,
Jul 2, 2019, 1:16:39 PM7/2/19
to sage-support
For what it's worth, my local Sage 8.8.rc2 still seems to correctly throw up the SageNB Export server, and Jupyter seems to work properly.  Exactly what URL is giving you the 404?  (Though I am not on Mojave.)

Jack Borthwick

unread,
Jul 2, 2019, 4:28:23 PM7/2/19
to sage-s...@googlegroups.com
Actually I’ve just read more carefully what appeared in the terminal and it seems that it is missing an extension, I guess I’m going to have to rebuild? Could this be to do with the fact that I didn’t build the documentation (because I was missing the Java development tools ?)
[W 22:25:08.051 NotebookApp] Error loading server extension sagenb_export.nbextension
    Traceback (most recent call last):
      File "/Applications/sage-8.8/local/lib/python2.7/site-packages/notebook/notebookapp.py", line 1579, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/Applications/sage-8.8/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
        __import__(name)
    ImportError: No module named sagenb_export.nbextension


--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/j7a_oPMFk-0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/c0cac08b-5349-47fa-a968-643a53d81304%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kcrisman

unread,
Jul 3, 2019, 1:17:22 PM7/3/19
to sage-support



Actually I’ve just read more carefully what appeared in the terminal and it seems that it is missing an extension, I guess I’m going to have to rebuild? Could this be to do with the fact that I didn’t build the documentation (because I was missing the Java development tools ?)


Java development tools? 

But yes, something definitely didn't build, and I'm surprised it didn't give an error.  You may need to rebuild.

OR you could just try sage -n jupyter (I think this is the right syntax) and see where that gets you.

Jack Borthwick

unread,
Jul 3, 2019, 3:25:40 PM7/3/19
to sage-s...@googlegroups.com
Yeah, when it built i kept getting prompts about java and then at the end it said the documentation hadn’t been built successfully.

I only launch sage notebook from the terminal with the option -n so I guess I’ll just have to rebuild . Thanks anyway 
--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/j7a_oPMFk-0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.

slelievre

unread,
Jul 4, 2019, 2:04:03 AM7/4/19
to sage-support
Here is how I would recap Sage notebook modes and
ways to launch them (correct me if I got anything wrong).

- Jupyter Notebook

      sage -n jupyter

- JupyterLab

      sage -n jupyterlab

  note: this requires installing JuyterLab first,
  which one can do by running in the terminal

      sage --pip install jupyterlab

- SageNB legacy notebook

      sage -n sagenb

- Sage Exporter (to export legacy notebook worksheets
  to Jupyter Notebook documents):

      sage -n exporter

I think if you just run `sage -n` it will check whether
you have legacy sagenb worksheets, and if so give
you the option to run Sage Exporter or to launch a
Jupyter Notebook server.

If you know what you want, use one of the options above.

Note that instead of

    sage -n jupyter

you can also do

    sage --notebook=jupyter

and similarly for the other options.

Jack Borthwick

unread,
Jul 4, 2019, 3:52:16 AM7/4/19
to sage-s...@googlegroups.com
OK, so I tried sage -n jupyter and that works. I can reproduce the behaviour I was getting by running ``sage -n export’’ something must have gone wrong with that during the build.  I've always called the sage notebook with sage -n so it perhaps it defaults to export.

Thanks !
--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/j7a_oPMFk-0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
Reply all
Reply to author
Forward
0 new messages