Ask Your Question

msage's profile - activity

2024-03-05 20:40:59 +0200 received badge  Famous Question (source)
2021-04-12 18:40:32 +0200 received badge  Notable Question (source)
2020-11-09 05:18:55 +0200 received badge  Notable Question (source)
2020-11-09 05:18:55 +0200 received badge  Popular Question (source)
2019-12-20 16:36:24 +0200 received badge  Popular Question (source)
2019-04-05 15:09:31 +0200 asked a question sage interactive disable auto update?

i have a sheet with interactive sliders which generates plots. when I alter a value on a slider, the plot is executed not only at the destination value, but also on many steps between starting point and destination. As the plot takes some time, it is very slow to get the result. Is there a possibility to deactivate autoupdate, and for example make a Button for executing the script with the new values?

2019-04-05 14:08:22 +0200 asked a question plots with old notebook() and Jupyter differ, why?

Hi, I made some plots (normal x,y and density plots). The same code produces different plots in notebook() and Jupyter.

The plotted data is correct, but the axes are moved a little bit. For example I plotted a symmetric function, and in Jupyter the y-axis is moved a tick to the right, so that it is not in the center of the function.

I always thought, that the notebook is something like a viewer and the plots come from sage directly. But why can the differ then??

2019-04-05 14:04:32 +0200 answered a question self compiled sage , how to start jupyter notebook?

I updated my system, restarted, and now it works...

2019-04-05 11:51:09 +0200 asked a question self compiled sage jmol viewer works in notebook but not in jupyter notebook?

I have a self-compiled Sage, and adjusted Java Version on the system, so this is running fine in the SageNB notebook (obtained with notebook()):

x, y, z = var('x y z')
plot_vector_field3d((x*cos(z), -y*cos(z), sin(z)), (x, 0, pi), (y, 0, pi), (z, 0, pi), viewer='jmol')

But Jupyter notebook does not want to show vector field 3d: ....

Any help?

2019-04-05 11:48:24 +0200 answered a question self compiled sage , how to start jupyter notebook?

Ok, found it:

sage --notebook ipython

2019-04-05 11:27:35 +0200 asked a question self compiled sage , how to start jupyter notebook?

I compiled sage 8.7 How can I start jupyter notebook?

I tried the following: fresh compiled sage

cd /opt/sage8.7
./sage --notebook ipython

Jupyter starts, but when I want to calculate someting I always get "Kernel starting, please wait..." and nothing happens. Whats wrong

2019-03-26 14:51:02 +0200 asked a question jmol in sage notebook on mint 19

Hello, I used self compiled sage the last years, now sage is packed with ubuntu/mint so I use the debian package.

I have SageMath version 8.1, Release Date: 2017-12-07 on Mint 19.2.

I need 3d vektor plots in sagenotebook.

But I get following error in notebook:

Interactive 3D plots using the default viewer do not work in SageNB, because JSmol cannot currently be packaged for Debian. See the README.source of the jmol package for more details on this situation. You have the following alternative options:

View an interactive WebGL-based plot by giving the option viewer='threejs'. This should work out-of-the box on Firefox, but may require you to adjust some settings in Chromium - see chrome://flags for options and chrome://gpu for status. In both cases, the functionality also depends on your graphics hardware and drivers, but support should exist in most cases. View a less sophisticated interactive plot that does not require WebGL, by giving the option viewer='canvas3d'. View a non-interactive plot by giving the option viewer='tachyon'. Use the default viewer (Jmol) from the SageMath command-line interface, instead of the notebook.


Nothing of the suggestions works. So I installed Java 8 and then I can run jmol applet from sage commandline. But that's not what I want.

I also tried to compile Sage 8.7 myself. Same problem. I don't need JSMOL viewer in notebool. JMOL Java applet would be best. In older Sage Version 7.5.1 on an ubuntu 12.04 it runs fine. what can I do that it also runs in on my mint machine?

Can I replace jmol in the sourcedirectory and compile? How?

How can I change viewer between JSMOL and JMOL? Any help is appreciated. Any ideas? Thank you

2017-08-03 13:55:58 +0200 commented answer sageserver with ssl and apache as proxy

Yes, but no effect.

2017-08-03 11:35:10 +0200 asked a question Internal Server Error after Deleting or Suspending a user

If I manage Users from the Admin, I get an 500: Internal Server error when I delete users or suspend users. Anyway the users are deleted or suspended in the notebook gui, but the directories are not deleted!

Can I delete the user symlinks and user directories manually?

What's wrong with my installation?

I get the server error also after publishing a document

Edit: Weird: if I change the sage Version to 7.5.1 it works correctly but V8.0 doesn't

2017-08-03 11:03:35 +0200 asked a question sageserver with ssl and apache as proxy

I configured sagenotebook server with apache as https proxy. I have this running quite a time now.

Now I realized that some requests from the notebook try to get a page with http:// . I assume, it's hardcoded somewhere.

So for a working notebook it is not sufficent to open port 443 in the firewall only. It is also necessary to open port 80 as well.

So if I watch packets, from time to time I get not only encrypted packets , but also some http requests.

It seems that they happen for example if the worksheet list of a user is called

GET /home/anyuser/


GET /pub/


