On Tuesday, July 21, 2015, Pierre <pierre.guil...@gmail.com> wrote:

> Hi,
>
> I've been playing with the Jupyter notebook in sagemathcloud, it's very
> nice. I have a few questions:
>
> (1) I was trying to plot a few things, following the recommandations here:
>
> https://github.com/sagemathinc/smc/wiki/FAQ#ipython-nb
>
> The proposed code is
>
> def showplot(g):
>     import IPython.display
>     save(g, 'a.png')
>     display(IPython.display.Image('a.png'))
>
> I'm pretty sure the last line is incorrect -- it doesn't work for me anyway, 
> and things are fixed if you change it to
>     IPython.display.display(IPython.display.Image('a.png'))
>
> OK so that's not really a question, more of a documentation error report
> :-)
>
>
> (2) I've been trying to improve it to
>
>
> def showplot(g, **kwargs):
>     import IPython.display
>     save(g, 'a.png', kwargs)
>     IPython.display.display(IPython.display.Image('a.png'))
>
>
> and tried showplot(my_plot, dpi= 1200) to get a larger image, but it
> doesn't work... any thoughts?
>
> (normally "dpi" is a keyword for the "show" function)
>
> (3) I've put the function showplot inside .sage/init.sage, it works within
> jupyter (not within a sage worksheet, the init.sage is ignored entirely,
> but that's another story, and for the moment i don't care). I was wondering
> however if there was a way to have the same init.sage for all the projects?
> or, for that matter, how to share a file between several or all projects?
>
> or is the idea that each "project" is like a separate computer running?
> (it feels very much like it, and i also think i remember reading this in
> the documentation somewhere)
>
> (4) This is a bit unrelated, but: does the editor on sagemathcloud (the
> one that pops up when you click on a .sage file) have any auto-completion
> features at all?
>
>
No, it doesn't.  Editing sagews files does though.



>
>




>  --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','sage-support%2bunsubscr...@googlegroups.com');>
> .
> To post to this group, send email to sage-support@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','sage-support@googlegroups.com');>.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Sent from my massive iPhone 6 plus.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to