ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 05 Feb 2020 09:38:30 -0600Sage notebook only runs when a browser is already openhttp://ask.sagemath.org/question/49804/sage-notebook-only-runs-when-a-browser-is-already-open/I just installed sage 8.8 (it's not the newest sage, but it works for the most part) on my Linux machine and I had everything working at some point but the other day it isn't working as I'd expect it to be. When I do
$ sage -n jupyter --browser=firefox
in the terminal without Firefox opened, I get
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.8, Release Date: 2019-06-26 │
│ Using Python 2.7.15. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Jupyter Notebook server starts...
[I 09:42:16.791 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js
[I 09:42:17.016 NotebookApp] The port 8888 is already in use, trying another port.
[I 09:42:17.016 NotebookApp] The port 8889 is already in use, trying another port.
[I 09:42:17.017 NotebookApp] The port 8890 is already in use, trying another port.
[I 09:42:17.017 NotebookApp] The port 8891 is already in use, trying another port.
[I 09:42:17.017 NotebookApp] The port 8892 is already in use, trying another port.
[I 09:42:17.023 NotebookApp] Serving notebooks from local directory: /home/user
[I 09:42:17.023 NotebookApp] The Jupyter Notebook is running at:
[I 09:42:17.024 NotebookApp] <local host>
[I 09:42:17.024 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:42:17.027 NotebookApp]
To access the notebook, open this file in a browser:
<server file>
Or copy and paste one of these URLs:
<localhost>
(I don't have enough karma to actually post the links but "local host" is the link to the notebook and "server file" is the HTML file in "/var/run/user/.../nbserver-...-open.html") which seems fine but Firefox doesn't appear to be open. When I try to open another Firefox browser, I get a message saying that there is already another browser opened when there isn't and I would have to kill the Firefox processes in order to open it again. Interestingly, when I try the same command again with a browser already opened, a new tab with the sage notebook appears.
I get the feeling that the problem could be coming from my init.sage file but I'm not sure if that would be the case.
~/.sage/init.sage:
==================================
from sage.misc.viewer import viewer
viewer.browser('open -a /usr/bin/firefox')
My environment variable SAGE_BROWSER is set to firefox:
$ echo $SAGE_BROWSER
firefox
If there's anything else that you'd like me to provide, let me know.BudRzWed, 05 Feb 2020 09:38:30 -0600http://ask.sagemath.org/question/49804/firefox tab completion sagemathhttp://ask.sagemath.org/question/45276/firefox-tab-completion-sagemath/I recently upgraded my computer to Ubuntu 18.10. I think this may have upgraded my Firefox to 65.0. Now in Firefox I have two new (unwanted) behaviours
- when I try to use tab-completion in the sagemath notebook, the browser moves the active element from the cell to the evaluate button.
- when I press [backspace] in an empty cell it used to delete the cell and move the cursor to the previous cell. I would use this to delete a series of empty cells. Now it does nothing.
google-chrome is working fine
Is this a new behaviour in firefox, is it an OS/xorg issue or does it involve the sagemath notebook?
brettpimSat, 02 Feb 2019 12:16:16 -0600http://ask.sagemath.org/question/45276/Could not find the Mozilla runtimehttp://ask.sagemath.org/question/35099/could-not-find-the-mozilla-runtime/ I try to run
sage: notebook(), or some other notebook with name between the parenthesis, but I get the nessage
'Could not find the Mozilla runtime' and Sage stops.
What is the solution?
sagemath is v7.3.5
sage-notebook is v0.13.3
I'm using the Firefox web browser, v49.0.1czsanSun, 09 Oct 2016 14:32:50 -0500http://ask.sagemath.org/question/35099/Sage I firebox not answer anything?http://ask.sagemath.org/question/31301/sage-i-firebox-not-answer-anything/ I use sage on Firefox. Since a while ago, sage will wait forever whatever I enter, including 1+1.
Could someone please help me with this? Thank you very much!YunyunThu, 03 Dec 2015 19:04:01 -0600http://ask.sagemath.org/question/31301/Firefox 32 doesn't display multiple cell server cellshttp://ask.sagemath.org/question/24156/firefox-32-doesnt-display-multiple-cell-server-cells/Has anyone experienced the following: when embedding multiple sage cells in a single web page, only one of them is actually displayed by firefox. Opening the same web page in Chrome shows all cells as active. Here's an example:
http://moodle.snorduffel.be/course/view.php?id=276
(The page also contains some java-stuff, so you can also expect some error messages related to java applets not being trusted). The page contains 4 different Sage cells, but the only one I see is the one with hidden editor box. Each cell on its own displays just fine in firefox, but the four of them together don't.
Is there anything I can do on the sage side? Or is this purely a firefox problem?Dirk DanckaertTue, 16 Sep 2014 15:04:01 -0500http://ask.sagemath.org/question/24156/firefox on MS Windows fails to show matrix parentheseshttp://ask.sagemath.org/question/9906/firefox-on-ms-windows-fails-to-show-matrix-parentheses/In our labs we have firefox 19 installed on MS Windows computers. When accessing our sage server and trying to show 3by3 matrices in typeset form, firefox does not show proper parentheses but cryptic symbols (it seems that it fails to use the correct font). Everything works fine if one uses chrome.
Is this a known problem with firefox or a known configuration error on our part?
Thank youAndreasJGWed, 13 Mar 2013 05:13:27 -0500http://ask.sagemath.org/question/9906/Error in looking at source codehttp://ask.sagemath.org/question/8884/error-in-looking-at-source-code/Every so often, I try to look at the source code for some function. It often doesn't work. There is a commonality to the times where it doesn't work. The source code usually has examples in it. And, often there are examples of things that don't work, that cause errors, where the error messages are shown in the source code. It is these examples that seem to cause the problems. The source code prints out up to the error message and then it just stops. Since this happens before it ever gets to the actual source code, I can't see the source code.
The latest source code I tried to view is:
sage.graphs.graph_coloring.all_graph_colorings??
The last thing I see in the source code is:
sage: for C in all_graph_colorings(G,-1): print C
Traceback (click to the left of this block for traceback)
...
I am using Firefox 11 to access Sage on a server, in case that matters. It has been happening for a while, so also it has applied in some previous versions of Firefox as well.
**UPDATE:** I'm just trying to bring more attention to this. It looks to me as though this problem is known but no one seems to be working on it (based on the Trac ticket and the further link to Github in the Trac ticket). I can't even use the workaround mentioned below in the answer (using Sage 4.8 in the notebook), i.e., I'm trying to "click to the left" over and over and nothing ever happens. I'm trying to view the source code for graph coloring and it's just not possible, or I can't figure it out. Now, it's actually worse than I mentioned before. I shift-enter to see the source code. It gets stopped as mentioned above, BUT it's still evaluating something and won't stop. I try to interrupt and it doesn't work. I have to restart the notebook.
**UPDATE 2:** Sorry to bother you, but finally I was able to click to the left and see the code. Not sure what was going on. I was clicking to the left and the result had been (several times) to hide all the output but just have a little gray bar there. Then, clicking a couple more times would bring it back to the form where it stopped at the error.G-SageSat, 14 Apr 2012 17:12:46 -0500http://ask.sagemath.org/question/8884/Plotting in sage 4.8 defaults to firefox, WHY?http://ask.sagemath.org/question/8687/plotting-in-sage-48-defaults-to-firefox-why/I have just installed sage 4.8. On my system I have gnuplot, gnuplotpy,
surf,matplotlib, and perhaps some others. I want plot() in sage to
default to *ANY* of these instead of bringing up firefox to plot a png.
I can get gnuplot if I use a maxima command. Is there any way to
get sage to default to some other plot?
rootThu, 02 Feb 2012 14:02:01 -0600http://ask.sagemath.org/question/8687/Cannot insert cells in Sage 4.7 with ubuntu 11.04http://ask.sagemath.org/question/8321/cannot-insert-cells-in-sage-47-with-ubuntu-1104/Hi,
We recently found that our SAGE 4.7 in Ubuntu 11.04 has the following problem with the notebook. We use firefox 6 and everything works fine except that we cannot insert cells, even if the blue line apperas. If we press ALT+ENTER, then we can evaluate the input and produce a new cell, but we would like to be able to insert cells as usual.
Thanks in advance,
JoaquimJoaquim PuigFri, 16 Sep 2011 00:14:58 -0500http://ask.sagemath.org/question/8321/Keeping a stable connection between the notebook interface and the serverhttp://ask.sagemath.org/question/7900/keeping-a-stable-connection-between-the-notebook-interface-and-the-server/Hello,
I have some difficulty to keep active the connection between the notebook interface in Firefox (the last stable version) and the Sage server.
I execute Sage in the terminal, then start the notebook interface through notebook(). And quite quickly (as soon as I open an existing notebook) I loose the connection and get the following errors (see the last line - I have posted only one of them but this problem generates hundreds of them after the first one):
sage: notebook()
The notebook files are stored in: sage_notebook.sagenb
**************************************************
* *
* Open your web browser to http://localhost:8000 *
* *
**************************************************
2011-01-26 17:53:29+0100 [-] Log opened.
2011-01-26 17:53:29+0100 [-] twistd 9.0.0 (/Applications/_Recherche/sage/local/bin/python 2.6.4) starting up.
2011-01-26 17:53:29+0100 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2011-01-26 17:53:29+0100 [-] twisted.web2.channel.http.HTTPFactory starting on 8000
2011-01-26 17:53:29+0100 [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x10a118908>
2011-01-26 17:53:41+0100 [HTTPChannel,4,127.0.0.1] Request error: Connection to the other side was lost in a non-clean fashion.
myildiWed, 26 Jan 2011 05:25:30 -0600http://ask.sagemath.org/question/7900/Service Temporarily Unavailablehttp://ask.sagemath.org/question/7759/service-temporarily-unavailable/Hi,
I got the following message using Firefox with Sage 4.5.3 via VM 3.1.1
build-282343.
Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
Apache/2.2.12 (Ubuntu) Server at 192.168.231.128 Port 80
Also starting Sage in VM-player (Ubuntu) is strange. It shows only a
flash of comments (can't read it) and then the application closes.
I'm especially worried that I cannot reach anymore my workbook
files....
Any help is much appreciated!
Roland
rolandTue, 09 Nov 2010 09:34:23 -0600http://ask.sagemath.org/question/7759/