Re: [sage-devel] Re: refresh the banner
Hi, On Tue, Nov 06, 2018 at 01:14:14PM +0100, Erik Bray wrote: > On Tue, Nov 6, 2018 at 12:57 PM Jeroen Demeyer wrote: > > > > On 2018-10-31 22:23, Volker Braun wrote: > > > With ipython/jupyter you can't run the notebook in the current Python > > > session, but you can just launch a completely new process. > > > > Are you sure? Can't you just import the Jupyter application as a Python > > package and run it that way? I have not tried it though... > > I think you could, but then running notebook() would have to > completely take over the current Sage session. I don't know if that's > its current behavior or not. I don't know if it will work well to run > the Jupyter event loop in a thread given the limitations of Python > threading but I haven't tried... In any case, i think that the notebook() function should first see if they are old-style notebooks to export to ipynb (as "sage -n" does currently). Ciao, Thierry > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: refresh the banner
On Tue, Nov 6, 2018 at 12:57 PM Jeroen Demeyer wrote: > > On 2018-10-31 22:23, Volker Braun wrote: > > With ipython/jupyter you can't run the notebook in the current Python > > session, but you can just launch a completely new process. > > Are you sure? Can't you just import the Jupyter application as a Python > package and run it that way? I have not tried it though... I think you could, but then running notebook() would have to completely take over the current Sage session. I don't know if that's its current behavior or not. I don't know if it will work well to run the Jupyter event loop in a thread given the limitations of Python threading but I haven't tried... -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: refresh the banner
On 2018-10-31 22:23, Volker Braun wrote: With ipython/jupyter you can't run the notebook in the current Python session, but you can just launch a completely new process. Are you sure? Can't you just import the Jupyter application as a Python package and run it that way? I have not tried it though... -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: refresh the banner
On Fri, Nov 2, 2018 at 3:19 PM John Cremona wrote: > > > > On Fri, 2 Nov 2018 at 13:21, Vincent Delecroix <20100.delecr...@gmail.com> > wrote: >> >> >> >> Le 31/10/2018 à 13:50, Samuel Lelievre a écrit : >> > >> > >> > Le mardi 30 octobre 2018 08:06:15 UTC+1, Frédéric Chapoton a écrit : >> >> >> >> Because we do not have a clean command inside sage to launch the jupyter >> >> noteboook. >> >> >> >> For the moment, we should just try to avoid new people start using the >> >> deprecated sagenb. >> >> >> >>> >> > We could tell people to type >> > >> > sage: !sage -n jupyter >> >> sage: !jupyter notebook >> >> is simpler and more direct > > > -- that works for me, but shutting it down is problematical. After logging > out of browser windows I do Ctrl-C in the sage session window and it freezes, > I have to kill the window. Not a big problem but a bit disconcerting. I think making `notebook()` work properly with Jupyter is still the easiest and most user-friendly (as well as backwards-compatible with older Sages). If someone would open a ticket and assign it to me I can make that work. It might take a little bit of fancy footwork for it to work well. For example, I think it might help if notebook() returned an object that allowed interaction with the notebook process (e.g. stopping/restarting it; checking its logs). -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: refresh the banner
On Fri, 2 Nov 2018 at 13:21, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > > > Le 31/10/2018 à 13:50, Samuel Lelievre a écrit : > > > > > > Le mardi 30 octobre 2018 08:06:15 UTC+1, Frédéric Chapoton a écrit : > >> > >> Because we do not have a clean command inside sage to launch the jupyter > >> noteboook. > >> > >> For the moment, we should just try to avoid new people start using the > >> deprecated sagenb. > >> > >>> > > We could tell people to type > > > > sage: !sage -n jupyter > > sage: !jupyter notebook > > is simpler and more direct > -- that works for me, but shutting it down is problematical. After logging out of browser windows I do Ctrl-C in the sage session window and it freezes, I have to kill the window. Not a big problem but a bit disconcerting. > > Vincent > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: refresh the banner
Le 31/10/2018 à 13:50, Samuel Lelievre a écrit : Le mardi 30 octobre 2018 08:06:15 UTC+1, Frédéric Chapoton a écrit : Because we do not have a clean command inside sage to launch the jupyter noteboook. For the moment, we should just try to avoid new people start using the deprecated sagenb. We could tell people to type sage: !sage -n jupyter sage: !jupyter notebook is simpler and more direct Vincent -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: refresh the banner
On Wednesday, October 31, 2018 at 2:39:35 PM UTC+1, Dima Pasechnik wrote: > > But is it even possible to start it without re-starting python? > With ipython/jupyter you can't run the notebook in the current Python session, but you can just launch a completely new process. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: refresh the banner
On Wed, Oct 31, 2018 at 1:16 PM Erik Bray wrote: > > We already have notebook(). We should change that so that the default > notebook to launch is the jupyter notebook. But is it even possible to start it without re-starting python? > On Wed, Oct 31, 2018 at 1:50 PM Samuel Lelievre > wrote: > > > > > > > > Le mardi 30 octobre 2018 08:06:15 UTC+1, Frédéric Chapoton a écrit : > >> > >> Because we do not have a clean command inside sage to launch the jupyter > >> noteboook. > >> > >> For the moment, we should just try to avoid new people start using the > >> deprecated sagenb. > > > > > > We could tell people to type > > > > sage: !sage -n jupyter > > > > or say a word on how to launch the Jupyter notebook server > > in the help message that users get by typing > > > > sage: help() > > > > -- > > You received this message because you are subscribed to the Google Groups > > "sage-devel" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to sage-devel+unsubscr...@googlegroups.com. > > To post to this group, send email to sage-devel@googlegroups.com. > > Visit this group at https://groups.google.com/group/sage-devel. > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: refresh the banner
We already have notebook(). We should change that so that the default notebook to launch is the jupyter notebook. On Wed, Oct 31, 2018 at 1:50 PM Samuel Lelievre wrote: > > > > Le mardi 30 octobre 2018 08:06:15 UTC+1, Frédéric Chapoton a écrit : >> >> Because we do not have a clean command inside sage to launch the jupyter >> noteboook. >> >> For the moment, we should just try to avoid new people start using the >> deprecated sagenb. > > > We could tell people to type > > sage: !sage -n jupyter > > or say a word on how to launch the Jupyter notebook server > in the help message that users get by typing > > sage: help() > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: refresh the banner
Le mardi 30 octobre 2018 08:06:15 UTC+1, Frédéric Chapoton a écrit : > > Because we do not have a clean command inside sage to launch the jupyter > noteboook. > > For the moment, we should just try to avoid new people start using the > deprecated sagenb. > >> We could tell people to type sage: !sage -n jupyter or say a word on how to launch the Jupyter notebook server in the help message that users get by typing sage: help() -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: refresh the banner
Because we do not have a clean command inside sage to launch the jupyter noteboook. For the moment, we should just try to avoid new people start using the deprecated sagenb. F Le lundi 29 octobre 2018 23:51:22 UTC+1, Simon King a écrit : > > Hi Frédéric, > > On 2018-10-29, Frédéric Chapoton > > wrote: > > (1) there is no longer any line about "notebook()" (because the legacy > > sagenb is deprecated now) > > Why not mention the jupyter notebook instead? > > > (2) the python version which is used is displayed (because we will try > to > > switch to python3 later) > > Good idea! > > Best regards, > Simon > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: refresh the banner
Hi Frédéric, On 2018-10-29, Frédéric Chapoton wrote: > (1) there is no longer any line about "notebook()" (because the legacy > sagenb is deprecated now) Why not mention the jupyter notebook instead? > (2) the python version which is used is displayed (because we will try to > switch to python3 later) Good idea! Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: refresh the banner
+1 for the new banner! Eric. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.