GET /logout

Has anyone an idea how to solve this?

Maybe in local/lib/python2.7/site-packages/sagenb/flask_version/

the line

addr = 'http%s://%s/home/%s' % ('' if not else 's',

could be responsible for that.

But starting noteboook with secure=True doesn't work, and should not be used together with apache as https proxy, I think ??

If I alter the line no change in behavoiur.

Any Ideas?


2017-01-12 07:40:03 +0200 received badge  Organizer (source)
2017-01-12 06:58:19 +0200 asked a question Deleting old users on sagenotebook

Hi, I have installed a sage notbook server, which is running in a school. Pupils create their accounts, but don't use it anymore after graduation. How can I find accounts, which haven't been used for longer than a year and delete them? Is it possible that i can see in the "Manage User" tab, when a user last edited a worksheet? Can this function be added? Thanks a lot

2014-10-30 07:37:06 +0200 commented question crash of sage notebook server at login?

hm, anyone other can replicate it? maybe it happens at opening worksheets and not right at the login?

2014-10-30 07:36:20 +0200 commented answer crash of sage notebook server at login?

it's 9GB of RAM. 4 GB is harddisk, that should be way enough=

2014-10-30 07:34:57 +0200 commented answer crash of sage notebook server at login?

No it has nothing to do with signin up. It happens at the login

2014-10-24 07:18:58 +0200 answered a question crash of sage notebook server at login?

I have installed the server according to the tutorial in the wiki.

I don't think it is a memory problem.

The server has 9 GB of RAM and 4 GB free disk space:

df -h
/dev/sda1        19G     15G  4,0G   79% /

This is in idle mode:

top - 07:11:33 up 19:00,  4 users,  load average: 0.31, 0.19, 0.10
Tasks: 104 total,   1 running, 103 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3%us,  0.0%sy,  0.0%ni, 98.7%id,  1.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   8991808k total,  2252904k used,  6738904k free,   237624k buffers
Swap:  1046524k total,        0k used,  1046524k free,  1002044k cached

This is while evaluating a worksheet with many graphic outputs:

top - 07:12:24 up 19:01,  4 users,  load average: 0.50, 0.24, 0.13
Tasks: 104 total,   1 running, 103 sleeping,   0 stopped,   0 zombie
Cpu(s):  9.7%us,  0.7%sy,  0.0%ni, 86.6%id,  3.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   8991808k total,  2253868k used,  6737940k free,   237672k buffers
Swap:  1046524k total,        0k used,  1046524k free,  1002236k cached
2014-10-23 16:36:02 +0200 received badge  Student (source)
2014-10-23 15:58:39 +0200 asked a question crash of sage notebook server at login?

Hello, we have the problem, that our sage otebook server crashes from time to time. We use Version 6.3.

This happens at a time when about 10 or 12 students login at about the same time. When this happens, the webinterface (Apache virtual Host) shows "Service Temporarily unavailable" in the website. The complete server has to be rebooted.

Log file of the last crash is attached, the server was rebooted after the crash, which is also shown in the logfile. So the last error is, that a user cannot be found.

I tried to replicate the error. What I found is a weird behaviour of the login screen when given wrong usernames:

If the username is numeric: 12121312312 -> "Error: Username is not in the system " is shown in the login screen

If the username is alphanumeric and begins with a number: 534534534gfdgdfg -> "Error: Username is not in the system " is shown in the login screen

If the username is alphanumeric and begins with a char and is only 2 char long: bb or b3 -> "Error: Username is not in the system " is shown in the login screen

If the username is alphanumeric and begins with a char and is longer than 2 chars: gfdgdfg312312 -> I get a blank screen in the Browser (maybe ERROR 500?) and an entry in the log file,

And I think this may leed to a complete crash of the notebook server from time to time, too.

This posting shows the same problem:

Does anyone have a tip, solution or the same problem?

2014-10-23 12:07:32+0200 [-] WSGI application error
        Traceback (most recent call last):
          File "/opt/sage6.3/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/python/", line 212, in _worker
            o = self.q.get()
          File "/opt/sage6.3/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/python/", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/opt/sage6.3/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/python/", line 83, in callWithContext
          File "/opt/sage6.3/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/web/", line 340, in run
            self.started = True
        --- <exception caught here> ---
  File "/opt/sage6.3/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/web/", line 315, in run
            appIterator = self.application(self.environ, self.startResponse)
          File "/opt/sage6.3/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/", line 1836, in __call__
            return self.wsgi_app(environ, start_response)
          File "/opt/sage6.3/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/", line 1820, in wsgi_app
            response = self.make_response(self.handle_exception(e))
          File "/opt/sage6.3/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/", line 1403, in handle_exception
            reraise(exc_type, exc_value, tb)
          File "/opt/sage6.3/local/lib/python2.7 ...
2013-02-15 05:10:51 +0200 received badge  Editor (source)
2013-02-15 05:09:31 +0200 asked a question default worksheet for new users

Hi, i am running a sage notebook server, is it possible to generate a worksheet, which is automatically copied in the notebook of new users?

So they need not to take a copy of published worksheets, but get this one right in there notebook after creating a new account?

I mean something like /etc/skel in linux

Thanks a lot.