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, 03 Jun 2020 12:18:11 -0500How to change width of output in sagemath notebook?http://ask.sagemath.org/question/51729/how-to-change-width-of-output-in-sagemath-notebook/ I am working with big matrices and when I want to print them rows of matrix don't fit in one line of output and it is broken up although there is space on the screen left. Such printing makes matrix unreadable is there anyway to change this?Dominik StępieńWed, 03 Jun 2020 12:18:11 -0500http://ask.sagemath.org/question/51729/Sage 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/500: internal server error on reading data files and on publishing worksheetshttp://ask.sagemath.org/question/42319/500-internal-server-error-on-reading-data-files-and-on-publishing-worksheets/Since version 8.0 I encounter internal server error in the Sage Notebook when I try to read data files in "Data..." menu (worksheets were written and data files uploaded with older versions; fortunately, I still have version 7.6, so I can acess and work with data files).
I also encounter internal server error on publishing worksheets: worksheet is published, but "500: internal server error" message appears (so it is at least annoying).
I am using Sage binaries on 32 and 64 bits machines with Ubuntu Linux (sage-8.0/1/2-Ubuntu_16.04-i686.tar.bz2 and sage-8.0/1/2-Ubuntu_16.04-x86_64.tar.bz2). I also compiled 8.0 and 8.1 from sources. (With 8.2 there are problems with ncurses, but this is another story.)
Sincerely, KFfreslSat, 12 May 2018 05:14:32 -0500http://ask.sagemath.org/question/42319/