ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 13 Mar 2021 09:11:40 +0100running sage as a serverhttps://ask.sagemath.org/question/56150/running-sage-as-a-server/I want to build a server with SageMath, it should take in code, execute it and send back the result.
SageMath has a Python interface with which I thought this could be achieved.
I don't really know Python that well but I found a good starting point here:
- [Ask Sage question 23431: Running Sage from other languages with higher performance](https://ask.sagemath.org/question/23431)
The problem is that I wanted to run this in a docker container
so and just map the port but this doesn't seem to be working.
My question is, is there a better way of doing this because the post
is very old and I have a lot of trouble getting it to run.Philipp MSat, 13 Mar 2021 09:11:40 +0100https://ask.sagemath.org/question/56150/Mathserver and memoryhttps://ask.sagemath.org/question/53202/mathserver-and-memory/ The sage math server is a wonderfull initiative, but I wonder if there is an answer to my question. I am writing some correction to problems. But each time i send a code to the math server, it at forgotten the precedent one. Is there a way to keep memory of the precedent codes ?CyrilleThu, 27 Aug 2020 19:50:35 +0200https://ask.sagemath.org/question/53202/How to remove PID of defunct notebook server?https://ask.sagemath.org/question/48372/how-to-remove-pid-of-defunct-notebook-server/ Hi Sage users
It looks like a system crash left a lock file for a sage notebook server. I cannot run the notebook:
Another Sage Notebook server is running, PID 2128.
Opening web browser at http://localhost:8080/ ...
Does anyone know where this lock file is or what the procedure is to clear up this error?
I have no PID 2128 running at the time this error occurs. Hence I think it is some lock file or ressource that needs to be freed or deleted.
Thanks
PatPatBWed, 16 Oct 2019 18:31:47 +0200https://ask.sagemath.org/question/48372/jupyter notebook multi users ?https://ask.sagemath.org/question/43919/jupyter-notebook-multi-users/Hello,
I used to use notebook sagenb for teaching purposes.
Each student had a login and password to work on the same server.
I ran into several internal server errors 500 using it. so I though since it seems that jupyter notebook is more recommended I should try and switch to it.
However, I am concerned because I am not sure it allows the same type of multi-users server.
Hint from jupyter notebook login page that points to
https://jupyter-notebook.readthedocs.io/en/stable/public_server.html
tell me that it might not.
So the questions are:
1/ with "sage -n jupyter --ip='*'" is it possible to have 16 or so students connecting to the same server and working on similar worksheets (as it seemed to work rather smoothly for sagenb)?
2/ if not, is there another way to have sage use jupyter notebook for multi users?
3/ if not, is an install of jupyterhub or sagemathcloud reasonnable with no particular sysadmin skill?
4/ if not is there anything else I should try?
5/ if not, do some of you have experience of sagenb under sage 8.3 usability?
Installing sagemath on all computers is not an option for me at the moment.
Best regards,
b
PS : my sagemath on a debian 9 server compiled from source (I used to use debian packages but though it might work more smoothly with install from source)bb16Thu, 11 Oct 2018 16:30:33 +0200https://ask.sagemath.org/question/43919/Remotely access personal cocalc serverhttps://ask.sagemath.org/question/44495/remotely-access-personal-cocalc-server/ I don't know if it is the right place to ask this question but I was wondering if anyone had managed to remotely access a personnal docker installed cocalc server. I tried using `noip.com` to setup remote access to the server. I tried to follow the given step but I failed to get it to work. Any info would be welcome !sbeauWed, 28 Nov 2018 23:48:01 +0100https://ask.sagemath.org/question/44495/How to find a sage server in own network?And over web?https://ask.sagemath.org/question/39154/how-to-find-a-sage-server-in-own-networkand-over-web/I have sage server running on a mac. And now i want it to access with ipad. Both on the same network. And now to access it when I am now at home?thethaFri, 13 Oct 2017 17:08:28 +0200https://ask.sagemath.org/question/39154/Sagemath server using openidhttps://ask.sagemath.org/question/30571/sagemath-server-using-openid/Is it difficult to allow users to create accounts on our Sagemath server using openid authentication? In fact, we would like to use the gmail implementation of openid since our university email is managed by Google. Any hints, please?
jllbSun, 08 Nov 2015 20:31:31 +0100https://ask.sagemath.org/question/30571/500: Internal server error. Mac, OS 10.9https://ask.sagemath.org/question/26736/500-internal-server-error-mac-os-109/I tried to install sage on an other Mac with OS10.9.5. I compield it myself, the tests run without error. But when I try to start the notebook, the browser window opens with sage, but reports:
> 500: Internal server error.
The complete output of the terminal see below.
The only particular thing with this Mac is that it has no (and will not have) connection to the internet.
Any Ideas waht could be the problem?
notebook()
The notebook files are stored in: sage_notebook.sagenb
┌────────────────────────────────────────────────┐
│ │
│ Open your web browser to http://localhost:8080 │
│ │
└────────────────────────────────────────────────┘
Executing twistd --pidfile="sage_notebook.sagenb/sagenb.pid" -ny "sage_notebook.sagenb/twistedconf.tac"
/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
2015-05-06 13:39:05+0200 [-] Log opened.
2015-05-06 13:39:05+0200 [-] twistd 14.0.2 (/Volumes/DatenYM/Progr/Sage/sage-6.6/local/bin/python 2.7.8) starting up.
2015-05-06 13:39:05+0200 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2015-05-06 13:39:05+0200 [-] QuietSite starting on 8080
2015-05-06 13:39:05+0200 [-] Starting factory <__builtin__.QuietSite instance at 0x11522d5f0>
[Errno 66] Directory not empty
Traceback (most recent call last):
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/flask_version/decorators.py", line 22, in wrapper
return f(*args, **kwds)
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/flask_version/worksheet_listing.py", line 67, in home
return render_worksheet_list(request.args, pub=False, username=username)
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/flask_version/worksheet_listing.py", line 43, in render_worksheet_list
search=search, reverse=reverse)
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook.py", line 1295, in worksheet_list_for_user
X = self.get_worksheets_with_viewer(user)
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook.py", line 1477, in get_worksheets_with_viewer
if self._user_manager.user_is_admin(username): return self.get_all_worksheets()
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook.py", line 1472, in get_all_worksheets
for w in self.users_worksheets(username):
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook.py", line 380, in users_worksheets
worksheets = self.__storage.worksheets(username)
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/storage/filesystem_storage.py", line 623, in worksheets
path = self._abspath(self._user_path(username))
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/storage/filesystem_storage.py", line 121, in _user_path
os.rename(path, new_path)
OSError: [Errno 66] Directory not emptyyeWed, 06 May 2015 13:52:33 +0200https://ask.sagemath.org/question/26736/Notebook: How to prevent that users can access cell content of other users?https://ask.sagemath.org/question/25337/notebook-how-to-prevent-that-users-can-access-cell-content-of-other-users/I set up a Sage Notebook server which is going to be accessible by multiple users, but I have problems securing it. I am using version 6.4.1.
I invoke the notebook() command with the server_pool=[...] setting, and the $HOME/.sage directory of the user which starts the sage notebook (as well as for the users specified in server_pool) has permissions 700, so it is impossible for users to directly access the worksheets of other users.
However when I do `cat /tmp/*/*.py` in the notebook (after setting language to "sh" of course), I get some cell contents of other users. Those files in /tmp belong to the main sage user, and have permissions rw-r--r--.
I already tried setting umask to 077 before invoking the sage notebook, but when I do so, the notebook does not work at all (it starts, but all commands I enter in cells seem to take an infinite amount of time).
Is there a way to secure the sage notebook, such that it is impossible for one user to see any part of worksheets of other users?alexTue, 23 Dec 2014 15:30:31 +0100https://ask.sagemath.org/question/25337/Access local Sage notebook onlinehttps://ask.sagemath.org/question/24872/access-local-sage-notebook-online/ I am running Sage 6.3. I have used Sage for a while, and I open a session on my Linux box using
home@home:~$ sage notebook
which open at `http://localhost:8080/home/admin/16/`This means the notebooks I then write are saved in directory `~/.sage/sage_notebook.sagenb/home/` and I understand the command `sage: notebook("path/to/directory")` allows one to specify an alternative to the default directory, for example if you want to work out of Dropbox. I require a couple of clarifications:
1. I cannot find `.sws` files in the default directory. I assume this is what I am looking for
2. How does the [online notebook](http://www.sagenb.org/) link with my local setup. How do I get a username and password for this? Is there some way my local work can automatically sync with the online notebook, so it is like a cloud? Is this the purpose of the online notebook--please give a detailed explanation of the online notebook, and why does it have two different web URLs?
3. Also note, I am aware of [sagemathcloud](https://cloud.sagemath.com/projects), and I have found it slow and buggy in the past. I would prefer to use sagenb for the time being, although I would welcome criticism if this seems unwise. Once concern of mine is that the sagemathcloud does not use the same file extensions as sagenotebook (`.sws`)
sav8i8Sat, 15 Nov 2014 14:38:10 +0100https://ask.sagemath.org/question/24872/notebok server on ubuntuhttps://ask.sagemath.org/question/24503/notebok-server-on-ubuntu/On ubuntu (versions from 12.04 to 14.04) I got the following error, when I started the notebook server with secure=True parameter:
RuntimeError Traceback (most recent call last)
<ipython-input-3-3d6cf59ae321> in <module>()
----> 1 notebook(secure=True)
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/lazy_import.so in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3000)()
/usr/lib/sagemath/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/notebook_object.py in __call__(self, *args, **kwds)
226 """
227 def __call__(self, *args, **kwds):
--> 228 return self.notebook(*args, **kwds)
229
230 notebook = run_notebook.notebook_run
/usr/lib/sagemath/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/run_notebook.py in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, doc_timeout, upload, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address)
475 import OpenSSL
476 except ImportError:
--> 477 raise RuntimeError("HTTPS cannot be used without pyOpenSSL"
478 " installed. See the Sage README for more information.")
479
RuntimeError: HTTPS cannot be used without pyOpenSSL installed. See the Sage README for more information.
SOme remarks:
First: this server was a live ~6.1* server using secure=True parameter (we used it over https). After some updating of ubuntu it crashed.
Second: Since this accident I tried some new versions of Ubuntu and later versions of Sage, but the error remain same.
Third: otherwise the program runs - yet the notebook server too (without SSL)czsanThu, 16 Oct 2014 18:35:00 +0200https://ask.sagemath.org/question/24503/Backup sage serverhttps://ask.sagemath.org/question/24494/backup-sage-server/ I'm maintaning a Sage server in my campus. How can I backup all content of the server, then restore in another maschine?czsanThu, 16 Oct 2014 09:56:48 +0200https://ask.sagemath.org/question/24494/Running SAGE in the own networkhttps://ask.sagemath.org/question/10646/running-sage-in-the-own-network/Hi!
I'm using Fedora 18 64bits where I installed the SAGE and it runs normally when I'm using localhost:8080 and with local ip of the machine: 192.168.2.51:8080 (as an example).
I checked the firewall (ipchains) , any computer can connect to 192.168.2.51 . I'm trying to run in my tablet (and several computers in a class) the SAGE in the LAN (others programs/servers are working fine).
I did a search in google and here, I'm almost 1 week trying to solve this. I can't connect in the SAGE machine/server from other computers in the local network.
1) Can someone please explain how to set it to run locally?
2) Why not include in future releases an option to automatically turn it on to an entire network and maybe outside (public)? The security issues is up to the admin of the server.
Thank you very much for the attention.Luiz Roberto MeierWed, 23 Oct 2013 00:28:45 +0200https://ask.sagemath.org/question/10646/Notebook access from remote computer does not workhttps://ask.sagemath.org/question/10550/notebook-access-from-remote-computer-does-not-work/I installed the binary Sage app (Sage 5.11 OS X 10.6) on OS X 10.7.4. When I click on the Sage icon, Sage starts and opens the web browser to URL localhost:8080. There I have access to my Sage notebooks and every thing works fine.
I would like to access the notebook server over my home network using my iPad. To do this, I follow the instructions in the Sage documents. That is, I start a Sage terminal session and at the sage prompt type notebook(interface='') and hit the return button. The Sage app then opens another browser window at localhost:8080. I try to access the notebook server from my iPad, but it says in the web browser window that the server cannot be found.
I tried closing the web browser on the localhost and using the Sage menu option "Stop server" before starting the Sage terminal but nothing results in the notebook being served over the local network.
How can I get the notebook served over my home network?
If you cannot answer my questions, what can I do to trouble shoot the problem?
Thanks.NoUpKeepThu, 19 Sep 2013 23:18:59 +0200https://ask.sagemath.org/question/10550/Secure notebook with htaccess?https://ask.sagemath.org/question/10247/secure-notebook-with-htaccess/Hi,
we installed sage-5.9 on a server (Ubuntu 12.04) of our working group. We would like to open the port, such that all members of the team can access the notebook without a ssh tunnel. Is it possible to secure the access with htaccess or something like that?
Or to ask it in an other direction: Is a notebook secure enough without restricting the access? The users are not allowed to create new users. But could this be a security issue for our server?
Thanks.Ivo HedtkeMon, 17 Jun 2013 12:16:54 +0200https://ask.sagemath.org/question/10247/No result in published worksheethttps://ask.sagemath.org/question/9890/no-result-in-published-worksheet/Hey guys..
I just can't find out what's the problem. When I am editing my worksheet everything works for this example from the wiki:
srg = srange(-4,4,1/10,include_endpoint=True)
@interact
def dualv(a1=slider(srg,default=1),a2=slider(srg,default=2), a3=slider(srg,default=-1),a4=slider(srg,default=3)):
A1 = arrow2d([0,0],[a1,a2],rgbcolor='black')
A2 = arrow2d([0,0],[a3,a4],rgbcolor='black')
A3 = arrow2d([0,0],[a1,a3],rgbcolor='black')
A4 = arrow2d([0,0],[a2,a4],rgbcolor='black')
p1 = polygon([[0,0],[a1,a2],[a1+a3,a2+a4],[a3,a4],[0,0]], alpha=.5)
p2 = polygon([[0,0],[a1,a3],[a1+a2,a3+a4],[a2,a4],[0,0]],rgbcolor='red', alpha=.5)
A = matrix([[a1,a2],[a3,a4]])
html('<h3>The determinant of a matrix is equal to the determinant of the transpose</h3>')
html("$det(%s) = det(%s)$"%(latex(A),latex(A.transpose())))
show(A1+A2+A3+A4+p1+p2)
But when I publish this worksheet, the plot is not evaluated/shown/rendered. The control-bars are here but not the graphics. I've checked the HTML-contend.. there is none.
<table border="0" width="100%" bgcolor="white">
<tbody>
<tr>
<td valign="top" bgcolor="white" align="left">
<pre></pre>
</td>
</tr>
<tr>
<td valign="top" align="left"></td>
</tr>
</tbody>
</table>
Does anyone know what's the problem here? And could anyone tell me how I can see a log of what the server got from the client and of what the server did in response?
Thank you for any help.
snoocThu, 07 Mar 2013 12:09:04 +0100https://ask.sagemath.org/question/9890/Setting up a public Sage serverhttps://ask.sagemath.org/question/9746/setting-up-a-public-sage-server/Hi. I have a desktop computer with an Athlon II X3 440 (probably he will be updated soon with an AMD FX 8350), 32Gb of RAM and Fedora 17 64bit.
I would like to set up a public Sage server on a unprivileged Fedora user.
I am not a security expert, but I need to avoid abuses, so I need suggestions how to secure a public Sage server, where people can sign in from Sage server's webpage and start immediately
The wiki page
http://wiki.sagemath.org/SageServer
does not seem to be enough for my needsCaterpillarSat, 26 Jan 2013 07:03:41 +0100https://ask.sagemath.org/question/9746/My notebook interface doesn't workhttps://ask.sagemath.org/question/9640/my-notebook-interface-doesnt-work/I have a problem when I try to use sage with the notebook interface on my mac (a macbook pro under MacOS 10.7). When I launch a notebook interface, sage doesn't work. If I type 2+2 and click "evaluate", nothing happens. However, what is weird is that if I close the window and reopen it, then the answer is here "4".
Also, when I launch sage in a terminal instead, things work quite normally.
I have no idea of what is happening here. It used to work normally, until about two months ago. Since then I have tried everything I could think of, without success:
quitting sage and relaunching it, killing all processes related to sage, restarting the computer,
changing the browser (from safari to mozilla), reloading a new version of sage from the internet...
If anyone has any idea of what is happening and what I should try, thank youJoel B.Sun, 16 Dec 2012 20:24:35 +0100https://ask.sagemath.org/question/9640/a way to set a per-user SageObject.db() folderhttps://ask.sagemath.org/question/9559/a-way-to-set-a-per-user-sageobjectdb-folder/I like the way Sage allows any SageObject to be dumped by SageObject.db('name') command. However, setting up a multi-user server I have found that all notebook users share the same directory in $HOME/.sage/db
Moreover, if a server has a pool with several local users to run the code, which is recommended in tutorials for public servers, these local users all have different $HOME! (this can be worked around by symlinking for example)
Is there a way to set a single db() directory per notebook user, and not for pool user? ADuC812Fri, 23 Nov 2012 08:41:04 +0100https://ask.sagemath.org/question/9559/How to setup a custom server for Ipad apphttps://ask.sagemath.org/question/9356/how-to-setup-a-custom-server-for-ipad-app/Hello
I would like to set up a custom server, for the Ipad-app.
I have installed Sage on a Linux machine, and are able to run a server, I can
work with it, in Safari, or Chrome (on the ipad).
But what configuration is necessary to make it work with the Sage-app.
Thank you
Jürgen
jürgenThu, 27 Sep 2012 14:18:06 +0200https://ask.sagemath.org/question/9356/Sage cell server - do I really need so many makeSagecell invocations?https://ask.sagemath.org/question/9115/sage-cell-server-do-i-really-need-so-many-makesagecell-invocations/If I'm writing a web page with (say) 15 different Sage cells embedded in it, do I really need 15 explicit invocations of
sagecell.makeSagecell({inputLocation: '#sagecell-plotP',
template: sagecell.templates.restricted});
with a slightly different name each time, or is there a way to just use the same formatting etc. for a bunch of them and just have a class for the div instead of an id? This could be a very HTML/CSS-ignorant question...
My guess is "sadly, no" because the cell server needs to know what div to put the results in, but one can always hope.kcrismanWed, 27 Jun 2012 16:09:41 +0200https://ask.sagemath.org/question/9115/Non-SSL security for Sage Math Servershttps://ask.sagemath.org/question/9079/non-ssl-security-for-sage-math-servers/I am running a Sage Math server on RackSpace and I have to run it in "secure=False' mode as I cannot have SSL active. I am told that the official sage math server at www.sagenb.org also doesnt use SSL. My question is, how best should I make my server reasonably secure without invoking SSL handshaking? I would particularly appreciate knowing how this is done at sagenb.org as your system seems reasonably secure. Any advice (other than asking it to be run in "secure=True" mode) would be most
MathBearMathBearFri, 15 Jun 2012 18:24:36 +0200https://ask.sagemath.org/question/9079/SSR Security Access Issueshttps://ask.sagemath.org/question/9018/ssr-security-access-issues/Greetings! I have set up the Ubuntu64bit 10.04.3 version of Sage Math on a server at RackSpace Cloud I am renting to use as a remote Sage Math server. as long as I set secure=True and also run the "screen" tool for Linux, the sage notebook runs fine. My intention is to use Sage Math as a resource for teaching math in the virtual world of Second Life. Now I can access the published worksheets from www.sagenb.org/pub from within Second Life without any trouble and display them in-world. This is important for my educational purposes on Second Life where I have a virtual school. In the case of my server at Rackspace, I can easily access published worksheets with a regular browser but I cannot do so from within Second Life. I get the error message that SSL handshake failed. I tried reinstalling Sage Math without using SSL but the notebook refuses to function if I do that, and eventually the installation becomes corrupt if I keep trying. I was forced to rebuild the server from scratch and download the Sage Math program to get things working again. Now, obviously it is possible to access the published worksheets since I had no trouble with this on www.sagenb.org/pub, so i would like to know how to accomplish this on my server. security is not a big deal as no important data is intended to be stored on it, it is just to facilitate interaction. I wouldnt mind running the notebook server unsecured if only it would let me. So far I have not figured out any solution to the problem and would really appreciate some help.
Thank You,
Math BearMathBearThu, 31 May 2012 18:27:21 +0200https://ask.sagemath.org/question/9018/Problem installing sagecell serverhttps://ask.sagemath.org/question/8910/problem-installing-sagecell-server/I was trying to install sagecell server and I tried it on the stable (4.8) as well as the unstable (5.0beta13). In both cases I get an error. In the case of 5.0beta13 it says
Patching Sage
adding 01-sage-embedded.patch to series file
applying 01-sage-embedded.patch
now at: 01-sage-embedded.patch
adding 02-sage-show.patch to series file
applying 02-sage-show.patch
patching file sage/plot/plot3d/base.pyx
Hunk #3 FAILED at 1137
1 out of 3 hunks FAILED -- saving rejects to file sage/plot/plot3d/base.pyx.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working dir
errors during apply, please fix and refresh 02-sage-show.patch
Error pushing patch 02-sage-show.patch.
Does anyone know to get rid of this error?ShashankFri, 20 Apr 2012 16:11:12 +0200https://ask.sagemath.org/question/8910/Notebook hangs when run from command linehttps://ask.sagemath.org/question/8901/notebook-hangs-when-run-from-command-line/I'm getting comfortable with Sage with my own work, and have tasked my students with registering at sagenb.org and working through some problems. I would like to run a Sage server from my desktop machine at home to access when I'm out, instead of trying to synchronize my worksheets.
I'm running OS X 10.7 on a Mac Mini, and have properly forwarded the appropriate port. When I run sage in the Terminal, then the command
notebook(interface='', server_pool=['sage1@localhost'], accounts=False, secure=True)
things seem to work smoothly. I can access the login screen from a remote machine, run worksheets, and evaluate commands. However, when I try to run sage from the command line with
...sage --notebook interface='' server_pool=['sage1@localhost'] accounts=False secure=True
I'm still able to access the login screen from a remote machine and run worksheets, but when I try to evaluate something it hangs. The command I'm using is something I put together from pieces I found on the Sage wiki, but I admit even after reading a number of tutorials over and over I'm still not sure what all the parameters mean.
I'd like to run this server at boot, so I'm calling it via a bash script. If there's another way to do things I'm all ears. Does anyone have any suggestions?ctennenhWed, 18 Apr 2012 11:46:46 +0200https://ask.sagemath.org/question/8901/Sage cell server installhttps://ask.sagemath.org/question/8718/sage-cell-server-install/hello i'm a webmaster of a big students international portal
we are interested in Sage cell,
does the virtual machine distribution have the sage cell server installed?
If not can you make it? Or alternatively you can simplify the install process?tronyThu, 22 Mar 2012 07:45:11 +0100https://ask.sagemath.org/question/8718/Notebook under application pathhttps://ask.sagemath.org/question/8795/notebook-under-application-path/I've installed a sage notebook and I'm trying to configure it as an application on a main web server (i.e. https://servername/sage/). I've used apache mod_proxy_http to rewrite the urls and point them to https://localhost:8000/, but some are sneaking in (through javascript, I think). In an attempt to work around this, I've added mod_proxy redirects from https://servername/home/ to https://localhost:8000/home and https://servername/javascript to https://localhost:8000/javascript.
It seems like I'm doing something wrong. This approach is very clumsy, and javascript POST requests to /home/ return 405 errors (method not allowed). Is there a way to configure the sage notebook base url to be something other than "/"?
Here's the relevant snippet of my apache ssl.conf:
ProxyPass /sage/ https://localhost:8000/
ProxyPassReverse /sage/ https://localhost:8000/
ProxyPass /javascript/ https://localhost:8000/javascript/
ProxyPassReverse /javascript/ https://localhost:8000/javascript/
ProxyPass /home/ https://localhost:8000/home/
ProxyPassReverse /home/ https://localhost:8000/home/
ProxyPassReverseCookiePath /sage/ https://localhost:8000/
ProxyHTMLURLMap https://localhost:8000/ /sage/
ProxyHTMLURLMap https://localhost:8000/ /sage/
<Location /home/>
ProxyPassReverse /
</Location>
<Location /sage/>
ProxyPassReverse /
ProxyHTMLEnable On
ProxyHTMLURLMap / /sage/
RequestHeader unset Accept-Encoding
# http://some.app.intranet/ /my-gateway/
</Location>
CarlFFri, 16 Mar 2012 10:40:00 +0100https://ask.sagemath.org/question/8795/How do I merge users and data from two notebook servers?https://ask.sagemath.org/question/8631/how-do-i-merge-users-and-data-from-two-notebook-servers/So I have one old notebook server running in my office with some 20 users and there's the new server from the department in the server room, more powerful and maintained by someone that will stay in this university for many years:
Can I merge the users and data from the old notebook server into the new one, so that I can turn the old one off?pangTue, 17 Jan 2012 07:10:40 +0100https://ask.sagemath.org/question/8631/configure sage notebook to access apache serverhttps://ask.sagemath.org/question/8612/configure-sage-notebook-to-access-apache-server/Eight hours of trying to set up a sage apache server so that it can be accessed remotely via the internet has not lead to any fruitful results. So for my final attempt I hope that I can receive some advice.minesweSun, 29 Jan 2012 23:37:47 +0100https://ask.sagemath.org/question/8612/URL test for Sage Notebookhttps://ask.sagemath.org/question/8664/url-test-for-sage-notebook/Is there any way to pass login credentials to a Sage Notebook server via a URL and obtain meaningful data from the notebook server? I'm asking because I am administrating a Sage Notebook server at Fordham, and the IT department would like a way to query the server "in order to be more proactive in response to a downtime."
Ideally, I'd like to send a single URL and receive from our Sage notebook server data concerning uptime, load, etc. I don't know what things are possible, of course. Even an "I'm alive" signal could be useful data.
Thanks!ShaunaultMon, 23 Jan 2012 14:46:24 +0100https://ask.sagemath.org/question/8664/