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.Fri, 29 Mar 2019 10:59:35 -0500jupyter notebook multi users ?http://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 09:30:33 -0500http://ask.sagemath.org/question/43919/How can I retrieve sage worksheets from old hard drivehttp://ask.sagemath.org/question/45942/how-can-i-retrieve-sage-worksheets-from-old-hard-drive/Recently, my computer (a Macbook Pro) stopped working suddenly. I have now replaced it with a newer Macbook Pro, and I would like to get my sage worksheets from my previous computer onto my new one. The drive on the old computer is fine and I have access to everything on it, but I do not know where the sage worksheets are stored. According to this: https://ask.sagemath.org/question/8658/where-in-the-file-system-is-sage-notebook-storing-the-worksheets/ they should be in the directory ~/.sage/sage_notebook.sagenb/home/. I have copied the .sage directory from my old hard drive to my new one. Inside there is indeed a directory called sage_notebook.sagenb and inside that there is a directory called home. Inside home is a folder named \__store__, and then three shortcuts (I think they are shortcuts, they are little folders with arrows in the bottom left corner) named admin, guest, and pub. Both guest and pub are empty. The contents of \__store__ are mostly inscrutable. There are essentially three possible paths one can take:
/\__store__/0/08/084/084e/guest/ which is empty
/\__store__/3/3a/3a2/3a21/pub/ which is empty
/\__store__/2/21/212/2123/admin/ which is filled with folders 0 through 34 and a file called history.pickle
Inside each of the folders labeled 0 through 34 are two folders named cells and data and two files named worksheet_conf.pickle and worksheet.html. The data and cells folders are sometimes empty but other times data contains some of my .sobj files and cells contains one or many folders labelled by seemingly random numbers. Inside these folders are files of various types, I think I have seen .sobj, .png, and .txt files so far.
What do I do so that when I run notebook() in a sage terminal and it opens up a browser window with all of my worksheets listed I will be able to see the worksheets that I had on my previous computer?David E. RobersonFri, 29 Mar 2019 10:59:35 -0500http://ask.sagemath.org/question/45942/Pretty print output in Jupyter notebookhttp://ask.sagemath.org/question/45481/pretty-print-output-in-jupyter-notebook/ <p>In order to provide meaningful results to my students in a Jupyter notebook, I would like to pretty print some output, including text, LaTeX and things computed by Sage. I have found that I could combine either <code>show</code> (or <code>pretty_print</code>) and <code>html</code>, or <code>show</code> and <code>LatexExpr</code>. For example,
either</p>
<pre><code>limit = r"\displaystyle\lim_{x\to0}\frac{\sin x}{x}="
value = lim(sin(x)/x, x=0)
show(html("Solucion: "+"${}={}$".format(limit,value)))
</code></pre>
<p>or, instead,</p>
<pre><code>limit = r"\displaystyle\lim_{x\to0}\frac{\sin x}{x}="
value = lim(sin(x)/x, x=0)
show("Solucion: ", LatexExpr(limit), value)
</code></pre>
<p>I would ask the following questions:</p>
<ol>
<li>Is there any reason to prefer one approach to the other?</li>
<li>If I replace <code>"Solucion"</code> by <code>"Solución"</code> (please note the accented <code>ó</code>), which is the correct way to write this Spanish word, in both approaches I get meaningless letters instead of the expected output. If I use <code>u"Solución"</code>, then Sage raises the error <code>'ascii' codec can't encode character u'\xf3' in position 6: ordinal not in range(128)</code>. Is there a way to use non-English characters?</li>
</ol>
I am using SageMath 8.5 on a MacBook Pro with macOS High Sierra. JuanjoSun, 17 Feb 2019 10:00:45 -0600http://ask.sagemath.org/question/45481/sagemath 8.6 could not work normally on mac 10.14.3http://ask.sagemath.org/question/45350/sagemath-86-could-not-work-normally-on-mac-10143/Command line works,
but the sagemath application could not open a notebook,
and it barely respond,
i think some issues may occur with GUI.ifeelok92Wed, 06 Feb 2019 22:02:03 -0600http://ask.sagemath.org/question/45350/How can I access the notebook interface using Tails OS ?http://ask.sagemath.org/question/44341/how-can-i-access-the-notebook-interface-using-tails-os/Background: SageMath responds to the notebook() command by automatically opening the default browser. The default browser on Tails OS is the Tor Browser which cannot access localhost.
Question: Is there a way to prevent SageMath from automatically opening a browser which would permit the notebook to be accessed using Tails' Unsafe Browser ? If not, is there some other workaround?ScLaMon, 19 Nov 2018 13:06:00 -0600http://ask.sagemath.org/question/44341/Plotting > 10k random 3D pointshttp://ask.sagemath.org/question/44286/plotting-10k-random-3d-points/Hi,
First of all, I am new to SAGE, and only started using it today.
I want to plot 100 000 random 3D points in SAGE, and it takes a LOT of time just to plot 10 000 points.
This is the code I have:
def random_point(): return (random(), random(), random())
l = [random_point() for k in [1 .. 10000]]
s = point3d(l, size=5)
show(s, aspect_ratio=1)
I noticed that the last two lines take incredibly long each.
Then, after the `show`, when I try to interact with the graphic, it is blank. I can even show the boundbox and axes, but the plot is nowhere to be seen.
If I change to `[1 .. 100]`, everything works as intended, but this amount of points is not enough.
What should I do to accomplish effectively my goal?
I am using SAGE 8.1, installed on macOS via brew, after running `notebook()` on the command line and using the browser-based notebook.
Thank you!KayvlimWed, 14 Nov 2018 19:34:52 -0600http://ask.sagemath.org/question/44286/Load module from remote serverhttp://ask.sagemath.org/question/43778/load-module-from-remote-server/Hi, I am using a remote sage notebook public server (such as http://sage.math.canterbury.ac.nz/).
I would like to be able to load my own python modules, but I don't know how can I access local files, such as
import sys
sys.path.append('path-to-file-in-my-local-drive')
import module-name
Is there any way to do that?jllbThu, 27 Sep 2018 03:38:06 -0500http://ask.sagemath.org/question/43778/Only one of two identical entries in the notebook gives graphics output for show()http://ask.sagemath.org/question/43638/only-one-of-two-identical-entries-in-the-notebook-gives-graphics-output-for-show/I use SageMath to teach a bunch of kids. I have to confess a certain amount of frustration with the SageMath notebook. In particular, tonight I composed a notebook entry which shows some data points and curve-fitted plots. I pressed Shift-Enter to evaluate, and there was no graphical output (nor any error message).
And then I copied/pasted the exact same entry into a blank entry in the same SageMath notebook, pressed Shift-Enter, and it showed the graphical output.
Yes, this is the SAME notebook page which, if you scroll up, shows no graphical output (I inserted a print("Ok.") just to confirm that there was SOME output), and if you scroll down, you see the IDENTICAL python-like SageMath script, and then it shows the graphics of the plotted points as desired.
How could this happen? Is there something that happens in between notebook entries? Perhaps only the last entry is evaluated? I will try posting screenshots.
ok, the screen shots are as follows:
<a href="https://pasteboard.co/HDowwUc.png">no plot, just text</a>
<a href="https://pasteboard.co/HDoxbZ1.png">plot after the text</a>
in the first entry, you can see the notebook entry, and then underneath in blue the SageMath output "Ok.", and that's all; the next notebook entry follows immediately. There is no plot.
in the second entry, you can see the notebook entry, and then underneath in blue the SageMath output "Ok.", and under that is the plot of the two data points and the axes.
For what it's worth, the SageMath notebook entry is as follows. The variable "stage" is so that I can easily turn on/off various parts of the entry by modifying it as I get to various parts of the lesson. (But there is no difference between the entry that works and the entry that doesn't.)
"all_go" is the accumulation of all the graphics objects that I want to display, that is, the output of the points() function in this case, and depending on the setting of my "stage" variable, possibly also a plot of f(x).
I am using SageMath 7.5.1 on Kubuntu 14.04. I know it's not the newest version, but I mst be missing something.
Any help would be appreciated
<pre>
---( start )---
stage="p2m1"
# stage can be p2 or p3 = data points
# stage can be d0 or d1 = display
# stage can be m1 or m2 or me = model
var('a,b,c')
if stage.find("p2") >= 0 :
mydata = [[1,2],[3,5]]
else :
mydata = [[1,2],[2,4],[3,5]]
#mydata
mydata_plot = points(mydata,color='purple', size=100)
if stage.find("m1") >= 0 :
mymodel(x) = b*x + c
elif stage.find("m2") >= 0 :
mymodel(x) = a*x^2 + b*x + c
elif stage.find("me") >= 0 :
mymodel(x) = a*exp(b*x) + c
myfit = find_fit(mydata,mymodel,solution_dict=True)
if stage.find("m1") >= 0 :
f(x) = mymodel(b=myfit[b], c=myfit[c])
else :
f(x) = mymodel(a=myfit[a], b=myfit[b], c=myfit[c])
#f(x) = 6 - 2^(3-x)
#f(x) = (-8) * exp( x*(-ln(2))) + 6
mymodel_plot = plot( f, (x,0,4,), color='red')
all_go = mydata_plot
if stage.find("d1") >= 0 :
all_go += mymodel_plot
t_min=0
t_max=5
t_default=1.5
sample_t=t_default
global_go = all_go
all_go
if stage.find("d1") < 0 :
all_go.show()
print("Ok.")
elif stage.find("d1") >= 0 :
@interact
def _(sample_t=slider(t_min, t_max, default=t_default, step_size=0.1)):
global global_go
all_go = global_go
#sample_t=2
output_y = f(sample_t)
point_tuple = ( sample_t, output_y )
plotpoint_go = point2d( point_tuple , size=200, color='green')
all_go += plotpoint_go
all_go.show()
f.show()
print( "f(" + str(sample_t) + ") = " + str(output_y) )
---( end )---
</pre>
quantumTue, 11 Sep 2018 08:14:09 -0500http://ask.sagemath.org/question/43638/How to show the output of print() in to jupyter notebook?http://ask.sagemath.org/question/43078/how-to-show-the-output-of-print-in-to-jupyter-notebook/ In Sagemath's Jupyter Notebook, The output of print () always is showed into terminal. So for this reason, I can not get output of the functions such as graph_classes.Tree.description(). But in the anacanda's jupyter notebook for python, we can show the output of print() in jupyter notebook. How to solve the problem? Thanks.dannyThu, 19 Jul 2018 07:50:09 -0500http://ask.sagemath.org/question/43078/Unable to download to PDFhttp://ask.sagemath.org/question/43049/unable-to-download-to-pdf/I'm using SageMath 8.2 on a Windows 10 Native with Jupyter Notebook.
When trying to download to PDF a Jupyter Notebook, I get the following message:
500 : Internal Server Error
nbconvert failed: PDF creating failed, captured latex output:
This is XeTeX, Version 3.14159265-2.6-0.99998 (MiKTeX 2.9.6500 64-bit)
entering extended mode
! I can't find file `/home/danie_000/SageManifolds/test/notebook.tex'.
<*> ...e/danie_000/SageManifolds/test/notebook.tex
Please type another input file name:
! Emergency stop.
<*> ...e/danie_000/SageManifolds/test/notebook.tex
No pages of output.
Transcript written on texput.log.
It is looking for some file in `/home/danie_000` but I don't use that default directory to place my Jupyter files.
I've changed my fstab like this:
D:\Users\danie_000\Sage /home/danie_000 ntfs binary,posix=1,acl 0 0
So I use `D:\Users\danie_000\Sage` instead, a different directory and drive. If SageMath allows changing the default root directory via changing the fstab file, it should also change any command that needs that information!
Daniel
danielvolinskiTue, 17 Jul 2018 11:45:03 -0500http://ask.sagemath.org/question/43049/best way to convert many notebooks from sagenb to jupyter?http://ask.sagemath.org/question/41680/best-way-to-convert-many-notebooks-from-sagenb-to-jupyter/I moved from sagenb to jupyter a while ago, but I still have a large number of sagenb notebooks that I have been converting one-by-one on demand. Is there a way to convert all of them at once and save them to a dedicated folder? Currently, when I start sage -notebook, I get to an interface where I can see all my sagenb notebooks and I have the option to click on any of them, convert and open in jupyter. I would actually like to convert all of them without opening them.
This is related to https://ask.sagemath.org/question/35873/how-to-automatically-convert-many-sws-to-ipynb/, but I suppose that there is a better way now. Thanks already for your help!stanWed, 21 Mar 2018 08:36:13 -0500http://ask.sagemath.org/question/41680/Notebook problemshttp://ask.sagemath.org/question/40937/notebook-problems/I am asking this for the third time with more details, since there are no answers yet. Since my notebook isn't working, I am using the Cloud, but I'd like to get the notebook running again.
So, I have sagemath notebook installed on my Mac laptop, and it has been working fine until recently, maybe because I tried to run some 3d graphics program I found on the Sagemath manual. Then it froze up.
I can see all my files, but I cannot run any programs. There is no "evaluate" button. The box for a new program doesn't turn blue around the edge. If I open up a worksheet, and go back to the list of files, it says (running), though nothing is working. Also, the "Help" and "Report a Problem" and "log" buttons don't work. "Home" and "Sign Out" do.
I can sign out, log back in and it's still stuck. Restarting the Mac also doesn't help. Do I have to create a new notebook?
Reinstall everything?
Help please !!!
thanks very muchalFri, 02 Feb 2018 14:13:09 -0600http://ask.sagemath.org/question/40937/notebook admin not workinghttp://ask.sagemath.org/question/40861/notebook-admin-not-working/Hello,
I have installed sagemath on debian (Stretch) with the debian package on 3 different computers.
When clicking on manage users 500: internal server error
and
raise BuildError(endpoint, values, method, self)
BuildError: Could not build url for endpoint 'users' with values ['reset']. Did you mean 'admin.users' instead?
I have no clue how to fix this or what it is due to...
maybe I need to configure notebook or use different options
Any idea ?
Thank-you,
b.
edited added debian release 9bb16Mon, 29 Jan 2018 11:37:30 -0600http://ask.sagemath.org/question/40861/Get TypeError: 'tuple' object is not callablehttp://ask.sagemath.org/question/39844/get-typeerror-tuple-object-is-not-callable/Just downloaded sage-8.0-Debian_GNU_Linux_8-x86_64.tar.bz2.
Seems to be working well.
Great work as always!
Trying to solve simultaneous equations.
Get error "TypeError: 'tuple' object is not callable."
Found exactly the examples I needed in Basic Algebra and Calculus. Solving Equations (online Sage reference).
Copied and pasted Jason Grout's example and also the examples above it.
Get error message "TypeError: 'tuple' object is not callable." in notebook() , but examples work in terminal.
Here is one of the examples that gives the error in notebook() (but works in terminal).
sage: x, b, c = var('x b c')
sage: solve([x^2 + b*x + c == 0],x)
What am I missing here?
Any ideas?
Thanks.
bbtpThu, 30 Nov 2017 04:26:36 -0600http://ask.sagemath.org/question/39844/What to do to save a plot from notebook?http://ask.sagemath.org/question/39624/what-to-do-to-save-a-plot-from-notebook/Is it possible to export a plot, preferable in a vector format from a notebook?boosterFri, 17 Nov 2017 02:24:37 -0600http://ask.sagemath.org/question/39624/where do I get the notebook user name and passwordhttp://ask.sagemath.org/question/39150/where-do-i-get-the-notebook-user-name-and-password/ I installed windows ubuntu, then sage, started notebook() and the notebook wants username and password. Where in the heck is that?cybervigilanteThu, 12 Oct 2017 20:30:24 -0500http://ask.sagemath.org/question/39150/Installing SageMath for multiple users?http://ask.sagemath.org/question/37505/installing-sagemath-for-multiple-users/ I have been asked to look into installing SageMath on a server for use by multiple users (I am a sysadmin and not a mathematician). I had initially looked into this a couple of years ago, but then priorities were changed.
From the previous occasion, I recall that SageMath installation is generally from a tarball (or a possibly quite fearsome compilation from source), and that the SageMath notebook interface runs in the user's web browser. I seem to recall then that it would be difficult or impossible for more than one end user to run SageMath, as, when it opens a web browser, it is not aware of there actually being different end users on a multi-user server computer and the notebook interface would not be able to cope with this (without somehow running multiple web interfaces on separate network ports?). The SageMath documentation also rather seems to assume the use case of an individual user with sysadmin powers installing SageMath on their own personal computer for their own stand-alone personal use (if there is specific documentation about setup for multiple users, I have not yet found it, unfortunately).
Is it (easily) possible to install SageMath on a (Linux) server for multiple end users to be able to use it via the notebook interface, or would it realistically be substantially easier to consider the use of the SageMath Cloud service instead?
Thank you for any advice.dave559Thu, 04 May 2017 05:42:58 -0500http://ask.sagemath.org/question/37505/UnicodeDecodeError in matplotlib if 'python' set instead of 'sage' in Notebookhttp://ask.sagemath.org/question/37364/unicodedecodeerror-in-matplotlib-if-python-set-instead-of-sage-in-notebook/Hello!
I am trying to make publication ready images for LaTeX in Sage with matplotlib (due to the complex nature of the plot) in Notebook.
I have a lot of numerical calculations (not symbolic) so I switch to 'python-mode' using drop-down list on top of the Worksheet (so it looks like 'File...', 'Action...', 'Data...', 'python') so that my constants would read as native python's data types not Sage's symbolic objects.
Now having the switch on top of the page in 'python' mode the following code:
from matplotlib import rc
rc('text', usetex=True)
rc('text.latex', unicode=True)
rc('text.latex', preamble='\usepackage[utf8]{inputenc}')
rc('text.latex', preamble='\usepackage[russian]{babel}')
font = {'family': 'serif',
'serif': ['Computer Modern Unicode']}
rc('font', **font)
import matplotlib.pyplot as plt
plt.plot([1], [1])
plt.title(ur'Тест')
plt.savefig("test.png")
yields ether UnicodeDecodeError or the image with the text corrupted:
![example of the corrupted output](/upfiles/14928022812226123.png)
But if I switch to 'sage' on top of the page, it works as expected:
![example of the valid output](/upfiles/14928023491980951.png)
I have no idea how that switch on top of the page affects matplotlib's output, but would really like to be able to use Cyrillic (utf8) letters and 'python' mode **at the same time**.
P.S. That magical switch on top of the page is really painful since I also can not save Worksheets if they contain utf-8 characters: [as in this still unresolved issue](https://ask.sagemath.org/question/26167/unicodedecodeerror-in-notebook-server-if-worksheet-is-set-to-python-instead-of-sage/) :-( :-(
**UPDATE:** Tested the MWE above in Jupiter - seems to work properly! And due to inevitable migration to Jupiter, the problem seems not to be obsolete.EugeneFri, 21 Apr 2017 14:24:54 -0500http://ask.sagemath.org/question/37364/Launch Sage Notebook directly from linux menuhttp://ask.sagemath.org/question/37288/launch-sage-notebook-directly-from-linux-menu/ How can I set up a menu icon to launch Sage notebook automatically from linux mint? Now I have to open a terminal, type sage, then when it loads, type notebook()cybervigilanteThu, 13 Apr 2017 15:10:03 -0500http://ask.sagemath.org/question/37288/Sage Math future (notebook vs cloud vs jupiter)?http://ask.sagemath.org/question/36955/sage-math-future-notebook-vs-cloud-vs-jupiter/Hello!
For some years I have used Sage but only on my local PC and via notebook. Now I am noticing that Sage Cloud becomes more popular, it has jupiter and the interface differs a lot.
So, I have a some general questions about the future of Sage Notebook, Sage Cloud and jupiter:
1. Is using Sage Notebook is the 'recommended' way of using sage offline (or I should google about jupiter)?
2. Will something like [Sage Cloud Docker](https://github.com/sagemathinc/smc/blob/master/src/dev/docker/README.md?utm_content=buffer750a1&utm_medium=social&utm_source=facebook.com&utm_campaign=buffer) replace the use of Sage's binary and Sage's Notebook in the future?EugeneWed, 15 Mar 2017 14:22:53 -0500http://ask.sagemath.org/question/36955/scripting (jupyter) notebookshttp://ask.sagemath.org/question/36875/scripting-jupyter-notebooks/Is there a way to execute a notebook file from the command line and automatically run all cells?
I am looking for something like
<pre>
sage -n jupyter --no-browser --script test1.ipynb
</pre>
however, `--script` is deprecated and `--no-browser` doesn't stop sage from opening a browser window for me. Worse yet, the cells in the notebook are not executed automatically either.
Background: My aim is to automatically run a set of different sage notebooks (which are basically scripts to generate data files) in a directory, similar to how you would compile various source files to binaries. The notebooks are a collaborative effort and in a version control system and every developer would be able to generate those data files locally on their machine by running some shell script or through a Makefile.
BjörnThu, 09 Mar 2017 04:27:32 -0600http://ask.sagemath.org/question/36875/How do I clear this PDFLATEX error in Sage Notebook?http://ask.sagemath.org/question/36701/how-do-i-clear-this-pdflatex-error-in-sage-notebook/I'm running OS X Sierra with Sage 7.5.1 App version. TEXlive 2016 is installed. PDFLATEX runs from a terminal command. I've followed each step to get SAGETEX to see TEX and probably a few more. I still get: “Error: PDFLaTeX does not seem to be installed. Download it from ctan.org and try again.” I'm running out of things to try. Any assistance would be appreciated.
RWBUMPWed, 22 Feb 2017 17:25:08 -0600http://ask.sagemath.org/question/36701/Error importing scipy for SAGE notebookhttp://ask.sagemath.org/question/36574/error-importing-scipy-for-sage-notebook/The following code -which I got as an example off the web- works fine in a SageCell but doesn't run in my Sage notebook.
Here is the code. Help or hints please!!!
mydata = [[1,3],[2,7],[3,13],[4,24]]
var('a,b')
mymodel(x) = a*x + b
myfit = find_fit(mydata,mymodel,solution_dict=True)
points(mydata,color='purple') + plot(
mymodel(
a=myfit[a],
b=myfit[b]
),
(x,0,4,),
color='red'
)
Here is the error message:
Traceback (most recent call last): a=myfit[a],
File "", line 1, in <module>
File "/private/var/folders/18/gmqqrhkd1wb4l1pv6sldfr5r0000gp/T/tmpSL56oE/___code___.py", line 6, in <module>
myfit = find_fit(mydata,mymodel,solution_dict=True)
File "sage/misc/lazy_import.pyx", line 386, in sage.misc.lazy_import.LazyImport.__call__ (/Applications/SageMath-7.2.app/Contents/Resources/sage/src/build/cythonized/sage/misc/lazy_import.c:3627)
File "/Applications/SageMath-7.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/numerical/optimize.py", line 697, in find_fit
from scipy.optimize import leastsq
File "/Applications/SageMath-7.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/scipy/__init__.py", line 103, in <module>
raise ImportError(msg)
ImportError: Error importing scipy: you cannot import scipy while
being in scipy source directory; please exit the scipy source
tree first, and relaunch your python intepreter.
Thanks very much!!!!alSat, 11 Feb 2017 16:03:29 -0600http://ask.sagemath.org/question/36574/Multiple tables in Notebook's output?http://ask.sagemath.org/question/36448/multiple-tables-in-notebooks-output/ Hi!
Trying to print more than one table in the output of Sage's Notebook cell, with fancy-printing:
table([[0]])
table([[1]])
but only the last one is shown (checked in Firefox and Chrome in Linux). Currently found workaround is:
html.table([[0]])
html.table([[1]])
but it gives a deprecation warning, or:
html(table([[0]])._html_() + table([[0]])._html_())
which seems to work fine.EugeneSat, 04 Feb 2017 05:33:32 -0600http://ask.sagemath.org/question/36448/Cannot use pip because pip is configured with locations that require TLS/SSLhttp://ask.sagemath.org/question/35486/cannot-use-pip-because-pip-is-configured-with-locations-that-require-tlsssl/I installed pip by `sage -i pip`, but when I use pip to install some python packages, it always gives the following error message:
```
sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody can write to it.
Untrusted users could put files in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting octave_kernel
Could not fetch URL https://pypi.python.org/simple/octave-kernel/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement octave_kernel (from versions: )
No matching distribution found for octave_kernel
```
Then I followed [this post](https://groups.google.com/forum/#!topic/sage-support/c2fm64j55Jk) which says `./sage -i pyopenssl`, but this step fails for me also.edenharderTue, 08 Nov 2016 13:08:48 -0600http://ask.sagemath.org/question/35486/Notebook access in Sage 7.3 via Oracle VMhttp://ask.sagemath.org/question/35253/notebook-access-in-sage-73-via-oracle-vm/I am a new Sage user. I have been experimenting with Sage 7.3 on my Windows laptop using Oracle VirtualBox (Version 5.1.6 r110634). When I initialize Sage in Jupyter, the only way I have been able to use the notebook version is to first open a saved Jupyter Sage document I named Initialize_Notebook_Sage.ipynb and then executing the command **notebook()**. From that point, the application resets (after a short delay) and I have access to previously saved Sage Notebooks with the interface I expected. I tried to access notebooks through a browser using http://localhost:8080, but was unsuccessful.
While this workaround gets me to the desired interface, it is not the most elegant. Is there a way to access the Sage Notebook directly from the Jupyter screen or from the VirtualBox screen?
Thanks in advance for your help.srobbertTue, 25 Oct 2016 14:22:31 -0500http://ask.sagemath.org/question/35253/Sagemath notebook x Sagemath cloudhttp://ask.sagemath.org/question/35311/sagemath-notebook-x-sagemath-cloud/Actually, is there some computacional advantage to use Sagemath notebook (ubuntu) instead of Sagemath cloud?celsomjrMon, 31 Oct 2016 06:26:20 -0500http://ask.sagemath.org/question/35311/How do you share a notebook to Virtualbox-Sage?http://ask.sagemath.org/question/35185/how-do-you-share-a-notebook-to-virtualbox-sage/ I work on two computers, one with Debian and the other one with Windows. I have installed Sage-7.3 on Debian and I am running Sage-7.3 through VirtualBox on Windows.
How can I load a Notebook I have in my filesystem (Windows), I cannot find the way to open it in VirtualBox.NeskelWed, 19 Oct 2016 03:59:48 -0500http://ask.sagemath.org/question/35185/How can I extract my notebooks from an old hard drive?http://ask.sagemath.org/question/35148/how-can-i-extract-my-notebooks-from-an-old-hard-drive/I recently had to switch from Ubuntu to Windows 7. Doing so, unfortunately I crashed my Linux installation.
Is there any way I can extract SageMath notebooks from my home folder? I copied the ~/.sage directory but can't make sense of the folder structure. The goal would be to run my old notebooks in a SageAppliance.peterFri, 14 Oct 2016 03:29:56 -0500http://ask.sagemath.org/question/35148/Notebook does not want to openhttp://ask.sagemath.org/question/34686/notebook-does-not-want-to-open/Hi there,
I'm using Sage 5.11 on Mac OS 10.6. Until about 1 year ago, the notebook used to open but now when opening Sage.app it does not (safari says it can't open localhost:8080). I can use the terminal and from there call notebook(), but then I get the following error:
Please wait while the Sage Notebook server starts...
Traceback (most recent call last):
File "/Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/sage-notebook", line 34, in <module>
notebook()
File "/Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/notebook_object.py", line 223, in __call__
return self.notebook(*args, **kwds)
File "/Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/run_notebook.py", line 528, in notebook_run
nb = notebook.load_notebook(directory)
File "/Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/notebook.py", line 1797, in load_notebook
nb = Notebook(dir)
File "/Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/notebook.py", line 150, in __init__
S.load_users(self._user_manager)
File "/Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/storage/filesystem_storage.py", line 267, in load_users
for user in self._basic_to_users(self._load('users.pickle')).itervalues():
File "/Applications/Sage-5.11-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/storage/filesystem_storage.py", line 167, in _load
result = cPickle.load(f)
EOFError
Has someone got an idea what to do?
Thanks so much.naturfreundThu, 01 Sep 2016 17:00:10 -0500http://ask.sagemath.org/question/34686/