sage shell connected to notebook kernel?

22 views
Skip to first unread message

Fred Gruber

unread,
Apr 16, 2014, 11:48:06 AM4/16/14
to sage-s...@googlegroups.com
I'm running a sage notebook. Is it possible to open a shell session of sage that connects to the same kernel running on the notebook in order to access the same variables?

I know it is possible in ipython (http://ipython.org/ipython-doc/rel-1.1.0/interactive/notebook.html)  so I was wondering if it is possible in sage as well.

thanks

William Stein

unread,
Apr 16, 2014, 11:59:03 AM4/16/14
to sage-support
It's not possible in Sage, unfortunately.

I'm sure you already know, but to use Sage in IPython, you would do this:

%load_ext sage.misc.sage_extension

For other readers, you can connect via the terminal in ipython by doing

ipython console --existing f0d951ae-9f86-4159-a427-afd9d9e72bbf

where the uuid is that of the ipython session...

>
> thanks
>
> --
> 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...@googlegroups.com.
> To post to this group, send email to sage-s...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.



--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

Fred Gruber

unread,
Apr 16, 2014, 12:11:54 PM4/16/14
to sage-s...@googlegroups.com
thanks

But if I run sage in ipython would I be able to use the interact?

William Stein

unread,
Apr 16, 2014, 12:15:02 PM4/16/14
to sage-support
On Wed, Apr 16, 2014 at 9:11 AM, Fred Gruber <fgr...@gmail.com> wrote:
> thanks
>
> But if I run sage in ipython would I be able to use the interact?

No.

They do have their own approach to something like interact, which
maybe is only in 2.0 (?). I have the impression that theirs is
completely and totally incompatible with ours, as much as is humanly
possibly, but solves the same sort of problem.

William
Reply all
Reply to author
Forward
0 new messages