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.Tue, 07 Feb 2017 07:52:54 -0600import module in SageMathCloudhttp://ask.sagemath.org/question/36471/import-module-in-sagemathcloud/Hi,
In my SMC project, I have two sagemath worksheet. I need to "import" the first one into the second one. Is there a way to do so? Can't figure it out. Thanks!
MartinmaaaaaaartinTue, 07 Feb 2017 07:52:54 -0600http://ask.sagemath.org/question/36471/Make ipython notebook world-viewable?http://ask.sagemath.org/question/24995/make-ipython-notebook-world-viewable/ Is there a way to make a cloud.sagemath.org iPython notebook viewable (read-only) by anyone who has a link to it? I'd like an easy way to share notebook contents with people who have not yet signed up for SageMath Cloud accounts. Clearly I can download as HTML and put a static copy on my own web server, but perhaps there is a more direct way?
ashmanskasTue, 25 Nov 2014 09:07:06 -0600http://ask.sagemath.org/question/24995/Hiding toolbarshttp://ask.sagemath.org/question/29876/hiding-toolbars/I often use the SageMathCloud in the classroom. I would like to hide the toolbars to have more room for the math. I know I can hide the User and Project menus by clicking on the little X at the right, and I have unchecked the "Extra Button Bar" in my settings. Is there also a way to hide the other toolbar (with buttons like Run, Stop, Restart, etc.)?Jeremy MartinFri, 09 Oct 2015 10:33:15 -0500http://ask.sagemath.org/question/29876/How can I install a Sage package on Sage Cloud?http://ask.sagemath.org/question/24372/how-can-i-install-a-sage-package-on-sage-cloud/To install a sage package (e.g. the package "ore_algebra") from within a SMC project, I first tried running
install_package("ore_algebra")
but I got an error message that told me to do
sage -i ore_algebra
from the terminal instead. This I did and then got the error message
~$ sage -i ore_algebra
tee: /usr/local/sage/sage-6.3.beta6/logs/install.log: Permission denied
tee: /usr/local/sage/sage-6.3.beta6/logs/pkgs/ore_algebra.log: Permission denied
Attempting to download package ore_algebra
>>> Checking online list of optional packages.
[.]
>>> Found ore_algebra-0.1
Error: no write access to packages directory .
which is obvious since, I do not have write access to the global packages directory.
So the question becomes: How can I install Sage packages in the home directory of the current project on Sage Cloud?
Felix BreuerThu, 02 Oct 2014 07:16:20 -0500http://ask.sagemath.org/question/24372/Graph plotting in SMChttp://ask.sagemath.org/question/24318/graph-plotting-in-smc/ I was trying to plot some graphs in SMC. However, even the first example given in **[Graph Plotting](http://www.sagemath.org/doc/reference/plotting/sage/graphs/graph_plot.html)** doesn't work. I only got an empty output. The following is the example i was trying.
<code>sage: G = graphs.WheelGraph(15)</code>
<code>sage: G.plot()</code>
What am I missing in my example?
P.S.: Yes. The example works in Sage worksheets, however, it doesn't work in iPython notebook. How to make it work in iPython notebook?HanSun, 28 Sep 2014 00:41:29 -0500http://ask.sagemath.org/question/24318/Defining functions error?http://ask.sagemath.org/question/24073/defining-functions-error/ I've got some code I've been using to test stuff... and I know python/sage doesn't have explicit function ends (it is white-space determined) but I can't for the life of me figure out what is going on with this code:
#A dummy parallel function to count elements in a generator/iterator.
@parallel(6)
def dummy_look(grpit):
cntrdmy=0
looptre=True
while looptre:
try:
grpit.next()
cntrdmy+=1
except StopIteration:
looptre = False
return cntrdmy
#print 1
def myfirstn(n):
num = 0
while num<n:
yield num
num += 1
return
(any executable line)
When I leave "print 1" commented out, it raises an error on the 2nd definition.
When I uncomment "print 1" it excecutes just fine. (and correctly runs the parallel-ness, though that isn't demonstrated in this code)
I'm running this on cloud.sagemath.comPelonza1Tue, 09 Sep 2014 11:28:59 -0500http://ask.sagemath.org/question/24073/