From jakevdp at cs.washington.edu Sat Jun 1 11:13:27 2013 From: jakevdp at cs.washington.edu (Jacob Vanderplas) Date: Sat, 1 Jun 2013 08:13:27 -0700 Subject: [IPython-dev] is markdown broken in latest ipython? In-Reply-To: <352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com> References: <518F3726.8010402@gmail.com> <5190EBD3.9040808@gmail.com> <519106EE.9010404@gmail.com> <352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com> Message-ID: On Mon, May 13, 2013 at 11:30 AM, Min RK wrote: > > Do note that, as described in that issue, script tags in markdown cells > will be completely disabled by IPython 1.0 (as opposed to master, where > they are merely broken). > Came into this a bit late, sorry. Can someone briefly clarify what's going to be permitted with regard to javascript in IPython 1.0? >From poking around on the mailing list & roadmap, it's clear that javascript within markdown cells is going to be deprecated, with replacement functionality deferred to the 2.0 release in December. But what about javascript within the IPython.display.Javascript() or IPython.display.HTML() functions? If security is the driving concern, it seems that you could be just as malicious using these as you could using markdown cells. I guess my main question is: should I continue spending time on things like Javascript animations [1], or will these become obsolete in July? Jake [1] http://jakevdp.github.io/blog/2013/05/19/a-javascript-viewer-for-matplotlib-animations/ > > > Le lundi 13 mai 2013, Zolt?n V?r?s a ?crit : > >> Hi Min, >> >> Thanks for the info! >> >> Cheers, >> Zolt?n >> >> On 13/05/13 17:28, MinRK wrote: >> >> Bug is already open, >> and fix is already in marked. Just waiting for a release before we update >> the components. >> >> >> _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Sat Jun 1 12:59:42 2013 From: benjaminrk at gmail.com (Min RK) Date: Sat, 1 Jun 2013 09:59:42 -0700 Subject: [IPython-dev] is markdown broken in latest ipython? In-Reply-To: References: <518F3726.8010402@gmail.com> <5190EBD3.9040808@gmail.com> <519106EE.9010404@gmail.com> <352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com> Message-ID: <8DD8AC0C-D405-4F94-A76B-CF4EED6BD6E7@gmail.com> The current plan is to continue to allow arbitrary execution, as long as it is the result of explicit user action. That means scrubbing JavaScript from markdown cells, and also preventing it from running on page load, but no change in what is allowed in displayed JavaScript or HTML. -MinRK On Jun 1, 2013, at 8:13, Jacob Vanderplas wrote: > On Mon, May 13, 2013 at 11:30 AM, Min RK wrote: >> >> Do note that, as described in that issue, script tags in markdown cells will be completely disabled by IPython 1.0 (as opposed to master, where they are merely broken). > > Came into this a bit late, sorry. Can someone briefly clarify what's going to be permitted with regard to javascript in IPython 1.0? > > From poking around on the mailing list & roadmap, it's clear that javascript within markdown cells is going to be deprecated, with replacement functionality deferred to the 2.0 release in December. But what about javascript within the IPython.display.Javascript() or IPython.display.HTML() functions? If security is the driving concern, it seems that you could be just as malicious using these as you could using markdown cells. > > I guess my main question is: should I continue spending time on things like Javascript animations [1], or will these become obsolete in July? > Jake > > [1] http://jakevdp.github.io/blog/2013/05/19/a-javascript-viewer-for-matplotlib-animations/ > >> >>> >>> Le lundi 13 mai 2013, Zolt?n V?r?s a ?crit : >>>> Hi Min, >>>> >>>> Thanks for the info! >>>> >>>> Cheers, >>>> Zolt?n >>>> >>>> On 13/05/13 17:28, MinRK wrote: >>>>> Bug is already open, and fix is already in marked. Just waiting for a release before we update the components. >> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From jakevdp at cs.washington.edu Sat Jun 1 13:40:50 2013 From: jakevdp at cs.washington.edu (Jacob Vanderplas) Date: Sat, 1 Jun 2013 10:40:50 -0700 Subject: [IPython-dev] is markdown broken in latest ipython? In-Reply-To: <8DD8AC0C-D405-4F94-A76B-CF4EED6BD6E7@gmail.com> References: <518F3726.8010402@gmail.com> <5190EBD3.9040808@gmail.com> <519106EE.9010404@gmail.com> <352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com> <8DD8AC0C-D405-4F94-A76B-CF4EED6BD6E7@gmail.com> Message-ID: On Sat, Jun 1, 2013 at 9:59 AM, Min RK wrote: > The current plan is to continue to allow arbitrary execution, as long as > it is the result of explicit user action. That means scrubbing JavaScript > from markdown cells, and also preventing it from running on page load, but > no change in what is allowed in displayed JavaScript or HTML. > So, if I understand this correctly, this means that Javascript-enabled features will *not* be viewable on nbviewer or other static notebook views? Jake > > > -MinRK > > On Jun 1, 2013, at 8:13, Jacob Vanderplas > wrote: > > On Mon, May 13, 2013 at 11:30 AM, Min RK wrote: > >> >> Do note that, as described in that issue, script tags in markdown cells >> will be completely disabled by IPython 1.0 (as opposed to master, where >> they are merely broken). >> > > Came into this a bit late, sorry. Can someone briefly clarify what's > going to be permitted with regard to javascript in IPython 1.0? > > From poking around on the mailing list & roadmap, it's clear that > javascript within markdown cells is going to be deprecated, with > replacement functionality deferred to the 2.0 release in December. But > what about javascript within the IPython.display.Javascript() or > IPython.display.HTML() functions? If security is the driving concern, it > seems that you could be just as malicious using these as you could using > markdown cells. > > I guess my main question is: should I continue spending time on things > like Javascript animations [1], or will these become obsolete in July? > Jake > > [1] > http://jakevdp.github.io/blog/2013/05/19/a-javascript-viewer-for-matplotlib-animations/ > > >> >> >> Le lundi 13 mai 2013, Zolt?n V?r?s a ?crit : >> >>> Hi Min, >>> >>> Thanks for the info! >>> >>> Cheers, >>> Zolt?n >>> >>> On 13/05/13 17:28, MinRK wrote: >>> >>> Bug is already open, >>> and fix is already in marked. Just waiting for a release before we update >>> the components. >>> >>> >>> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Sat Jun 1 13:44:53 2013 From: benjaminrk at gmail.com (MinRK) Date: Sat, 1 Jun 2013 10:44:53 -0700 Subject: [IPython-dev] is markdown broken in latest ipython? In-Reply-To: References: <518F3726.8010402@gmail.com> <5190EBD3.9040808@gmail.com> <519106EE.9010404@gmail.com> <352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com> <8DD8AC0C-D405-4F94-A76B-CF4EED6BD6E7@gmail.com> Message-ID: On Sat, Jun 1, 2013 at 10:40 AM, Jacob Vanderplas wrote: > On Sat, Jun 1, 2013 at 9:59 AM, Min RK wrote: > >> The current plan is to continue to allow arbitrary execution, as long as >> it is the result of explicit user action. That means scrubbing JavaScript >> from markdown cells, and also preventing it from running on page load, but >> no change in what is allowed in displayed JavaScript or HTML. >> > > So, if I understand this correctly, this means that Javascript-enabled > features will *not* be viewable on nbviewer or other static notebook views? > Static render (i.e. nbconvert) is actually a slightly separate question - since nbviewer does not have execution permissions, there is little risk. If it ever has authentication info, such as GitHub auth, then there can be an issue again. Note that we are not talking about actually stripping the content from the *source*, only preventing its display. That means that the unsafe content still resides in the document, and nbconvert templates can choose whether to sanitize or not at export time. Currently, it does nothing. -MinRK > Jake > > > >> >> >> -MinRK >> >> On Jun 1, 2013, at 8:13, Jacob Vanderplas >> wrote: >> >> On Mon, May 13, 2013 at 11:30 AM, Min RK wrote: >> >>> >>> Do note that, as described in that issue, script tags in markdown cells >>> will be completely disabled by IPython 1.0 (as opposed to master, where >>> they are merely broken). >>> >> >> Came into this a bit late, sorry. Can someone briefly clarify what's >> going to be permitted with regard to javascript in IPython 1.0? >> >> From poking around on the mailing list & roadmap, it's clear that >> javascript within markdown cells is going to be deprecated, with >> replacement functionality deferred to the 2.0 release in December. But >> what about javascript within the IPython.display.Javascript() or >> IPython.display.HTML() functions? If security is the driving concern, it >> seems that you could be just as malicious using these as you could using >> markdown cells. >> >> I guess my main question is: should I continue spending time on things >> like Javascript animations [1], or will these become obsolete in July? >> Jake >> >> [1] >> http://jakevdp.github.io/blog/2013/05/19/a-javascript-viewer-for-matplotlib-animations/ >> >> >>> >>> >>> Le lundi 13 mai 2013, Zolt?n V?r?s a ?crit : >>> >>>> Hi Min, >>>> >>>> Thanks for the info! >>>> >>>> Cheers, >>>> Zolt?n >>>> >>>> On 13/05/13 17:28, MinRK wrote: >>>> >>>> Bug is already open, >>>> and fix is already in marked. Just waiting for a release before we update >>>> the components. >>>> >>>> >>>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Sat Jun 1 13:45:27 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Sat, 1 Jun 2013 19:45:27 +0200 Subject: [IPython-dev] is markdown broken in latest ipython? In-Reply-To: References: <518F3726.8010402@gmail.com> <5190EBD3.9040808@gmail.com> <519106EE.9010404@gmail.com> <352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com> <8DD8AC0C-D405-4F94-A76B-CF4EED6BD6E7@gmail.com> Message-ID: Le 1 juin 2013 ? 19:40, Jacob Vanderplas a ?crit : > So, if I understand this correctly, this means that Javascript-enabled features will *not* be viewable on nbviewer or other static notebook views? Depends on how you code them, but for now, we have no reason of disabling them on nbviewer. There are no security problem with JS being able to access kernel on nbviewer... That being say, I'm not sure display(Javascript()) are executed on nbviewer. -- Matthias > Jake > > > > > -MinRK > > On Jun 1, 2013, at 8:13, Jacob Vanderplas wrote: > >> On Mon, May 13, 2013 at 11:30 AM, Min RK wrote: >> >> Do note that, as described in that issue, script tags in markdown cells will be completely disabled by IPython 1.0 (as opposed to master, where they are merely broken). >> >> Came into this a bit late, sorry. Can someone briefly clarify what's going to be permitted with regard to javascript in IPython 1.0? >> >> From poking around on the mailing list & roadmap, it's clear that javascript within markdown cells is going to be deprecated, with replacement functionality deferred to the 2.0 release in December. But what about javascript within the IPython.display.Javascript() or IPython.display.HTML() functions? If security is the driving concern, it seems that you could be just as malicious using these as you could using markdown cells. >> >> I guess my main question is: should I continue spending time on things like Javascript animations [1], or will these become obsolete in July? >> Jake >> >> [1] http://jakevdp.github.io/blog/2013/05/19/a-javascript-viewer-for-matplotlib-animations/ >> >> >>> >>> Le lundi 13 mai 2013, Zolt?n V?r?s a ?crit : >>> Hi Min, >>> >>> Thanks for the info! >>> >>> Cheers, >>> Zolt?n >>> >>> On 13/05/13 17:28, MinRK wrote: >>>> Bug is already open, and fix is already in marked. Just waiting for a release before we update the components. >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From roberto.colistete at gmail.com Sat Jun 1 17:16:36 2013 From: roberto.colistete at gmail.com (Roberto Colistete Jr.) Date: Sat, 01 Jun 2013 18:16:36 -0300 Subject: [IPython-dev] IPython (Qt console & Notebook) 0.13.2 on Mer / Nemo / Plasma Active / Sailfish OS In-Reply-To: <510EC481.5060604@gmail.com> References: <510EC481.5060604@gmail.com> Message-ID: <51AA64B4.4090707@gmail.com> Now it is time of Mer / Nemo / Plasma Active / Sailfish OS mobile OS to have IPython. IPython 0.13.2 is released (in Mer community repository) with full terminal, Qt console and Notebook interfaces. See this post in topic "Python (modules) on Mer/Nemo " of Talk Maemo.org forum, it also includes screenshots of the interfaces : http://talk.maemo.org/showpost.php?p=1348541&postcount=15 But Nemo Mobile and Sailfish OS have until now only the Helium web navigator which doesn't work with IPython Notebook : the Dashboard is shown but the user can't select a notebook or create a new notebook. Maybe a future and more complete web navigator will make possible to use IPython Notebook on Nemo / Saifish OS. I've updated the "IPython Wiki / Supplementary installation information / Mobile" section (https://github.com/ipython/ipython/wiki/Install:-Mobile) to include Mer / Nemo / Plasma Active / Sailfish OS and Ubuntu Touch as mobile OS which run IPython. From this wiki we see that it is very easy to have IPython (even with Qt console and Notebook interfaces in some cases) on real Linux mobile OS, while on Android it takes a lot of work from some specific projets to have a working IPython and all of its dependencies. One screenshot of IPython 0.13.2 showing SymPy 0.7.2 on Sailfish OS emulator (from Sailfish SDK) : http://www.robertocolistete.net/ipython/ipython_sympy_SailfishOS.png -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ipython_sympy_SailfishOS.png Type: image/png Size: 71340 bytes Desc: not available URL: From asmeurer at gmail.com Sat Jun 1 20:45:27 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Sat, 1 Jun 2013 19:45:27 -0500 Subject: [IPython-dev] IPython (Qt console & Notebook) 0.13.2 on Mer / Nemo / Plasma Active / Sailfish OS In-Reply-To: <51AA64B4.4090707@gmail.com> References: <510EC481.5060604@gmail.com> <51AA64B4.4090707@gmail.com> Message-ID: Since you showed SymPy, I'm curious, how good is the unicode support? What happens if you do from sympy import * init_priniting() Integral(sqrt(x), x) Aaron Meurer On Sat, Jun 1, 2013 at 4:16 PM, Roberto Colistete Jr. < roberto.colistete at gmail.com> wrote: > Now it is time of Mer / Nemo / Plasma Active / Sailfish OS mobile OS to > have IPython. > > IPython 0.13.2 is released (in Mer community repository) with full > terminal, Qt console and Notebook interfaces. See this post in topic > "Python (modules) on Mer/Nemo " of Talk Maemo.org forum, it also includes > screenshots of the interfaces : > http://talk.maemo.org/showpost.php?p=1348541&postcount=15 > But Nemo Mobile and Sailfish OS have until now only the Helium web > navigator which doesn't work with IPython Notebook : the Dashboard is shown > but the user can't select a notebook or create a new notebook. Maybe a > future and more complete web navigator will make possible to use IPython > Notebook on Nemo / Saifish OS. > > I've updated the "IPython Wiki / Supplementary installation information / > Mobile" section (https://github.com/ipython/ipython/wiki/Install:-Mobile) > to include Mer / Nemo / Plasma Active / Sailfish OS and Ubuntu Touch as > mobile OS which run IPython. From this wiki we see that it is very easy to > have IPython (even with Qt console and Notebook interfaces in some cases) > on real Linux mobile OS, while on Android it takes a lot of work from some > specific projets to have a working IPython and all of its dependencies. > > One screenshot of IPython 0.13.2 showing SymPy 0.7.2 on Sailfish OS > emulator (from Sailfish SDK) : > [image: > http://www.robertocolistete.net/ipython/ipython_sympy_SailfishOS.png] > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ipython_sympy_SailfishOS.png Type: image/png Size: 71340 bytes Desc: not available URL: From ben.root at ou.edu Sun Jun 2 18:29:24 2013 From: ben.root at ou.edu (Benjamin Root) Date: Sun, 2 Jun 2013 18:29:24 -0400 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: I am putting together a tutorial for scipy2013. I made an interactive SVG file that displays the parts of an mpl plot, and it works great when loaded up directly in a browser. However, if I display it as an embedded image, it acts like a static image. I have tried embedding via markdown, HTML, and IPython.display.SVG to no avail. Is something blocking the events, or maybe the browser isn't seeing the XML data? Thoughts? Ben Root -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.root at ou.edu Sun Jun 2 18:43:45 2013 From: ben.root at ou.edu (Benjamin Root) Date: Sun, 2 Jun 2013 18:43:45 -0400 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: Digging further, I see that the xml data is making it to the browser, but the javascript embedded within the svg file is completely stripped out. Is that on purpose? Is there a way I can override that behavior? Cheers! Ben Root -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Jun 3 02:58:59 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Mon, 3 Jun 2013 08:58:59 +0200 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: Hi ben, Le 3 juin 2013 ? 00:43, Benjamin Root a ?crit : > Digging further, I see that the xml data is making it to the browser, but the javascript embedded within the svg file is completely stripped out. Is that on purpose? Is there a way I can override that behavior? No we don't strip js out of XML by intent (yet). Have you try to use HTML that itself contain a script tag, and an svg tag with an ID so that you can refer to it ? -- Matthias From tarun.gaba7 at gmail.com Mon Jun 3 06:36:01 2013 From: tarun.gaba7 at gmail.com (TARUN GABA) Date: Mon, 3 Jun 2013 16:06:01 +0530 Subject: [IPython-dev] Regarding Javascript rendering inside IPython notebooks Message-ID: HI, As the part of a project, I require to embed a button inside a Javascript display. I have appended the button using Jquery ($()), but it is unable to produce the onClick target, which is a function which is defined inside the same Javascript data, which is being rendered. Code Snippet: container.show(); var $mydiv = $("
").attr("id", "div"); $mydiv.empty(); $mydiv.attr("style","background-color:rgb(104,104,104)"); $mydiv.append(" element.append($mydiv); function reset(){ .... }; Anything I might be doing incorrectly? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Jun 3 08:23:02 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Mon, 3 Jun 2013 14:23:02 +0200 Subject: [IPython-dev] Regarding Javascript rendering inside IPython notebooks In-Reply-To: References: Message-ID: <433B3485-0C18-48D3-861F-D994C8D9F74F@gmail.com> Hi, Le 3 juin 2013 ? 12:36, TARUN GABA a ?crit : > HI, > > As the part of a project, I require to embed a button inside a Javascript display. > I have appended the button using Jquery ($()), but it is unable to produce the onClick target, which is a function which is defined inside the same Javascript data, which is being rendered. > $mydiv.append(" > function reset(){ .... > }; Not totally sure but > onClick=\"reset();\" is refering to a global reset and reset might have a smaller scope. Try var reset = function(){?} var $mybutton = $('
') .attr('style','?') .click(reset) $mydiv.append($mybutton) -- Matthias From ben.root at ou.edu Mon Jun 3 09:31:09 2013 From: ben.root at ou.edu (Benjamin Root) Date: Mon, 3 Jun 2013 09:31:09 -0400 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: On Mon, Jun 3, 2013 at 2:58 AM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > Hi ben, > Le 3 juin 2013 ? 00:43, Benjamin Root a ?crit : > > > Digging further, I see that the xml data is making it to the browser, > but the javascript embedded within the svg file is completely stripped out. > Is that on purpose? Is there a way I can override that behavior? > > No we don't strip js out of XML by intent (yet). Have you try to use HTML > that itself contain a script tag, and an svg tag with an ID so that you > can refer to it ? > Well, something is stripping it out, between the call to IPython.display.SVG() and what Firefox tells me it sees. Since I need this to work for the tutorial, I am just going to have to assume that this is a bug somewhere and go for the embedded HTML approach that you suggest, since most of those at the tutorial would have this bug. Cheers! Ben Root -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Jun 3 10:58:44 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Mon, 3 Jun 2013 16:58:44 +0200 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: Le 3 juin 2013 ? 15:31, Benjamin Root a ?crit : > > On Mon, Jun 3, 2013 at 2:58 AM, Matthias BUSSONNIER wrote: > Hi ben, > Le 3 juin 2013 ? 00:43, Benjamin Root a ?crit : > > > Digging further, I see that the xml data is making it to the browser, but the javascript embedded within the svg file is completely stripped out. Is that on purpose? Is there a way I can override that behavior? > > No we don't strip js out of XML by intent (yet). Have you try to use HTML that itself contain a script tag, and an svg tag with an ID so that you can refer to it ? > > Well, something is stripping it out, between the call to IPython.display.SVG() and what Firefox tells me it sees. Since I need this to work for the tutorial, I am just going to have to assume that this is a bug somewhere and go for the embedded HTML approach that you suggest, since most of those at the tutorial would have this bug. Could it be linked to https://github.com/ipython/ipython/issues/1866 ? Can you share an ipynb so that I can take a look ? -- Matthias > > Cheers! > Ben Root > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Mon Jun 3 20:45:47 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 3 Jun 2013 17:45:47 -0700 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? Message-ID: Hi folks, I've already given a bunch of talks with the notebook, but always using just the defaults and at most zooming in for readability. Does any of you have a little snippet of CSS you like that styles a notebook a little better for a presentation (fonts, sizes, maybe even color, etc). If you have a favorte, send it my way! Thanks in advance! f -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From asmeurer at gmail.com Mon Jun 3 20:51:35 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Mon, 3 Jun 2013 19:51:35 -0500 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: On Mon, Jun 3, 2013 at 7:45 PM, Fernando Perez wrote: > Hi folks, > > I've already given a bunch of talks with the notebook, but always > using just the defaults and at most zooming in for readability. > > Does any of you have a little snippet of CSS you like that styles a > notebook a little better for a presentation (fonts, sizes, maybe even > color, etc). If you have a favorte, send it my way! And by my way, I hope you mean to this list. I too would like to see such things, since we plan to use IPython notebooks for at least part of our SciPy SymPy tutorial. Aaron Meurer > > Thanks in advance! > > > f > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From fperez.net at gmail.com Mon Jun 3 20:53:21 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 3 Jun 2013 17:53:21 -0700 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: Yes, to the list! I'm sure I am not the only CSS/design-challenged one who'd like to benefit from the talents of others. f On Mon, Jun 3, 2013 at 5:51 PM, Aaron Meurer wrote: > On Mon, Jun 3, 2013 at 7:45 PM, Fernando Perez wrote: >> Hi folks, >> >> I've already given a bunch of talks with the notebook, but always >> using just the defaults and at most zooming in for readability. >> >> Does any of you have a little snippet of CSS you like that styles a >> notebook a little better for a presentation (fonts, sizes, maybe even >> color, etc). If you have a favorte, send it my way! > > And by my way, I hope you mean to this list. I too would like to see > such things, since we plan to use IPython notebooks for at least part > of our SciPy SymPy tutorial. > > Aaron Meurer > >> >> Thanks in advance! >> >> >> f >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From damianavila at gmail.com Mon Jun 3 21:14:39 2013 From: damianavila at gmail.com (=?ISO-8859-1?Q?Dami=E1n_Avila?=) Date: Mon, 03 Jun 2013 22:14:39 -0300 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: <51AD3F7F.3090907@gmail.com> El 03/06/13 21:53, Fernando Perez escribi?: > Yes, to the list! I'm sure I am not the only CSS/design-challenged > one who'd like to benefit from the talents of others. > > f > > On Mon, Jun 3, 2013 at 5:51 PM, Aaron Meurer wrote: >> On Mon, Jun 3, 2013 at 7:45 PM, Fernando Perez wrote: >>> Hi folks, >>> >>> I've already given a bunch of talks with the notebook, but always >>> using just the defaults and at most zooming in for readability. >>> >>> Does any of you have a little snippet of CSS you like that styles a >>> notebook a little better for a presentation (fonts, sizes, maybe even >>> color, etc). If you have a favorte, send it my way! >> And by my way, I hope you mean to this list. I too would like to see >> such things, since we plan to use IPython notebooks for at least part >> of our SciPy SymPy tutorial. >> >> Aaron Meurer >> >>> Thanks in advance! >>> >>> >>> f >>> >>> -- >>> Fernando Perez (@fperez_org; http://fperez.org) >>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>> fernando.perez-at-berkeley: contact me here for any direct mail >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > A little and a simple modification but I like the final result: http://goo.gl/UDHHH Just use: Maybe with a different background color you can get a better one, but I like the white ;-) But if you don't need interactivity, reveal option in nbconvert has several nice themes available, ie. http://www.slideviper.oquanta.info/tutorial/slideshow_tutorial_slides.html?theme=sky#/ Cheers. Dami?n. -------------- next part -------------- An HTML attachment was scrubbed... URL: From klonuo at gmail.com Mon Jun 3 21:23:22 2013 From: klonuo at gmail.com (klo uo) Date: Tue, 4 Jun 2013 03:23:22 +0200 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: Fernando, I'm not sure if this would help, but a year ago I posted about tweaking Notebook css: http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and it's even included in wiki: https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook Don't know if it works with current theme, and if it does you can use Theme Roller editor to customize the style. However, I know you guys are busy and Notebook is complex, but perhaps you could make default IPython Notebook CSS more accessible. As it is now (if it is as I saw it last year) don't mind me saying that it's just terrible place hardly anyone would like to tweak On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez wrote: > Hi folks, > > I've already given a bunch of talks with the notebook, but always > using just the defaults and at most zooming in for readability. > > Does any of you have a little snippet of CSS you like that styles a > notebook a little better for a presentation (fonts, sizes, maybe even > color, etc). If you have a favorte, send it my way! > > Thanks in advance! > > > f > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From tarun.gaba7 at gmail.com Tue Jun 4 03:36:24 2013 From: tarun.gaba7 at gmail.com (TARUN GABA) Date: Tue, 4 Jun 2013 13:06:24 +0530 Subject: [IPython-dev] Regarding Javascript rendering inside IPython notebooks Message-ID: HI, I tried this .... container.show(); var $mydiv = $("
").attr("id", "#container"); var test_var=10; var reset = function(){ test_var=12; console.log("inside the function");} $mydiv.attr("style","background-color:rgb(104,104,104) margin-top:30px;margin-left:40px;"); $mydiv.append("

variable= "+test_var); var $mybutton = $(' > element.append($mydiv); > function reset(){ .... > > }; > > > Anything I might be doing incorrectly? > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/ipython-dev/attachments/20130603/4207ff6a/attachment-0001.html > > ------------------------------ > > Message: 5 > Date: Mon, 3 Jun 2013 14:23:02 +0200 > From: Matthias BUSSONNIER > Subject: Re: [IPython-dev] Regarding Javascript rendering inside > IPython notebooks > To: IPython developers list > Message-ID: <433B3485-0C18-48D3-861F-D994C8D9F74F at gmail.com> > Content-Type: text/plain; charset=windows-1252 > > Hi, > > Le 3 juin 2013 ? 12:36, TARUN GABA a ?crit : > > > HI, > > > > As the part of a project, I require to embed a button inside a > Javascript display. > > I have appended the button using Jquery ($()), but it is unable to > produce the onClick target, which is a function which is defined inside the > same Javascript data, which is being rendered. > > > $mydiv.append(" > > > > function reset(){ .... > > }; > > > Not totally sure but > > onClick=\"reset();\" > is refering to a global reset and > reset might have a smaller scope. > > > Try > > var reset = function(){?} > > var $mybutton = $('

') > .attr('style','?') > .click(reset) > $mydiv.append($mybutton) > > -- > Matthias > > > > > ------------------------------ > > Message: 6 > Date: Mon, 3 Jun 2013 09:31:09 -0400 > From: Benjamin Root > Subject: Re: [IPython-dev] Interactive SVG is not interactive in a > notebook > To: IPython developers list > Message-ID: > jAbO0BZLouNZFXv62PbdrGEEioQ at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On Mon, Jun 3, 2013 at 2:58 AM, Matthias BUSSONNIER < > bussonniermatthias at gmail.com> wrote: > > > Hi ben, > > Le 3 juin 2013 ? 00:43, Benjamin Root a ?crit : > > > > > Digging further, I see that the xml data is making it to the browser, > > but the javascript embedded within the svg file is completely stripped > out. > > Is that on purpose? Is there a way I can override that behavior? > > > > No we don't strip js out of XML by intent (yet). Have you try to use HTML > > that itself contain a script tag, and an svg tag with an ID so that you > > can refer to it ? > > > > Well, something is stripping it out, between the call to > IPython.display.SVG() and what Firefox tells me it sees. Since I need this > to work for the tutorial, I am just going to have to assume that this is a > bug somewhere and go for the embedded HTML approach that you suggest, since > most of those at the tutorial would have this bug. > > Cheers! > Ben Root > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/ipython-dev/attachments/20130603/54b0f069/attachment-0001.html > > ------------------------------ > > Message: 7 > Date: Mon, 3 Jun 2013 16:58:44 +0200 > From: Matthias BUSSONNIER > Subject: Re: [IPython-dev] Interactive SVG is not interactive in a > notebook > To: IPython developers list > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > > Le 3 juin 2013 ? 15:31, Benjamin Root a ?crit : > > > > > On Mon, Jun 3, 2013 at 2:58 AM, Matthias BUSSONNIER < > bussonniermatthias at gmail.com> wrote: > > Hi ben, > > Le 3 juin 2013 ? 00:43, Benjamin Root a ?crit : > > > > > Digging further, I see that the xml data is making it to the browser, > but the javascript embedded within the svg file is completely stripped out. > Is that on purpose? Is there a way I can override that behavior? > > > > No we don't strip js out of XML by intent (yet). Have you try to use > HTML that itself contain a script tag, and an svg tag with an ID so that > you can refer to it ? > > > > Well, something is stripping it out, between the call to > IPython.display.SVG() and what Firefox tells me it sees. Since I need this > to work for the tutorial, I am just going to have to assume that this is a > bug somewhere and go for the embedded HTML approach that you suggest, since > most of those at the tutorial would have this bug. > > Could it be linked to > https://github.com/ipython/ipython/issues/1866 ? > > Can you share an ipynb so that I can take a look ? > -- > Matthias > > > > > > Cheers! > > Ben Root > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/ipython-dev/attachments/20130603/3c8ffd44/attachment-0001.html > > ------------------------------ > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > End of IPython-dev Digest, Vol 113, Issue 5 > ******************************************* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Jun 4 03:54:51 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 4 Jun 2013 09:54:51 +0200 Subject: [IPython-dev] Regarding Javascript rendering inside IPython notebooks In-Reply-To: References: Message-ID: <8B3C76C4-61A4-4AF7-8E7A-69323E0868D9@gmail.com> Hi, Use a closure. ie Keep a reference to $mydiv inside the defined reset, or target by #id ( $('#id') ) . By modifying what you wrote : > ... > var $mydiv = $("
").attr("id", "#container"); > var test_var=10; > var reset = function(){ test_var=12; $mydiv.text(test_var)} > ... Actually ou probably want something more like > // first construct the object you want to modify, > var $myp = $("

").whatever() > > // use a closure to keep reference. > var reset = function(){test_var=12; $myp.text(test_var)} > // the rest > var $mydiv = $("

").appen("$p"); append $p to $mydiv , etc ...etc Keep in mind that those are more JS-centric than Python question, and I, personally Am far from being a JS expert. You will have probably better answer on JS-dev forum if you are looking for JS best practice or the exact reason/description of what are clojure in js and what are the scope of variables. -- Matthias From fperez.net at gmail.com Tue Jun 4 04:22:19 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 4 Jun 2013 01:22:19 -0700 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: Thanks, that got me on track. For the record, this is what I used: I actually think we should in general change some of the vertical spacing of our headings even for the defaults, as it's in general too big. But these changes gave me reasonable layout at 1024x768 projector-ese for headings, text and bullet lists, as well as good font sizes for code. Cheers, f On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: > Fernando, I'm not sure if this would help, but a year ago I posted > about tweaking Notebook css: > http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and > it's even included in wiki: > https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > > Don't know if it works with current theme, and if it does you can use > Theme Roller editor to customize the style. > > However, I know you guys are busy and Notebook is complex, but perhaps > you could make default IPython Notebook CSS more accessible. As it is > now (if it is as I saw it last year) don't mind me saying that it's > just terrible place hardly anyone would like to tweak > > On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez wrote: >> Hi folks, >> >> I've already given a bunch of talks with the notebook, but always >> using just the defaults and at most zooming in for readability. >> >> Does any of you have a little snippet of CSS you like that styles a >> notebook a little better for a presentation (fonts, sizes, maybe even >> color, etc). If you have a favorte, send it my way! >> >> Thanks in advance! >> >> >> f >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From bussonniermatthias at gmail.com Tue Jun 4 05:04:35 2013 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 4 Jun 2013 11:04:35 +0200 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: Short from my phone, FYI, you can have a style that apply only when in presentation mode with my js extension. -- Matthias Le mardi 4 juin 2013, Fernando Perez a ?crit : > Thanks, that got me on track. > > For the record, this is what I used: > > > > > > > > > > > > > > > > I actually think we should in general change some of the vertical > spacing of our headings even for the defaults, as it's in general too > big. But these changes gave me reasonable layout at 1024x768 > projector-ese for headings, text and bullet lists, as well as good > font sizes for code. > > Cheers, > > f > > On Mon, Jun 3, 2013 at 6:23 PM, klo uo > > wrote: > > Fernando, I'm not sure if this would help, but a year ago I posted > > about tweaking Notebook css: > > http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and > > it's even included in wiki: > > https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > > > > Don't know if it works with current theme, and if it does you can use > > Theme Roller editor to customize the style. > > > > However, I know you guys are busy and Notebook is complex, but perhaps > > you could make default IPython Notebook CSS more accessible. As it is > > now (if it is as I saw it last year) don't mind me saying that it's > > just terrible place hardly anyone would like to tweak > > > > On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez > > wrote: > >> Hi folks, > >> > >> I've already given a bunch of talks with the notebook, but always > >> using just the defaults and at most zooming in for readability. > >> > >> Does any of you have a little snippet of CSS you like that styles a > >> notebook a little better for a presentation (fonts, sizes, maybe even > >> color, etc). If you have a favorte, send it my way! > >> > >> Thanks in advance! > >> > >> > >> f > >> > >> -- > >> Fernando Perez (@fperez_org; http://fperez.org) > >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > >> fernando.perez-at-berkeley: contact me here for any direct mail > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Tue Jun 4 09:31:26 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Tue, 4 Jun 2013 09:31:26 -0400 Subject: [IPython-dev] nbviewer, slideviewer and markdown Message-ID: hi all, neither nbviewer or slideviewer interprets markdown of the following syntax properly. it works fine in the notebook though. ```python >>> import numpy as np >>> import scipy.io as sio ``` or ``` >>> import numpy as np >>> import scipy.io as sio ``` also would it be easily possible to tweak these viewers to put a scrollbox with click expand/collapse for long output, much like the notebook actually does? cheers, satra -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Jun 4 10:00:44 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 4 Jun 2013 16:00:44 +0200 Subject: [IPython-dev] nbviewer, slideviewer and markdown In-Reply-To: References: Message-ID: <1DBC609B-C00A-46A6-9FFF-707092086DB4@gmail.com> Hi, Le 4 juin 2013 ? 15:31, Satrajit Ghosh a ?crit : > hi all, > > neither nbviewer or slideviewer interprets markdown of the following syntax properly. it works fine in the notebook though. > > ```python > >>> import numpy as np > >>> import scipy.io as sio > ``` > > or > > ``` > >>> import numpy as np > >>> import scipy.io as sio > ``` This is not standard markdown, it is github flavored markdown. Try indenting 4 spaces. ( Yes I know it world on notebook ) > also would it be easily possible to tweak these viewers to put a scrollbox with click expand/collapse for long output, much like the notebook actually does? Maybe, depends on how fast nbconvert move forward? -- Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Tue Jun 4 10:15:50 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Tue, 4 Jun 2013 10:15:50 -0400 Subject: [IPython-dev] nbviewer, slideviewer and markdown In-Reply-To: <1DBC609B-C00A-46A6-9FFF-707092086DB4@gmail.com> References: <1DBC609B-C00A-46A6-9FFF-707092086DB4@gmail.com> Message-ID: thanks matthias, indeed the 4 spaces does the job. cheers, satra On Tue, Jun 4, 2013 at 10:00 AM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > Hi, > > Le 4 juin 2013 ? 15:31, Satrajit Ghosh a ?crit : > > hi all, > > neither nbviewer or slideviewer interprets markdown of the following > syntax properly. it works fine in the notebook though. > > ```python > >>> import numpy as np > >>> import scipy.io as sio > ``` > > or > > ``` > >>> import numpy as np > >>> import scipy.io as sio > ``` > > > This is not standard markdown, it is github flavored markdown. > Try indenting 4 spaces. ( Yes I know it world on notebook ) > > also would it be easily possible to tweak these viewers to put a scrollbox > with click expand/collapse for long output, much like the notebook actually > does? > > > Maybe, depends on how fast nbconvert move forward? > > -- > Matthias > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Jun 4 10:41:06 2013 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 4 Jun 2013 15:41:06 +0100 Subject: [IPython-dev] nbviewer, slideviewer and markdown In-Reply-To: <1DBC609B-C00A-46A6-9FFF-707092086DB4@gmail.com> References: <1DBC609B-C00A-46A6-9FFF-707092086DB4@gmail.com> Message-ID: On 4 June 2013 15:00, Matthias BUSSONNIER wrote: > This is not standard markdown, it is github flavored markdown. > Try indenting 4 spaces. ( Yes I know it world on notebook ) > It's a valid point, though - we should make sure that nbviewer can handle the same flavour of markdown as the notebook interface. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Jun 4 10:49:18 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 4 Jun 2013 16:49:18 +0200 Subject: [IPython-dev] nbviewer, slideviewer and markdown In-Reply-To: References: <1DBC609B-C00A-46A6-9FFF-707092086DB4@gmail.com> Message-ID: <2D473650-CA3F-4BCE-8B89-0E298EAC1997@gmail.com> Le 4 juin 2013 ? 16:41, Thomas Kluyver a ?crit : > On 4 June 2013 15:00, Matthias BUSSONNIER wrote: > This is not standard markdown, it is github flavored markdown. > Try indenting 4 spaces. ( Yes I know it world on notebook ) > > It's a valid point, though - we should make sure that nbviewer can handle the same flavour of markdown as the notebook interface. That's probably not the only thing nbviewer/convert does not do like the notebook? But we'll get more feedback once we have the print-view. -- Matthias > > Thomas > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Tue Jun 4 11:56:56 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 4 Jun 2013 08:56:56 -0700 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: you mean if I put it in the custom dir for the extension? On Tue, Jun 4, 2013 at 2:04 AM, Matthias Bussonnier wrote: > Short from my phone, > > FYI, you can have a style that apply only when in presentation mode with my > js extension. > -- > Matthias > > Le mardi 4 juin 2013, Fernando Perez a ?crit : > >> Thanks, that got me on track. >> >> For the record, this is what I used: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> I actually think we should in general change some of the vertical >> spacing of our headings even for the defaults, as it's in general too >> big. But these changes gave me reasonable layout at 1024x768 >> projector-ese for headings, text and bullet lists, as well as good >> font sizes for code. >> >> Cheers, >> >> f >> >> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: >> > Fernando, I'm not sure if this would help, but a year ago I posted >> > about tweaking Notebook css: >> > http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and >> > it's even included in wiki: >> > https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook >> > >> > Don't know if it works with current theme, and if it does you can use >> > Theme Roller editor to customize the style. >> > >> > However, I know you guys are busy and Notebook is complex, but perhaps >> > you could make default IPython Notebook CSS more accessible. As it is >> > now (if it is as I saw it last year) don't mind me saying that it's >> > just terrible place hardly anyone would like to tweak >> > >> > On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez >> > wrote: >> >> Hi folks, >> >> >> >> I've already given a bunch of talks with the notebook, but always >> >> using just the defaults and at most zooming in for readability. >> >> >> >> Does any of you have a little snippet of CSS you like that styles a >> >> notebook a little better for a presentation (fonts, sizes, maybe even >> >> color, etc). If you have a favorte, send it my way! >> >> >> >> Thanks in advance! >> >> >> >> >> >> f >> >> >> >> -- >> >> Fernando Perez (@fperez_org; http://fperez.org) >> >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> >> fernando.perez-at-berkeley: contact me here for any direct mail >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From abie at uw.edu Tue Jun 4 12:18:56 2013 From: abie at uw.edu (Abraham D. Flaxman) Date: Tue, 4 Jun 2013 16:18:56 +0000 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: I've got something similar to this that just got me through my slides for spring quarter. It is "presentation" in this gist: https://gist.github.com/aflaxman/5707238. This is based on some ideas from the Slender Means blog: http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ The pres2 method in the gist renders Fernando's css below. --Abie -----Original Message----- From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] On Behalf Of Fernando Perez Sent: Tuesday, June 04, 2013 1:22 AM To: IPython developers list Subject: Re: [IPython-dev] A good CSS snippet for better talk-style notebooks? Thanks, that got me on track. For the record, this is what I used: I actually think we should in general change some of the vertical spacing of our headings even for the defaults, as it's in general too big. But these changes gave me reasonable layout at 1024x768 projector-ese for headings, text and bullet lists, as well as good font sizes for code. Cheers, f On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: > Fernando, I'm not sure if this would help, but a year ago I posted > about tweaking Notebook css: > http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and > it's even included in wiki: > https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > > Don't know if it works with current theme, and if it does you can use > Theme Roller editor to customize the style. > > However, I know you guys are busy and Notebook is complex, but perhaps > you could make default IPython Notebook CSS more accessible. As it is > now (if it is as I saw it last year) don't mind me saying that it's > just terrible place hardly anyone would like to tweak > > On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez wrote: >> Hi folks, >> >> I've already given a bunch of talks with the notebook, but always >> using just the defaults and at most zooming in for readability. >> >> Does any of you have a little snippet of CSS you like that styles a >> notebook a little better for a presentation (fonts, sizes, maybe even >> color, etc). If you have a favorte, send it my way! >> >> Thanks in advance! >> >> >> f >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail _______________________________________________ IPython-dev mailing list IPython-dev at scipy.org http://mail.scipy.org/mailman/listinfo/ipython-dev From bussonniermatthias at gmail.com Tue Jun 4 12:26:46 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 4 Jun 2013 18:26:46 +0200 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: I mean that when the presentation starts it happens the "presentation_mode" class to , and remove it when you stop. meaning that .presentation_mode h1{ color: red; } In your custom.css or, md cell will make the h1 title red only while on slide. I suggest using less to do that that allow you to "nest rules" and avoid repeating .presentation_mode .presentation_mode { h1,h2 { color: red; } p { text-align: right; } img { fancy_flashing_border() } } -- Matthias Le 4 juin 2013 ? 17:56, Fernando Perez a ?crit : > you mean if I put it in the custom dir for the extension? > > On Tue, Jun 4, 2013 at 2:04 AM, Matthias Bussonnier > wrote: >> Short from my phone, >> >> FYI, you can have a style that apply only when in presentation mode with my >> js extension. >> -- >> Matthias >> >> Le mardi 4 juin 2013, Fernando Perez a ?crit : >> >>> Thanks, that got me on track. >>> >>> For the record, this is what I used: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> I actually think we should in general change some of the vertical >>> spacing of our headings even for the defaults, as it's in general too >>> big. But these changes gave me reasonable layout at 1024x768 >>> projector-ese for headings, text and bullet lists, as well as good >>> font sizes for code. >>> >>> Cheers, >>> >>> f >>> >>> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: >>>> Fernando, I'm not sure if this would help, but a year ago I posted >>>> about tweaking Notebook css: >>>> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and >>>> it's even included in wiki: >>>> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook >>>> >>>> Don't know if it works with current theme, and if it does you can use >>>> Theme Roller editor to customize the style. >>>> >>>> However, I know you guys are busy and Notebook is complex, but perhaps >>>> you could make default IPython Notebook CSS more accessible. As it is >>>> now (if it is as I saw it last year) don't mind me saying that it's >>>> just terrible place hardly anyone would like to tweak >>>> >>>> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez >>>> wrote: >>>>> Hi folks, >>>>> >>>>> I've already given a bunch of talks with the notebook, but always >>>>> using just the defaults and at most zooming in for readability. >>>>> >>>>> Does any of you have a little snippet of CSS you like that styles a >>>>> notebook a little better for a presentation (fonts, sizes, maybe even >>>>> color, etc). If you have a favorte, send it my way! >>>>> >>>>> Thanks in advance! >>>>> >>>>> >>>>> f >>>>> >>>>> -- >>>>> Fernando Perez (@fperez_org; http://fperez.org) >>>>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>>>> fernando.perez-at-berkeley: contact me here for any direct mail >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> -- >>> Fernando Perez (@fperez_org; http://fperez.org) >>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>> fernando.perez-at-berkeley: contact me here for any direct mail >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From bussonniermatthias at gmail.com Tue Jun 4 12:30:26 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 4 Jun 2013 18:30:26 +0200 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: Message-ID: <1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : > I've got something similar to this that just got me through my slides for spring quarter. It is "presentation" in this gist: https://gist.github.com/aflaxman/5707238. This is based on some ideas from the Slender Means blog: http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ May I suggest "how to write an IPython notebook css selector" that I wrote ? http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb It avoid relying on displaying css through python. -- Matthias > > The pres2 method in the gist renders Fernando's css below. > > --Abie > > > -----Original Message----- > From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] On Behalf Of Fernando Perez > Sent: Tuesday, June 04, 2013 1:22 AM > To: IPython developers list > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style notebooks? > > Thanks, that got me on track. > > For the record, this is what I used: > > > > > > > > > > > > > > > > I actually think we should in general change some of the vertical spacing of our headings even for the defaults, as it's in general too big. But these changes gave me reasonable layout at 1024x768 projector-ese for headings, text and bullet lists, as well as good font sizes for code. > > Cheers, > > f > > On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: >> Fernando, I'm not sure if this would help, but a year ago I posted >> about tweaking Notebook css: >> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and >> it's even included in wiki: >> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook >> >> Don't know if it works with current theme, and if it does you can use >> Theme Roller editor to customize the style. >> >> However, I know you guys are busy and Notebook is complex, but perhaps >> you could make default IPython Notebook CSS more accessible. As it is >> now (if it is as I saw it last year) don't mind me saying that it's >> just terrible place hardly anyone would like to tweak >> >> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez wrote: >>> Hi folks, >>> >>> I've already given a bunch of talks with the notebook, but always >>> using just the defaults and at most zooming in for readability. >>> >>> Does any of you have a little snippet of CSS you like that styles a >>> notebook a little better for a presentation (fonts, sizes, maybe even >>> color, etc). If you have a favorte, send it my way! >>> >>> Thanks in advance! >>> >>> >>> f >>> >>> -- >>> Fernando Perez (@fperez_org; http://fperez.org) >>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>> fernando.perez-at-berkeley: contact me here for any direct mail >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From aron at ahmadia.net Tue Jun 4 13:08:25 2013 From: aron at ahmadia.net (Aron Ahmadia) Date: Tue, 4 Jun 2013 13:08:25 -0400 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: <1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com> References: <1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com> Message-ID: I posted my slideshow profile to here: https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz A On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > > Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : > > I've got something similar to this that just got me through my slides for > spring quarter. It is "presentation" in this gist: > https://gist.github.com/aflaxman/5707238. This is based on some ideas > from the Slender Means blog: > http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ > > > May I suggest "how to write an IPython notebook css selector" that I > wrote ? > > > http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb > > It avoid relying on displaying css through python. > -- > Matthias > > > > The pres2 method in the gist renders Fernando's css below. > > --Abie > > > -----Original Message----- > From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] > On Behalf Of Fernando Perez > Sent: Tuesday, June 04, 2013 1:22 AM > To: IPython developers list > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > notebooks? > > Thanks, that got me on track. > > For the record, this is what I used: > > > > > > > > > > > > > > > > I actually think we should in general change some of the vertical spacing > of our headings even for the defaults, as it's in general too big. But > these changes gave me reasonable layout at 1024x768 projector-ese for > headings, text and bullet lists, as well as good font sizes for code. > > Cheers, > > f > > On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: > > Fernando, I'm not sure if this would help, but a year ago I posted > > about tweaking Notebook css: > > http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and > > it's even included in wiki: > > https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > > > Don't know if it works with current theme, and if it does you can use > > Theme Roller editor to customize the style. > > > However, I know you guys are busy and Notebook is complex, but perhaps > > you could make default IPython Notebook CSS more accessible. As it is > > now (if it is as I saw it last year) don't mind me saying that it's > > just terrible place hardly anyone would like to tweak > > > On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez > wrote: > > Hi folks, > > > I've already given a bunch of talks with the notebook, but always > > using just the defaults and at most zooming in for readability. > > > Does any of you have a little snippet of CSS you like that styles a > > notebook a little better for a presentation (fonts, sizes, maybe even > > color, etc). If you have a favorte, send it my way! > > > Thanks in advance! > > > > f > > > -- > > Fernando Perez (@fperez_org; http://fperez.org) > > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > > fernando.perez-at-berkeley: contact me here for any direct mail > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Tue Jun 4 13:43:55 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 4 Jun 2013 10:43:55 -0700 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: <1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com> Message-ID: Do you have a version updated to work with the new layout of the js/css as Matthias updated his? I can't seem to get the slideshow button to load with yours so I can play with your nicer CSS :) On Tue, Jun 4, 2013 at 10:08 AM, Aron Ahmadia wrote: > I posted my slideshow profile to here: > https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz > > A > > > On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER > wrote: >> >> >> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : >> >> I've got something similar to this that just got me through my slides for >> spring quarter. It is "presentation" in this gist: >> https://gist.github.com/aflaxman/5707238. This is based on some ideas from >> the Slender Means blog: >> http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ >> >> >> May I suggest "how to write an IPython notebook css selector" that I >> wrote ? >> >> >> http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb >> >> It avoid relying on displaying css through python. >> -- >> Matthias >> >> >> >> The pres2 method in the gist renders Fernando's css below. >> >> --Abie >> >> >> -----Original Message----- >> From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] >> On Behalf Of Fernando Perez >> Sent: Tuesday, June 04, 2013 1:22 AM >> To: IPython developers list >> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style >> notebooks? >> >> Thanks, that got me on track. >> >> For the record, this is what I used: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> I actually think we should in general change some of the vertical spacing >> of our headings even for the defaults, as it's in general too big. But these >> changes gave me reasonable layout at 1024x768 projector-ese for headings, >> text and bullet lists, as well as good font sizes for code. >> >> Cheers, >> >> f >> >> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: >> >> Fernando, I'm not sure if this would help, but a year ago I posted >> >> about tweaking Notebook css: >> >> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and >> >> it's even included in wiki: >> >> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook >> >> >> Don't know if it works with current theme, and if it does you can use >> >> Theme Roller editor to customize the style. >> >> >> However, I know you guys are busy and Notebook is complex, but perhaps >> >> you could make default IPython Notebook CSS more accessible. As it is >> >> now (if it is as I saw it last year) don't mind me saying that it's >> >> just terrible place hardly anyone would like to tweak >> >> >> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez >> wrote: >> >> Hi folks, >> >> >> I've already given a bunch of talks with the notebook, but always >> >> using just the defaults and at most zooming in for readability. >> >> >> Does any of you have a little snippet of CSS you like that styles a >> >> notebook a little better for a presentation (fonts, sizes, maybe even >> >> color, etc). If you have a favorte, send it my way! >> >> >> Thanks in advance! >> >> >> >> f >> >> >> -- >> >> Fernando Perez (@fperez_org; http://fperez.org) >> >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> >> fernando.perez-at-berkeley: contact me here for any direct mail >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From tarun.gaba7 at gmail.com Tue Jun 4 14:26:22 2013 From: tarun.gaba7 at gmail.com (TARUN GABA) Date: Tue, 4 Jun 2013 23:56:22 +0530 Subject: [IPython-dev] Including javascript from static library Message-ID: Hi, Again for the same project, I have been working on, I need to include three.js and a few other javascript libraries for it to work. I am trying to include these js using ... HTML("'""""") At the developers console of my browser I am getting a 503 (service unavailable error) I also tried using .. HTML("""""") But got a 404( not found) at developer console. Any suggestions on how to efficiently include the js in ipython notebooks P.S. : I would prefer js files residing in my repo, rather than ipython configuration directory(alongwith custom.js) Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Tue Jun 4 14:28:36 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Tue, 4 Jun 2013 14:28:36 -0400 Subject: [IPython-dev] Including javascript from static library In-Reply-To: References: Message-ID: if your js directory is in the same location as the notebook try: src="files/js/three.js" cheers, satra On Tue, Jun 4, 2013 at 2:26 PM, TARUN GABA wrote: > Hi, > > Again for the same project, I have been working on, > I need to include three.js and a few other javascript libraries for it to > work. > I am trying to include these js using ... > > HTML("'""""") > > At the developers console of my browser I am getting a 503 (service > unavailable error) > > I also tried using .. > > HTML("""""") > > But got a 404( not found) at developer console. > > Any suggestions on how to efficiently include the js in ipython notebooks > > P.S. : I would prefer js files residing in my repo, rather than ipython > configuration directory(alongwith custom.js) > > Thanks > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Tue Jun 4 14:37:38 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Tue, 4 Jun 2013 11:37:38 -0700 Subject: [IPython-dev] Including javascript from static library In-Reply-To: References: Message-ID: I would use the jQuery getScript function... On Tue, Jun 4, 2013 at 11:28 AM, Satrajit Ghosh wrote: > if your js directory is in the same location as the notebook try: > > src="files/js/three.js" > > cheers, > > satra > > On Tue, Jun 4, 2013 at 2:26 PM, TARUN GABA wrote: >> >> Hi, >> >> Again for the same project, I have been working on, >> I need to include three.js and a few other javascript libraries for it to >> work. >> I am trying to include these js using ... >> >> HTML("'""""") >> >> At the developers console of my browser I am getting a 503 (service >> unavailable error) >> >> I also tried using .. >> >> HTML("""""") >> >> But got a 404( not found) at developer console. >> >> Any suggestions on how to efficiently include the js in ipython notebooks >> >> P.S. : I would prefer js files residing in my repo, rather than ipython >> configuration directory(alongwith custom.js) >> >> Thanks >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From satra at mit.edu Tue Jun 4 14:39:01 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Tue, 4 Jun 2013 14:39:01 -0400 Subject: [IPython-dev] Including javascript from static library In-Reply-To: References: Message-ID: > I would use the jQuery getScript function... > ah yes indeed. that would search all subdirectories of static paths. cheers, satra > > On Tue, Jun 4, 2013 at 11:28 AM, Satrajit Ghosh wrote: > > if your js directory is in the same location as the notebook try: > > > > src="files/js/three.js" > > > > cheers, > > > > satra > > > > On Tue, Jun 4, 2013 at 2:26 PM, TARUN GABA > wrote: > >> > >> Hi, > >> > >> Again for the same project, I have been working on, > >> I need to include three.js and a few other javascript libraries for it > to > >> work. > >> I am trying to include these js using ... > >> > >> HTML("'""""") > >> > >> At the developers console of my browser I am getting a 503 (service > >> unavailable error) > >> > >> I also tried using .. > >> > >> HTML("""""") > >> > >> But got a 404( not found) at developer console. > >> > >> Any suggestions on how to efficiently include the js in ipython > notebooks > >> > >> P.S. : I would prefer js files residing in my repo, rather than ipython > >> configuration directory(alongwith custom.js) > >> > >> Thanks > >> > >> > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Jun 4 14:46:18 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 4 Jun 2013 20:46:18 +0200 Subject: [IPython-dev] Including javascript from static library In-Reply-To: References: Message-ID: Le 4 juin 2013 ? 20:39, Satrajit Ghosh a ?crit : > > I would use the jQuery getScript function... > > ah yes indeed. that would search all subdirectories of static paths. Does it ? How would it list the available directory to walk them ? Moreover if the OP don't want to put tree.js in one of the /static/ folder; it does not remove the fact that you have to tell it to prefix with file.... -- Matthias From satra at mit.edu Tue Jun 4 14:55:29 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Tue, 4 Jun 2013 14:55:29 -0400 Subject: [IPython-dev] Including javascript from static library In-Reply-To: References: Message-ID: On Tue, Jun 4, 2013 at 2:46 PM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > > Le 4 juin 2013 ? 20:39, Satrajit Ghosh a ?crit : > > > > > I would use the jQuery getScript function... > > > > ah yes indeed. that would search all subdirectories of static paths. > > Does it ? > How would it list the available directory to walk them ? > sorry -- it was the load_ext call that was doing some magic assuming the ipython static extension paths. getScript indeed cannot list directories. cheers, satra -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Jun 4 15:00:07 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 4 Jun 2013 21:00:07 +0200 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: <1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com> Message-ID: <31462BBF-FC81-4A88-8C0A-3C8277492554@gmail.com> Fernado, just put Aron css (attached to this mail) on the right place, ie, either replace your main custom.css, or replace slidemode/main.css in your profile dir. -- Matthias -------------- next part -------------- A non-text attachment was scrubbed... Name: custom.css Type: application/octet-stream Size: 1166 bytes Desc: not available URL: -------------- next part -------------- Le 4 juin 2013 ? 19:43, Fernando Perez a ?crit : > Do you have a version updated to work with the new layout of the > js/css as Matthias updated his? I can't seem to get the slideshow > button to load with yours so I can play with your nicer CSS :) > > On Tue, Jun 4, 2013 at 10:08 AM, Aron Ahmadia wrote: >> I posted my slideshow profile to here: >> https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz >> >> A >> >> >> On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER >> wrote: >>> >>> >>> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : >>> >>> I've got something similar to this that just got me through my slides for >>> spring quarter. It is "presentation" in this gist: >>> https://gist.github.com/aflaxman/5707238. This is based on some ideas from >>> the Slender Means blog: >>> http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ >>> >>> >>> May I suggest "how to write an IPython notebook css selector" that I >>> wrote ? >>> >>> >>> http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb >>> >>> It avoid relying on displaying css through python. >>> -- >>> Matthias >>> >>> >>> >>> The pres2 method in the gist renders Fernando's css below. >>> >>> --Abie >>> >>> >>> -----Original Message----- >>> From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] >>> On Behalf Of Fernando Perez >>> Sent: Tuesday, June 04, 2013 1:22 AM >>> To: IPython developers list >>> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style >>> notebooks? >>> >>> Thanks, that got me on track. >>> >>> For the record, this is what I used: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> I actually think we should in general change some of the vertical spacing >>> of our headings even for the defaults, as it's in general too big. But these >>> changes gave me reasonable layout at 1024x768 projector-ese for headings, >>> text and bullet lists, as well as good font sizes for code. >>> >>> Cheers, >>> >>> f >>> >>> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: >>> >>> Fernando, I'm not sure if this would help, but a year ago I posted >>> >>> about tweaking Notebook css: >>> >>> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and >>> >>> it's even included in wiki: >>> >>> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook >>> >>> >>> Don't know if it works with current theme, and if it does you can use >>> >>> Theme Roller editor to customize the style. >>> >>> >>> However, I know you guys are busy and Notebook is complex, but perhaps >>> >>> you could make default IPython Notebook CSS more accessible. As it is >>> >>> now (if it is as I saw it last year) don't mind me saying that it's >>> >>> just terrible place hardly anyone would like to tweak >>> >>> >>> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez >>> wrote: >>> >>> Hi folks, >>> >>> >>> I've already given a bunch of talks with the notebook, but always >>> >>> using just the defaults and at most zooming in for readability. >>> >>> >>> Does any of you have a little snippet of CSS you like that styles a >>> >>> notebook a little better for a presentation (fonts, sizes, maybe even >>> >>> color, etc). If you have a favorte, send it my way! >>> >>> >>> Thanks in advance! >>> >>> >>> >>> f >>> >>> >>> -- >>> >>> Fernando Perez (@fperez_org; http://fperez.org) >>> >>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>> >>> fernando.perez-at-berkeley: contact me here for any direct mail >>> >>> _______________________________________________ >>> >>> IPython-dev mailing list >>> >>> IPython-dev at scipy.org >>> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> _______________________________________________ >>> >>> IPython-dev mailing list >>> >>> IPython-dev at scipy.org >>> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> >>> -- >>> Fernando Perez (@fperez_org; http://fperez.org) >>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>> fernando.perez-at-berkeley: contact me here for any direct mail >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From tarun.gaba7 at gmail.com Tue Jun 4 15:04:45 2013 From: tarun.gaba7 at gmail.com (TARUN GABA) Date: Wed, 5 Jun 2013 00:34:45 +0530 Subject: [IPython-dev] Including javascript from a static library Message-ID: Thanks, it works like a charm, But just after I call my three.js library, in the next line I am trying to display my javascript which uses functions from the library, but I get a not defined javascript error. Am I missing something here? Javascript(""" var a = new THREE.geometry();""") // error: THREE is not defined On Jun 4, 2013 11:59 PM, wrote: > Send IPython-dev mailing list submissions to > ipython-dev at scipy.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.scipy.org/mailman/listinfo/ipython-dev > or, via email, send a message with subject or body 'help' to > ipython-dev-request at scipy.org > > You can reach the person managing the list at > ipython-dev-owner at scipy.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of IPython-dev digest..." > > > Today's Topics: > > 1. Re: A good CSS snippet for better talk-style notebooks? > (Aron Ahmadia) > 2. Re: A good CSS snippet for better talk-style notebooks? > (Fernando Perez) > 3. Including javascript from static library (TARUN GABA) > 4. Re: Including javascript from static library (Satrajit Ghosh) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 4 Jun 2013 13:08:25 -0400 > From: Aron Ahmadia > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > notebooks? > To: IPython developers list > Message-ID: > < > CAPhiW4hXjJ2Xdz0XJD4ovf3kPhmvCHRWLiOF2-+531sDWa4_Ww at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I posted my slideshow profile to here: > https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz > > A > > > On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER < > bussonniermatthias at gmail.com> wrote: > > > > > Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : > > > > I've got something similar to this that just got me through my slides for > > spring quarter. It is "presentation" in this gist: > > https://gist.github.com/aflaxman/5707238. This is based on some ideas > > from the Slender Means blog: > > > http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ > > > > > > May I suggest "how to write an IPython notebook css selector" that I > > wrote ? > > > > > > > http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb > > > > It avoid relying on displaying css through python. > > -- > > Matthias > > > > > > > > The pres2 method in the gist renders Fernando's css below. > > > > --Abie > > > > > > -----Original Message----- > > From: ipython-dev-bounces at scipy.org [mailto: > ipython-dev-bounces at scipy.org] > > On Behalf Of Fernando Perez > > Sent: Tuesday, June 04, 2013 1:22 AM > > To: IPython developers list > > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > > notebooks? > > > > Thanks, that got me on track. > > > > For the record, this is what I used: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I actually think we should in general change some of the vertical spacing > > of our headings even for the defaults, as it's in general too big. But > > these changes gave me reasonable layout at 1024x768 projector-ese for > > headings, text and bullet lists, as well as good font sizes for code. > > > > Cheers, > > > > f > > > > On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: > > > > Fernando, I'm not sure if this would help, but a year ago I posted > > > > about tweaking Notebook css: > > > > http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and > > > > it's even included in wiki: > > > > https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > > > > > > Don't know if it works with current theme, and if it does you can use > > > > Theme Roller editor to customize the style. > > > > > > However, I know you guys are busy and Notebook is complex, but perhaps > > > > you could make default IPython Notebook CSS more accessible. As it is > > > > now (if it is as I saw it last year) don't mind me saying that it's > > > > just terrible place hardly anyone would like to tweak > > > > > > On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez > > wrote: > > > > Hi folks, > > > > > > I've already given a bunch of talks with the notebook, but always > > > > using just the defaults and at most zooming in for readability. > > > > > > Does any of you have a little snippet of CSS you like that styles a > > > > notebook a little better for a presentation (fonts, sizes, maybe even > > > > color, etc). If you have a favorte, send it my way! > > > > > > Thanks in advance! > > > > > > > > f > > > > > > -- > > > > Fernando Perez (@fperez_org; http://fperez.org) > > > > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > > > > fernando.perez-at-berkeley: contact me here for any direct mail > > > > _______________________________________________ > > > > IPython-dev mailing list > > > > IPython-dev at scipy.org > > > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > > > > IPython-dev mailing list > > > > IPython-dev at scipy.org > > > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > > > -- > > Fernando Perez (@fperez_org; http://fperez.org) > > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > > fernando.perez-at-berkeley: contact me here for any direct mail > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/b3b67327/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Tue, 4 Jun 2013 10:43:55 -0700 > From: Fernando Perez > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > notebooks? > To: IPython developers list > Message-ID: > < > CAHAreOrZVLu-9XoF-Mrgaeg3gUyv0ywQeP+eYmTV_cSXhHbB5A at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Do you have a version updated to work with the new layout of the > js/css as Matthias updated his? I can't seem to get the slideshow > button to load with yours so I can play with your nicer CSS :) > > On Tue, Jun 4, 2013 at 10:08 AM, Aron Ahmadia wrote: > > I posted my slideshow profile to here: > > https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz > > > > A > > > > > > On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER > > wrote: > >> > >> > >> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : > >> > >> I've got something similar to this that just got me through my slides > for > >> spring quarter. It is "presentation" in this gist: > >> https://gist.github.com/aflaxman/5707238. This is based on some ideas > from > >> the Slender Means blog: > >> > http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ > >> > >> > >> May I suggest "how to write an IPython notebook css selector" that I > >> wrote ? > >> > >> > >> > http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb > >> > >> It avoid relying on displaying css through python. > >> -- > >> Matthias > >> > >> > >> > >> The pres2 method in the gist renders Fernando's css below. > >> > >> --Abie > >> > >> > >> -----Original Message----- > >> From: ipython-dev-bounces at scipy.org [mailto: > ipython-dev-bounces at scipy.org] > >> On Behalf Of Fernando Perez > >> Sent: Tuesday, June 04, 2013 1:22 AM > >> To: IPython developers list > >> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > >> notebooks? > >> > >> Thanks, that got me on track. > >> > >> For the record, this is what I used: > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> I actually think we should in general change some of the vertical > spacing > >> of our headings even for the defaults, as it's in general too big. But > these > >> changes gave me reasonable layout at 1024x768 projector-ese for > headings, > >> text and bullet lists, as well as good font sizes for code. > >> > >> Cheers, > >> > >> f > >> > >> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: > >> > >> Fernando, I'm not sure if this would help, but a year ago I posted > >> > >> about tweaking Notebook css: > >> > >> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and > >> > >> it's even included in wiki: > >> > >> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > >> > >> > >> Don't know if it works with current theme, and if it does you can use > >> > >> Theme Roller editor to customize the style. > >> > >> > >> However, I know you guys are busy and Notebook is complex, but perhaps > >> > >> you could make default IPython Notebook CSS more accessible. As it is > >> > >> now (if it is as I saw it last year) don't mind me saying that it's > >> > >> just terrible place hardly anyone would like to tweak > >> > >> > >> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez > >> wrote: > >> > >> Hi folks, > >> > >> > >> I've already given a bunch of talks with the notebook, but always > >> > >> using just the defaults and at most zooming in for readability. > >> > >> > >> Does any of you have a little snippet of CSS you like that styles a > >> > >> notebook a little better for a presentation (fonts, sizes, maybe even > >> > >> color, etc). If you have a favorte, send it my way! > >> > >> > >> Thanks in advance! > >> > >> > >> > >> f > >> > >> > >> -- > >> > >> Fernando Perez (@fperez_org; http://fperez.org) > >> > >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > >> > >> fernando.perez-at-berkeley: contact me here for any direct mail > >> > >> _______________________________________________ > >> > >> IPython-dev mailing list > >> > >> IPython-dev at scipy.org > >> > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> _______________________________________________ > >> > >> IPython-dev mailing list > >> > >> IPython-dev at scipy.org > >> > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> > >> > >> > >> -- > >> Fernando Perez (@fperez_org; http://fperez.org) > >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > >> fernando.perez-at-berkeley: contact me here for any direct mail > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> > >> > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > > > ------------------------------ > > Message: 3 > Date: Tue, 4 Jun 2013 23:56:22 +0530 > From: TARUN GABA > Subject: [IPython-dev] Including javascript from static library > To: ipython-dev at scipy.org > Message-ID: > < > CAHAono2BsLgSECaE1f0Ty_eG4217XvyZB0ObLNYFUS18oBpWDg at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Again for the same project, I have been working on, > I need to include three.js and a few other javascript libraries for it to > work. > I am trying to include these js using ... > > HTML("'""""") > > At the developers console of my browser I am getting a 503 (service > unavailable error) > > I also tried using .. > > HTML("""""") > > But got a 404( not found) at developer console. > > Any suggestions on how to efficiently include the js in ipython notebooks > > P.S. : I would prefer js files residing in my repo, rather than ipython > configuration directory(alongwith custom.js) > > Thanks > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/8f59f250/attachment-0001.html > > ------------------------------ > > Message: 4 > Date: Tue, 4 Jun 2013 14:28:36 -0400 > From: Satrajit Ghosh > Subject: Re: [IPython-dev] Including javascript from static library > To: IPython developers list > Message-ID: > < > CA+A4wOnYTjN16kJ6ByWoAKDnJw1czBMwGX6CfuyW-0hLRcibwQ at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > if your js directory is in the same location as the notebook try: > > src="files/js/three.js" > > cheers, > > satra > > On Tue, Jun 4, 2013 at 2:26 PM, TARUN GABA wrote: > > > Hi, > > > > Again for the same project, I have been working on, > > I need to include three.js and a few other javascript libraries for it to > > work. > > I am trying to include these js using ... > > > > HTML("'""""") > > > > At the developers console of my browser I am getting a 503 (service > > unavailable error) > > > > I also tried using .. > > > > HTML("""""") > > > > But got a 404( not found) at developer console. > > > > Any suggestions on how to efficiently include the js in ipython notebooks > > > > P.S. : I would prefer js files residing in my repo, rather than ipython > > configuration directory(alongwith custom.js) > > > > Thanks > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/2dea886f/attachment.html > > ------------------------------ > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > End of IPython-dev Digest, Vol 113, Issue 9 > ******************************************* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Tue Jun 4 15:17:53 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 4 Jun 2013 12:17:53 -0700 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: <31462BBF-FC81-4A88-8C0A-3C8277492554@gmail.com> References: <1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com> <31462BBF-FC81-4A88-8C0A-3C8277492554@gmail.com> Message-ID: thanks! On Tue, Jun 4, 2013 at 12:00 PM, Matthias BUSSONNIER wrote: > Fernado, just put Aron css (attached to this mail) on the right place, > ie, either replace your main custom.css, or replace slidemode/main.css > in your profile dir. > -- > Matthias > > > > > > > Le 4 juin 2013 ? 19:43, Fernando Perez a ?crit : > >> Do you have a version updated to work with the new layout of the >> js/css as Matthias updated his? I can't seem to get the slideshow >> button to load with yours so I can play with your nicer CSS :) >> >> On Tue, Jun 4, 2013 at 10:08 AM, Aron Ahmadia wrote: >>> I posted my slideshow profile to here: >>> https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz >>> >>> A >>> >>> >>> On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER >>> wrote: >>>> >>>> >>>> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : >>>> >>>> I've got something similar to this that just got me through my slides for >>>> spring quarter. It is "presentation" in this gist: >>>> https://gist.github.com/aflaxman/5707238. This is based on some ideas from >>>> the Slender Means blog: >>>> http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ >>>> >>>> >>>> May I suggest "how to write an IPython notebook css selector" that I >>>> wrote ? >>>> >>>> >>>> http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb >>>> >>>> It avoid relying on displaying css through python. >>>> -- >>>> Matthias >>>> >>>> >>>> >>>> The pres2 method in the gist renders Fernando's css below. >>>> >>>> --Abie >>>> >>>> >>>> -----Original Message----- >>>> From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] >>>> On Behalf Of Fernando Perez >>>> Sent: Tuesday, June 04, 2013 1:22 AM >>>> To: IPython developers list >>>> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style >>>> notebooks? >>>> >>>> Thanks, that got me on track. >>>> >>>> For the record, this is what I used: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> I actually think we should in general change some of the vertical spacing >>>> of our headings even for the defaults, as it's in general too big. But these >>>> changes gave me reasonable layout at 1024x768 projector-ese for headings, >>>> text and bullet lists, as well as good font sizes for code. >>>> >>>> Cheers, >>>> >>>> f >>>> >>>> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: >>>> >>>> Fernando, I'm not sure if this would help, but a year ago I posted >>>> >>>> about tweaking Notebook css: >>>> >>>> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and >>>> >>>> it's even included in wiki: >>>> >>>> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook >>>> >>>> >>>> Don't know if it works with current theme, and if it does you can use >>>> >>>> Theme Roller editor to customize the style. >>>> >>>> >>>> However, I know you guys are busy and Notebook is complex, but perhaps >>>> >>>> you could make default IPython Notebook CSS more accessible. As it is >>>> >>>> now (if it is as I saw it last year) don't mind me saying that it's >>>> >>>> just terrible place hardly anyone would like to tweak >>>> >>>> >>>> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez >>>> wrote: >>>> >>>> Hi folks, >>>> >>>> >>>> I've already given a bunch of talks with the notebook, but always >>>> >>>> using just the defaults and at most zooming in for readability. >>>> >>>> >>>> Does any of you have a little snippet of CSS you like that styles a >>>> >>>> notebook a little better for a presentation (fonts, sizes, maybe even >>>> >>>> color, etc). If you have a favorte, send it my way! >>>> >>>> >>>> Thanks in advance! >>>> >>>> >>>> >>>> f >>>> >>>> >>>> -- >>>> >>>> Fernando Perez (@fperez_org; http://fperez.org) >>>> >>>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>>> >>>> fernando.perez-at-berkeley: contact me here for any direct mail >>>> >>>> _______________________________________________ >>>> >>>> IPython-dev mailing list >>>> >>>> IPython-dev at scipy.org >>>> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> _______________________________________________ >>>> >>>> IPython-dev mailing list >>>> >>>> IPython-dev at scipy.org >>>> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>>> >>>> >>>> -- >>>> Fernando Perez (@fperez_org; http://fperez.org) >>>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>>> fernando.perez-at-berkeley: contact me here for any direct mail >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >> >> >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From bussonniermatthias at gmail.com Tue Jun 4 15:21:41 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 4 Jun 2013 21:21:41 +0200 Subject: [IPython-dev] Including javascript from a static library In-Reply-To: References: Message-ID: <3E4DB689-7C3A-476C-AAC5-A23B9AA9B856@gmail.com> Are you displaying the Javascript Object ? > display(Javascript()) , or returning it as the last line of the cell ? > blahblah > blah > foobar > Javascript(...) Are those 2 calls (injecting three and using it) in the same cell ? Is the initialization of Three.js async ? you could be running in a race condition. -- Matthias Le 4 juin 2013 ? 21:04, TARUN GABA a ?crit : > Thanks, it works like a charm, > But just after I call my three.js library, in the next line I am trying to display my javascript which uses functions from the library, but I get a not defined javascript error. > Am I missing something here? > Javascript(""" var a = new THREE.geometry();""") > // error: THREE is not defined > > On Jun 4, 2013 11:59 PM, wrote: > Send IPython-dev mailing list submissions to > ipython-dev at scipy.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.scipy.org/mailman/listinfo/ipython-dev > or, via email, send a message with subject or body 'help' to > ipython-dev-request at scipy.org > > You can reach the person managing the list at > ipython-dev-owner at scipy.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of IPython-dev digest..." > > > Today's Topics: > > 1. Re: A good CSS snippet for better talk-style notebooks? > (Aron Ahmadia) > 2. Re: A good CSS snippet for better talk-style notebooks? > (Fernando Perez) > 3. Including javascript from static library (TARUN GABA) > 4. Re: Including javascript from static library (Satrajit Ghosh) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 4 Jun 2013 13:08:25 -0400 > From: Aron Ahmadia > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > notebooks? > To: IPython developers list > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > I posted my slideshow profile to here: > https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz > > A > > > On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER < > bussonniermatthias at gmail.com> wrote: > > > > > Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : > > > > I've got something similar to this that just got me through my slides for > > spring quarter. It is "presentation" in this gist: > > https://gist.github.com/aflaxman/5707238. This is based on some ideas > > from the Slender Means blog: > > http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ > > > > > > May I suggest "how to write an IPython notebook css selector" that I > > wrote ? > > > > > > http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb > > > > It avoid relying on displaying css through python. > > -- > > Matthias > > > > > > > > The pres2 method in the gist renders Fernando's css below. > > > > --Abie > > > > > > -----Original Message----- > > From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] > > On Behalf Of Fernando Perez > > Sent: Tuesday, June 04, 2013 1:22 AM > > To: IPython developers list > > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > > notebooks? > > > > Thanks, that got me on track. > > > > For the record, this is what I used: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I actually think we should in general change some of the vertical spacing > > of our headings even for the defaults, as it's in general too big. But > > these changes gave me reasonable layout at 1024x768 projector-ese for > > headings, text and bullet lists, as well as good font sizes for code. > > > > Cheers, > > > > f > > > > On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: > > > > Fernando, I'm not sure if this would help, but a year ago I posted > > > > about tweaking Notebook css: > > > > http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and > > > > it's even included in wiki: > > > > https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > > > > > > Don't know if it works with current theme, and if it does you can use > > > > Theme Roller editor to customize the style. > > > > > > However, I know you guys are busy and Notebook is complex, but perhaps > > > > you could make default IPython Notebook CSS more accessible. As it is > > > > now (if it is as I saw it last year) don't mind me saying that it's > > > > just terrible place hardly anyone would like to tweak > > > > > > On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez > > wrote: > > > > Hi folks, > > > > > > I've already given a bunch of talks with the notebook, but always > > > > using just the defaults and at most zooming in for readability. > > > > > > Does any of you have a little snippet of CSS you like that styles a > > > > notebook a little better for a presentation (fonts, sizes, maybe even > > > > color, etc). If you have a favorte, send it my way! > > > > > > Thanks in advance! > > > > > > > > f > > > > > > -- > > > > Fernando Perez (@fperez_org; http://fperez.org) > > > > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > > > > fernando.perez-at-berkeley: contact me here for any direct mail > > > > _______________________________________________ > > > > IPython-dev mailing list > > > > IPython-dev at scipy.org > > > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > > > > IPython-dev mailing list > > > > IPython-dev at scipy.org > > > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > > > -- > > Fernando Perez (@fperez_org; http://fperez.org) > > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > > fernando.perez-at-berkeley: contact me here for any direct mail > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/b3b67327/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Tue, 4 Jun 2013 10:43:55 -0700 > From: Fernando Perez > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > notebooks? > To: IPython developers list > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Do you have a version updated to work with the new layout of the > js/css as Matthias updated his? I can't seem to get the slideshow > button to load with yours so I can play with your nicer CSS :) > > On Tue, Jun 4, 2013 at 10:08 AM, Aron Ahmadia wrote: > > I posted my slideshow profile to here: > > https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz > > > > A > > > > > > On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER > > wrote: > >> > >> > >> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : > >> > >> I've got something similar to this that just got me through my slides for > >> spring quarter. It is "presentation" in this gist: > >> https://gist.github.com/aflaxman/5707238. This is based on some ideas from > >> the Slender Means blog: > >> http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ > >> > >> > >> May I suggest "how to write an IPython notebook css selector" that I > >> wrote ? > >> > >> > >> http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb > >> > >> It avoid relying on displaying css through python. > >> -- > >> Matthias > >> > >> > >> > >> The pres2 method in the gist renders Fernando's css below. > >> > >> --Abie > >> > >> > >> -----Original Message----- > >> From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] > >> On Behalf Of Fernando Perez > >> Sent: Tuesday, June 04, 2013 1:22 AM > >> To: IPython developers list > >> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > >> notebooks? > >> > >> Thanks, that got me on track. > >> > >> For the record, this is what I used: > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> I actually think we should in general change some of the vertical spacing > >> of our headings even for the defaults, as it's in general too big. But these > >> changes gave me reasonable layout at 1024x768 projector-ese for headings, > >> text and bullet lists, as well as good font sizes for code. > >> > >> Cheers, > >> > >> f > >> > >> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: > >> > >> Fernando, I'm not sure if this would help, but a year ago I posted > >> > >> about tweaking Notebook css: > >> > >> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and > >> > >> it's even included in wiki: > >> > >> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > >> > >> > >> Don't know if it works with current theme, and if it does you can use > >> > >> Theme Roller editor to customize the style. > >> > >> > >> However, I know you guys are busy and Notebook is complex, but perhaps > >> > >> you could make default IPython Notebook CSS more accessible. As it is > >> > >> now (if it is as I saw it last year) don't mind me saying that it's > >> > >> just terrible place hardly anyone would like to tweak > >> > >> > >> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez > >> wrote: > >> > >> Hi folks, > >> > >> > >> I've already given a bunch of talks with the notebook, but always > >> > >> using just the defaults and at most zooming in for readability. > >> > >> > >> Does any of you have a little snippet of CSS you like that styles a > >> > >> notebook a little better for a presentation (fonts, sizes, maybe even > >> > >> color, etc). If you have a favorte, send it my way! > >> > >> > >> Thanks in advance! > >> > >> > >> > >> f > >> > >> > >> -- > >> > >> Fernando Perez (@fperez_org; http://fperez.org) > >> > >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > >> > >> fernando.perez-at-berkeley: contact me here for any direct mail > >> > >> _______________________________________________ > >> > >> IPython-dev mailing list > >> > >> IPython-dev at scipy.org > >> > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> _______________________________________________ > >> > >> IPython-dev mailing list > >> > >> IPython-dev at scipy.org > >> > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> > >> > >> > >> -- > >> Fernando Perez (@fperez_org; http://fperez.org) > >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > >> fernando.perez-at-berkeley: contact me here for any direct mail > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> > >> > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > > > ------------------------------ > > Message: 3 > Date: Tue, 4 Jun 2013 23:56:22 +0530 > From: TARUN GABA > Subject: [IPython-dev] Including javascript from static library > To: ipython-dev at scipy.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Again for the same project, I have been working on, > I need to include three.js and a few other javascript libraries for it to > work. > I am trying to include these js using ... > > HTML("'""""") > > At the developers console of my browser I am getting a 503 (service > unavailable error) > > I also tried using .. > > HTML("""""") > > But got a 404( not found) at developer console. > > Any suggestions on how to efficiently include the js in ipython notebooks > > P.S. : I would prefer js files residing in my repo, rather than ipython > configuration directory(alongwith custom.js) > > Thanks > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/8f59f250/attachment-0001.html > > ------------------------------ > > Message: 4 > Date: Tue, 4 Jun 2013 14:28:36 -0400 > From: Satrajit Ghosh > Subject: Re: [IPython-dev] Including javascript from static library > To: IPython developers list > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > if your js directory is in the same location as the notebook try: > > src="files/js/three.js" > > cheers, > > satra > > On Tue, Jun 4, 2013 at 2:26 PM, TARUN GABA wrote: > > > Hi, > > > > Again for the same project, I have been working on, > > I need to include three.js and a few other javascript libraries for it to > > work. > > I am trying to include these js using ... > > > > HTML("'""""") > > > > At the developers console of my browser I am getting a 503 (service > > unavailable error) > > > > I also tried using .. > > > > HTML("""""") > > > > But got a 404( not found) at developer console. > > > > Any suggestions on how to efficiently include the js in ipython notebooks > > > > P.S. : I would prefer js files residing in my repo, rather than ipython > > configuration directory(alongwith custom.js) > > > > Thanks > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/2dea886f/attachment.html > > ------------------------------ > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > End of IPython-dev Digest, Vol 113, Issue 9 > ******************************************* > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From satra at mit.edu Wed Jun 5 11:57:13 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Wed, 5 Jun 2013 11:57:13 -0400 Subject: [IPython-dev] slideviewer on heroku Message-ID: hi damian, is there a way to choose a different theme on the slideviewer on heroku? in particular something that might left justifying everything other than the main slide title. cheers, satra -------------- next part -------------- An HTML attachment was scrubbed... URL: From damianavila at gmail.com Wed Jun 5 12:09:42 2013 From: damianavila at gmail.com (=?ISO-8859-1?Q?Dami=E1n_Avila?=) Date: Wed, 5 Jun 2013 13:09:42 -0300 Subject: [IPython-dev] slideviewer on heroku In-Reply-To: References: Message-ID: At the moment, you have some themes available but they are all centered... In a couple of days I am releasing a new version left justified and some improvements. El jun 5, 2013 12:57 p.m., "Satrajit Ghosh" escribi?: hi damian, is there a way to choose a different theme on the slideviewer on heroku? in particular something that might left justifying everything other than the main slide title. cheers, satra _______________________________________________ IPython-dev mailing list IPython-dev at scipy.org http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Wed Jun 5 12:14:25 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Wed, 5 Jun 2013 12:14:25 -0400 Subject: [IPython-dev] slideviewer on heroku In-Reply-To: References: Message-ID: thanks damian. could you please provide a pointer on how to switch themes currently? cheers, satra On Wed, Jun 5, 2013 at 12:09 PM, Dami?n Avila wrote: > At the moment, you have some themes available but they are all centered... > In a couple of days I am releasing a new version left justified and some > improvements. > > El jun 5, 2013 12:57 p.m., "Satrajit Ghosh" escribi?: > > > hi damian, > > is there a way to choose a different theme on the slideviewer on heroku? > in particular something that might left justifying everything other than > the main slide title. > > cheers, > > satra > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From damianavila at gmail.com Wed Jun 5 12:22:31 2013 From: damianavila at gmail.com (=?ISO-8859-1?Q?Dami=E1n_Avila?=) Date: Wed, 5 Jun 2013 13:22:31 -0300 Subject: [IPython-dev] slideviewer on heroku In-Reply-To: References: Message-ID: Yeah, sorry not to mention before... In the url, at the end, before the #, you have to add ?theme=serif (or sky or beige). I am at phone now, later I can give you a better explanation if you can't view it... El jun 5, 2013 1:14 p.m., "Satrajit Ghosh" escribi?: thanks damian. could you please provide a pointer on how to switch themes currently? cheers, satra On Wed, Jun 5, 2013 at 12:09 PM, Dami?n Avila wrote: > > At the moment, you... _______________________________________________ IPython-dev mailing list IPython-dev at scipy.org http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Wed Jun 5 12:36:24 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Wed, 5 Jun 2013 12:36:24 -0400 Subject: [IPython-dev] slideviewer on heroku In-Reply-To: References: Message-ID: thanks. that works well. cheers, satra On Wed, Jun 5, 2013 at 12:22 PM, Dami?n Avila wrote: > Yeah, sorry not to mention before... In the url, at the end, before the #, > you have to add ?theme=serif (or sky or beige). I am at phone now, later I > can give you a better explanation if you can't view it... > > El jun 5, 2013 1:14 p.m., "Satrajit Ghosh" escribi?: > > thanks damian. could you please provide a pointer on how to switch themes > currently? > > cheers, > > satra > > > On Wed, Jun 5, 2013 at 12:09 PM, Dami?n Avila > wrote: > > > > At the moment, you... > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tarun.gaba7 at gmail.com Wed Jun 5 12:52:57 2013 From: tarun.gaba7 at gmail.com (TARUN GABA) Date: Wed, 5 Jun 2013 22:22:57 +0530 Subject: [IPython-dev] Including javascript from a static library Message-ID: Actually i want to run the script display from a .py file, as in a module. Moreover when i try to issue to libraries from a single cell, only second one gets called. For calling x libraries do i need to put those in x different cells? On 6/5/13, ipython-dev-request at scipy.org wrote: > Send IPython-dev mailing list submissions to > ipython-dev at scipy.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.scipy.org/mailman/listinfo/ipython-dev > or, via email, send a message with subject or body 'help' to > ipython-dev-request at scipy.org > > You can reach the person managing the list at > ipython-dev-owner at scipy.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of IPython-dev digest..." > > > Today's Topics: > > 1. Re: A good CSS snippet for better talk-style notebooks? > (Fernando Perez) > 2. Re: Including javascript from a static library > (Matthias BUSSONNIER) > 3. slideviewer on heroku (Satrajit Ghosh) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 4 Jun 2013 12:17:53 -0700 > From: Fernando Perez > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > notebooks? > To: IPython developers list > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > thanks! > > On Tue, Jun 4, 2013 at 12:00 PM, Matthias BUSSONNIER > wrote: >> Fernado, just put Aron css (attached to this mail) on the right place, >> ie, either replace your main custom.css, or replace slidemode/main.css >> in your profile dir. >> -- >> Matthias >> >> >> >> >> >> >> Le 4 juin 2013 ? 19:43, Fernando Perez a ?crit : >> >>> Do you have a version updated to work with the new layout of the >>> js/css as Matthias updated his? I can't seem to get the slideshow >>> button to load with yours so I can play with your nicer CSS :) >>> >>> On Tue, Jun 4, 2013 at 10:08 AM, Aron Ahmadia wrote: >>>> I posted my slideshow profile to here: >>>> https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz >>>> >>>> A >>>> >>>> >>>> On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER >>>> wrote: >>>>> >>>>> >>>>> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : >>>>> >>>>> I've got something similar to this that just got me through my slides >>>>> for >>>>> spring quarter. It is "presentation" in this gist: >>>>> https://gist.github.com/aflaxman/5707238. This is based on some ideas >>>>> from >>>>> the Slender Means blog: >>>>> http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ >>>>> >>>>> >>>>> May I suggest "how to write an IPython notebook css selector" that I >>>>> wrote ? >>>>> >>>>> >>>>> http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb >>>>> >>>>> It avoid relying on displaying css through python. >>>>> -- >>>>> Matthias >>>>> >>>>> >>>>> >>>>> The pres2 method in the gist renders Fernando's css below. >>>>> >>>>> --Abie >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: ipython-dev-bounces at scipy.org >>>>> [mailto:ipython-dev-bounces at scipy.org] >>>>> On Behalf Of Fernando Perez >>>>> Sent: Tuesday, June 04, 2013 1:22 AM >>>>> To: IPython developers list >>>>> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style >>>>> notebooks? >>>>> >>>>> Thanks, that got me on track. >>>>> >>>>> For the record, this is what I used: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I actually think we should in general change some of the vertical >>>>> spacing >>>>> of our headings even for the defaults, as it's in general too big. But >>>>> these >>>>> changes gave me reasonable layout at 1024x768 projector-ese for >>>>> headings, >>>>> text and bullet lists, as well as good font sizes for code. >>>>> >>>>> Cheers, >>>>> >>>>> f >>>>> >>>>> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: >>>>> >>>>> Fernando, I'm not sure if this would help, but a year ago I posted >>>>> >>>>> about tweaking Notebook css: >>>>> >>>>> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and >>>>> >>>>> it's even included in wiki: >>>>> >>>>> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook >>>>> >>>>> >>>>> Don't know if it works with current theme, and if it does you can use >>>>> >>>>> Theme Roller editor to customize the style. >>>>> >>>>> >>>>> However, I know you guys are busy and Notebook is complex, but perhaps >>>>> >>>>> you could make default IPython Notebook CSS more accessible. As it is >>>>> >>>>> now (if it is as I saw it last year) don't mind me saying that it's >>>>> >>>>> just terrible place hardly anyone would like to tweak >>>>> >>>>> >>>>> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez >>>>> wrote: >>>>> >>>>> Hi folks, >>>>> >>>>> >>>>> I've already given a bunch of talks with the notebook, but always >>>>> >>>>> using just the defaults and at most zooming in for readability. >>>>> >>>>> >>>>> Does any of you have a little snippet of CSS you like that styles a >>>>> >>>>> notebook a little better for a presentation (fonts, sizes, maybe even >>>>> >>>>> color, etc). If you have a favorte, send it my way! >>>>> >>>>> >>>>> Thanks in advance! >>>>> >>>>> >>>>> >>>>> f >>>>> >>>>> >>>>> -- >>>>> >>>>> Fernando Perez (@fperez_org; http://fperez.org) >>>>> >>>>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>>>> >>>>> fernando.perez-at-berkeley: contact me here for any direct mail >>>>> >>>>> _______________________________________________ >>>>> >>>>> IPython-dev mailing list >>>>> >>>>> IPython-dev at scipy.org >>>>> >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> _______________________________________________ >>>>> >>>>> IPython-dev mailing list >>>>> >>>>> IPython-dev at scipy.org >>>>> >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Fernando Perez (@fperez_org; http://fperez.org) >>>>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>>>> fernando.perez-at-berkeley: contact me here for any direct mail >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>> >>> >>> >>> -- >>> Fernando Perez (@fperez_org; http://fperez.org) >>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>> fernando.perez-at-berkeley: contact me here for any direct mail >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > > > ------------------------------ > > Message: 2 > Date: Tue, 4 Jun 2013 21:21:41 +0200 > From: Matthias BUSSONNIER > Subject: Re: [IPython-dev] Including javascript from a static library > To: IPython developers list > Message-ID: <3E4DB689-7C3A-476C-AAC5-A23B9AA9B856 at gmail.com> > Content-Type: text/plain; charset=iso-8859-1 > > > Are you displaying the Javascript Object ? > > display(Javascript()) > , or returning it as the last line of the cell ? > > blahblah > > blah > > foobar > > Javascript(...) > > Are those 2 calls (injecting three and using it) in the same cell ? > Is the initialization of Three.js async ? you could be running in a race > condition. > -- > Matthias > > > > Le 4 juin 2013 ? 21:04, TARUN GABA a ?crit : > >> Thanks, it works like a charm, >> But just after I call my three.js library, in the next line I am trying to >> display my javascript which uses functions from the library, but I get a >> not defined javascript error. >> Am I missing something here? >> Javascript(""" var a = new THREE.geometry();""") >> // error: THREE is not defined >> >> On Jun 4, 2013 11:59 PM, wrote: >> Send IPython-dev mailing list submissions to >> ipython-dev at scipy.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> or, via email, send a message with subject or body 'help' to >> ipython-dev-request at scipy.org >> >> You can reach the person managing the list at >> ipython-dev-owner at scipy.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of IPython-dev digest..." >> >> >> Today's Topics: >> >> 1. Re: A good CSS snippet for better talk-style notebooks? >> (Aron Ahmadia) >> 2. Re: A good CSS snippet for better talk-style notebooks? >> (Fernando Perez) >> 3. Including javascript from static library (TARUN GABA) >> 4. Re: Including javascript from static library (Satrajit Ghosh) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Tue, 4 Jun 2013 13:08:25 -0400 >> From: Aron Ahmadia >> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style >> notebooks? >> To: IPython developers list >> Message-ID: >> >> >> Content-Type: text/plain; charset="iso-8859-1" >> >> I posted my slideshow profile to here: >> https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz >> >> A >> >> >> On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER < >> bussonniermatthias at gmail.com> wrote: >> >> > >> > Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : >> > >> > I've got something similar to this that just got me through my slides >> > for >> > spring quarter. It is "presentation" in this gist: >> > https://gist.github.com/aflaxman/5707238. This is based on some ideas >> > from the Slender Means blog: >> > http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ >> > >> > >> > May I suggest "how to write an IPython notebook css selector" that I >> > wrote ? >> > >> > >> > http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb >> > >> > It avoid relying on displaying css through python. >> > -- >> > Matthias >> > >> > >> > >> > The pres2 method in the gist renders Fernando's css below. >> > >> > --Abie >> > >> > >> > -----Original Message----- >> > From: ipython-dev-bounces at scipy.org >> > [mailto:ipython-dev-bounces at scipy.org] >> > On Behalf Of Fernando Perez >> > Sent: Tuesday, June 04, 2013 1:22 AM >> > To: IPython developers list >> > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style >> > notebooks? >> > >> > Thanks, that got me on track. >> > >> > For the record, this is what I used: >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > I actually think we should in general change some of the vertical >> > spacing >> > of our headings even for the defaults, as it's in general too big. But >> > these changes gave me reasonable layout at 1024x768 projector-ese for >> > headings, text and bullet lists, as well as good font sizes for code. >> > >> > Cheers, >> > >> > f >> > >> > On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: >> > >> > Fernando, I'm not sure if this would help, but a year ago I posted >> > >> > about tweaking Notebook css: >> > >> > http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and >> > >> > it's even included in wiki: >> > >> > https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook >> > >> > >> > Don't know if it works with current theme, and if it does you can use >> > >> > Theme Roller editor to customize the style. >> > >> > >> > However, I know you guys are busy and Notebook is complex, but perhaps >> > >> > you could make default IPython Notebook CSS more accessible. As it is >> > >> > now (if it is as I saw it last year) don't mind me saying that it's >> > >> > just terrible place hardly anyone would like to tweak >> > >> > >> > On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez >> > wrote: >> > >> > Hi folks, >> > >> > >> > I've already given a bunch of talks with the notebook, but always >> > >> > using just the defaults and at most zooming in for readability. >> > >> > >> > Does any of you have a little snippet of CSS you like that styles a >> > >> > notebook a little better for a presentation (fonts, sizes, maybe even >> > >> > color, etc). If you have a favorte, send it my way! >> > >> > >> > Thanks in advance! >> > >> > >> > >> > f >> > >> > >> > -- >> > >> > Fernando Perez (@fperez_org; http://fperez.org) >> > >> > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> > >> > fernando.perez-at-berkeley: contact me here for any direct mail >> > >> > _______________________________________________ >> > >> > IPython-dev mailing list >> > >> > IPython-dev at scipy.org >> > >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> > _______________________________________________ >> > >> > IPython-dev mailing list >> > >> > IPython-dev at scipy.org >> > >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> > >> > >> > >> > -- >> > Fernando Perez (@fperez_org; http://fperez.org) >> > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> > fernando.perez-at-berkeley: contact me here for any direct mail >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> > >> > >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/b3b67327/attachment-0001.html >> >> ------------------------------ >> >> Message: 2 >> Date: Tue, 4 Jun 2013 10:43:55 -0700 >> From: Fernando Perez >> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style >> notebooks? >> To: IPython developers list >> Message-ID: >> >> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> Do you have a version updated to work with the new layout of the >> js/css as Matthias updated his? I can't seem to get the slideshow >> button to load with yours so I can play with your nicer CSS :) >> >> On Tue, Jun 4, 2013 at 10:08 AM, Aron Ahmadia wrote: >> > I posted my slideshow profile to here: >> > https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz >> > >> > A >> > >> > >> > On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER >> > wrote: >> >> >> >> >> >> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : >> >> >> >> I've got something similar to this that just got me through my slides >> >> for >> >> spring quarter. It is "presentation" in this gist: >> >> https://gist.github.com/aflaxman/5707238. This is based on some ideas >> >> from >> >> the Slender Means blog: >> >> http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ >> >> >> >> >> >> May I suggest "how to write an IPython notebook css selector" that I >> >> wrote ? >> >> >> >> >> >> http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb >> >> >> >> It avoid relying on displaying css through python. >> >> -- >> >> Matthias >> >> >> >> >> >> >> >> The pres2 method in the gist renders Fernando's css below. >> >> >> >> --Abie >> >> >> >> >> >> -----Original Message----- >> >> From: ipython-dev-bounces at scipy.org >> >> [mailto:ipython-dev-bounces at scipy.org] >> >> On Behalf Of Fernando Perez >> >> Sent: Tuesday, June 04, 2013 1:22 AM >> >> To: IPython developers list >> >> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style >> >> notebooks? >> >> >> >> Thanks, that got me on track. >> >> >> >> For the record, this is what I used: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> I actually think we should in general change some of the vertical >> >> spacing >> >> of our headings even for the defaults, as it's in general too big. But >> >> these >> >> changes gave me reasonable layout at 1024x768 projector-ese for >> >> headings, >> >> text and bullet lists, as well as good font sizes for code. >> >> >> >> Cheers, >> >> >> >> f >> >> >> >> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: >> >> >> >> Fernando, I'm not sure if this would help, but a year ago I posted >> >> >> >> about tweaking Notebook css: >> >> >> >> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.html and >> >> >> >> it's even included in wiki: >> >> >> >> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook >> >> >> >> >> >> Don't know if it works with current theme, and if it does you can use >> >> >> >> Theme Roller editor to customize the style. >> >> >> >> >> >> However, I know you guys are busy and Notebook is complex, but perhaps >> >> >> >> you could make default IPython Notebook CSS more accessible. As it is >> >> >> >> now (if it is as I saw it last year) don't mind me saying that it's >> >> >> >> just terrible place hardly anyone would like to tweak >> >> >> >> >> >> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez >> >> wrote: >> >> >> >> Hi folks, >> >> >> >> >> >> I've already given a bunch of talks with the notebook, but always >> >> >> >> using just the defaults and at most zooming in for readability. >> >> >> >> >> >> Does any of you have a little snippet of CSS you like that styles a >> >> >> >> notebook a little better for a presentation (fonts, sizes, maybe even >> >> >> >> color, etc). If you have a favorte, send it my way! >> >> >> >> >> >> Thanks in advance! >> >> >> >> >> >> >> >> f >> >> >> >> >> >> -- >> >> >> >> Fernando Perez (@fperez_org; http://fperez.org) >> >> >> >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> >> >> >> fernando.perez-at-berkeley: contact me here for any direct mail >> >> >> >> _______________________________________________ >> >> >> >> IPython-dev mailing list >> >> >> >> IPython-dev at scipy.org >> >> >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> _______________________________________________ >> >> >> >> IPython-dev mailing list >> >> >> >> IPython-dev at scipy.org >> >> >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> >> >> >> >> >> >> -- >> >> Fernando Perez (@fperez_org; http://fperez.org) >> >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> >> fernando.perez-at-berkeley: contact me here for any direct mail >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> >> >> >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> > >> > >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> >> >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> >> >> ------------------------------ >> >> Message: 3 >> Date: Tue, 4 Jun 2013 23:56:22 +0530 >> From: TARUN GABA >> Subject: [IPython-dev] Including javascript from static library >> To: ipython-dev at scipy.org >> Message-ID: >> >> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hi, >> >> Again for the same project, I have been working on, >> I need to include three.js and a few other javascript libraries for it to >> work. >> I am trying to include these js using ... >> >> HTML("'""""") >> >> At the developers console of my browser I am getting a 503 (service >> unavailable error) >> >> I also tried using .. >> >> HTML("""""") >> >> But got a 404( not found) at developer console. >> >> Any suggestions on how to efficiently include the js in ipython notebooks >> >> P.S. : I would prefer js files residing in my repo, rather than ipython >> configuration directory(alongwith custom.js) >> >> Thanks >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/8f59f250/attachment-0001.html >> >> ------------------------------ >> >> Message: 4 >> Date: Tue, 4 Jun 2013 14:28:36 -0400 >> From: Satrajit Ghosh >> Subject: Re: [IPython-dev] Including javascript from static library >> To: IPython developers list >> Message-ID: >> >> >> Content-Type: text/plain; charset="iso-8859-1" >> >> if your js directory is in the same location as the notebook try: >> >> src="files/js/three.js" >> >> cheers, >> >> satra >> >> On Tue, Jun 4, 2013 at 2:26 PM, TARUN GABA wrote: >> >> > Hi, >> > >> > Again for the same project, I have been working on, >> > I need to include three.js and a few other javascript libraries for it >> > to >> > work. >> > I am trying to include these js using ... >> > >> > HTML("'""""") >> > >> > At the developers console of my browser I am getting a 503 (service >> > unavailable error) >> > >> > I also tried using .. >> > >> > HTML("""""") >> > >> > But got a 404( not found) at developer console. >> > >> > Any suggestions on how to efficiently include the js in ipython >> > notebooks >> > >> > P.S. : I would prefer js files residing in my repo, rather than ipython >> > configuration directory(alongwith custom.js) >> > >> > Thanks >> > >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> http://mail.scipy.org/pipermail/ipython-dev/attachments/20130604/2dea886f/attachment.html >> >> ------------------------------ >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> End of IPython-dev Digest, Vol 113, Issue 9 >> ******************************************* >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > ------------------------------ > > Message: 3 > Date: Wed, 5 Jun 2013 11:57:13 -0400 > From: Satrajit Ghosh > Subject: [IPython-dev] slideviewer on heroku > To: IPython Development list > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > hi damian, > > is there a way to choose a different theme on the slideviewer on heroku? in > particular something that might left justifying everything other than the > main slide title. > > cheers, > > satra > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/ipython-dev/attachments/20130605/64fef005/attachment.html > > > ------------------------------ > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > End of IPython-dev Digest, Vol 113, Issue 11 > ******************************************** > From bussonniermatthias at gmail.com Wed Jun 5 13:39:42 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Wed, 5 Jun 2013 19:39:42 +0200 Subject: [IPython-dev] Including javascript from a static library In-Reply-To: References: Message-ID: Le 5 juin 2013 ? 18:52, TARUN GABA a ?crit : > Actually i want to run the script > display from a .py file, as in a module. > This Does not answer the question. doing > Javascipt('?.') > Javascrip('?.') or > display(Javascipt('?.')) > display(Javascrip('?.')) are not the same. Can't tell you what's wrong if we don't know what's happening. > Moreover when i try to issue to libraries from a single cell, only > second one gets called. For calling x libraries do i need to put those > in x different cells? Yes you can inject N Library in 1 cell. depends on how you write your calls. -- Matthias From aron at ahmadia.net Wed Jun 5 18:06:17 2013 From: aron at ahmadia.net (Aron Ahmadia) Date: Wed, 5 Jun 2013 18:06:17 -0400 Subject: [IPython-dev] A good CSS snippet for better talk-style notebooks? In-Reply-To: References: <1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com> <31462BBF-FC81-4A88-8C0A-3C8277492554@gmail.com> Message-ID: Were you able to get it working? I developed it on my Mac Retina, I have no idea what it looks like on other machines :) A On Tue, Jun 4, 2013 at 3:17 PM, Fernando Perez wrote: > thanks! > > On Tue, Jun 4, 2013 at 12:00 PM, Matthias BUSSONNIER > wrote: > > Fernado, just put Aron css (attached to this mail) on the right place, > > ie, either replace your main custom.css, or replace slidemode/main.css > > in your profile dir. > > -- > > Matthias > > > > > > > > > > > > > > Le 4 juin 2013 ? 19:43, Fernando Perez a ?crit : > > > >> Do you have a version updated to work with the new layout of the > >> js/css as Matthias updated his? I can't seem to get the slideshow > >> button to load with yours so I can play with your nicer CSS :) > >> > >> On Tue, Jun 4, 2013 at 10:08 AM, Aron Ahmadia wrote: > >>> I posted my slideshow profile to here: > >>> https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz > >>> > >>> A > >>> > >>> > >>> On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER > >>> wrote: > >>>> > >>>> > >>>> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : > >>>> > >>>> I've got something similar to this that just got me through my slides > for > >>>> spring quarter. It is "presentation" in this gist: > >>>> https://gist.github.com/aflaxman/5707238. This is based on some > ideas from > >>>> the Slender Means blog: > >>>> > http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ > >>>> > >>>> > >>>> May I suggest "how to write an IPython notebook css selector" that I > >>>> wrote ? > >>>> > >>>> > >>>> > http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb > >>>> > >>>> It avoid relying on displaying css through python. > >>>> -- > >>>> Matthias > >>>> > >>>> > >>>> > >>>> The pres2 method in the gist renders Fernando's css below. > >>>> > >>>> --Abie > >>>> > >>>> > >>>> -----Original Message----- > >>>> From: ipython-dev-bounces at scipy.org [mailto: > ipython-dev-bounces at scipy.org] > >>>> On Behalf Of Fernando Perez > >>>> Sent: Tuesday, June 04, 2013 1:22 AM > >>>> To: IPython developers list > >>>> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > >>>> notebooks? > >>>> > >>>> Thanks, that got me on track. > >>>> > >>>> For the record, this is what I used: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> I actually think we should in general change some of the vertical > spacing > >>>> of our headings even for the defaults, as it's in general too big. > But these > >>>> changes gave me reasonable layout at 1024x768 projector-ese for > headings, > >>>> text and bullet lists, as well as good font sizes for code. > >>>> > >>>> Cheers, > >>>> > >>>> f > >>>> > >>>> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: > >>>> > >>>> Fernando, I'm not sure if this would help, but a year ago I posted > >>>> > >>>> about tweaking Notebook css: > >>>> > >>>> http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.htmland > >>>> > >>>> it's even included in wiki: > >>>> > >>>> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > >>>> > >>>> > >>>> Don't know if it works with current theme, and if it does you can use > >>>> > >>>> Theme Roller editor to customize the style. > >>>> > >>>> > >>>> However, I know you guys are busy and Notebook is complex, but perhaps > >>>> > >>>> you could make default IPython Notebook CSS more accessible. As it is > >>>> > >>>> now (if it is as I saw it last year) don't mind me saying that it's > >>>> > >>>> just terrible place hardly anyone would like to tweak > >>>> > >>>> > >>>> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez > >>>> wrote: > >>>> > >>>> Hi folks, > >>>> > >>>> > >>>> I've already given a bunch of talks with the notebook, but always > >>>> > >>>> using just the defaults and at most zooming in for readability. > >>>> > >>>> > >>>> Does any of you have a little snippet of CSS you like that styles a > >>>> > >>>> notebook a little better for a presentation (fonts, sizes, maybe even > >>>> > >>>> color, etc). If you have a favorte, send it my way! > >>>> > >>>> > >>>> Thanks in advance! > >>>> > >>>> > >>>> > >>>> f > >>>> > >>>> > >>>> -- > >>>> > >>>> Fernando Perez (@fperez_org; http://fperez.org) > >>>> > >>>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > >>>> > >>>> fernando.perez-at-berkeley: contact me here for any direct mail > >>>> > >>>> _______________________________________________ > >>>> > >>>> IPython-dev mailing list > >>>> > >>>> IPython-dev at scipy.org > >>>> > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>>> > >>>> _______________________________________________ > >>>> > >>>> IPython-dev mailing list > >>>> > >>>> IPython-dev at scipy.org > >>>> > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> Fernando Perez (@fperez_org; http://fperez.org) > >>>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > >>>> fernando.perez-at-berkeley: contact me here for any direct mail > >>>> _______________________________________________ > >>>> IPython-dev mailing list > >>>> IPython-dev at scipy.org > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>>> _______________________________________________ > >>>> IPython-dev mailing list > >>>> IPython-dev at scipy.org > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>>> > >>>> > >>>> > >>>> _______________________________________________ > >>>> IPython-dev mailing list > >>>> IPython-dev at scipy.org > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>>> > >>> > >>> > >>> _______________________________________________ > >>> IPython-dev mailing list > >>> IPython-dev at scipy.org > >>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>> > >> > >> > >> > >> -- > >> Fernando Perez (@fperez_org; http://fperez.org) > >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > >> fernando.perez-at-berkeley: contact me here for any direct mail > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From massimodisasha at gmail.com Fri Jun 7 03:53:15 2013 From: massimodisasha at gmail.com (epi) Date: Fri, 7 Jun 2013 03:53:15 -0400 Subject: [IPython-dev] Setting up IPython with IPython-hydra and IPython-proxy Message-ID: <9D8DE04D-25B5-43D1-9D51-9A7F99F9F933@gmail.com> Hi All, I'm using IPython Notebook with a group of researcher at my university everything was working fine [1] but unfortunately they are stopping my services because they don't allow me to use expose to the whole internet the IP:PORT where the IPython instances are running. that's frustrating because i had to "quit" the services and now people is stuck with their work, no-more available :( i tried to set up a proxy with apache, but afaik apache doesn't like websoket . i tried enabling the mod_proxy, mod_proxy_html, mod_proxy_http and in the 000-defaults file under /etc/apache2/sites-enabled, I put the following lines: ProxyPass /ipython1 http://localhost:8080 Order allow,deny Allow from All ProxyPassReverse / #ProxyHTMLExtended On ProxyHTMLURLMap / /ipython1/ c SetOutputFilter proxy-html but the page will not render properly. Googling i came across IPython-Hydra and IPython-Proxy and at this link https://github.com/cni/ipython-hydra/issues/1 is described exactly what i was looking for i tried to set up IPython-notebook-proxy but i got the same result of using apache proxy (no js/css loaded) i also tried to setup ipython-hydra but it gave me : [Wed Jun 05 06:25:28 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required 'Logging.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ipython-hydra.php on line 2 thank you for any help! [1] ### the non-solution i was using : I added on a linux machine N unix-users and add in "crontab -e" : @reboot /bin/sh /usr/local/bin/ipython.sh # where "ipython.sh" is a script to export few environment vars and run an ipython notebook with a specific profile (where the --port is specified) this ends that at each reboot all the unix users have a running notebook on their specific port. then from the apache root directory "/var/ww/" i stored a set of html file : "/var/www/ipython/user1.html" ? "/var/www/ipython/userN.html" with this code in it : MySite ### -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Fri Jun 7 04:06:53 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Fri, 7 Jun 2013 10:06:53 +0200 Subject: [IPython-dev] Setting up IPython with IPython-hydra and IPython-proxy In-Reply-To: <9D8DE04D-25B5-43D1-9D51-9A7F99F9F933@gmail.com> References: <9D8DE04D-25B5-43D1-9D51-9A7F99F9F933@gmail.com> Message-ID: Hi, I once developped a prof of concept of node proxy able to do a arbitrary mapping between urls and notebook NPM https://npmjs.org/package/ipython-notebook-proxy Github https://github.com/Carreau/IPython-notebook-proxy You can even add/remove servers on the fly if needed. I just don't have enough time to manage it but the code is pretty simple (120 LOC, white line included) So you should be able to figure out how to adapt to your needs. -- Matthias Le 7 juin 2013 ? 09:53, epi a ?crit : > Hi All, > > I'm using IPython Notebook with a group of researcher at my university everything was working fine [1] > but unfortunately they are stopping my services because they don't allow me to use expose to the whole internet the IP:PORT where the IPython instances are running. > > that's frustrating because i had to "quit" the services and now people is stuck with their work, no-more available :( > > > i tried to set up a proxy with apache, but afaik apache doesn't like websoket . > > i tried enabling the mod_proxy, mod_proxy_html, mod_proxy_http and in the 000-defaults file under /etc/apache2/sites-enabled, > I put the following lines: > > ProxyPass /ipython1 http://localhost:8080 > > > Order allow,deny > Allow from All > ProxyPassReverse / > #ProxyHTMLExtended On > ProxyHTMLURLMap / /ipython1/ c > SetOutputFilter proxy-html > > > but the page will not render properly. > > > > Googling i came across IPython-Hydra and IPython-Proxy > and at this link https://github.com/cni/ipython-hydra/issues/1 > is described exactly what i was looking for > > i tried to set up IPython-notebook-proxy but i got the same result of using apache proxy (no js/css loaded) > > > i also tried to setup ipython-hydra but it gave me : > > [Wed Jun 05 06:25:28 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required 'Logging.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ipython-hydra.php on line 2 > > > thank you for any help! > > > > > [1] > ### > the non-solution i was using : > > I added on a linux machine N unix-users and add in "crontab -e" : > > @reboot /bin/sh /usr/local/bin/ipython.sh > > > # where "ipython.sh" is a script to export few environment vars and run an ipython notebook with a specific profile (where the --port is specified) > > > this ends that at each reboot all the unix users have a running notebook on their specific port. > > then from the apache root directory "/var/ww/" i stored a set of html file : > > "/var/www/ipython/user1.html" > ? > "/var/www/ipython/userN.html" > > with this code in it : > > > "http://www.w3.org/TR/html4/strict.dtd"> > > > MySite > > > > > > > > ### > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From massimodisasha at gmail.com Fri Jun 7 04:22:40 2013 From: massimodisasha at gmail.com (epi) Date: Fri, 7 Jun 2013 04:22:40 -0400 Subject: [IPython-dev] Setting up IPython with IPython-hydra and IPython-proxy In-Reply-To: References: <9D8DE04D-25B5-43D1-9D51-9A7F99F9F933@gmail.com> Message-ID: Hi Matthias, i tried it, in the past i had it running using localhost but was not running using a real IP now truing again (ipytho git master) i can't have it running anymore, no clue on what's wrong 127.0.0.1/ipython give not found localhost/ipython not found 127.0.0.1:8888/ipython load the page without css/js i tried to read the main.js i'm still on it ... thanks for any further help. Il giorno 07/giu/2013, alle ore 04:06, Matthias BUSSONNIER ha scritto: > Hi, > > I once developped a prof of concept of node proxy able to do a arbitrary mapping between urls and notebook > > NPM > https://npmjs.org/package/ipython-notebook-proxy > > Github > https://github.com/Carreau/IPython-notebook-proxy > > You can even add/remove servers on the fly if needed. > > I just don't have enough time to manage it but the code is pretty simple (120 LOC, white line included) > So you should be able to figure out how to adapt to your needs. > -- > Matthias > > > > > Le 7 juin 2013 ? 09:53, epi a ?crit : > >> Hi All, >> >> I'm using IPython Notebook with a group of researcher at my university everything was working fine [1] >> but unfortunately they are stopping my services because they don't allow me to use expose to the whole internet the IP:PORT where the IPython instances are running. >> >> that's frustrating because i had to "quit" the services and now people is stuck with their work, no-more available :( >> >> >> i tried to set up a proxy with apache, but afaik apache doesn't like websoket . >> >> i tried enabling the mod_proxy, mod_proxy_html, mod_proxy_http and in the 000-defaults file under /etc/apache2/sites-enabled, >> I put the following lines: >> >> ProxyPass /ipython1 http://localhost:8080 >> >> >> Order allow,deny >> Allow from All >> ProxyPassReverse / >> #ProxyHTMLExtended On >> ProxyHTMLURLMap / /ipython1/ c >> SetOutputFilter proxy-html >> >> >> but the page will not render properly. >> >> >> >> Googling i came across IPython-Hydra and IPython-Proxy >> and at this link https://github.com/cni/ipython-hydra/issues/1 >> is described exactly what i was looking for >> >> i tried to set up IPython-notebook-proxy but i got the same result of using apache proxy (no js/css loaded) >> >> >> i also tried to setup ipython-hydra but it gave me : >> >> [Wed Jun 05 06:25:28 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required 'Logging.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ipython-hydra.php on line 2 >> >> >> thank you for any help! >> >> >> >> >> [1] >> ### >> the non-solution i was using : >> >> I added on a linux machine N unix-users and add in "crontab -e" : >> >> @reboot /bin/sh /usr/local/bin/ipython.sh >> >> >> # where "ipython.sh" is a script to export few environment vars and run an ipython notebook with a specific profile (where the --port is specified) >> >> >> this ends that at each reboot all the unix users have a running notebook on their specific port. >> >> then from the apache root directory "/var/ww/" i stored a set of html file : >> >> "/var/www/ipython/user1.html" >> ? >> "/var/www/ipython/userN.html" >> >> with this code in it : >> >> >> > "http://www.w3.org/TR/html4/strict.dtd"> >> >> >> MySite >> >> >> >> >> >> >> >> ### >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From tarun.gaba7 at gmail.com Fri Jun 7 05:36:16 2013 From: tarun.gaba7 at gmail.com (TARUN GABA) Date: Fri, 7 Jun 2013 15:06:16 +0530 Subject: [IPython-dev] Including js from static library Message-ID: On Thu, Jun 6, 2013 at 10:30 PM, wrote: > Send IPython-dev mailing list submissions to > ipython-dev at scipy.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.scipy.org/mailman/listinfo/ipython-dev > or, via email, send a message with subject or body 'help' to > ipython-dev-request at scipy.org > > You can reach the person managing the list at > ipython-dev-owner at scipy.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of IPython-dev digest..." > > > Today's Topics: > > 1. Re: Including javascript from a static library > (Matthias BUSSONNIER) > 2. Re: A good CSS snippet for better talk-style notebooks? > (Aron Ahmadia) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 5 Jun 2013 19:39:42 +0200 > From: Matthias BUSSONNIER > Subject: Re: [IPython-dev] Including javascript from a static library > To: IPython developers list > Message-ID: > Content-Type: text/plain; charset=windows-1252 > > > Le 5 juin 2013 ? 18:52, TARUN GABA a ?crit : > > > Actually i want to run the script > > display from a .py file, as in a module. > > > > This Does not answer the question. > what I was doing: HTML("""""") what I needed to do: *display(*HTML("""""")) Now, the problem is resolved, Thanks .. > > doing > > > Javascipt('?.') > > Javascrip('?.') > > or > > > display(Javascipt('?.')) > > display(Javascrip('?.')) > > are not the same. > > Can't tell you what's wrong if we don't know what's happening. > > > Moreover when i try to issue to libraries from a single cell, only > > second one gets called. For calling x libraries do i need to put those > > in x different cells? > > Yes you can inject N Library in 1 cell. > depends on how you write your calls. > > -- > Matthias > > > > ------------------------------ > > Message: 2 > Date: Wed, 5 Jun 2013 18:06:17 -0400 > From: Aron Ahmadia > Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > notebooks? > To: IPython developers list > Message-ID: > < > CAPhiW4i2v6hohcoq6R+R80O7pMe4bxqELo-rApNOEJG+7ko5wQ at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Were you able to get it working? I developed it on my Mac Retina, I have > no idea what it looks like on other machines :) > > A > > > On Tue, Jun 4, 2013 at 3:17 PM, Fernando Perez > wrote: > > > thanks! > > > > On Tue, Jun 4, 2013 at 12:00 PM, Matthias BUSSONNIER > > wrote: > > > Fernado, just put Aron css (attached to this mail) on the right place, > > > ie, either replace your main custom.css, or replace slidemode/main.css > > > in your profile dir. > > > -- > > > Matthias > > > > > > > > > > > > > > > > > > > > > Le 4 juin 2013 ? 19:43, Fernando Perez a ?crit : > > > > > >> Do you have a version updated to work with the new layout of the > > >> js/css as Matthias updated his? I can't seem to get the slideshow > > >> button to load with yours so I can play with your nicer CSS :) > > >> > > >> On Tue, Jun 4, 2013 at 10:08 AM, Aron Ahmadia > wrote: > > >>> I posted my slideshow profile to here: > > >>> https://plus.google.com/105827017409315158569/posts/ErYVSBu6DEz > > >>> > > >>> A > > >>> > > >>> > > >>> On Tue, Jun 4, 2013 at 12:30 PM, Matthias BUSSONNIER > > >>> wrote: > > >>>> > > >>>> > > >>>> Le 4 juin 2013 ? 18:18, Abraham D. Flaxman a ?crit : > > >>>> > > >>>> I've got something similar to this that just got me through my > slides > > for > > >>>> spring quarter. It is "presentation" in this gist: > > >>>> https://gist.github.com/aflaxman/5707238. This is based on some > > ideas from > > >>>> the Slender Means blog: > > >>>> > > > http://healthyalgorithms.com/2013/02/01/better-typography-for-ipython-notebooks-now/ > > >>>> > > >>>> > > >>>> May I suggest "how to write an IPython notebook css selector" that > I > > >>>> wrote ? > > >>>> > > >>>> > > >>>> > > > http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/02-css-selector.ipynb > > >>>> > > >>>> It avoid relying on displaying css through python. > > >>>> -- > > >>>> Matthias > > >>>> > > >>>> > > >>>> > > >>>> The pres2 method in the gist renders Fernando's css below. > > >>>> > > >>>> --Abie > > >>>> > > >>>> > > >>>> -----Original Message----- > > >>>> From: ipython-dev-bounces at scipy.org [mailto: > > ipython-dev-bounces at scipy.org] > > >>>> On Behalf Of Fernando Perez > > >>>> Sent: Tuesday, June 04, 2013 1:22 AM > > >>>> To: IPython developers list > > >>>> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style > > >>>> notebooks? > > >>>> > > >>>> Thanks, that got me on track. > > >>>> > > >>>> For the record, this is what I used: > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> I actually think we should in general change some of the vertical > > spacing > > >>>> of our headings even for the defaults, as it's in general too big. > > But these > > >>>> changes gave me reasonable layout at 1024x768 projector-ese for > > headings, > > >>>> text and bullet lists, as well as good font sizes for code. > > >>>> > > >>>> Cheers, > > >>>> > > >>>> f > > >>>> > > >>>> On Mon, Jun 3, 2013 at 6:23 PM, klo uo wrote: > > >>>> > > >>>> Fernando, I'm not sure if this would help, but a year ago I posted > > >>>> > > >>>> about tweaking Notebook css: > > >>>> > > >>>> > http://mail.scipy.org/pipermail/ipython-user/2012-July/010533.htmland > > >>>> > > >>>> it's even included in wiki: > > >>>> > > >>>> https://github.com/ipython/ipython/wiki/Cookbook:-Styling-Notebook > > >>>> > > >>>> > > >>>> Don't know if it works with current theme, and if it does you can > use > > >>>> > > >>>> Theme Roller editor to customize the style. > > >>>> > > >>>> > > >>>> However, I know you guys are busy and Notebook is complex, but > perhaps > > >>>> > > >>>> you could make default IPython Notebook CSS more accessible. As it > is > > >>>> > > >>>> now (if it is as I saw it last year) don't mind me saying that it's > > >>>> > > >>>> just terrible place hardly anyone would like to tweak > > >>>> > > >>>> > > >>>> On Tue, Jun 4, 2013 at 2:45 AM, Fernando Perez < > fperez.net at gmail.com> > > >>>> wrote: > > >>>> > > >>>> Hi folks, > > >>>> > > >>>> > > >>>> I've already given a bunch of talks with the notebook, but always > > >>>> > > >>>> using just the defaults and at most zooming in for readability. > > >>>> > > >>>> > > >>>> Does any of you have a little snippet of CSS you like that styles a > > >>>> > > >>>> notebook a little better for a presentation (fonts, sizes, maybe > even > > >>>> > > >>>> color, etc). If you have a favorte, send it my way! > > >>>> > > >>>> > > >>>> Thanks in advance! > > >>>> > > >>>> > > >>>> > > >>>> f > > >>>> > > >>>> > > >>>> -- > > >>>> > > >>>> Fernando Perez (@fperez_org; http://fperez.org) > > >>>> > > >>>> fperez.net-at-gmail: mailing lists only (I ignore this when > swamped!) > > >>>> > > >>>> fernando.perez-at-berkeley: contact me here for any direct mail > > >>>> > > >>>> _______________________________________________ > > >>>> > > >>>> IPython-dev mailing list > > >>>> > > >>>> IPython-dev at scipy.org > > >>>> > > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > > >>>> > > >>>> _______________________________________________ > > >>>> > > >>>> IPython-dev mailing list > > >>>> > > >>>> IPython-dev at scipy.org > > >>>> > > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> -- > > >>>> Fernando Perez (@fperez_org; http://fperez.org) > > >>>> fperez.net-at-gmail: mailing lists only (I ignore this when > swamped!) > > >>>> fernando.perez-at-berkeley: contact me here for any direct mail > > >>>> _______________________________________________ > > >>>> IPython-dev mailing list > > >>>> IPython-dev at scipy.org > > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > > >>>> _______________________________________________ > > >>>> IPython-dev mailing list > > >>>> IPython-dev at scipy.org > > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > > >>>> > > >>>> > > >>>> > > >>>> _______________________________________________ > > >>>> IPython-dev mailing list > > >>>> IPython-dev at scipy.org > > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > > >>>> > > >>> > > >>> > > >>> _______________________________________________ > > >>> IPython-dev mailing list > > >>> IPython-dev at scipy.org > > >>> http://mail.scipy.org/mailman/listinfo/ipython-dev > > >>> > > >> > > >> > > >> > > >> -- > > >> Fernando Perez (@fperez_org; http://fperez.org) > > >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > > >> fernando.perez-at-berkeley: contact me here for any direct mail > > >> _______________________________________________ > > >> IPython-dev mailing list > > >> IPython-dev at scipy.org > > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > > _______________________________________________ > > > IPython-dev mailing list > > > IPython-dev at scipy.org > > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > > > > -- > > Fernando Perez (@fperez_org; http://fperez.org) > > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > > fernando.perez-at-berkeley: contact me here for any direct mail > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/ipython-dev/attachments/20130605/dc008f63/attachment-0001.html > > ------------------------------ > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > End of IPython-dev Digest, Vol 113, Issue 13 > ******************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From massimodisasha at gmail.com Fri Jun 7 13:02:35 2013 From: massimodisasha at gmail.com (epi) Date: Fri, 7 Jun 2013 13:02:35 -0400 Subject: [IPython-dev] Setting up IPython with IPython-hydra and IPython-proxy In-Reply-To: <313537B2-C7EF-47E5-A149-B262A0869061@gmail.com> References: <9D8DE04D-25B5-43D1-9D51-9A7F99F9F933@gmail.com> <313537B2-C7EF-47E5-A149-B262A0869061@gmail.com> Message-ID: Hi Matthias, i tried several combination of url, but no one was working with ipython master i removed the dev version and used the stable version0.13.2 (apt-be on debian) running : start("ipython",8888) i got the url : http://localhost:8888/ipython/ working properly (but it still use the port) if i use the "proxy" url : http://localhost:8000/ipython/ i got the same results that apache_proxy gave me (only plain html loaded) see screenshot [1] [1] http://www.geofemengineering.it//data/ipython-proxy.png Matthias, really thanks for your help, please don't blame me to be too insistent .. i'm trying hard to have it running (i got lost in the 120 lines, i'm still on it .. no clue how to debug-test that code) thank you. Massimo. p.s. is my thought a feature like this has all the right to be included in the development, most sys admins are against opening ports for each instance having this running for ipython will help a lot of peoples ? that's absolutely true if we're trying to push the use of ipython in government agency (that's what i'm doing) Il giorno 07/giu/2013, alle ore 04:21, epi ha scritto: > Hi Matthias, > > i tried it, in the past i had it running using localhost but was not running using a real IP > > now truing again (ipytho git master) i can't have it running anymore > > 127.0.0.1/ipython give not found > > localhost/ipython not found > > 127.0.0.1:8888/ipython load the page without css/js > > > i tried to read the main.js no comments doesn't help, but i'm still trying > > thanks for any further help. > > Il giorno 07/giu/2013, alle ore 04:06, Matthias BUSSONNIER ha scritto: > >> Hi, >> >> I once developped a prof of concept of node proxy able to do a arbitrary mapping between urls and notebook >> >> NPM >> https://npmjs.org/package/ipython-notebook-proxy >> >> Github >> https://github.com/Carreau/IPython-notebook-proxy >> >> You can even add/remove servers on the fly if needed. >> >> I just don't have enough time to manage it but the code is pretty simple (120 LOC, white line included) >> So you should be able to figure out how to adapt to your needs. >> -- >> Matthias >> >> >> >> >> Le 7 juin 2013 ? 09:53, epi a ?crit : >> >>> Hi All, >>> >>> I'm using IPython Notebook with a group of researcher at my university everything was working fine [1] >>> but unfortunately they are stopping my services because they don't allow me to use expose to the whole internet the IP:PORT where the IPython instances are running. >>> >>> that's frustrating because i had to "quit" the services and now people is stuck with their work, no-more available :( >>> >>> >>> i tried to set up a proxy with apache, but afaik apache doesn't like websoket . >>> >>> i tried enabling the mod_proxy, mod_proxy_html, mod_proxy_http and in the 000-defaults file under /etc/apache2/sites-enabled, >>> I put the following lines: >>> >>> ProxyPass /ipython1 http://localhost:8080 >>> >>> >>> Order allow,deny >>> Allow from All >>> ProxyPassReverse / >>> #ProxyHTMLExtended On >>> ProxyHTMLURLMap / /ipython1/ c >>> SetOutputFilter proxy-html >>> >>> >>> but the page will not render properly. >>> >>> >>> >>> Googling i came across IPython-Hydra and IPython-Proxy >>> and at this link https://github.com/cni/ipython-hydra/issues/1 >>> is described exactly what i was looking for >>> >>> i tried to set up IPython-notebook-proxy but i got the same result of using apache proxy (no js/css loaded) >>> >>> >>> i also tried to setup ipython-hydra but it gave me : >>> >>> [Wed Jun 05 06:25:28 2013] [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required 'Logging.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ipython-hydra.php on line 2 >>> >>> >>> thank you for any help! >>> >>> >>> >>> >>> [1] >>> ### >>> the non-solution i was using : >>> >>> I added on a linux machine N unix-users and add in "crontab -e" : >>> >>> @reboot /bin/sh /usr/local/bin/ipython.sh >>> >>> >>> # where "ipython.sh" is a script to export few environment vars and run an ipython notebook with a specific profile (where the --port is specified) >>> >>> >>> this ends that at each reboot all the unix users have a running notebook on their specific port. >>> >>> then from the apache root directory "/var/ww/" i stored a set of html file : >>> >>> "/var/www/ipython/user1.html" >>> ? >>> "/var/www/ipython/userN.html" >>> >>> with this code in it : >>> >>> >>> >> "http://www.w3.org/TR/html4/strict.dtd"> >>> >>> >>> MySite >>> >>> >>> >>> >>> >>> >>> >>> ### >>> >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.root at ou.edu Sat Jun 8 10:20:15 2013 From: ben.root at ou.edu (Benjamin Root) Date: Sat, 8 Jun 2013 10:20:15 -0400 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: On Mon, Jun 3, 2013 at 10:58 AM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > > Le 3 juin 2013 ? 15:31, Benjamin Root a ?crit : > > > On Mon, Jun 3, 2013 at 2:58 AM, Matthias BUSSONNIER < > bussonniermatthias at gmail.com> wrote: > >> Hi ben, >> Le 3 juin 2013 ? 00:43, Benjamin Root a ?crit : >> >> > Digging further, I see that the xml data is making it to the browser, >> but the javascript embedded within the svg file is completely stripped out. >> Is that on purpose? Is there a way I can override that behavior? >> >> No we don't strip js out of XML by intent (yet). Have you try to use HTML >> that itself contain a script tag, and an svg tag with an ID so that you >> can refer to it ? >> > > Well, something is stripping it out, between the call to > IPython.display.SVG() and what Firefox tells me it sees. Since I need this > to work for the tutorial, I am just going to have to assume that this is a > bug somewhere and go for the embedded HTML approach that you suggest, since > most of those at the tutorial would have this bug. > > > Could it be linked to > https://github.com/ipython/ipython/issues/1866 ? > > Can you share an ipynb so that I can take a look ? > Sorry for the delay... hurricane season has started. Anyway, I attached an ipynb and the svg for your perusal. That notebook also has an attempt at adding the javascript separately, but I think I am doing it wrong. I am not a web dev, so this is all very new to me. Thanks! Ben Root -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SVG test.ipynb Type: application/octet-stream Size: 98440 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: plot_demo.svg Type: image/svg+xml Size: 104838 bytes Desc: not available URL: From bussonniermatthias at gmail.com Sat Jun 8 11:15:15 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Sat, 8 Jun 2013 17:15:15 +0200 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: Hi Ben, I was able to have it work (at least tooltip showing some text), with the help of jQuery , with the following. function ShowTooltip(evt, mouseovertext) { console.log(mouseovertext, tooltip_bg) $(tooltip).text(mouseovertext); $(tooltip).attr('visibility','visible'); length = tooltip.getComputedTextLength(); $(tooltip_bg).attr('width',length+10); $(tooltip_bg).attr('visibility','visible'); } the script tag in the sag is not visible while inspecting the dom, but It is definitively saved in the notebook. My guess is that firefox/chrome?etc are stripping JS. Hope it will help you to start achieving what you want. -- Matthias Le 8 juin 2013 ? 16:20, Benjamin Root a ?crit : > > On Mon, Jun 3, 2013 at 10:58 AM, Matthias BUSSONNIER wrote: > > Le 3 juin 2013 ? 15:31, Benjamin Root a ?crit : > >> >> On Mon, Jun 3, 2013 at 2:58 AM, Matthias BUSSONNIER wrote: >> Hi ben, >> Le 3 juin 2013 ? 00:43, Benjamin Root a ?crit : >> >> > Digging further, I see that the xml data is making it to the browser, but the javascript embedded within the svg file is completely stripped out. Is that on purpose? Is there a way I can override that behavior? >> >> No we don't strip js out of XML by intent (yet). Have you try to use HTML that itself contain a script tag, and an svg tag with an ID so that you can refer to it ? >> >> Well, something is stripping it out, between the call to IPython.display.SVG() and what Firefox tells me it sees. Since I need this to work for the tutorial, I am just going to have to assume that this is a bug somewhere and go for the embedded HTML approach that you suggest, since most of those at the tutorial would have this bug. > > Could it be linked to > https://github.com/ipython/ipython/issues/1866 ? > > Can you share an ipynb so that I can take a look ? > > Sorry for the delay... hurricane season has started. Anyway, I attached an ipynb and the svg for your perusal. That notebook also has an attempt at adding the javascript separately, but I think I am doing it wrong. I am not a web dev, so this is all very new to me. > > Thanks! > Ben Root > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason-sage at creativetrax.com Sat Jun 8 11:18:57 2013 From: jason-sage at creativetrax.com (Jason Grout) Date: Sat, 08 Jun 2013 11:18:57 -0400 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: <51B34B61.7080005@creativetrax.com> On 6/8/13 11:15 AM, Matthias BUSSONNIER wrote: > My guess is that firefox/chrome?etc are stripping JS. I wouldn't be surprised at this. In some sage development a while ago, I observed different behavior in different browsers with regards to whether script tags were executed when html was inserted in the DOM. In Sage, we ended up always stripping out script tags and then executing them separately. Jason From ben.root at ou.edu Sat Jun 8 11:36:31 2013 From: ben.root at ou.edu (Benjamin Root) Date: Sat, 8 Jun 2013 11:36:31 -0400 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: On Sat, Jun 8, 2013 at 11:15 AM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > Hi Ben, > > I was able to have it work (at least tooltip showing some text), with the > help of jQuery , with the following. > > > function ShowTooltip(evt, mouseovertext) > { > console.log(mouseovertext, tooltip_bg) > $(tooltip).text(mouseovertext); > $(tooltip).attr('visibility','visible'); > length = tooltip.getComputedTextLength(); > $(tooltip_bg).attr('width',length+10); > $(tooltip_bg).attr('visibility','visible'); > } > > > the script tag in the sag is not visible while inspecting the dom, but It > is definitively saved in the notebook. > My guess is that firefox/chrome?etc are stripping JS. > > Hope it will help you to start achieving what you want. > Well, that's great, but like I said, I am not a web developer. Could you pass back the notebook and the svg so I can see what you did? Just simply changing that in the script doesn't work because there is obviously more to it than just that. Thanks, Ben Root -------------- next part -------------- An HTML attachment was scrubbed... URL: From ondrej.certik at gmail.com Sat Jun 8 15:25:27 2013 From: ondrej.certik at gmail.com (=?UTF-8?B?T25kxZllaiDEjGVydMOtaw==?=) Date: Sat, 8 Jun 2013 13:25:27 -0600 Subject: [IPython-dev] Implementing widgets Message-ID: Hi, I have implemented the slider widget here: http://nbviewer.ipython.org/5736280 >From the cell [2] you can see how it is used, it's trivial. I suggest you run this in your local notebook, because the cell output is not visible in the nbviewer. Also you need Chrome, as Firefox doesn't support the HTML 5 slider and I haven't figure out how to use jquery's slider yet. I read your roadmap, and my understanding is that the plan is to start developing this in December. Unfortunately I needed something now, so I wrote the above. I have already tested it for rotation of a 3D visualization using VTK 6 in ipython notebook (offscreen rendering) and it works great. What is your plan and actual ideas how these widgets should be implemented? Is there a reason why work on this cannot start now? I'll be happy to help with this and send PRs. If I recall correctly, you wanted to implement the widgets using the IPython implementation of traits? Ondrej From jakevdp at cs.washington.edu Sat Jun 8 17:43:56 2013 From: jakevdp at cs.washington.edu (Jacob Vanderplas) Date: Sat, 8 Jun 2013 14:43:56 -0700 Subject: [IPython-dev] Implementing widgets In-Reply-To: References: Message-ID: Very cool! One comment: I think that rather than passing python_var an explicit name, it might be better to populate a dict in the IPython namespace with the names of objects that need to be accessed by the javascript. i.e., within the slider init function, you could have something along the lines of: ``` import IPython if not hasattr(IPython, "_interactive_elements"): IPython._interactive_elements = {} key = random.randint(0, 1E7) # or use some sort of hash function IPython._interactive_elements[key] = self self._python_var = "IPython._interactive_elements[%i]" % key ``` That would keep track of the object names in the background. Other than that, I like the implementation! Jake On Sat, Jun 8, 2013 at 12:25 PM, Ond?ej ?ert?k wrote: > Hi, > > I have implemented the slider widget here: > > http://nbviewer.ipython.org/5736280 > > >From the cell [2] you can see how it is used, it's trivial. I suggest > you run this in your local notebook, because the cell output is not > visible in the nbviewer. Also you need Chrome, as Firefox doesn't > support the HTML 5 slider and I haven't figure out how to use jquery's > slider yet. > > I read your roadmap, and my understanding is that the plan is to start > developing this in December. Unfortunately I needed something now, so > I wrote the above. > > I have already tested it for rotation of a 3D visualization using VTK > 6 in ipython notebook (offscreen rendering) and it works great. > > What is your plan and actual ideas how these widgets should be implemented? > Is there a reason why work on this cannot start now? I'll be happy to > help with this > and send PRs. > > If I recall correctly, you wanted to implement the widgets using the > IPython implementation of traits? > > Ondrej > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ondrej.certik at gmail.com Sun Jun 9 17:14:10 2013 From: ondrej.certik at gmail.com (=?UTF-8?B?T25kxZllaiDEjGVydMOtaw==?=) Date: Sun, 9 Jun 2013 15:14:10 -0600 Subject: [IPython-dev] Implementing widgets In-Reply-To: References: Message-ID: Hi Jake, Yes. And also the same thing on the JS side --- currently I am populating the global name space with global functions, which is not good. Ideally there would be some nice javascript class/object and then we'll attach the instances into the global IPython object. Also, this is just a demo of exactly one slider to show that the user interface can be a nice simple Python code. I actually need more GUI elements. So I think that something like Traits UI: http://code.enthought.com/projects/traits/docs/html/index.html would be the way to go. Those are all questions that the IPython developers should provide feedback on, so that I can do something that could be merged. Ondrej On Sat, Jun 8, 2013 at 3:43 PM, Jacob Vanderplas wrote: > Very cool! > One comment: I think that rather than passing python_var an explicit name, > it might be better to populate a dict in the IPython namespace with the > names of objects that need to be accessed by the javascript. i.e., within > the slider init function, you could have something along the lines of: > > ``` > import IPython > if not hasattr(IPython, "_interactive_elements"): > IPython._interactive_elements = {} > > key = random.randint(0, 1E7) # or use some sort of hash function > IPython._interactive_elements[key] = self > self._python_var = "IPython._interactive_elements[%i]" % key > ``` > > That would keep track of the object names in the background. > Other than that, I like the implementation! > Jake > > > On Sat, Jun 8, 2013 at 12:25 PM, Ond?ej ?ert?k > wrote: >> >> Hi, >> >> I have implemented the slider widget here: >> >> http://nbviewer.ipython.org/5736280 >> >> >From the cell [2] you can see how it is used, it's trivial. I suggest >> you run this in your local notebook, because the cell output is not >> visible in the nbviewer. Also you need Chrome, as Firefox doesn't >> support the HTML 5 slider and I haven't figure out how to use jquery's >> slider yet. >> >> I read your roadmap, and my understanding is that the plan is to start >> developing this in December. Unfortunately I needed something now, so >> I wrote the above. >> >> I have already tested it for rotation of a 3D visualization using VTK >> 6 in ipython notebook (offscreen rendering) and it works great. >> >> What is your plan and actual ideas how these widgets should be >> implemented? >> Is there a reason why work on this cannot start now? I'll be happy to >> help with this >> and send PRs. >> >> If I recall correctly, you wanted to implement the widgets using the >> IPython implementation of traits? >> >> Ondrej >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From gmbecker at ucdavis.edu Mon Jun 10 00:17:36 2013 From: gmbecker at ucdavis.edu (Gabriel Becker) Date: Sun, 9 Jun 2013 21:17:36 -0700 Subject: [IPython-dev] Implementing widgets In-Reply-To: References: Message-ID: Ondrej, This seems very cool. I have been working toward what seems like a similar goal, but from a different angle. My aim is to have the interactivity and ability to control parameter values and re-execute the code be an attribute of the codecell itself, rather than a consequence of the particular code run within the codecell. I approached the problem this way for a couple of reasons: My primary focus is on using the notebook as a publication mechanism, specifically for publishing computational science and statistical analysis based research. Imagine a journal article involving code/output pairs where the reader can alter the computations being done (e.g. change the bandwidth on a smoothing algorithm) and immediately view the affect that change has on the results being discussed. It is cleaner to not have the code to render the widget appear in the code cell, particularly when the purpose of the widgets for my use case is to allow viewers to explore the parameter space *without* necessarily understanding the code or how to modify it. Related to the point above, if the interactivity comes from the cells themselves, all code used in the analysis itself can be placed within the notebook unchanged, rather than needing to be modified to support the interactivity (e.g. made into functions which used as callbacks, etc), giving a more direct view of exactly what the analyst did. For this reason i am working on a interactivecodecell subclass of code cells which has associated with it a set of widgets definitions. Each of these widget definitions is associated with a variable used by the code. When such a cell is rendered, UI components appear above the codeblock. These UI widgets then temporarily alter the code to reflect the chosen parameters and rerun it to generate fresh output. I have a very early proof of concept on github which I can link to if desired but its conflated with a bunch of other stuff I'm doing with the notebook and isn't in any sort of usable state yet. I'd love to hear what people think about these different approaches. Sincerely, ~G On Sun, Jun 9, 2013 at 2:14 PM, Ond?ej ?ert?k wrote: > Hi Jake, > > Yes. And also the same thing on the JS side --- currently I am > populating the global name space with global functions, which is not > good. Ideally there would be some nice javascript class/object and > then we'll attach the instances into the global IPython object. > > Also, this is just a demo of exactly one slider to show that the user > interface can be a nice simple Python code. I actually need more GUI > elements. So I think that something like Traits UI: > > http://code.enthought.com/projects/traits/docs/html/index.html > > would be the way to go. > > Those are all questions that the IPython developers should provide > feedback on, so that I can do something that could be merged. > > Ondrej > > On Sat, Jun 8, 2013 at 3:43 PM, Jacob Vanderplas > wrote: > > Very cool! > > One comment: I think that rather than passing python_var an explicit > name, > > it might be better to populate a dict in the IPython namespace with the > > names of objects that need to be accessed by the javascript. i.e., > within > > the slider init function, you could have something along the lines of: > > > > ``` > > import IPython > > if not hasattr(IPython, "_interactive_elements"): > > IPython._interactive_elements = {} > > > > key = random.randint(0, 1E7) # or use some sort of hash function > > IPython._interactive_elements[key] = self > > self._python_var = "IPython._interactive_elements[%i]" % key > > ``` > > > > That would keep track of the object names in the background. > > Other than that, I like the implementation! > > Jake > > > > > > On Sat, Jun 8, 2013 at 12:25 PM, Ond?ej ?ert?k > > wrote: > >> > >> Hi, > >> > >> I have implemented the slider widget here: > >> > >> http://nbviewer.ipython.org/5736280 > >> > >> >From the cell [2] you can see how it is used, it's trivial. I suggest > >> you run this in your local notebook, because the cell output is not > >> visible in the nbviewer. Also you need Chrome, as Firefox doesn't > >> support the HTML 5 slider and I haven't figure out how to use jquery's > >> slider yet. > >> > >> I read your roadmap, and my understanding is that the plan is to start > >> developing this in December. Unfortunately I needed something now, so > >> I wrote the above. > >> > >> I have already tested it for rotation of a 3D visualization using VTK > >> 6 in ipython notebook (offscreen rendering) and it works great. > >> > >> What is your plan and actual ideas how these widgets should be > >> implemented? > >> Is there a reason why work on this cannot start now? I'll be happy to > >> help with this > >> and send PRs. > >> > >> If I recall correctly, you wanted to implement the widgets using the > >> IPython implementation of traits? > >> > >> Ondrej > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Gabriel Becker Graduate Student Statistics Department University of California, Davis -------------- next part -------------- An HTML attachment was scrubbed... URL: From ondrej.certik at gmail.com Mon Jun 10 00:28:32 2013 From: ondrej.certik at gmail.com (=?UTF-8?B?T25kxZllaiDEjGVydMOtaw==?=) Date: Sun, 9 Jun 2013 22:28:32 -0600 Subject: [IPython-dev] Implementing widgets In-Reply-To: References: Message-ID: Gabriel, On Sun, Jun 9, 2013 at 10:17 PM, Gabriel Becker wrote: > Ondrej, > > This seems very cool. > > I have been working toward what seems like a similar goal, but from a > different angle. > > My aim is to have the interactivity and ability to control parameter values > and re-execute the code be an attribute of the codecell itself, rather than > a consequence of the particular code run within the codecell. > > I approached the problem this way for a couple of reasons: > > My primary focus is on using the notebook as a publication mechanism, > specifically for publishing computational science and statistical analysis > based research. Imagine a journal article involving code/output pairs where > the reader can alter the computations being done (e.g. change the bandwidth > on a smoothing algorithm) and immediately view the affect that change has on > the results being discussed. > > It is cleaner to not have the code to render the widget appear in the code > cell, particularly when the purpose of the widgets for my use case is to > allow viewers to explore the parameter space without necessarily > understanding the code or how to modify it. > > Related to the point above, if the interactivity comes from the cells > themselves, all code used in the analysis itself can be placed within the > notebook unchanged, rather than needing to be modified to support the > interactivity (e.g. made into functions which used as callbacks, etc), > giving a more direct view of exactly what the analyst did. > > For this reason i am working on a interactivecodecell subclass of code cells > which has associated with it a set of widgets definitions. Each of these > widget definitions is associated with a variable used by the code. When such > a cell is rendered, UI components appear above the codeblock. These UI > widgets then temporarily alter the code to reflect the chosen parameters and > rerun it to generate fresh output. > > I have a very early proof of concept on github which I can link to if > desired but its conflated with a bunch of other stuff I'm doing with the > notebook and isn't in any sort of usable state yet. > > I'd love to hear what people think about these different approaches. Very interesting. I have a question. My idea is that the user needs to write a Python function with arguments, like: def f(a, b, c): .... where the arguments "a", "b", "c" have interactive widgets associated with them. Your idea is that the body of this function will be in the cell, and then IPython notebook itself will figure out somehow the arguments "a", "b" and "c" and provide associated widgets with them? If you can post a screenshot of how it works, that would be awesome. It seems to me, that your idea can also be implemented by having a general traits UI approach. It would only be integrated in the IPython notebook itself, while in my case, the user actually has to call some kind of API explicitly (for the better or the worse). Ondrej From ellisonbg at gmail.com Mon Jun 10 14:06:38 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Mon, 10 Jun 2013 11:06:38 -0700 Subject: [IPython-dev] Implementing widgets In-Reply-To: References: Message-ID: Just wanted to emphasize that we will start tackling these things in the core dev team in late July. A lot of the ideas you are talking about are already on the table. We will be in touch as we would like interested people to be involved in the design discussions. Cheers Brian On Sun, Jun 9, 2013 at 9:28 PM, Ond?ej ?ert?k wrote: > Gabriel, > > On Sun, Jun 9, 2013 at 10:17 PM, Gabriel Becker wrote: >> Ondrej, >> >> This seems very cool. >> >> I have been working toward what seems like a similar goal, but from a >> different angle. >> >> My aim is to have the interactivity and ability to control parameter values >> and re-execute the code be an attribute of the codecell itself, rather than >> a consequence of the particular code run within the codecell. >> >> I approached the problem this way for a couple of reasons: >> >> My primary focus is on using the notebook as a publication mechanism, >> specifically for publishing computational science and statistical analysis >> based research. Imagine a journal article involving code/output pairs where >> the reader can alter the computations being done (e.g. change the bandwidth >> on a smoothing algorithm) and immediately view the affect that change has on >> the results being discussed. >> >> It is cleaner to not have the code to render the widget appear in the code >> cell, particularly when the purpose of the widgets for my use case is to >> allow viewers to explore the parameter space without necessarily >> understanding the code or how to modify it. >> >> Related to the point above, if the interactivity comes from the cells >> themselves, all code used in the analysis itself can be placed within the >> notebook unchanged, rather than needing to be modified to support the >> interactivity (e.g. made into functions which used as callbacks, etc), >> giving a more direct view of exactly what the analyst did. >> >> For this reason i am working on a interactivecodecell subclass of code cells >> which has associated with it a set of widgets definitions. Each of these >> widget definitions is associated with a variable used by the code. When such >> a cell is rendered, UI components appear above the codeblock. These UI >> widgets then temporarily alter the code to reflect the chosen parameters and >> rerun it to generate fresh output. >> >> I have a very early proof of concept on github which I can link to if >> desired but its conflated with a bunch of other stuff I'm doing with the >> notebook and isn't in any sort of usable state yet. >> >> I'd love to hear what people think about these different approaches. > > Very interesting. I have a question. > > My idea is that the user needs to write a Python function with arguments, like: > > def f(a, b, c): > .... > > where the arguments "a", "b", "c" have interactive widgets associated > with them. Your idea is that the body > of this function will be in the cell, and then IPython notebook itself > will figure out somehow the arguments "a", "b" and "c" and provide > associated widgets with them? > > If you can post a screenshot of how it works, that would be awesome. > It seems to me, that your idea can also be implemented by having a > general traits UI approach. It would only be integrated in the IPython > notebook itself, while in my case, the user actually has to call some > kind of API explicitly (for the better or the worse). > > Ondrej > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From ellisonbg at gmail.com Mon Jun 10 19:37:16 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Mon, 10 Jun 2013 16:37:16 -0700 Subject: [IPython-dev] Draft topics and schedule for the July dev meeting Message-ID: Hi, I have put up a draft of the schedule for the July dev meeting at Berkeley: https://github.com/ipython/ipython/wiki/Dev:-Meeting,-July-2013 Core devs, please make edits as you see fit... Cheers, Brian -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From ccordoba12 at gmail.com Mon Jun 10 21:20:23 2013 From: ccordoba12 at gmail.com (=?UTF-8?B?Q2FybG9zIEPDs3Jkb2Jh?=) Date: Mon, 10 Jun 2013 20:20:23 -0500 Subject: [IPython-dev] How to print stderr in qtconsole? Message-ID: <51B67B57.8050201@gmail.com> Hi, Several Spyder users want to run their tests in our qtconsole widgets, but unfortunately stderr is not printed inside them but in our kernel ones. What do I need to do to make it appear in the first ones? I would like to know the answer both for 0.13.2 and 1.0dev. Thanks, Carlos From benjaminrk at gmail.com Mon Jun 10 21:28:49 2013 From: benjaminrk at gmail.com (MinRK) Date: Mon, 10 Jun 2013 18:28:49 -0700 Subject: [IPython-dev] How to print stderr in qtconsole? In-Reply-To: <51B67B57.8050201@gmail.com> References: <51B67B57.8050201@gmail.com> Message-ID: In what context? Kernel stderr is treated in the same way as stdout. On Mon, Jun 10, 2013 at 6:20 PM, Carlos C?rdoba wrote: > Hi, > > Several Spyder users want to run their tests in our qtconsole widgets, > but unfortunately stderr is not printed inside them but in our kernel > ones. What do I need to do to make it appear in the first ones? > > I would like to know the answer both for 0.13.2 and 1.0dev. > > Thanks, > Carlos > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ccordoba12 at gmail.com Mon Jun 10 21:41:50 2013 From: ccordoba12 at gmail.com (=?UTF-8?B?Q2FybG9zIEPDs3Jkb2Jh?=) Date: Mon, 10 Jun 2013 20:41:50 -0500 Subject: [IPython-dev] How to print stderr in qtconsole? In-Reply-To: References: <51B67B57.8050201@gmail.com> Message-ID: <51B6805E.9020105@gmail.com> Well, they are trying to run a test suite built with unittest. You can see our user description of the problem here http://code.google.com/p/spyderlib/issues/detail?id=1370 If you start qtconsole from a terminal, then you'll see the error message of our user's example printed in the terminal and not in qtconsole. I thought the problem was related to a redirection of stderr to the wrong place, but I may be wrong :-) Cheers, Carlos El 10/06/13 20:28, MinRK escribi?: > In what context? Kernel stderr is treated in the same way as stdout. > > > On Mon, Jun 10, 2013 at 6:20 PM, Carlos C?rdoba > wrote: > > Hi, > > Several Spyder users want to run their tests in our qtconsole widgets, > but unfortunately stderr is not printed inside them but in our kernel > ones. What do I need to do to make it appear in the first ones? > > I would like to know the answer both for 0.13.2 and 1.0dev. > > Thanks, > Carlos > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Mon Jun 10 21:47:29 2013 From: benjaminrk at gmail.com (MinRK) Date: Mon, 10 Jun 2013 18:47:29 -0700 Subject: [IPython-dev] How to print stderr in qtconsole? In-Reply-To: <51B6805E.9020105@gmail.com> References: <51B67B57.8050201@gmail.com> <51B6805E.9020105@gmail.com> Message-ID: It's probably an issue of unittest hooking up to `sys.__stderr__` instead of `sys.stderr`. We don't (and shouldn't) redirect the lower-level private handle, but you can tell it to use `sys.stderr` instead: import sys import unittest class tests(unittest.TestCase): def test_raise(self): print 1 / 0 if __name__ == '__main__': unittest.main(testRunner=unittest.TextTestRunner(stream=sys.stderr)) which should display output just fine in the QtConsole. -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Wed Jun 12 10:38:47 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Wed, 12 Jun 2013 10:38:47 -0400 Subject: [IPython-dev] presentation mode css surgery Message-ID: hi all, i'm trying to turn the border=0px for just the following table in a given markdown cell. the rendered html seems to override it with a managed css from style.min.css. any thoughts on how i can apply a css setting to just a single element. ``` #Software interfaces Currently supported (5-2-2013).
sth1 sth2
``` here are the things that i have tried: 1. 2. (this actually gets stripped out) cheers, satra -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Jun 12 11:43:28 2013 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 12 Jun 2013 17:43:28 +0200 Subject: [IPython-dev] presentation mode css surgery In-Reply-To: References: Message-ID: Do you really wrote script in your md cell whet you where meanin to write style? -- M Le mercredi 12 juin 2013, Satrajit Ghosh a ?crit : > hi all, > > i'm trying to turn the border=0px for just the following table in a given > markdown cell. the rendered html seems to override it with a managed css > from style.min.css. any thoughts on how i can apply a css setting to just a > single element. > > ``` > #Software interfaces > > Currently supported (5-2-2013). > >
> > > > >
> sth1 > > sth2
> ``` > > here are the things that i have tried: > > 1. > > 2. (this actually gets stripped out) > > cheers, > > satra > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Wed Jun 12 11:52:24 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Wed, 12 Jun 2013 11:52:24 -0400 Subject: [IPython-dev] presentation mode css surgery In-Reply-To: References: Message-ID: i did mean to write style. btw, if i inspect element and change the border in matched css rules, i get the desired effect. cheers, satra On Wed, Jun 12, 2013 at 11:43 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Do you really wrote script in your md cell whet you where meanin to write > style? > -- > M > > Le mercredi 12 juin 2013, Satrajit Ghosh a ?crit : > > hi all, >> >> i'm trying to turn the border=0px for just the following table in a given >> markdown cell. the rendered html seems to override it with a managed css >> from style.min.css. any thoughts on how i can apply a css setting to just a >> single element. >> >> ``` >> #Software interfaces >> >> Currently supported (5-2-2013). >> >>
>> >> >> >> >>
>> sth1 >> >> sth2
>> ``` >> >> here are the things that i have tried: >> >> 1. >> >> 2. (this actually gets stripped >> out) >> >> cheers, >> >> satra >> >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Jun 12 12:05:41 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Wed, 12 Jun 2013 18:05:41 +0200 Subject: [IPython-dev] presentation mode css surgery In-Reply-To: References: Message-ID: The most specific rule apply. As you have at least `.rendered_html table` rule you have to be at least as specific, or more. Prepending a .rendered_html to your example works for me.
sth1 sth2
Le 12 juin 2013 ? 17:52, Satrajit Ghosh a ?crit : > i did mean to write style. > > > > btw, if i inspect element and change the border in matched css rules, i get the desired effect. > > cheers, > > satra > > > On Wed, Jun 12, 2013 at 11:43 AM, Matthias Bussonnier wrote: > Do you really wrote script in your md cell whet you where meanin to write style? > -- > M > > Le mercredi 12 juin 2013, Satrajit Ghosh a ?crit : > > hi all, > > i'm trying to turn the border=0px for just the following table in a given markdown cell. the rendered html seems to override it with a managed css from style.min.css. any thoughts on how i can apply a css setting to just a single element. > > ``` > #Software interfaces > > Currently supported (5-2-2013). > > > > > > >
> sth1 > > sth2
> ``` > > here are the things that i have tried: > > 1. > > 2. (this actually gets stripped out) > > cheers, > > satra > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Wed Jun 12 12:11:19 2013 From: satra at mit.edu (Satrajit Ghosh) Date: Wed, 12 Jun 2013 12:11:19 -0400 Subject: [IPython-dev] presentation mode css surgery In-Reply-To: References: Message-ID: thanks very much matthias. cheers, satra On Wed, Jun 12, 2013 at 12:05 PM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > The most specific rule apply. > As you have at least `.rendered_html table` rule you have to be at least > as specific, or more. > > Prepending a .rendered_html to your example works for me. > > > >
> > > > >
> sth1 > > sth2
> > > Le 12 juin 2013 ? 17:52, Satrajit Ghosh a ?crit : > > i did mean to write style. > > > > btw, if i inspect element and change the border in matched css rules, i > get the desired effect. > > cheers, > > satra > > > On Wed, Jun 12, 2013 at 11:43 AM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> Do you really wrote script in your md cell whet you where meanin to write >> style? >> -- >> M >> >> Le mercredi 12 juin 2013, Satrajit Ghosh a ?crit : >> >> hi all, >>> >>> i'm trying to turn the border=0px for just the following table in a >>> given markdown cell. the rendered html seems to override it with a managed >>> css from style.min.css. any thoughts on how i can apply a css setting to >>> just a single element. >>> >>> ``` >>> #Software interfaces >>> >>> Currently supported (5-2-2013). >>> >>> >>> >>> >>> >>> >>>
>>> sth1 >>> >>> sth2
>>> ``` >>> >>> here are the things that i have tried: >>> >>> 1. >>> >>> 2. (this actually gets stripped >>> out) >>> >>> cheers, >>> >>> satra >>> >>> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tarun.gaba7 at gmail.com Sat Jun 15 02:33:58 2013 From: tarun.gaba7 at gmail.com (TARUN GABA) Date: Sat, 15 Jun 2013 12:03:58 +0530 Subject: [IPython-dev] Efficient way to render Javascripts Message-ID: Hi, I am wondering on what method would be more efficient to serve Javascripts on IPython notebooks I need to visualize/simulate multibody dynamics, and there are two methods which are in my mind. The rough API of the project is being formed at .. http://pydy.org/visualization the two methods are: 1) Via http requests: on calling something like .. myobject.visualize(numerical_data) The browser sends a POST request to the kernel, and python methods send a POST request to the required javascripts alongwith POST parameters as the numerical data required for visualization, most likely a 4*4 transformation matrix, and shape information. the Javascripts recieves the post and then it is displayed in the IPython output cell. 2) Another method can be to make Javascript objects and save them as text in the classes, something like .. def MyClass(): def __init__(relevant,args): self.js_data = ''' A call to the Javascript functions, alongwith arguments.. var myobject = Shape_creating_function(%s)'''%(args) and then on calling .. MyClass.visualize() from IPython notebook, first calling all the required javascripts(files) via publish_javascript()/publish_html() display methods and then display(Javascript(MyClass.js_data)) Which of these would be more feasible and efficient.. From jorgen.stenarson at kroywen.se Sat Jun 15 07:04:11 2013 From: jorgen.stenarson at kroywen.se (=?ISO-8859-1?Q?J=F6rgen_Stenarson?=) Date: Sat, 15 Jun 2013 13:04:11 +0200 Subject: [IPython-dev] Check if magic call originated from a notebook session Message-ID: <51BC4A2B.6080005@kroywen.se> Hi, Is there a way to determine if a magic function call was done from a notebook? /J?rgen From benjaminrk at gmail.com Sat Jun 15 09:40:44 2013 From: benjaminrk at gmail.com (MinRK) Date: Sat, 15 Jun 2013 09:40:44 -0400 Subject: [IPython-dev] Check if magic call originated from a notebook session In-Reply-To: <51BC4A2B.6080005@kroywen.se> References: <51BC4A2B.6080005@kroywen.se> Message-ID: No, this information is not available. On Sat, Jun 15, 2013 at 7:04 AM, J?rgen Stenarson < jorgen.stenarson at kroywen.se> wrote: > Hi, > > Is there a way to determine if a magic function call was done from a > notebook? > > /J?rgen > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Sat Jun 15 11:14:21 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Sat, 15 Jun 2013 08:14:21 -0700 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: Right now (today) the best way is to use the Javascript object along with the display function. However, starting in late summer we will be improving this API so it may change some, but all for the better... Cheers, Brian On Fri, Jun 14, 2013 at 11:33 PM, TARUN GABA wrote: > Hi, > > I am wondering on what method would be more efficient to serve > Javascripts on IPython notebooks > > I need to visualize/simulate multibody dynamics, and there are two > methods which are in my mind. > The rough API of the project is being formed at .. > > http://pydy.org/visualization > > the two methods are: > 1) Via http requests: > > on calling something like .. > > myobject.visualize(numerical_data) > > The browser sends a POST request to the kernel, and python methods > send a POST request to the required javascripts alongwith POST > parameters as the numerical data required for visualization, most > likely a 4*4 transformation matrix, and shape information. > the Javascripts recieves the post and then it is displayed in the > IPython output cell. > > 2) Another method can be to make Javascript objects and save them as > text in the classes, > something like .. > > def MyClass(): > > def __init__(relevant,args): > self.js_data = ''' A call to the Javascript functions, > alongwith arguments.. > var myobject = > Shape_creating_function(%s)'''%(args) > > and then on calling .. > MyClass.visualize() > > from IPython notebook, first calling all the required > javascripts(files) via publish_javascript()/publish_html() display > methods and then > > display(Javascript(MyClass.js_data)) > > Which of these would be more feasible and efficient.. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From moorepants at gmail.com Sat Jun 15 11:54:08 2013 From: moorepants at gmail.com (Jason Moore) Date: Sat, 15 Jun 2013 08:54:08 -0700 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: Brian, In IPython, is there a standard mechanism to pass data from the client to the server? We'd like to make some python calls that generate a data stucture, jsonify it and then make it available to the javascript that is running in a cell via a GET request. I assume the kernel architecture has this in place? Jason moorepants.info +01 530-601-9791 On Sat, Jun 15, 2013 at 8:14 AM, Brian Granger wrote: > Right now (today) the best way is to use the Javascript object along > with the display function. However, starting in late summer we will > be improving this API so it may change some, but all for the better... > > Cheers, > > Brian > > On Fri, Jun 14, 2013 at 11:33 PM, TARUN GABA > wrote: > > Hi, > > > > I am wondering on what method would be more efficient to serve > > Javascripts on IPython notebooks > > > > I need to visualize/simulate multibody dynamics, and there are two > > methods which are in my mind. > > The rough API of the project is being formed at .. > > > > http://pydy.org/visualization > > > > the two methods are: > > 1) Via http requests: > > > > on calling something like .. > > > > myobject.visualize(numerical_data) > > > > The browser sends a POST request to the kernel, and python methods > > send a POST request to the required javascripts alongwith POST > > parameters as the numerical data required for visualization, most > > likely a 4*4 transformation matrix, and shape information. > > the Javascripts recieves the post and then it is displayed in the > > IPython output cell. > > > > 2) Another method can be to make Javascript objects and save them as > > text in the classes, > > something like .. > > > > def MyClass(): > > > > def __init__(relevant,args): > > self.js_data = ''' A call to the Javascript functions, > > alongwith arguments.. > > var myobject = > > Shape_creating_function(%s)'''%(args) > > > > and then on calling .. > > MyClass.visualize() > > > > from IPython notebook, first calling all the required > > javascripts(files) via publish_javascript()/publish_html() display > > methods and then > > > > display(Javascript(MyClass.js_data)) > > > > Which of these would be more feasible and efficient.. > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Sat Jun 15 12:02:30 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Sat, 15 Jun 2013 09:02:30 -0700 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: Right now it does not have any easy way of doing that. For now you will have to encode your data into the call to kernel.execute, which is a completely pain. That is exactly what we will be tackling later in the summer... Cheers, Brian On Sat, Jun 15, 2013 at 8:54 AM, Jason Moore wrote: > Brian, > > In IPython, is there a standard mechanism to pass data from the client to > the server? We'd like to make some python calls that generate a data > stucture, jsonify it and then make it available to the javascript that is > running in a cell via a GET request. I assume the kernel architecture has > this in place? > > > Jason > moorepants.info > +01 530-601-9791 > > > On Sat, Jun 15, 2013 at 8:14 AM, Brian Granger wrote: >> >> Right now (today) the best way is to use the Javascript object along >> with the display function. However, starting in late summer we will >> be improving this API so it may change some, but all for the better... >> >> Cheers, >> >> Brian >> >> On Fri, Jun 14, 2013 at 11:33 PM, TARUN GABA >> wrote: >> > Hi, >> > >> > I am wondering on what method would be more efficient to serve >> > Javascripts on IPython notebooks >> > >> > I need to visualize/simulate multibody dynamics, and there are two >> > methods which are in my mind. >> > The rough API of the project is being formed at .. >> > >> > http://pydy.org/visualization >> > >> > the two methods are: >> > 1) Via http requests: >> > >> > on calling something like .. >> > >> > myobject.visualize(numerical_data) >> > >> > The browser sends a POST request to the kernel, and python methods >> > send a POST request to the required javascripts alongwith POST >> > parameters as the numerical data required for visualization, most >> > likely a 4*4 transformation matrix, and shape information. >> > the Javascripts recieves the post and then it is displayed in the >> > IPython output cell. >> > >> > 2) Another method can be to make Javascript objects and save them as >> > text in the classes, >> > something like .. >> > >> > def MyClass(): >> > >> > def __init__(relevant,args): >> > self.js_data = ''' A call to the Javascript functions, >> > alongwith arguments.. >> > var myobject = >> > Shape_creating_function(%s)'''%(args) >> > >> > and then on calling .. >> > MyClass.visualize() >> > >> > from IPython notebook, first calling all the required >> > javascripts(files) via publish_javascript()/publish_html() display >> > methods and then >> > >> > display(Javascript(MyClass.js_data)) >> > >> > Which of these would be more feasible and efficient.. >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> Brian E. Granger >> Cal Poly State University, San Luis Obispo >> bgranger at calpoly.edu and ellisonbg at gmail.com >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From moorepants at gmail.com Sat Jun 15 12:23:04 2013 From: moorepants at gmail.com (Jason Moore) Date: Sat, 15 Jun 2013 09:23:04 -0700 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: Brian, So it seems that for us to get some data from a python object into our javascript, we write the data to file on the fly so that a js cell can pull it in from the filesystem or we hard code the data into the js string. Is that the way it should be done with the current setup? So we'd like the functionality for GET/POST in the notebook for our project. And I have one full time student that starts this week. What would be the best way for us to contribute some patches to jumpstart this on the ipython side? Jason moorepants.info +01 530-601-9791 On Sat, Jun 15, 2013 at 9:02 AM, Brian Granger wrote: > Right now it does not have any easy way of doing that. For now you > will have to encode your data into the call to kernel.execute, which > is a completely pain. That is exactly what we will be tackling later > in the summer... > > Cheers, > > Brian > > On Sat, Jun 15, 2013 at 8:54 AM, Jason Moore wrote: > > Brian, > > > > In IPython, is there a standard mechanism to pass data from the client to > > the server? We'd like to make some python calls that generate a data > > stucture, jsonify it and then make it available to the javascript that is > > running in a cell via a GET request. I assume the kernel architecture has > > this in place? > > > > > > Jason > > moorepants.info > > +01 530-601-9791 > > > > > > On Sat, Jun 15, 2013 at 8:14 AM, Brian Granger > wrote: > >> > >> Right now (today) the best way is to use the Javascript object along > >> with the display function. However, starting in late summer we will > >> be improving this API so it may change some, but all for the better... > >> > >> Cheers, > >> > >> Brian > >> > >> On Fri, Jun 14, 2013 at 11:33 PM, TARUN GABA > >> wrote: > >> > Hi, > >> > > >> > I am wondering on what method would be more efficient to serve > >> > Javascripts on IPython notebooks > >> > > >> > I need to visualize/simulate multibody dynamics, and there are two > >> > methods which are in my mind. > >> > The rough API of the project is being formed at .. > >> > > >> > http://pydy.org/visualization > >> > > >> > the two methods are: > >> > 1) Via http requests: > >> > > >> > on calling something like .. > >> > > >> > myobject.visualize(numerical_data) > >> > > >> > The browser sends a POST request to the kernel, and python methods > >> > send a POST request to the required javascripts alongwith POST > >> > parameters as the numerical data required for visualization, most > >> > likely a 4*4 transformation matrix, and shape information. > >> > the Javascripts recieves the post and then it is displayed in the > >> > IPython output cell. > >> > > >> > 2) Another method can be to make Javascript objects and save them as > >> > text in the classes, > >> > something like .. > >> > > >> > def MyClass(): > >> > > >> > def __init__(relevant,args): > >> > self.js_data = ''' A call to the Javascript functions, > >> > alongwith arguments.. > >> > var myobject = > >> > Shape_creating_function(%s)'''%(args) > >> > > >> > and then on calling .. > >> > MyClass.visualize() > >> > > >> > from IPython notebook, first calling all the required > >> > javascripts(files) via publish_javascript()/publish_html() display > >> > methods and then > >> > > >> > display(Javascript(MyClass.js_data)) > >> > > >> > Which of these would be more feasible and efficient.. > >> > _______________________________________________ > >> > IPython-dev mailing list > >> > IPython-dev at scipy.org > >> > http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > >> > >> > >> -- > >> Brian E. Granger > >> Cal Poly State University, San Luis Obispo > >> bgranger at calpoly.edu and ellisonbg at gmail.com > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Sat Jun 15 12:44:34 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Sat, 15 Jun 2013 09:44:34 -0700 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: I don't think you are going to like this, but I want to be honest about our situation wrt these things: * It is not supported to do direct calls from the browser to the kernel. You can hack it, but in general there is no promise the kernel is even running on publicly visible host. Personally I would not invest the time to do direct GET/POST to the kernel. * If you write the data to a file, you can load the data using URLs of the form "files/mydata.json". * There is no way for JS to directly write data to a file. You will have to embed the data in the string passed to Kernel.execute. * If you really have to work on all of this during the summer, it is going to be somewhat painful and you will have to redo a good part of it once IPython's support improves later this year. If it were me, I would focus on other things. This type of thing should be *trivial* once we have done our work. * We will *start* on this in late summer, but the work will be done gradually between late summer and early next year. But, the low level pieces that you probably need should be done by Fall. * We are committed to getting the design of these things right. Within the IPython code base we are strictly focused on our 1.0 release and roadmap: https://github.com/ipython/ipython/wiki/Roadmap:-IPython * This means we are actually committed to *not* doing anything on the interactive widgets within IPython until late Fall. Even if other people want to contribute to the code base for these things, it will be ignored. It is not a matter of writing code - that is the easy part - the hard part is the design. IPython is a big project and it is extremely important for us to be focused, otherwise the project starts to look like a random walk and progress on big things is difficult. Until later summer our focus is on nbconvert, multidirectory support and the 1.0 release. * IPython has been in this situation multiple times before - IOW people waiting long periods of time for us to finish important work. In all cases, waiting and being patient has been the right thing to do. I know this is probably bad news, but in the end, if you simply wait you will be able to accomplish what you want with a smile on your face saying "wow, I can't believe how awesome and easy this is...just magic" Cheers, Brian On Sat, Jun 15, 2013 at 9:23 AM, Jason Moore wrote: > Brian, > > So it seems that for us to get some data from a python object into our > javascript, we write the data to file on the fly so that a js cell can pull > it in from the filesystem or we hard code the data into the js string. Is > that the way it should be done with the current setup? > > So we'd like the functionality for GET/POST in the notebook for our project. > And I have one full time student that starts this week. What would be the > best way for us to contribute some patches to jumpstart this on the ipython > side? > > > > Jason > moorepants.info > +01 530-601-9791 > > > On Sat, Jun 15, 2013 at 9:02 AM, Brian Granger wrote: >> >> Right now it does not have any easy way of doing that. For now you >> will have to encode your data into the call to kernel.execute, which >> is a completely pain. That is exactly what we will be tackling later >> in the summer... >> >> Cheers, >> >> Brian >> >> On Sat, Jun 15, 2013 at 8:54 AM, Jason Moore wrote: >> > Brian, >> > >> > In IPython, is there a standard mechanism to pass data from the client >> > to >> > the server? We'd like to make some python calls that generate a data >> > stucture, jsonify it and then make it available to the javascript that >> > is >> > running in a cell via a GET request. I assume the kernel architecture >> > has >> > this in place? >> > >> > >> > Jason >> > moorepants.info >> > +01 530-601-9791 >> > >> > >> > On Sat, Jun 15, 2013 at 8:14 AM, Brian Granger >> > wrote: >> >> >> >> Right now (today) the best way is to use the Javascript object along >> >> with the display function. However, starting in late summer we will >> >> be improving this API so it may change some, but all for the better... >> >> >> >> Cheers, >> >> >> >> Brian >> >> >> >> On Fri, Jun 14, 2013 at 11:33 PM, TARUN GABA >> >> wrote: >> >> > Hi, >> >> > >> >> > I am wondering on what method would be more efficient to serve >> >> > Javascripts on IPython notebooks >> >> > >> >> > I need to visualize/simulate multibody dynamics, and there are two >> >> > methods which are in my mind. >> >> > The rough API of the project is being formed at .. >> >> > >> >> > http://pydy.org/visualization >> >> > >> >> > the two methods are: >> >> > 1) Via http requests: >> >> > >> >> > on calling something like .. >> >> > >> >> > myobject.visualize(numerical_data) >> >> > >> >> > The browser sends a POST request to the kernel, and python methods >> >> > send a POST request to the required javascripts alongwith POST >> >> > parameters as the numerical data required for visualization, most >> >> > likely a 4*4 transformation matrix, and shape information. >> >> > the Javascripts recieves the post and then it is displayed in the >> >> > IPython output cell. >> >> > >> >> > 2) Another method can be to make Javascript objects and save them as >> >> > text in the classes, >> >> > something like .. >> >> > >> >> > def MyClass(): >> >> > >> >> > def __init__(relevant,args): >> >> > self.js_data = ''' A call to the Javascript functions, >> >> > alongwith arguments.. >> >> > var myobject = >> >> > Shape_creating_function(%s)'''%(args) >> >> > >> >> > and then on calling .. >> >> > MyClass.visualize() >> >> > >> >> > from IPython notebook, first calling all the required >> >> > javascripts(files) via publish_javascript()/publish_html() display >> >> > methods and then >> >> > >> >> > display(Javascript(MyClass.js_data)) >> >> > >> >> > Which of these would be more feasible and efficient.. >> >> > _______________________________________________ >> >> > IPython-dev mailing list >> >> > IPython-dev at scipy.org >> >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> >> >> >> >> -- >> >> Brian E. Granger >> >> Cal Poly State University, San Luis Obispo >> >> bgranger at calpoly.edu and ellisonbg at gmail.com >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> > >> > >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> >> >> >> -- >> Brian E. Granger >> Cal Poly State University, San Luis Obispo >> bgranger at calpoly.edu and ellisonbg at gmail.com >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From bussonniermatthias at gmail.com Sat Jun 15 12:45:08 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Sat, 15 Jun 2013 18:45:08 +0200 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: Le 15 juin 2013 ? 18:23, Jason Moore a ?crit : > Brian, > > So it seems that for us to get some data from a python object into our javascript, we write the data to file on the fly so that a js cell can pull it in from the filesystem or we hard code the data into the js string. Is that the way it should be done with the current setup? You can with javascript make a call to IPython.kernel.execute that take a code string as input and a callback to deal with the data received back. Or embed in the js string if you already know the data at publish time. have a look at the following. http://jakevdp.github.io/blog/2013/06/01/ipython-notebook-javascript-python-communication/ I suggest you have a look at user_expressions user_variables also in our doc. > So we'd like the functionality for GET/POST in the notebook for our project. And I have one full time student that starts this week. What would be the best way for us to contribute some patches to jumpstart this on the ipython side? We need to discuss what we want for js<-> python bidirectional communications. More than get/post, people might want to be able to push data through web sockets. There are already been drafts, which were not merge because we were not totally happy with it. It is a complex subject, and I don't think trying to tackle this is the right point to start. Several people are interested in this, and we really think we must discuss to determine what are the needs before trying to get any thing done. For the next few weeks we are focusing on polishing things to release 1.0 mid July, after we will start to do what is on 2.0 roadmap, this include javascript bidirectional communications. -- Matthias Roadmap. http://ipython.org/roadmap-announcement.html From ben.root at ou.edu Sat Jun 15 13:33:05 2013 From: ben.root at ou.edu (Benjamin Root) Date: Sat, 15 Jun 2013 13:33:05 -0400 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: On Sat, Jun 8, 2013 at 11:36 AM, Benjamin Root wrote: > > On Sat, Jun 8, 2013 at 11:15 AM, Matthias BUSSONNIER < > bussonniermatthias at gmail.com> wrote: > >> Hi Ben, >> >> I was able to have it work (at least tooltip showing some text), with the >> help of jQuery , with the following. >> >> >> function ShowTooltip(evt, mouseovertext) >> { >> console.log(mouseovertext, tooltip_bg) >> $(tooltip).text(mouseovertext); >> $(tooltip).attr('visibility','visible'); >> length = tooltip.getComputedTextLength(); >> $(tooltip_bg).attr('width',length+10); >> $(tooltip_bg).attr('visibility','visible'); >> } >> >> >> the script tag in the sag is not visible while inspecting the dom, but It >> is definitively saved in the notebook. >> My guess is that firefox/chrome?etc are stripping JS. >> >> Hope it will help you to start achieving what you want. >> > > Well, that's great, but like I said, I am not a web developer. Could you > pass back the notebook and the svg so I can see what you did? Just simply > changing that in the script doesn't work because there is obviously more to > it than just that. > > Thanks, > Ben Root > I am still interested in understanding how you managed to get the SVG to work in the notebook. I have put a lot of time into making that SVG example and I would hate to have it all go to waste for the tutorial. Thank you, Ben Root -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Sat Jun 15 16:57:53 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Sat, 15 Jun 2013 22:57:53 +0200 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: Le 15 juin 2013 ? 19:33, Benjamin Root a ?crit : > I am still interested in understanding how you managed to get the SVG to work in the notebook. I have put a lot of time into making that SVG example and I would hate to have it all go to waste for the tutorial. Well , I haven't done anything particular, I'm not really into web-dev either. I just tried you example, and replace the error I had in the console by what I guessed was what you were meaning. The all thing in a markdown cell for easy edit. I didn't changed anything else, except been on IPython master as I am usually. I can try to redo the modification to find the minimal working example if it helps you. -- Matthias > > Thank you, > Ben Root > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From ben.root at ou.edu Sat Jun 15 22:23:34 2013 From: ben.root at ou.edu (Benjamin Root) Date: Sat, 15 Jun 2013 22:23:34 -0400 Subject: [IPython-dev] Interactive SVG is not interactive in a notebook In-Reply-To: References: Message-ID: On Sat, Jun 15, 2013 at 4:57 PM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > > Le 15 juin 2013 ? 19:33, Benjamin Root a ?crit : > > > I am still interested in understanding how you managed to get the SVG to > work in the notebook. I have put a lot of time into making that SVG > example and I would hate to have it all go to waste for the tutorial. > > Well , I haven't done anything particular, I'm not really into web-dev > either. > I just tried you example, and replace the error I had in the console by > what I guessed was what you were meaning. > The all thing in a markdown cell for easy edit. > > I didn't changed anything else, except been on IPython master as I am > usually. > I can try to redo the modification to find the minimal working example if > it helps you. > Hmmm, I certainly hope it doesn't require the master branch as I am hoping for everyone in the tutorial to be able to use this. Anyway, the error I get in Firefox's error console is that init() and ShowTooltip() are not defined. So, while jQuery may be a part of the solution, I can't even get to that point because Firefox never gets those functions defined. Maybe that is a clue? Ben Root -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.colistete at gmail.com Sun Jun 16 15:43:43 2013 From: roberto.colistete at gmail.com (Roberto Colistete Jr.) Date: Sun, 16 Jun 2013 16:43:43 -0300 Subject: [IPython-dev] IPython (Qt console & Notebook) 0.13.2 on Mer / Nemo / Plasma Active / Sailfish OS In-Reply-To: References: <510EC481.5060604@gmail.com> <51AA64B4.4090707@gmail.com> Message-ID: <51BE156F.4060907@gmail.com> Em 01-06-2013 21:45, Aaron Meurer escreveu: > Since you showed SymPy, I'm curious, how good is the unicode support? > What happens if you do > > from sympy import * > init_priniting() > Integral(sqrt(x), x) > > Aaron Meurer Hi Aaron, Unicode support in Sailfish OS emulator is not yet good for mathematical expressions, see the attached screenshot (using isympy to launch IPython 0.13.2 & SymPy 0.7.2). Time to contact Sailfish developers about this issue. Best regards, Roberto -------------- next part -------------- A non-text attachment was scrubbed... Name: isympy_SailfishOS.png Type: image/png Size: 72213 bytes Desc: not available URL: From asmeurer at gmail.com Sun Jun 16 15:53:13 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Sun, 16 Jun 2013 14:53:13 -0500 Subject: [IPython-dev] IPython (Qt console & Notebook) 0.13.2 on Mer / Nemo / Plasma Active / Sailfish OS In-Reply-To: <51BE156F.4060907@gmail.com> References: <510EC481.5060604@gmail.com> <51AA64B4.4090707@gmail.com> <51BE156F.4060907@gmail.com> Message-ID: Is it possible to ship a version of DejaVu Sans Mono? This is the best font for the characters SymPy uses to render mathematics. Aaron Meurer On Sun, Jun 16, 2013 at 2:43 PM, Roberto Colistete Jr. wrote: > Em 01-06-2013 21:45, Aaron Meurer escreveu: > >> Since you showed SymPy, I'm curious, how good is the unicode support? What >> happens if you do >> >> from sympy import * >> init_priniting() >> Integral(sqrt(x), x) >> >> Aaron Meurer > > > Hi Aaron, > > Unicode support in Sailfish OS emulator is not yet good for mathematical > expressions, see the attached screenshot (using isympy to launch IPython > 0.13.2 & SymPy 0.7.2). > > Time to contact Sailfish developers about this issue. > > Best regards, > > Roberto > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From roberto.colistete at gmail.com Sun Jun 16 16:22:29 2013 From: roberto.colistete at gmail.com (Roberto Colistete Jr.) Date: Sun, 16 Jun 2013 17:22:29 -0300 Subject: [IPython-dev] IPython (Qt console & Notebook) 0.13.2 on Mer / Nemo / Plasma Active / Sailfish OS In-Reply-To: References: <510EC481.5060604@gmail.com> <51AA64B4.4090707@gmail.com> <51BE156F.4060907@gmail.com> Message-ID: <51BE1E85.4000700@gmail.com> "# zypper se '*dejavu*'" doesn't show any package with DeJavu fonts on Mer/Sailfish OS. I will discuss this issue with the Mer/Sailfish community. Roberto Em 16-06-2013 16:53, Aaron Meurer escreveu: > Is it possible to ship a version of DejaVu Sans Mono? This is the best > font for the characters SymPy uses to render mathematics. > > Aaron Meurer > > On Sun, Jun 16, 2013 at 2:43 PM, Roberto Colistete Jr. > wrote: >> Em 01-06-2013 21:45, Aaron Meurer escreveu: >> >>> Since you showed SymPy, I'm curious, how good is the unicode support? What >>> happens if you do >>> >>> from sympy import * >>> init_priniting() >>> Integral(sqrt(x), x) >>> >>> Aaron Meurer >> >> Hi Aaron, >> >> Unicode support in Sailfish OS emulator is not yet good for mathematical >> expressions, see the attached screenshot (using isympy to launch IPython >> 0.13.2 & SymPy 0.7.2). >> >> Time to contact Sailfish developers about this issue. >> >> Best regards, >> >> Roberto >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From moorepants at gmail.com Sun Jun 16 18:58:51 2013 From: moorepants at gmail.com (Jason Moore) Date: Sun, 16 Jun 2013 15:58:51 -0700 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: Brian, That is exactly what I wanted to hear. I'm just looking for some clarity on how IPython works, how our project can utilize it, and where our resources can potentially help you all. I agree firmly with sound design before writing code and am glad to here you all are committed to that. Thanks! So the better question for you all may be this: We're developing some browser based visualizations that we will use a simple web server, a socket, or writing js on the fly to communicate between our Python packages and the JS libraries. We'd love to design this in a way that we can display the same thing in a notebook cell. Right now we can do that with the ipython Display mechanisms but the data flow is definitely a hack. What would be your recommendation for our approach so that (1) we can display our visualization in the notebook now but without investing tons of time into code that will be useless once you all have the widget support and (2) that our designs be intended to mesh with the future JS widget designs for the notebook (i.e. that our design is agnostic to the display mechanism in the browser)? And a secondary question, what's the best way for us to follow progress in the ipython js developments. Is the roadmap wiki the best place for the looking for sumarized info on these parts of the project? Jason moorepants.info +01 530-601-9791 On Sat, Jun 15, 2013 at 9:44 AM, Brian Granger wrote: > I don't think you are going to like this, but I want to be honest > about our situation wrt these things: > > * It is not supported to do direct calls from the browser to the > kernel. You can hack it, but in general there is no promise the > kernel is even running on publicly visible host. Personally I would > not invest the time to do direct GET/POST to the kernel. > * If you write the data to a file, you can load the data using URLs of > the form "files/mydata.json". > * There is no way for JS to directly write data to a file. You will > have to embed the data in the string passed to Kernel.execute. > * If you really have to work on all of this during the summer, it is > going to be somewhat painful and you will have to redo a good part of > it once IPython's support improves later this year. If it were me, I > would focus on other things. This type of thing should be *trivial* > once we have done our work. > * We will *start* on this in late summer, but the work will be done > gradually between late summer and early next year. But, the low level > pieces that you probably need should be done by Fall. > * We are committed to getting the design of these things right. > Within the IPython code base we are strictly focused on our 1.0 > release and roadmap: > > https://github.com/ipython/ipython/wiki/Roadmap:-IPython > > * This means we are actually committed to *not* doing anything on the > interactive widgets within IPython until late Fall. Even if other > people want to contribute to the code base for these things, it will > be ignored. It is not a matter of writing code - that is the easy > part - the hard part is the design. IPython is a big project and it > is extremely important for us to be focused, otherwise the project > starts to look like a random walk and progress on big things is > difficult. Until later summer our focus is on nbconvert, > multidirectory support and the 1.0 release. > * IPython has been in this situation multiple times before - IOW > people waiting long periods of time for us to finish important work. > In all cases, waiting and being patient has been the right thing to > do. > > I know this is probably bad news, but in the end, if you simply wait > you will be able to accomplish what you want with a smile on your face > saying "wow, I can't believe how awesome and easy this is...just > magic" > > Cheers, > > Brian > > On Sat, Jun 15, 2013 at 9:23 AM, Jason Moore wrote: > > Brian, > > > > So it seems that for us to get some data from a python object into our > > javascript, we write the data to file on the fly so that a js cell can > pull > > it in from the filesystem or we hard code the data into the js string. Is > > that the way it should be done with the current setup? > > > > So we'd like the functionality for GET/POST in the notebook for our > project. > > And I have one full time student that starts this week. What would be the > > best way for us to contribute some patches to jumpstart this on the > ipython > > side? > > > > > > > > Jason > > moorepants.info > > +01 530-601-9791 > > > > > > On Sat, Jun 15, 2013 at 9:02 AM, Brian Granger > wrote: > >> > >> Right now it does not have any easy way of doing that. For now you > >> will have to encode your data into the call to kernel.execute, which > >> is a completely pain. That is exactly what we will be tackling later > >> in the summer... > >> > >> Cheers, > >> > >> Brian > >> > >> On Sat, Jun 15, 2013 at 8:54 AM, Jason Moore > wrote: > >> > Brian, > >> > > >> > In IPython, is there a standard mechanism to pass data from the client > >> > to > >> > the server? We'd like to make some python calls that generate a data > >> > stucture, jsonify it and then make it available to the javascript that > >> > is > >> > running in a cell via a GET request. I assume the kernel architecture > >> > has > >> > this in place? > >> > > >> > > >> > Jason > >> > moorepants.info > >> > +01 530-601-9791 > >> > > >> > > >> > On Sat, Jun 15, 2013 at 8:14 AM, Brian Granger > >> > wrote: > >> >> > >> >> Right now (today) the best way is to use the Javascript object along > >> >> with the display function. However, starting in late summer we will > >> >> be improving this API so it may change some, but all for the > better... > >> >> > >> >> Cheers, > >> >> > >> >> Brian > >> >> > >> >> On Fri, Jun 14, 2013 at 11:33 PM, TARUN GABA > >> >> wrote: > >> >> > Hi, > >> >> > > >> >> > I am wondering on what method would be more efficient to serve > >> >> > Javascripts on IPython notebooks > >> >> > > >> >> > I need to visualize/simulate multibody dynamics, and there are two > >> >> > methods which are in my mind. > >> >> > The rough API of the project is being formed at .. > >> >> > > >> >> > http://pydy.org/visualization > >> >> > > >> >> > the two methods are: > >> >> > 1) Via http requests: > >> >> > > >> >> > on calling something like .. > >> >> > > >> >> > myobject.visualize(numerical_data) > >> >> > > >> >> > The browser sends a POST request to the kernel, and python methods > >> >> > send a POST request to the required javascripts alongwith POST > >> >> > parameters as the numerical data required for visualization, most > >> >> > likely a 4*4 transformation matrix, and shape information. > >> >> > the Javascripts recieves the post and then it is displayed in the > >> >> > IPython output cell. > >> >> > > >> >> > 2) Another method can be to make Javascript objects and save them > as > >> >> > text in the classes, > >> >> > something like .. > >> >> > > >> >> > def MyClass(): > >> >> > > >> >> > def __init__(relevant,args): > >> >> > self.js_data = ''' A call to the Javascript functions, > >> >> > alongwith arguments.. > >> >> > var myobject = > >> >> > Shape_creating_function(%s)'''%(args) > >> >> > > >> >> > and then on calling .. > >> >> > MyClass.visualize() > >> >> > > >> >> > from IPython notebook, first calling all the required > >> >> > javascripts(files) via publish_javascript()/publish_html() display > >> >> > methods and then > >> >> > > >> >> > display(Javascript(MyClass.js_data)) > >> >> > > >> >> > Which of these would be more feasible and efficient.. > >> >> > _______________________________________________ > >> >> > IPython-dev mailing list > >> >> > IPython-dev at scipy.org > >> >> > http://mail.scipy.org/mailman/listinfo/ipython-dev > >> >> > >> >> > >> >> > >> >> -- > >> >> Brian E. Granger > >> >> Cal Poly State University, San Luis Obispo > >> >> bgranger at calpoly.edu and ellisonbg at gmail.com > >> >> _______________________________________________ > >> >> IPython-dev mailing list > >> >> IPython-dev at scipy.org > >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > > >> > > >> > > >> > _______________________________________________ > >> > IPython-dev mailing list > >> > IPython-dev at scipy.org > >> > http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > > >> > >> > >> > >> -- > >> Brian E. Granger > >> Cal Poly State University, San Luis Obispo > >> bgranger at calpoly.edu and ellisonbg at gmail.com > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From moorepants at gmail.com Sun Jun 16 19:00:54 2013 From: moorepants at gmail.com (Jason Moore) Date: Sun, 16 Jun 2013 16:00:54 -0700 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: Matthias, Thanks for the tips. We've been following Jake's experiments and will definitely make use of the ideas/code. Jason Jason moorepants.info +01 530-601-9791 On Sat, Jun 15, 2013 at 9:45 AM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > > Le 15 juin 2013 ? 18:23, Jason Moore a ?crit : > > > Brian, > > > > So it seems that for us to get some data from a python object into our > javascript, we write the data to file on the fly so that a js cell can pull > it in from the filesystem or we hard code the data into the js string. Is > that the way it should be done with the current setup? > > You can with javascript make a call to IPython.kernel.execute that take a > code string as input and a callback to deal with the data received back. Or > embed in the js string if you already know the data at publish time. > > have a look at the following. > > http://jakevdp.github.io/blog/2013/06/01/ipython-notebook-javascript-python-communication/ > > I suggest you have a look at user_expressions user_variables also in our > doc. > > > So we'd like the functionality for GET/POST in the notebook for our > project. And I have one full time student that starts this week. What would > be the best way for us to contribute some patches to jumpstart this on the > ipython side? > > We need to discuss what we want for js<-> python bidirectional > communications. More than get/post, people might want to be able to > push data through web sockets. > There are already been drafts, which were not merge because we were not > totally happy with it. > It is a complex subject, and I don't think trying to tackle this is the > right point to start. > > Several people are interested in this, and we really think we must discuss > to determine what are the needs > before trying to get any thing done. > > For the next few weeks we are focusing on polishing things to release 1.0 > mid July, after we will start > to do what is on 2.0 roadmap, this include javascript bidirectional > communications. > > > -- > Matthias > > Roadmap. > http://ipython.org/roadmap-announcement.html > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Mon Jun 17 00:51:47 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Sun, 16 Jun 2013 21:51:47 -0700 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: Jason, > That is exactly what I wanted to hear. I'm just looking for some clarity on > how IPython works, how our project can utilize it, and where our resources > can potentially help you all. I agree firmly with sound design before > writing code and am glad to here you all are committed to that. Thanks! Thanks for understanding, glad my comments helped you. > So the better question for you all may be this: > > We're developing some browser based visualizations that we will use a simple > web server, a socket, or writing js on the fly to communicate between our > Python packages and the JS libraries. We'd love to design this in a way that > we can display the same thing in a notebook cell. Right now we can do that > with the ipython Display mechanisms but the data flow is definitely a hack. > What would be your recommendation for our approach so that (1) we can > display our visualization in the notebook now but without investing tons of > time into code that will be useless once you all have the widget support and > (2) that our designs be intended to mesh with the future JS widget designs > for the notebook (i.e. that our design is agnostic to the display mechanism > in the browser)? Here is a sketch of the some of the major features of the new design: * We will create an API that allows Python and JS to communicate data back and forth using JSON. The JSON data might be the data you want to visualize. * When data is sent back and forth, a handler will be declared for that data. There will likely be handlers on both the JS and Python sides. These handlers will consume the JSON data and do whatever needs to be done. * We want to move away from having to write "code in strings" that is passed to Kernel.execute or the Javascript object. The handler names will be used instead. * We expect the current Javascript display object to continue to work though. So, if you can work to cleanly separate your JS code from the JSON data that goes back and forth, you should have a clean path for the transition. > And a secondary question, what's the best way for us to follow progress in > the ipython js developments. Is the roadmap wiki the best place for the > looking for sumarized info on these parts of the project? The roadmap is pretty good, but we will probably also have other design documents on the wiki just for the interactive widgets. I would check back in early August and we will have a lot more to say. We will also send out requests for comments on ipython-dev during the design and implementation process. Looking forward to see what you are all up to... Cheers, Brian > > Jason > moorepants.info > +01 530-601-9791 > > > On Sat, Jun 15, 2013 at 9:44 AM, Brian Granger wrote: >> >> I don't think you are going to like this, but I want to be honest >> about our situation wrt these things: >> >> * It is not supported to do direct calls from the browser to the >> kernel. You can hack it, but in general there is no promise the >> kernel is even running on publicly visible host. Personally I would >> not invest the time to do direct GET/POST to the kernel. >> * If you write the data to a file, you can load the data using URLs of >> the form "files/mydata.json". >> * There is no way for JS to directly write data to a file. You will >> have to embed the data in the string passed to Kernel.execute. >> * If you really have to work on all of this during the summer, it is >> going to be somewhat painful and you will have to redo a good part of >> it once IPython's support improves later this year. If it were me, I >> would focus on other things. This type of thing should be *trivial* >> once we have done our work. >> * We will *start* on this in late summer, but the work will be done >> gradually between late summer and early next year. But, the low level >> pieces that you probably need should be done by Fall. >> * We are committed to getting the design of these things right. >> Within the IPython code base we are strictly focused on our 1.0 >> release and roadmap: >> >> https://github.com/ipython/ipython/wiki/Roadmap:-IPython >> >> * This means we are actually committed to *not* doing anything on the >> interactive widgets within IPython until late Fall. Even if other >> people want to contribute to the code base for these things, it will >> be ignored. It is not a matter of writing code - that is the easy >> part - the hard part is the design. IPython is a big project and it >> is extremely important for us to be focused, otherwise the project >> starts to look like a random walk and progress on big things is >> difficult. Until later summer our focus is on nbconvert, >> multidirectory support and the 1.0 release. >> * IPython has been in this situation multiple times before - IOW >> people waiting long periods of time for us to finish important work. >> In all cases, waiting and being patient has been the right thing to >> do. >> >> I know this is probably bad news, but in the end, if you simply wait >> you will be able to accomplish what you want with a smile on your face >> saying "wow, I can't believe how awesome and easy this is...just >> magic" >> >> Cheers, >> >> Brian >> >> On Sat, Jun 15, 2013 at 9:23 AM, Jason Moore wrote: >> > Brian, >> > >> > So it seems that for us to get some data from a python object into our >> > javascript, we write the data to file on the fly so that a js cell can >> > pull >> > it in from the filesystem or we hard code the data into the js string. >> > Is >> > that the way it should be done with the current setup? >> > >> > So we'd like the functionality for GET/POST in the notebook for our >> > project. >> > And I have one full time student that starts this week. What would be >> > the >> > best way for us to contribute some patches to jumpstart this on the >> > ipython >> > side? >> > >> > >> > >> > Jason >> > moorepants.info >> > +01 530-601-9791 >> > >> > >> > On Sat, Jun 15, 2013 at 9:02 AM, Brian Granger >> > wrote: >> >> >> >> Right now it does not have any easy way of doing that. For now you >> >> will have to encode your data into the call to kernel.execute, which >> >> is a completely pain. That is exactly what we will be tackling later >> >> in the summer... >> >> >> >> Cheers, >> >> >> >> Brian >> >> >> >> On Sat, Jun 15, 2013 at 8:54 AM, Jason Moore >> >> wrote: >> >> > Brian, >> >> > >> >> > In IPython, is there a standard mechanism to pass data from the >> >> > client >> >> > to >> >> > the server? We'd like to make some python calls that generate a data >> >> > stucture, jsonify it and then make it available to the javascript >> >> > that >> >> > is >> >> > running in a cell via a GET request. I assume the kernel architecture >> >> > has >> >> > this in place? >> >> > >> >> > >> >> > Jason >> >> > moorepants.info >> >> > +01 530-601-9791 >> >> > >> >> > >> >> > On Sat, Jun 15, 2013 at 8:14 AM, Brian Granger >> >> > wrote: >> >> >> >> >> >> Right now (today) the best way is to use the Javascript object along >> >> >> with the display function. However, starting in late summer we will >> >> >> be improving this API so it may change some, but all for the >> >> >> better... >> >> >> >> >> >> Cheers, >> >> >> >> >> >> Brian >> >> >> >> >> >> On Fri, Jun 14, 2013 at 11:33 PM, TARUN GABA >> >> >> wrote: >> >> >> > Hi, >> >> >> > >> >> >> > I am wondering on what method would be more efficient to serve >> >> >> > Javascripts on IPython notebooks >> >> >> > >> >> >> > I need to visualize/simulate multibody dynamics, and there are two >> >> >> > methods which are in my mind. >> >> >> > The rough API of the project is being formed at .. >> >> >> > >> >> >> > http://pydy.org/visualization >> >> >> > >> >> >> > the two methods are: >> >> >> > 1) Via http requests: >> >> >> > >> >> >> > on calling something like .. >> >> >> > >> >> >> > myobject.visualize(numerical_data) >> >> >> > >> >> >> > The browser sends a POST request to the kernel, and python methods >> >> >> > send a POST request to the required javascripts alongwith POST >> >> >> > parameters as the numerical data required for visualization, most >> >> >> > likely a 4*4 transformation matrix, and shape information. >> >> >> > the Javascripts recieves the post and then it is displayed in the >> >> >> > IPython output cell. >> >> >> > >> >> >> > 2) Another method can be to make Javascript objects and save them >> >> >> > as >> >> >> > text in the classes, >> >> >> > something like .. >> >> >> > >> >> >> > def MyClass(): >> >> >> > >> >> >> > def __init__(relevant,args): >> >> >> > self.js_data = ''' A call to the Javascript functions, >> >> >> > alongwith arguments.. >> >> >> > var myobject = >> >> >> > Shape_creating_function(%s)'''%(args) >> >> >> > >> >> >> > and then on calling .. >> >> >> > MyClass.visualize() >> >> >> > >> >> >> > from IPython notebook, first calling all the required >> >> >> > javascripts(files) via publish_javascript()/publish_html() display >> >> >> > methods and then >> >> >> > >> >> >> > display(Javascript(MyClass.js_data)) >> >> >> > >> >> >> > Which of these would be more feasible and efficient.. >> >> >> > _______________________________________________ >> >> >> > IPython-dev mailing list >> >> >> > IPython-dev at scipy.org >> >> >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> Brian E. Granger >> >> >> Cal Poly State University, San Luis Obispo >> >> >> bgranger at calpoly.edu and ellisonbg at gmail.com >> >> >> _______________________________________________ >> >> >> IPython-dev mailing list >> >> >> IPython-dev at scipy.org >> >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > >> >> > >> >> > >> >> > _______________________________________________ >> >> > IPython-dev mailing list >> >> > IPython-dev at scipy.org >> >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > >> >> >> >> >> >> >> >> -- >> >> Brian E. Granger >> >> Cal Poly State University, San Luis Obispo >> >> bgranger at calpoly.edu and ellisonbg at gmail.com >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> > >> > >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> >> >> >> -- >> Brian E. Granger >> Cal Poly State University, San Luis Obispo >> bgranger at calpoly.edu and ellisonbg at gmail.com >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From moorepants at gmail.com Mon Jun 17 02:15:30 2013 From: moorepants at gmail.com (Jason Moore) Date: Sun, 16 Jun 2013 23:15:30 -0700 Subject: [IPython-dev] Efficient way to render Javascripts In-Reply-To: References: Message-ID: Thanks Brian, the sketch gives us a good idea for our path. Jason moorepants.info +01 530-601-9791 On Sun, Jun 16, 2013 at 9:51 PM, Brian Granger wrote: > Jason, > > > That is exactly what I wanted to hear. I'm just looking for some clarity > on > > how IPython works, how our project can utilize it, and where our > resources > > can potentially help you all. I agree firmly with sound design before > > writing code and am glad to here you all are committed to that. Thanks! > > Thanks for understanding, glad my comments helped you. > > > So the better question for you all may be this: > > > > We're developing some browser based visualizations that we will use a > simple > > web server, a socket, or writing js on the fly to communicate between our > > Python packages and the JS libraries. We'd love to design this in a way > that > > we can display the same thing in a notebook cell. Right now we can do > that > > with the ipython Display mechanisms but the data flow is definitely a > hack. > > What would be your recommendation for our approach so that (1) we can > > display our visualization in the notebook now but without investing tons > of > > time into code that will be useless once you all have the widget support > and > > (2) that our designs be intended to mesh with the future JS widget > designs > > for the notebook (i.e. that our design is agnostic to the display > mechanism > > in the browser)? > > Here is a sketch of the some of the major features of the new design: > > * We will create an API that allows Python and JS to communicate data > back and forth using JSON. The JSON data might be the data you want > to visualize. > * When data is sent back and forth, a handler will be declared for > that data. There will likely be handlers on both the JS and Python > sides. These handlers will consume the JSON data and do whatever > needs to be done. > * We want to move away from having to write "code in strings" that is > passed to Kernel.execute or the Javascript object. The handler names > will be used instead. > * We expect the current Javascript display object to continue to work > though. > > So, if you can work to cleanly separate your JS code from the JSON > data that goes back and forth, you should have a clean path for the > transition. > > > And a secondary question, what's the best way for us to follow progress > in > > the ipython js developments. Is the roadmap wiki the best place for the > > looking for sumarized info on these parts of the project? > > The roadmap is pretty good, but we will probably also have other > design documents on the wiki just for the interactive widgets. I > would check back in early August and we will have a lot more to say. > We will also send out requests for comments on ipython-dev during the > design and implementation process. > > Looking forward to see what you are all up to... > > Cheers, > > Brian > > > > > Jason > > moorepants.info > > +01 530-601-9791 > > > > > > On Sat, Jun 15, 2013 at 9:44 AM, Brian Granger > wrote: > >> > >> I don't think you are going to like this, but I want to be honest > >> about our situation wrt these things: > >> > >> * It is not supported to do direct calls from the browser to the > >> kernel. You can hack it, but in general there is no promise the > >> kernel is even running on publicly visible host. Personally I would > >> not invest the time to do direct GET/POST to the kernel. > >> * If you write the data to a file, you can load the data using URLs of > >> the form "files/mydata.json". > >> * There is no way for JS to directly write data to a file. You will > >> have to embed the data in the string passed to Kernel.execute. > >> * If you really have to work on all of this during the summer, it is > >> going to be somewhat painful and you will have to redo a good part of > >> it once IPython's support improves later this year. If it were me, I > >> would focus on other things. This type of thing should be *trivial* > >> once we have done our work. > >> * We will *start* on this in late summer, but the work will be done > >> gradually between late summer and early next year. But, the low level > >> pieces that you probably need should be done by Fall. > >> * We are committed to getting the design of these things right. > >> Within the IPython code base we are strictly focused on our 1.0 > >> release and roadmap: > >> > >> https://github.com/ipython/ipython/wiki/Roadmap:-IPython > >> > >> * This means we are actually committed to *not* doing anything on the > >> interactive widgets within IPython until late Fall. Even if other > >> people want to contribute to the code base for these things, it will > >> be ignored. It is not a matter of writing code - that is the easy > >> part - the hard part is the design. IPython is a big project and it > >> is extremely important for us to be focused, otherwise the project > >> starts to look like a random walk and progress on big things is > >> difficult. Until later summer our focus is on nbconvert, > >> multidirectory support and the 1.0 release. > >> * IPython has been in this situation multiple times before - IOW > >> people waiting long periods of time for us to finish important work. > >> In all cases, waiting and being patient has been the right thing to > >> do. > >> > >> I know this is probably bad news, but in the end, if you simply wait > >> you will be able to accomplish what you want with a smile on your face > >> saying "wow, I can't believe how awesome and easy this is...just > >> magic" > >> > >> Cheers, > >> > >> Brian > >> > >> On Sat, Jun 15, 2013 at 9:23 AM, Jason Moore > wrote: > >> > Brian, > >> > > >> > So it seems that for us to get some data from a python object into our > >> > javascript, we write the data to file on the fly so that a js cell can > >> > pull > >> > it in from the filesystem or we hard code the data into the js string. > >> > Is > >> > that the way it should be done with the current setup? > >> > > >> > So we'd like the functionality for GET/POST in the notebook for our > >> > project. > >> > And I have one full time student that starts this week. What would be > >> > the > >> > best way for us to contribute some patches to jumpstart this on the > >> > ipython > >> > side? > >> > > >> > > >> > > >> > Jason > >> > moorepants.info > >> > +01 530-601-9791 > >> > > >> > > >> > On Sat, Jun 15, 2013 at 9:02 AM, Brian Granger > >> > wrote: > >> >> > >> >> Right now it does not have any easy way of doing that. For now you > >> >> will have to encode your data into the call to kernel.execute, which > >> >> is a completely pain. That is exactly what we will be tackling later > >> >> in the summer... > >> >> > >> >> Cheers, > >> >> > >> >> Brian > >> >> > >> >> On Sat, Jun 15, 2013 at 8:54 AM, Jason Moore > >> >> wrote: > >> >> > Brian, > >> >> > > >> >> > In IPython, is there a standard mechanism to pass data from the > >> >> > client > >> >> > to > >> >> > the server? We'd like to make some python calls that generate a > data > >> >> > stucture, jsonify it and then make it available to the javascript > >> >> > that > >> >> > is > >> >> > running in a cell via a GET request. I assume the kernel > architecture > >> >> > has > >> >> > this in place? > >> >> > > >> >> > > >> >> > Jason > >> >> > moorepants.info > >> >> > +01 530-601-9791 > >> >> > > >> >> > > >> >> > On Sat, Jun 15, 2013 at 8:14 AM, Brian Granger < > ellisonbg at gmail.com> > >> >> > wrote: > >> >> >> > >> >> >> Right now (today) the best way is to use the Javascript object > along > >> >> >> with the display function. However, starting in late summer we > will > >> >> >> be improving this API so it may change some, but all for the > >> >> >> better... > >> >> >> > >> >> >> Cheers, > >> >> >> > >> >> >> Brian > >> >> >> > >> >> >> On Fri, Jun 14, 2013 at 11:33 PM, TARUN GABA < > tarun.gaba7 at gmail.com> > >> >> >> wrote: > >> >> >> > Hi, > >> >> >> > > >> >> >> > I am wondering on what method would be more efficient to serve > >> >> >> > Javascripts on IPython notebooks > >> >> >> > > >> >> >> > I need to visualize/simulate multibody dynamics, and there are > two > >> >> >> > methods which are in my mind. > >> >> >> > The rough API of the project is being formed at .. > >> >> >> > > >> >> >> > http://pydy.org/visualization > >> >> >> > > >> >> >> > the two methods are: > >> >> >> > 1) Via http requests: > >> >> >> > > >> >> >> > on calling something like .. > >> >> >> > > >> >> >> > myobject.visualize(numerical_data) > >> >> >> > > >> >> >> > The browser sends a POST request to the kernel, and python > methods > >> >> >> > send a POST request to the required javascripts alongwith POST > >> >> >> > parameters as the numerical data required for visualization, > most > >> >> >> > likely a 4*4 transformation matrix, and shape information. > >> >> >> > the Javascripts recieves the post and then it is displayed in > the > >> >> >> > IPython output cell. > >> >> >> > > >> >> >> > 2) Another method can be to make Javascript objects and save > them > >> >> >> > as > >> >> >> > text in the classes, > >> >> >> > something like .. > >> >> >> > > >> >> >> > def MyClass(): > >> >> >> > > >> >> >> > def __init__(relevant,args): > >> >> >> > self.js_data = ''' A call to the Javascript functions, > >> >> >> > alongwith arguments.. > >> >> >> > var myobject = > >> >> >> > Shape_creating_function(%s)'''%(args) > >> >> >> > > >> >> >> > and then on calling .. > >> >> >> > MyClass.visualize() > >> >> >> > > >> >> >> > from IPython notebook, first calling all the required > >> >> >> > javascripts(files) via publish_javascript()/publish_html() > display > >> >> >> > methods and then > >> >> >> > > >> >> >> > display(Javascript(MyClass.js_data)) > >> >> >> > > >> >> >> > Which of these would be more feasible and efficient.. > >> >> >> > _______________________________________________ > >> >> >> > IPython-dev mailing list > >> >> >> > IPython-dev at scipy.org > >> >> >> > http://mail.scipy.org/mailman/listinfo/ipython-dev > >> >> >> > >> >> >> > >> >> >> > >> >> >> -- > >> >> >> Brian E. Granger > >> >> >> Cal Poly State University, San Luis Obispo > >> >> >> bgranger at calpoly.edu and ellisonbg at gmail.com > >> >> >> _______________________________________________ > >> >> >> IPython-dev mailing list > >> >> >> IPython-dev at scipy.org > >> >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> >> > > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > IPython-dev mailing list > >> >> > IPython-dev at scipy.org > >> >> > http://mail.scipy.org/mailman/listinfo/ipython-dev > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Brian E. Granger > >> >> Cal Poly State University, San Luis Obispo > >> >> bgranger at calpoly.edu and ellisonbg at gmail.com > >> >> _______________________________________________ > >> >> IPython-dev mailing list > >> >> IPython-dev at scipy.org > >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > > >> > > >> > > >> > _______________________________________________ > >> > IPython-dev mailing list > >> > IPython-dev at scipy.org > >> > http://mail.scipy.org/mailman/listinfo/ipython-dev > >> > > >> > >> > >> > >> -- > >> Brian E. Granger > >> Cal Poly State University, San Luis Obispo > >> bgranger at calpoly.edu and ellisonbg at gmail.com > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorgen.stenarson at kroywen.se Mon Jun 17 11:22:15 2013 From: jorgen.stenarson at kroywen.se (=?ISO-8859-1?Q?J=F6rgen_Stenarson?=) Date: Mon, 17 Jun 2013 17:22:15 +0200 Subject: [IPython-dev] javascript book? Message-ID: <51BF29A7.6060503@kroywen.se> Hi, I would like to learn more about javascript, html5 etc. to be able to understand the notebook better. Do you have any recommendations on good books or online resources for learning this stuff? /J?rgen From raymond.yee at gmail.com Mon Jun 17 11:51:55 2013 From: raymond.yee at gmail.com (Raymond Yee) Date: Mon, 17 Jun 2013 08:51:55 -0700 Subject: [IPython-dev] javascript book? In-Reply-To: <51BF29A7.6060503@kroywen.se> References: <51BF29A7.6060503@kroywen.se> Message-ID: <51BF309B.5020104@gmail.com> Hi J?rgen, What's your current knowledge level and how do you like to learn? I too am very interested in developing my JavaScript and HTML5 skills. I have found that I don't do enough work with JavaScript to keep from forgetting a lot of what I did know -- so I'm on a rebuilding phase. Here are some of the things I've found useful: * When I had been doing JavaScript programming for a while and was looking for a deeper, intermediate level understanding of the language, I found reading Douglas Crockford's *JavaScript: The Good Parts* (http://shop.oreilly.com/product/9780596517748.do) really helpful. I don't think it's the best place to get started if you know nothing about JavaScript though. I'm guessing there might be better books in the niche of now-that-you-know-some-basics-and-are-ready-for-the-next-step niche and would love to hear suggestions. * For learning/reviewing basic syntax, I'm really quite enjoying http://www.codecademy.com/. The immediate feedback is great for letting me develop some "muscle memory" while I'm getting up to speed on a language. * After getting some basics under my belt, I might then try udacity's HTML5 Game Development course as a fun(?) way to learn HTML5. (https://www.udacity.com/course/cs255). Has anyone looked at it? I'll be able to offer other suggestions soon as I dive deeper in this area. I'm pretty fond of using jsfiddle.net to prototype some learning too -- but am trying to figure out how to do as much HTML5/JavaScript/CSS3 learning using IPython notebook too. -Raymond On 6/17/13 8:22 AM, J?rgen Stenarson wrote: > Hi, > > I would like to learn more about javascript, html5 etc. to be able to > understand the notebook better. Do you have any recommendations on good > books or online resources for learning this stuff? > > /J?rgen > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From jorgen.stenarson at kroywen.se Mon Jun 17 12:06:48 2013 From: jorgen.stenarson at kroywen.se (=?ISO-8859-1?Q?J=F6rgen_Stenarson?=) Date: Mon, 17 Jun 2013 18:06:48 +0200 Subject: [IPython-dev] javascript book? In-Reply-To: <51BF309B.5020104@gmail.com> References: <51BF29A7.6060503@kroywen.se> <51BF309B.5020104@gmail.com> Message-ID: <51BF3418.5070505@kroywen.se> Raymond Yee skrev 2013-06-17 17:51: > Hi J?rgen, > > What's your current knowledge level and how do you like to learn? > I have never done any javascript so I guess I'm far behind you. But I do know programming (python, C, mathematica...). Thanks for your suggestions I will look at them. I will try to come up with a small project where I can use javascript. I find it easier to learn when I have something concrete to solve. /J?rgen From david at wolever.net Mon Jun 17 12:24:37 2013 From: david at wolever.net (David Wolever) Date: Mon, 17 Jun 2013 12:24:37 -0400 Subject: [IPython-dev] javascript book? In-Reply-To: <51BF3418.5070505@kroywen.se> References: <51BF29A7.6060503@kroywen.se> <51BF309B.5020104@gmail.com> <51BF3418.5070505@kroywen.se> Message-ID: On 2013-06-17, at 12:06 PM, J?rgen Stenarson wrote: >> What's your current knowledge level and how do you like to learn? >> > I have never done any javascript so I guess I'm far behind you. But I do > know programming (python, C, mathematica...). Thanks for your > suggestions I will look at them. In that case, it will also be important to remember: forget literally everything you think you know about the semantics of a programming language. There will be times that you are tempted to have thoughts like "oh, I've seen something which looks similar before? I know what's going on there!" But you will be wrong. For some examples, see: http://wtfjs.com/ -- phone: (416) 906-0403 pgp: B230230D From bussonniermatthias at gmail.com Mon Jun 17 12:26:13 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Mon, 17 Jun 2013 18:26:13 +0200 Subject: [IPython-dev] javascript book? In-Reply-To: <51BF3418.5070505@kroywen.se> References: <51BF29A7.6060503@kroywen.se> <51BF309B.5020104@gmail.com> <51BF3418.5070505@kroywen.se> Message-ID: <45C89780-6B8B-494D-B4D5-0326ED62A659@gmail.com> Le 17 juin 2013 ? 18:06, J?rgen Stenarson a ?crit : > Raymond Yee skrev 2013-06-17 17:51: >> Hi J?rgen, >> >> What's your current knowledge level and how do you like to learn? >> > I have never done any javascript so I guess I'm far behind you. But I do > know programming (python, C, mathematica...). Thanks for your > suggestions I will look at them. I haven't read but heard of http://eloquentjavascript.net/ with a few resources to free books here : http://jsbooks.revolunet.com/ I am personally subscribed to http://dailyjs.com/ which present 3 small js lib per day in ~ 10 lines each, which is good to catch up with what happened in js world and know what exist. > I will try to come up with a small project where I can use javascript. I > find it easier to learn when I have something concrete to solve. on dailys, there is a big tutorial where you learn how to build a full js app from scratch with a new chapter every other week. IIRC it's a simple todo app that evolve with live collaboration and google syncing, outstrip, backbone etc. I haven't done it but skim through from time to time to know what can be done. -- Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From hroe.lee at gmail.com Mon Jun 17 15:03:47 2013 From: hroe.lee at gmail.com (Roh H. Lee) Date: Mon, 17 Jun 2013 12:03:47 -0700 Subject: [IPython-dev] Automatic downloading python dependencies on IPython Notebook Message-ID: Hi, I wonder if there is an automatic way to install required python package on IPython Notebook. For example, I try to run Non Parametric Regression by downloading and opening its .ipynb file on my machine but I realized my machine doesn't have pymc package. If this happen, I typically use either pip on terminal or ! magic function to download the missing python package. Python setup.py supports downloading required packages specified in the configuration. Is there any similar features or means that I can compromise? Sincerely, Hyungro -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Mon Jun 17 15:16:05 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Mon, 17 Jun 2013 12:16:05 -0700 Subject: [IPython-dev] Automatic downloading python dependencies on IPython Notebook In-Reply-To: References: Message-ID: The notebook doesn't have any such capability right now, and given the difficulty of managing installation across platforms, I don't imagine we will try to tackle that. But, it might make a nice IPython extension? Cheers, Brian On Mon, Jun 17, 2013 at 12:03 PM, Roh H. Lee wrote: > Hi, > > I wonder if there is an automatic way to install required python package on > IPython Notebook. > For example, I try to run Non Parametric Regression by downloading and > opening its .ipynb file on my machine but I realized my machine doesn't have > pymc package. If this happen, I typically use either pip on terminal or ! > magic function to download the missing python package. Python setup.py > supports downloading required packages specified in the configuration. Is > there any similar features or means that I can compromise? > > Sincerely, > Hyungro > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From scopatz at gmail.com Mon Jun 17 15:21:36 2013 From: scopatz at gmail.com (Anthony Scopatz) Date: Mon, 17 Jun 2013 14:21:36 -0500 Subject: [IPython-dev] Automatic downloading python dependencies on IPython Notebook In-Reply-To: References: Message-ID: Hello Hyungro, The work involved to build this feature correctly scares me. It would be a great feature to have, but you enter into rolling your own package manager territory very quickly. Be Well Anthony On Mon, Jun 17, 2013 at 2:16 PM, Brian Granger wrote: > The notebook doesn't have any such capability right now, and given the > difficulty of managing installation across platforms, I don't imagine > we will try to tackle that. But, it might make a nice IPython > extension? > > Cheers, > > Brian > > On Mon, Jun 17, 2013 at 12:03 PM, Roh H. Lee wrote: > > Hi, > > > > I wonder if there is an automatic way to install required python package > on > > IPython Notebook. > > For example, I try to run Non Parametric Regression by downloading and > > opening its .ipynb file on my machine but I realized my machine doesn't > have > > pymc package. If this happen, I typically use either pip on terminal or ! > > magic function to download the missing python package. Python setup.py > > supports downloading required packages specified in the configuration. Is > > there any similar features or means that I can compromise? > > > > Sincerely, > > Hyungro > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hroe.lee at gmail.com Mon Jun 17 17:42:34 2013 From: hroe.lee at gmail.com (Roh H. Lee) Date: Mon, 17 Jun 2013 14:42:34 -0700 Subject: [IPython-dev] Automatic downloading python dependencies on IPython Notebook In-Reply-To: References: Message-ID: I thought virtualenv and pip might help to enable this feature in some way without ruining python environments (site-packages) in the system. I am not sure about other than Linux distributions. Best, Hyungro On Mon, Jun 17, 2013 at 12:21 PM, Anthony Scopatz wrote: > Hello Hyungro, > > The work involved to build this feature correctly scares me. It would be > a great feature to have, but you enter into rolling your own package > manager territory very quickly. > > Be Well > Anthony > > > On Mon, Jun 17, 2013 at 2:16 PM, Brian Granger wrote: > >> The notebook doesn't have any such capability right now, and given the >> difficulty of managing installation across platforms, I don't imagine >> we will try to tackle that. But, it might make a nice IPython >> extension? >> >> Cheers, >> >> Brian >> >> On Mon, Jun 17, 2013 at 12:03 PM, Roh H. Lee wrote: >> > Hi, >> > >> > I wonder if there is an automatic way to install required python >> package on >> > IPython Notebook. >> > For example, I try to run Non Parametric Regression by downloading and >> > opening its .ipynb file on my machine but I realized my machine doesn't >> have >> > pymc package. If this happen, I typically use either pip on terminal or >> ! >> > magic function to download the missing python package. Python setup.py >> > supports downloading required packages specified in the configuration. >> Is >> > there any similar features or means that I can compromise? >> > >> > Sincerely, >> > Hyungro >> > >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> >> >> >> -- >> Brian E. Granger >> Cal Poly State University, San Luis Obispo >> bgranger at calpoly.edu and ellisonbg at gmail.com >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Jun 18 08:19:11 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Tue, 18 Jun 2013 14:19:11 +0200 Subject: [IPython-dev] Automatic downloading python dependencies on IPython Notebook In-Reply-To: References: Message-ID: <1E31E8FB-BD30-4178-97A9-CBEBCD8E13D8@gmail.com> I would say that the notebook author could ship its notebook with a requirement.txt, or even issue a ! pip freeze in one notebook cell. But I think this is well beyond notebook scope, but is something anaconda bundle and software like Vagrant[1] excel at. This does prevent people to use metadata to store such info with extensions?. -- Matthias [1] Yes I am aware of "a VM is not the right solution for dependencies and reproducible research" discussion, and I agree. Le 17 juin 2013 ? 23:42, Roh H. Lee a ?crit : > I thought virtualenv and pip might help to enable this feature in some way > without ruining python environments (site-packages) in the system. I am > not sure about other than Linux distributions. > > Best, > Hyungro > > > On Mon, Jun 17, 2013 at 12:21 PM, Anthony Scopatz wrote: > Hello Hyungro, > > The work involved to build this feature correctly scares me. It would be a great feature to have, but you enter into rolling your own package manager territory very quickly. > > Be Well > Anthony > > > On Mon, Jun 17, 2013 at 2:16 PM, Brian Granger wrote: > The notebook doesn't have any such capability right now, and given the > difficulty of managing installation across platforms, I don't imagine > we will try to tackle that. But, it might make a nice IPython > extension? > > Cheers, > > Brian > > On Mon, Jun 17, 2013 at 12:03 PM, Roh H. Lee wrote: > > Hi, > > > > I wonder if there is an automatic way to install required python package on > > IPython Notebook. > > For example, I try to run Non Parametric Regression by downloading and > > opening its .ipynb file on my machine but I realized my machine doesn't have > > pymc package. If this happen, I typically use either pip on terminal or ! > > magic function to download the missing python package. Python setup.py > > supports downloading required packages specified in the configuration. Is > > there any similar features or means that I can compromise? > > > > Sincerely, > > Hyungro > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpmuller at gmail.com Tue Jun 18 12:48:37 2013 From: rpmuller at gmail.com (Rick Muller) Date: Tue, 18 Jun 2013 10:48:37 -0600 Subject: [IPython-dev] More complicated LaTeX output in IPython notebook cells. Message-ID: I'm interested in getting working quantum circuit drawings in IPython notebook cells. The current approaches that do this use latex to draw these circuits, so I was hoping this wouldn't be too difficult to make work. Ike Chuang has a python program called [qasm2circ]( http://www.media.mit.edu/quanta/qasm2circ/). I wrote a lightweight python class around the object that wraps the basic parsing methods and presents a _repr_latex_ method so that I could display the circuit. This outputs something that looks like: \input{xyqcirc.tex} % definitions for the circuit elements \def\gAxA{\op{H}\w\A{gAxA}} \def\gBxA{\b\w\A{gBxA}} \def\gBxB{\o\w\A{gBxB}} % definitions for bit labels and initial states \def\bA{ \q{q_{0}}} \def\bB{ \q{q_{1}}} % The quantum circuit as an xymatrix \xymatrix at R=5pt at C=10pt{ \bA & \gAxA &\gBxA &\n \\ \bB & \n &\gBxB &\n % % Vertical lines and other post-xymatrix latex % \ar@{-}"gBxB";"gBxA" } which doesn't display, I think because the xyqcirc.tex stuff isn't supported by mathjax. Does anyone know of a workaround for this, or should I start honing my SVG skills to generate a more native option? -- Rick Muller rpmuller at gmail.com 505-750-7557 -------------- next part -------------- An HTML attachment was scrubbed... URL: From aron at ahmadia.net Tue Jun 18 12:55:31 2013 From: aron at ahmadia.net (Aron Ahmadia) Date: Tue, 18 Jun 2013 17:55:31 +0100 Subject: [IPython-dev] More complicated LaTeX output in IPython notebook cells. In-Reply-To: References: Message-ID: I don't believe MathJax even supports \input :) I think if you want to have dynamic art online, you'll need to switch to a solution that provides more of TeX (you could check to see if writelatex.comdoes what you want), or as you suggested yourself, learn how to generate SVG or other online graphics using a Javascript library. A On Tue, Jun 18, 2013 at 5:48 PM, Rick Muller wrote: > I'm interested in getting working quantum circuit drawings in IPython > notebook cells. The current approaches that do this use latex to draw these > circuits, so I was hoping this wouldn't be too difficult to make work. > > Ike Chuang has a python program called [qasm2circ]( > http://www.media.mit.edu/quanta/qasm2circ/). I wrote a lightweight python > class around the object that wraps the basic parsing methods and presents a > _repr_latex_ method so that I could display the circuit. This outputs > something that looks like: > > \input{xyqcirc.tex} > > % definitions for the circuit elements > > \def\gAxA{\op{H}\w\A{gAxA}} > \def\gBxA{\b\w\A{gBxA}} > \def\gBxB{\o\w\A{gBxB}} > > % definitions for bit labels and initial states > > \def\bA{ \q{q_{0}}} > \def\bB{ \q{q_{1}}} > > % The quantum circuit as an xymatrix > > \xymatrix at R=5pt at C=10pt{ > \bA & \gAxA &\gBxA &\n > \\ \bB & \n &\gBxB &\n > % > % Vertical lines and other post-xymatrix latex > % > \ar@{-}"gBxB";"gBxA" > } > > which doesn't display, I think because the xyqcirc.tex stuff isn't > supported by mathjax. > Does anyone know of a workaround for this, or should I start honing my SVG > skills to generate a more native option? > > -- > Rick Muller > rpmuller at gmail.com > 505-750-7557 > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Jun 18 12:58:07 2013 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 18 Jun 2013 17:58:07 +0100 Subject: [IPython-dev] More complicated LaTeX output in IPython notebook cells. In-Reply-To: References: Message-ID: On 18 June 2013 17:48, Rick Muller wrote: > which doesn't display, I think because the xyqcirc.tex stuff isn't > supported by mathjax. > Does anyone know of a workaround for this, or should I start honing my SVG > skills to generate a more native option? > You're probably right about Mathjax - it's designed to handle a subset of TeX, and I doubt quantum circuit diagrams are in that subset ;-). If you need a workaround, you could write a wrapper that will do the LaTeX rendering in the kernel, and display it as a png. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Tue Jun 18 13:00:37 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Tue, 18 Jun 2013 10:00:37 -0700 Subject: [IPython-dev] More complicated LaTeX output in IPython notebook cells. In-Reply-To: References: Message-ID: It is probably worth mentioning that SymPy has *basic* quantum circuit drawing that uses matplotlib. It would be great i someone wanted to improve that.... On Tue, Jun 18, 2013 at 9:48 AM, Rick Muller wrote: > I'm interested in getting working quantum circuit drawings in IPython > notebook cells. The current approaches that do this use latex to draw these > circuits, so I was hoping this wouldn't be too difficult to make work. > > Ike Chuang has a python program called > [qasm2circ](http://www.media.mit.edu/quanta/qasm2circ/). I wrote a > lightweight python class around the object that wraps the basic parsing > methods and presents a _repr_latex_ method so that I could display the > circuit. This outputs something that looks like: > > \input{xyqcirc.tex} > > % definitions for the circuit elements > > \def\gAxA{\op{H}\w\A{gAxA}} > \def\gBxA{\b\w\A{gBxA}} > \def\gBxB{\o\w\A{gBxB}} > > % definitions for bit labels and initial states > > \def\bA{ \q{q_{0}}} > \def\bB{ \q{q_{1}}} > > % The quantum circuit as an xymatrix > > \xymatrix at R=5pt at C=10pt{ > \bA & \gAxA &\gBxA &\n > \\ \bB & \n &\gBxB &\n > % > % Vertical lines and other post-xymatrix latex > % > \ar@{-}"gBxB";"gBxA" > } > > which doesn't display, I think because the xyqcirc.tex stuff isn't supported > by mathjax. > Does anyone know of a workaround for this, or should I start honing my SVG > skills to generate a more native option? > > -- > Rick Muller > rpmuller at gmail.com > 505-750-7557 > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From samjnaa at gmail.com Tue Jun 18 13:07:15 2013 From: samjnaa at gmail.com (Shriramana Sharma) Date: Tue, 18 Jun 2013 22:37:15 +0530 Subject: [IPython-dev] IPython Notebook + MathJax + Firefox Message-ID: Hello people. I hope this is the right forum for this. First I thank you very much for this great software -- you make my Python usage much more pleasant. I use IPy3 0.13.2 with Python 3.3.1 on Kubuntu Raring. Normally I use the Qt Console interface but sometimes I do open up the notebook, and I find that the OTF MathJax fonts don't get loaded on Firefox because of a Firefox security "feature" that prevents fonts getting loaded when the location they are loaded from is different from the location that calls them. For details please see: https://groups.google.com/d/topic/mathjax-users/fb_zE_a41xQ/discussion MathJax developers advised that I should report this here. I hope this is a known issue -- or should I file a bug at github? Thanks for your feedback. -- Shriramana Sharma ???????????? ???????????? From mark.voorhies at ucsf.edu Tue Jun 18 13:17:47 2013 From: mark.voorhies at ucsf.edu (Mark Voorhies) Date: Tue, 18 Jun 2013 10:17:47 -0700 Subject: [IPython-dev] More complicated LaTeX output in IPython notebook cells. In-Reply-To: References: Message-ID: <51C0963B.4040204@ucsf.edu> On 06/18/2013 09:58 AM, Thomas Kluyver wrote: > On 18 June 2013 17:48, Rick Muller wrote: > >> which doesn't display, I think because the xyqcirc.tex stuff isn't >> supported by mathjax. >> Does anyone know of a workaround for this, or should I start honing my SVG >> skills to generate a more native option? >> > > You're probably right about Mathjax - it's designed to handle a subset of > TeX, and I doubt quantum circuit diagrams are in that subset ;-). > > If you need a workaround, you could write a wrapper that will do the LaTeX > rendering in the kernel, and display it as a png. One route for latex->png/svg is to use inkscape as a headless pdf renderer. The default fonts are not beautiful, but it is pretty general, e.g.: from IPython.core.display import Image, SVG open("example.tex","w").write(r""" \documentclass[12pt]{article} \begin{document} \begin{eqnarray} 1 - p_i &=& \left(1-\frac{p_m}{N_g}\right)^n \\ \log(1 - p_i) &=& \log\left[\left(1-\frac{p_m}{N_g}\right)^n\right] \\ \log(1 - p_i) &=& n\log\left(1-\frac{p_m}{N_g}\right) \\ \label{eq:n} n &=& \frac{\log(1-p_i)}{\log(1-\frac{p_m}{N_g})} \end{eqnarray} \end{document} """) !pdflatex example.tex !inkscape example.pdf --export-png=example.png Image(filename="example.png") !inkscape example.pdf --export-plain-svg=example.svg SVG(filename = "example.svg") --Mark From fperez.net at gmail.com Tue Jun 18 15:02:04 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 18 Jun 2013 12:02:04 -0700 Subject: [IPython-dev] IPython Notebook + MathJax + Firefox In-Reply-To: References: Message-ID: Yes, please file a github issue with the above link, so we can track this hopefully to resolution. Cheers, f On Tue, Jun 18, 2013 at 10:07 AM, Shriramana Sharma wrote: > Hello people. I hope this is the right forum for this. > > First I thank you very much for this great software -- you make my > Python usage much more pleasant. I use IPy3 0.13.2 with Python 3.3.1 > on Kubuntu Raring. > > Normally I use the Qt Console interface but sometimes I do open up the > notebook, and I find that the OTF MathJax fonts don't get loaded on > Firefox because of a Firefox security "feature" that prevents fonts > getting loaded when the location they are loaded from is different > from the location that calls them. > > For details please see: > > https://groups.google.com/d/topic/mathjax-users/fb_zE_a41xQ/discussion > > MathJax developers advised that I should report this here. I hope this > is a known issue -- or should I file a bug at github? > > Thanks for your feedback. > > -- > Shriramana Sharma ???????????? ???????????? > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From rpmuller at gmail.com Tue Jun 18 15:27:21 2013 From: rpmuller at gmail.com (Rick Muller) Date: Tue, 18 Jun 2013 13:27:21 -0600 Subject: [IPython-dev] More complicated LaTeX output in IPython notebook cells. In-Reply-To: References: Message-ID: Brian, Thanks. I'll check out what's already in SymPy. I'd rather improve something else that exists than create something from scratch. On Tue, Jun 18, 2013 at 11:00 AM, Brian Granger wrote: > It is probably worth mentioning that SymPy has *basic* quantum circuit > drawing that uses matplotlib. It would be great i someone wanted to > improve that.... > > On Tue, Jun 18, 2013 at 9:48 AM, Rick Muller wrote: > > I'm interested in getting working quantum circuit drawings in IPython > > notebook cells. The current approaches that do this use latex to draw > these > > circuits, so I was hoping this wouldn't be too difficult to make work. > > > > Ike Chuang has a python program called > > [qasm2circ](http://www.media.mit.edu/quanta/qasm2circ/). I wrote a > > lightweight python class around the object that wraps the basic parsing > > methods and presents a _repr_latex_ method so that I could display the > > circuit. This outputs something that looks like: > > > > \input{xyqcirc.tex} > > > > % definitions for the circuit elements > > > > \def\gAxA{\op{H}\w\A{gAxA}} > > \def\gBxA{\b\w\A{gBxA}} > > \def\gBxB{\o\w\A{gBxB}} > > > > % definitions for bit labels and initial states > > > > \def\bA{ \q{q_{0}}} > > \def\bB{ \q{q_{1}}} > > > > % The quantum circuit as an xymatrix > > > > \xymatrix at R=5pt at C=10pt{ > > \bA & \gAxA &\gBxA &\n > > \\ \bB & \n &\gBxB &\n > > % > > % Vertical lines and other post-xymatrix latex > > % > > \ar@{-}"gBxB";"gBxA" > > } > > > > which doesn't display, I think because the xyqcirc.tex stuff isn't > supported > > by mathjax. > > Does anyone know of a workaround for this, or should I start honing my > SVG > > skills to generate a more native option? > > > > -- > > Rick Muller > > rpmuller at gmail.com > > 505-750-7557 > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Rick Muller rpmuller at gmail.com 505-750-7557 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpmuller at gmail.com Tue Jun 18 15:27:40 2013 From: rpmuller at gmail.com (Rick Muller) Date: Tue, 18 Jun 2013 13:27:40 -0600 Subject: [IPython-dev] More complicated LaTeX output in IPython notebook cells. In-Reply-To: References: Message-ID: Yeah, I was afraid of that. On to other solutions, then. On Tue, Jun 18, 2013 at 10:55 AM, Aron Ahmadia wrote: > I don't believe MathJax even supports \input :) > > I think if you want to have dynamic art online, you'll need to switch to a > solution that provides more of TeX (you could check to see if > writelatex.com does what you want), or as you suggested yourself, learn > how to generate SVG or other online graphics using a Javascript library. > > A > > > On Tue, Jun 18, 2013 at 5:48 PM, Rick Muller wrote: > >> I'm interested in getting working quantum circuit drawings in IPython >> notebook cells. The current approaches that do this use latex to draw these >> circuits, so I was hoping this wouldn't be too difficult to make work. >> >> Ike Chuang has a python program called [qasm2circ]( >> http://www.media.mit.edu/quanta/qasm2circ/). I wrote a lightweight >> python class around the object that wraps the basic parsing methods and >> presents a _repr_latex_ method so that I could display the circuit. This >> outputs something that looks like: >> >> \input{xyqcirc.tex} >> >> % definitions for the circuit elements >> >> \def\gAxA{\op{H}\w\A{gAxA}} >> \def\gBxA{\b\w\A{gBxA}} >> \def\gBxB{\o\w\A{gBxB}} >> >> % definitions for bit labels and initial states >> >> \def\bA{ \q{q_{0}}} >> \def\bB{ \q{q_{1}}} >> >> % The quantum circuit as an xymatrix >> >> \xymatrix at R=5pt at C=10pt{ >> \bA & \gAxA &\gBxA &\n >> \\ \bB & \n &\gBxB &\n >> % >> % Vertical lines and other post-xymatrix latex >> % >> \ar@{-}"gBxB";"gBxA" >> } >> >> which doesn't display, I think because the xyqcirc.tex stuff isn't >> supported by mathjax. >> Does anyone know of a workaround for this, or should I start honing my SVG >> skills to generate a more native option? >> >> -- >> Rick Muller >> rpmuller at gmail.com >> 505-750-7557 >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Rick Muller rpmuller at gmail.com 505-750-7557 -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Wed Jun 19 14:11:25 2013 From: benjaminrk at gmail.com (Min RK) Date: Wed, 19 Jun 2013 14:11:25 -0400 Subject: [IPython-dev] Meeting tomorrow Message-ID: <3B6BCFAD-8177-48AA-803E-1FD1D85E67B0@gmail.com> I believe Fernando is traveling, and I will be on a train tomorrow morning. So if folks are planning on a meeting tomorrow, I think you will be minus two. -MinRK From ellisonbg at gmail.com Wed Jun 19 14:15:39 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Wed, 19 Jun 2013 11:15:39 -0700 Subject: [IPython-dev] Meeting tomorrow In-Reply-To: <3B6BCFAD-8177-48AA-803E-1FD1D85E67B0@gmail.com> References: <3B6BCFAD-8177-48AA-803E-1FD1D85E67B0@gmail.com> Message-ID: I actually can't make it as well, that might be enough missing to postpone it? Cheers, Brian On Wed, Jun 19, 2013 at 11:11 AM, Min RK wrote: > I believe Fernando is traveling, and I will be on a train tomorrow morning. So if folks are planning on a meeting tomorrow, I think you will be minus two. > > -MinRK > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From mail at telenczuk.pl Wed Jun 19 15:10:06 2013 From: mail at telenczuk.pl (Bartosz) Date: Wed, 19 Jun 2013 21:10:06 +0200 Subject: [IPython-dev] Github - IPy Notebook button Message-ID: <51C2020E.20503@telenczuk.pl> hi, I found that the nbviewer bookmarklet by Matt Davis does not work any more with recent Firefox (v21) due to content security policy (CSP). Therefore I decided to convert it to Greasemonkey script, which is not affected by CSP. The script works with Github repositories. In the GH file browser, it adds a button to the toolbar (next to Raw and History buttons) if the viewed file is an ipython notebook (with .ipynb extension). Clicking on the button opens the notebook in NBViewer. If the script is something which might be interesting for you, you can get it from gist: https://gist.github.com/btel/5813784. To use it, install Greasemonkey first open the script in Firefox (use raw gist format). I will be glad to hear you feedback. Thank you all for IPython and the notebook! Cheers, Bartosz From takowl at gmail.com Wed Jun 19 16:51:27 2013 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 19 Jun 2013 21:51:27 +0100 Subject: [IPython-dev] Github - IPy Notebook button In-Reply-To: <51C2020E.20503@telenczuk.pl> References: <51C2020E.20503@telenczuk.pl> Message-ID: Hi Bartosz, On 19 June 2013 20:10, Bartosz wrote: > I found that the nbviewer bookmarklet by Matt Davis does not work any > more with recent Firefox (v21) due to content security policy (CSP). > Therefore I decided to convert it to Greasemonkey script, which is not > affected by CSP. Can you clarify why it's not working? Can it be fixed? I can't imagine Firefox has broken all bookmarklets, and I don't think nbviewer requires any very special features from the browser's point of view. > The script works with Github repositories. In the GH file browser, it > adds a button to the toolbar (next to Raw and History buttons) if the > viewed file is an ipython notebook (with .ipynb extension). Clicking on > the button opens the notebook in NBViewer. That's pretty neat as well - thanks! Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at telenczuk.pl Wed Jun 19 17:57:19 2013 From: mail at telenczuk.pl (Bartosz) Date: Wed, 19 Jun 2013 23:57:19 +0200 Subject: [IPython-dev] Github - IPy Notebook button In-Reply-To: References: <51C2020E.20503@telenczuk.pl> Message-ID: <7bd974c88dce76ac2374363e26583c07@webmail.webfaction.com> Hi Thomas, You're right. Obviously not all bookmarklets are broken. I did some further testing and it seems that only secure https pages are blocked (which includes github pages). Try for example: https://raw.github.com/ipython/ipython/master/examples/notebooks/Custom%20Display%20Logic.ipynb It's probably a bug in Firefox and it is discussed here (no mention of https though): http://stackoverflow.com/questions/7607605/does-content-security-policy-block-bookmarklets Bartosz > On 19 June 2013 20:10, Bartosz wrote: > >> I found that the nbviewer bookmarklet by Matt Davis does not work any >> more with recent Firefox (v21) due to content security policy (CSP). >> Therefore I decided to convert it to Greasemonkey script, which is >> not >> affected by CSP. > > Can you clarify why it's not working? Can it be fixed? I can't > imagine Firefox has broken all bookmarklets, and I don't think > nbviewer requires any very special features from the browser's point > of view. > >> The script works with Github repositories. In the GH file browser, it >> adds a button to the toolbar (next to Raw and History buttons) if the >> viewed file is an ipython notebook (with .ipynb extension). Clicking >> on > > the button opens the notebook in NBViewer. > > That's pretty neat as well - thanks! > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From ccordoba12 at gmail.com Wed Jun 19 20:58:57 2013 From: ccordoba12 at gmail.com (=?UTF-8?B?Q2FybG9zIEPDs3Jkb2Jh?=) Date: Wed, 19 Jun 2013 19:58:57 -0500 Subject: [IPython-dev] How to print stderr in qtconsole? In-Reply-To: References: <51B67B57.8050201@gmail.com> <51B6805E.9020105@gmail.com> Message-ID: <51C253D1.3040906@gmail.com> Hi Min, Thanks a lot for the tip. I decided to patch unittest.main (through our sitecustomize) so that it has the same testRunner arg as the one you mentioned. It seems overkilling that the user needs to pass it directly just to run his tests. Cheers, Carlos El 10/06/13 20:47, MinRK escribi?: > It's probably an issue of unittest hooking up to `sys.__stderr__` > instead of `sys.stderr`. We don't (and shouldn't) redirect the > lower-level private handle, but you can tell it to use `sys.stderr` > instead: > > import sys > import unittest > > class tests(unittest.TestCase): > def test_raise(self): > print 1 / 0 > if __name__ == '__main__': > unittest.main(testRunner=unittest.TextTestRunner(stream=sys.stderr)) > > which should display output just fine in the QtConsole. > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Wed Jun 19 23:58:04 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 19 Jun 2013 20:58:04 -0700 Subject: [IPython-dev] Meeting tomorrow In-Reply-To: References: <3B6BCFAD-8177-48AA-803E-1FD1D85E67B0@gmail.com> Message-ID: Hi folks, sure, let's postpone it for two weeks (since next week is SciPy 13 and several of us will be there instead...). While in general I think we should go forward when some of us can't make it, if none of the three of us can be there it's probably best to postpone. Cheers, f On Wed, Jun 19, 2013 at 11:15 AM, Brian Granger wrote: > I actually can't make it as well, that might be enough missing to postpone it? > > Cheers, > > Brian > > On Wed, Jun 19, 2013 at 11:11 AM, Min RK wrote: >> I believe Fernando is traveling, and I will be on a train tomorrow morning. So if folks are planning on a meeting tomorrow, I think you will be minus two. >> >> -MinRK >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From sychan at lbl.gov Wed Jun 26 14:32:27 2013 From: sychan at lbl.gov (Stephen Chan) Date: Wed, 26 Jun 2013 11:32:27 -0700 Subject: [IPython-dev] Converting ipython notebook from tornado to gevent? Message-ID: Hi, A group of us in Adam Arkin's KBase group at LBL has started working on a bioinformatics notebook using IPython Notebook. So far it looks like the ideal platform and we're glad to be finally under way. One of the tasks we have on our todo list is to convert the IPython Notebook from Tornado to Gevent. We aren't considering this out of any perverse desire to create additional work for ourselves, but mainly because our existing deployment environment is based on uwsgi+gevent and the fact that gevent does a pretty good job of moving asynchrony back into the plumbing (where some of us think it belongs) so that we can code using a more conventional python idiom. I think that this came up in f2f conversations with Fernando and MinRK, but I just wanted to bring it up again and ask if anyone considered a port to specifically to gevent, and if there's any idea of the scope of work? Is it something like a week of work for a solid python developer, or is it more like a couple of weeks or more? Are there any gotchas that may arise due to code written against tornado? Thanks for any help, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Jun 26 15:29:57 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Wed, 26 Jun 2013 21:29:57 +0200 Subject: [IPython-dev] Converting ipython notebook from tornado to gevent? In-Reply-To: References: Message-ID: Hi Steve, Le 26 juin 2013 ? 20:32, Stephen Chan a ?crit : > Hi, > A group of us in Adam Arkin's KBase group at LBL has started working on a bioinformatics notebook using IPython Notebook. So far it looks like the ideal platform and we're glad to be finally under way. > > One of the tasks we have on our todo list is to convert the IPython Notebook from Tornado to Gevent. We aren't considering this out of any perverse desire to create additional work for ourselves, but mainly because our existing deployment environment is based on uwsgi+gevent and the fact that gevent does a pretty good job of moving asynchrony back into the plumbing (where some of us think it belongs) so that we can code using a more conventional python idiom. > > I think that this came up in f2f conversations with Fernando and MinRK, but I just wanted to bring it up again and ask if anyone considered a port to specifically to gevent, and if there's any idea of the scope of work? Is it something like a week of work for a solid python developer, or is it more like a couple of weeks or more? Are there any gotchas that may arise due to code written against tornado? Sorry if my answer does not totally respond to your question, I don't know what your exact requirement, and I'm not the most familiar with the handler side of IPython notebook. From the few things I read about tornado, I've seen here and there that integrating gevent with tornado should be possible in some cases. The big problem I think would be to keep the thing up to date with the following development. Not much should rely on tornado outside of the server, if it does it is probably a bug. It should even be possible I guess to write a server in another language that talk to the kernel/browser and write/read ipynb files to disk. as long as you conform to the web socket and zmq protocol it should be transparent for the client. Have you also considered a middleware ? You probably have your reasons to want to use gevent, but maybe what you might want is a bridge that only forward websocket/http(s) ? It will with higher chances stay compatible across version also. -- Matthias From benjaminrk at gmail.com Thu Jun 27 18:50:17 2013 From: benjaminrk at gmail.com (MinRK) Date: Thu, 27 Jun 2013 15:50:17 -0700 Subject: [IPython-dev] Converting ipython notebook from tornado to gevent? In-Reply-To: References: Message-ID: I would reiterate Matthias?s points - it?s not necessarily difficult to use gevent+wsgi to serve the notebook webapp, but there would be a lot of code that is not shared (essentially all web handler code), which would be a substantial maintenance burden to keep in sync with IPython development, since you would really be on your own. Basic points: 1. I agree with Matthias that probably the best (certainly the easiest to maintain) choice is to run the existing notebook server (or at least a subset or superset of its handlers) unmodified in a subprocess, and proxying requests to that. I would look at that first, and only consider porting if it fails. 2. Technically, you can run the tornado app itself in a gevent universe by telling it to use the Poller object from zmq.green.eventloop instead of zmq.eventloop. It will not play especially nicely with fellow greenlets, but at least where it spends 99% of its time (waiting in the poller), it would cooperate properly. One of the tasks we have on our todo list is to convert the IPython Notebook from Tornado to Gevent. I hope you reconsider this goal. A true wsgi-gevent notebook webapp would really mean a fork of the notebook, with all of the long-term burden and unpleasantness that entails. Getting the existing notebook to sit somewhere inside a webapp that happens to use a different toolkit is probably more sustainable. -MinRK On Wed, Jun 26, 2013 at 12:29 PM, Matthias BUSSONNIER < bussonniermatthias at gmail.com> wrote: > Hi Steve, > > Le 26 juin 2013 ? 20:32, Stephen Chan a ?crit : > > > Hi, > > A group of us in Adam Arkin's KBase group at LBL has started working > on a bioinformatics notebook using IPython Notebook. So far it looks like > the ideal platform and we're glad to be finally under way. > > > > One of the tasks we have on our todo list is to convert the IPython > Notebook from Tornado to Gevent. We aren't considering this out of any > perverse desire to create additional work for ourselves, but mainly because > our existing deployment environment is based on uwsgi+gevent and the fact > that gevent does a pretty good job of moving asynchrony back into the > plumbing (where some of us think it belongs) so that we can code using a > more conventional python idiom. > > > > I think that this came up in f2f conversations with Fernando and > MinRK, but I just wanted to bring it up again and ask if anyone considered > a port to specifically to gevent, and if there's any idea of the scope of > work? Is it something like a week of work for a solid python developer, or > is it more like a couple of weeks or more? Are there any gotchas that may > arise due to code written against tornado? > > Sorry if my answer does not totally respond to your question, > > I don't know what your exact requirement, and I'm not the most familiar > with the handler side of IPython notebook. > >From the few things I read about tornado, I've seen here and there that > integrating gevent with tornado should be possible in some cases. > The big problem I think would be to keep the thing up to date with the > following development. > > Not much should rely on tornado outside of the server, if it does it is > probably a bug. It should even be possible I guess to write a server in > another language that talk to the kernel/browser and write/read ipynb files > to disk. as long as you conform to the web socket and zmq protocol it > should be transparent for the client. > > Have you also considered a middleware ? You probably have your reasons to > want to use gevent, but maybe what you might want is a bridge that only > forward websocket/http(s) ? It will with higher chances stay compatible > across version also. > > -- > Matthias > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From punchagan at gmail.com Fri Jun 28 15:29:39 2013 From: punchagan at gmail.com (Puneeth Chaganti) Date: Sat, 29 Jun 2013 00:59:39 +0530 Subject: [IPython-dev] Github - IPy Notebook button In-Reply-To: <7bd974c88dce76ac2374363e26583c07@webmail.webfaction.com> References: <51C2020E.20503@telenczuk.pl> <7bd974c88dce76ac2374363e26583c07@webmail.webfaction.com> Message-ID: Hi, I hadn't really looked at this Userscript, until I wanted to send this email. It may have saved me some work. I've hacked up a userscript[0] that "renders" notebook files inside GitHub, inspired by this[1] post on GitHub's blog, about rendering geojson files. I started with a version that loaded all the required Notebook js files, and got something working (just for raw pages), but getting the right CSS would've been a pain. After some poking around, I wrote a userscript to replace the required elements on the page with an iframe that renders the corresponding nbviewer url. Some of you may find it useful, though it probably doesn't save you much more than a click or two. :) The script can be installed in Firefox using Greasemonkey, and in Chrom(ium|e) using Tampermonkey. [0] - https://gist.github.com/punchagan/5882879 [1] -https://github.com/blog/1541-geojson-rendering-improvements -- Puneeth From pi at berkeley.edu Fri Jun 28 16:30:08 2013 From: pi at berkeley.edu (Paul Ivanov) Date: Fri, 28 Jun 2013 15:30:08 -0500 Subject: [IPython-dev] frontend namespace flattened (major change) In-Reply-To: References: Message-ID: <20130628203008.GB15539@HbI-OTOH.berkeley.edu> Hey everyone, we've just landed PR #3450: https://github.com/ipython/ipython/pull/3450 To quote Fernando: > The basic idea is to move all the code we had in frontend and > put it at the top, as recently discussed, and then to create > a shim module capable of forwarding all `from > IPython.frontend... import...` to their new locations. Here's the rundown of name changes: Old name -> New name IPython.frontend.* -> IPython.* IPython.frontend.html.notebook -> IPython.html With only one exception, you do not have to make any immediate changes to your code in order for it to continue working, but will see deprecation warnings The one exception is described by Min in a comment on the PR which I am inlining here: > The shim is a tiny bit more complicated now, since it's not > just moving IPython.frontend.* to IPython.* anymore, as > IPython.frontend.html.notebook became just IPython.html. A > result of the extra shim is that there is one old import that > doesn't work: > > from IPython.frontend.html import notebook > > but > > from IPython.frontend.html.notebook[.submod] import whatever > > works just fine. One issue that we ran into that you should be sure to remove the frontend/ directory, and clean up all .pyc files that may be lying around. This command should do the trick: rm -fr IPython/frontend; find -name \*.pyc -exec rm {} \; best, -- _ / \ A* \^ - ,./ _.`\\ / \ / ,--.S \/ \ / `"~,_ \ \ __o ? _ \<,_ /:\ --(_)/-(_)----.../ | \ --------------.......J Paul Ivanov http://pirsquared.org From asmeurer at gmail.com Fri Jun 28 16:36:48 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Fri, 28 Jun 2013 15:36:48 -0500 Subject: [IPython-dev] frontend namespace flattened (major change) In-Reply-To: <20130628203008.GB15539@HbI-OTOH.berkeley.edu> References: <20130628203008.GB15539@HbI-OTOH.berkeley.edu> Message-ID: On Fri, Jun 28, 2013 at 3:30 PM, Paul Ivanov wrote: > Hey everyone, > > we've just landed PR #3450: > https://github.com/ipython/ipython/pull/3450 > > To quote Fernando: > >> The basic idea is to move all the code we had in frontend and >> put it at the top, as recently discussed, and then to create >> a shim module capable of forwarding all `from >> IPython.frontend... import...` to their new locations. > > Here's the rundown of name changes: > Old name -> New name > IPython.frontend.* -> IPython.* > IPython.frontend.html.notebook -> IPython.html > > With only one exception, you do not have to make any immediate > changes to your code in order for it to continue working, but > will see deprecation warnings > > The one exception is described by Min in a comment on the PR > which I am inlining here: > >> The shim is a tiny bit more complicated now, since it's not >> just moving IPython.frontend.* to IPython.* anymore, as >> IPython.frontend.html.notebook became just IPython.html. A >> result of the extra shim is that there is one old import that >> doesn't work: >> >> from IPython.frontend.html import notebook >> >> but >> >> from IPython.frontend.html.notebook[.submod] import whatever >> >> works just fine. > > > One issue that we ran into that you should be sure to remove the > frontend/ directory, and clean up all .pyc files that may be > lying around. This command should do the trick: > > rm -fr IPython/frontend; find -name \*.pyc -exec rm {} \; Oh man. I hate to see things on mailing lists that say, "run this command," and it's rm. What's wrong with git clean -Xdf? Aaron Meurer > > > best, > -- > _ > / \ > A* \^ - > ,./ _.`\\ / \ > / ,--.S \/ \ > / `"~,_ \ \ > __o ? > _ \<,_ /:\ > --(_)/-(_)----.../ | \ > --------------.......J > Paul Ivanov > http://pirsquared.org > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From benjaminrk at gmail.com Fri Jun 28 17:13:49 2013 From: benjaminrk at gmail.com (MinRK) Date: Fri, 28 Jun 2013 14:13:49 -0700 Subject: [IPython-dev] frontend namespace flattened (major change) In-Reply-To: References: <20130628203008.GB15539@HbI-OTOH.berkeley.edu> Message-ID: git clean works, too. Just to note, I didn't have to do any cleaning. Just a `git pull` with our [hooks]( https://github.com/ipython/ipython/#git-hooks-and-submodules) installed, and everything was working fine. -MinRK On Fri, Jun 28, 2013 at 1:36 PM, Aaron Meurer wrote: > On Fri, Jun 28, 2013 at 3:30 PM, Paul Ivanov wrote: > > Hey everyone, > > > > we've just landed PR #3450: > > https://github.com/ipython/ipython/pull/3450 > > > > To quote Fernando: > > > >> The basic idea is to move all the code we had in frontend and > >> put it at the top, as recently discussed, and then to create > >> a shim module capable of forwarding all `from > >> IPython.frontend... import...` to their new locations. > > > > Here's the rundown of name changes: > > Old name -> New name > > IPython.frontend.* -> IPython.* > > IPython.frontend.html.notebook -> IPython.html > > > > With only one exception, you do not have to make any immediate > > changes to your code in order for it to continue working, but > > will see deprecation warnings > > > > The one exception is described by Min in a comment on the PR > > which I am inlining here: > > > >> The shim is a tiny bit more complicated now, since it's not > >> just moving IPython.frontend.* to IPython.* anymore, as > >> IPython.frontend.html.notebook became just IPython.html. A > >> result of the extra shim is that there is one old import that > >> doesn't work: > >> > >> from IPython.frontend.html import notebook > >> > >> but > >> > >> from IPython.frontend.html.notebook[.submod] import whatever > >> > >> works just fine. > > > > > > One issue that we ran into that you should be sure to remove the > > frontend/ directory, and clean up all .pyc files that may be > > lying around. This command should do the trick: > > > > rm -fr IPython/frontend; find -name \*.pyc -exec rm {} \; > > Oh man. I hate to see things on mailing lists that say, "run this > command," and it's rm. What's wrong with git clean -Xdf? > > Aaron Meurer > > > > > > > best, > > -- > > _ > > / \ > > A* \^ - > > ,./ _.`\\ / \ > > / ,--.S \/ \ > > / `"~,_ \ \ > > __o ? > > _ \<,_ /:\ > > --(_)/-(_)----.../ | \ > > --------------.......J > > Paul Ivanov > > http://pirsquared.org > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Sat Jun 29 02:19:41 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Sat, 29 Jun 2013 01:19:41 -0500 Subject: [IPython-dev] frontend namespace flattened (major change) In-Reply-To: References: <20130628203008.GB15539@HbI-OTOH.berkeley.edu> Message-ID: On Fri, Jun 28, 2013 at 3:36 PM, Aaron Meurer wrote: > Oh man. I hate to see things on mailing lists that say, "run this > command," and it's rm. What's wrong with git clean -Xdf? Mmh, for me the git clean cmd didn't work, as the issue was an empty directory, which git doesn't track by itself. I had to nuke it manually... From fperez.net at gmail.com Sat Jun 29 02:23:11 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Sat, 29 Jun 2013 01:23:11 -0500 Subject: [IPython-dev] Github - IPy Notebook button In-Reply-To: References: <51C2020E.20503@telenczuk.pl> <7bd974c88dce76ac2374363e26583c07@webmail.webfaction.com> Message-ID: Very cool! On Fri, Jun 28, 2013 at 2:29 PM, Puneeth Chaganti wrote: > Hi, > > I hadn't really looked at this Userscript, until I wanted to send this > email. It may have saved me some work. > > I've hacked up a userscript[0] that "renders" notebook files inside > GitHub, inspired by this[1] post on GitHub's blog, about rendering > geojson files. > > I started with a version that loaded all the required Notebook js > files, and got something working (just for raw pages), but getting the > right CSS would've been a pain. After some poking around, I wrote a > userscript to replace the required elements on the page with an iframe > that renders the corresponding nbviewer url. Some of you may find it > useful, though it probably doesn't save you much more than a click or > two. :) > > The script can be installed in Firefox using Greasemonkey, and in > Chrom(ium|e) using Tampermonkey. > > [0] - https://gist.github.com/punchagan/5882879 > [1] -https://github.com/blog/1541-geojson-rendering-improvements > > -- > Puneeth > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From asmeurer at gmail.com Sat Jun 29 11:02:46 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Sat, 29 Jun 2013 10:02:46 -0500 Subject: [IPython-dev] frontend namespace flattened (major change) In-Reply-To: References: <20130628203008.GB15539@HbI-OTOH.berkeley.edu> Message-ID: I also had some issues. The git submodule subcommand does not work very well, in my opinion. You too often have to go in and fix things manually, which is hard if you don't already know the submodule structure of the project. There was also some issue where I didn't have proper permissions on the .git/modules directory, which I hypothesize was due to it being initially created from sudo python setup.py. Aaron Meurer On Sat, Jun 29, 2013 at 1:19 AM, Fernando Perez wrote: > On Fri, Jun 28, 2013 at 3:36 PM, Aaron Meurer wrote: > >> Oh man. I hate to see things on mailing lists that say, "run this >> command," and it's rm. What's wrong with git clean -Xdf? > > Mmh, for me the git clean cmd didn't work, as the issue was an empty > directory, which git doesn't track by itself. I had to nuke it > manually... > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From asmeurer at gmail.com Sun Jun 30 00:52:07 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Sat, 29 Jun 2013 23:52:07 -0500 Subject: [IPython-dev] MultipleInstanceError Message-ID: In IPython dev, if you try to start an IPython instance from within an IPython instance, it raises MultipleInstanceError. What is the purpose of this? It breaks a use-case of mine, which is to start PuDB from within IPython, then to open the IPython interpreter from within PuDB while debugging? Is the new way to do things to somehow reattach to the same IPython instance? I've CCd the PuDB list. Aaron Meurer From takowl at gmail.com Sun Jun 30 11:31:54 2013 From: takowl at gmail.com (Thomas Kluyver) Date: Sun, 30 Jun 2013 16:31:54 +0100 Subject: [IPython-dev] MultipleInstanceError In-Reply-To: References: Message-ID: Various parts of the IPython machinery assume that there's only one instance in a given process, and would break with multiple IPython shells in a single process. We're slowly moving away from that, but it's not high priority for us. Thomas On 30 June 2013 05:52, Aaron Meurer wrote: > In IPython dev, if you try to start an IPython instance from within an > IPython instance, it raises MultipleInstanceError. What is the purpose > of this? It breaks a use-case of mine, which is to start PuDB from > within IPython, then to open the IPython interpreter from within PuDB > while debugging? Is the new way to do things to somehow reattach to > the same IPython instance? > > I've CCd the PuDB list. > > Aaron Meurer > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From drrt at cs.utexas.edu Sun Jun 30 12:55:06 2013 From: drrt at cs.utexas.edu (drrt) Date: Sun, 30 Jun 2013 09:55:06 -0700 (PDT) Subject: [IPython-dev] Can't get sympy latex output to work Message-ID: <1372611306722-5023093.post@n6.nabble.com> I have tried on the IPython version for Windows that comes with Enthought Canopy and the latest pull from the dev version on a Mac. ugly.png ugly_mat.png This doesn't work: from sympy import * %load_ext sympy.interactive.ipythonprinting after %reload_ext sympy.interactive.ipythonprinting it looks like the screenshots ipython notebook --profile=sympy seems to import and load things but the latex output doesn't work either ipython profile list Available profiles in IPython: cluster math pysh sympy Available profiles in /Users/drrt/.ipython: default sympy Any ideas? What else can I try? -- View this message in context: http://python.6.x6.nabble.com/Can-t-get-sympy-latex-output-to-work-tp5023093.html Sent from the IPython - Development mailing list archive at Nabble.com. From ellisonbg at gmail.com Sun Jun 30 15:28:33 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Sun, 30 Jun 2013 12:28:33 -0700 Subject: [IPython-dev] Merging nbconvert **now** Message-ID: Hi, As everyone knows, we are thinking about releasing IPython 1.0 in the next few weeks - with nbconvert in the main codebase. If we are going to do this, I think we should put nbconvert into IPython proper now - halt all work on nbconvert and just put it into IPython/nbconvert. There are a few reasons I say this: * There are decisions being made in nbconvert (such as the whether or not to include reveal.js as a submodule) that we should really be making in the context of IPython. * There will be a lot of integration work to be done (setup.py, testing, etc) that also should be done in the context of IPython * I want the discussions about nbconvert to start to happen in the context of IPython. * To this day, nbconvert can't be setup.py installed, which is preventing other projects such as dexy from moving forward with integration. Note, I am not even saying that we should create a PR to do this work and then *perfect* the PR before merging. I think we should create a PR and merge it almost immediately - this is a case where the code drop is big enough and late enough that I would prefer to break master as soon as possible. What do others think? Cheers, Brian -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From damianavila at gmail.com Sun Jun 30 15:39:05 2013 From: damianavila at gmail.com (=?ISO-8859-1?Q?Dami=E1n_Avila?=) Date: Sun, 30 Jun 2013 14:39:05 -0500 Subject: [IPython-dev] Merging nbconvert **now** In-Reply-To: References: Message-ID: <51D08959.7070308@gmail.com> El 30/06/13 14:28, Brian Granger escribi?: > Hi, > > As everyone knows, we are thinking about releasing IPython 1.0 in the > next few weeks - with nbconvert in the main codebase. If we are going > to do this, I think we should put nbconvert into IPython proper now - > halt all work on nbconvert and just put it into IPython/nbconvert. > There are a few reasons I say this: > > * There are decisions being made in nbconvert (such as the whether or > not to include reveal.js as a submodule) that we should really be > making in the context of IPython. > * There will be a lot of integration work to be done (setup.py, > testing, etc) that also should be done in the context of IPython > * I want the discussions about nbconvert to start to happen in the > context of IPython. > * To this day, nbconvert can't be setup.py installed, which is > preventing other projects such as dexy from moving forward with > integration. > > Note, I am not even saying that we should create a PR to do this work > and then *perfect* the PR before merging. I think we should create a > PR and merge it almost immediately - this is a case where the code > drop is big enough and late enough that I would prefer to break master > as soon as possible. > > What do others think? > > Cheers, > > Brian > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev I think that it would be great to make the integration as soon as possible... We a lot of things to discuss about you have pointed out. As far as I know, Frederic was writing some tests, I would wait him to finish this before merging the code... In the middle of the discussion about the dual mode editor ;-), I forgot to pointed out... but I was thinking in the same direction about nbconvert. Cheers. Dami?n. From bussonniermatthias at gmail.com Sun Jun 30 16:23:21 2013 From: bussonniermatthias at gmail.com (Matthias BUSSONNIER) Date: Sun, 30 Jun 2013 22:23:21 +0200 Subject: [IPython-dev] Merging nbconvert **now** In-Reply-To: References: Message-ID: <4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com> Le 30 juin 2013 ? 21:28, Brian Granger a ?crit : > Hi, > > What do others think? I think that would be great to merge, at least the module, if not the entry point yet. I'm really over-booked theses day, I'll do my best to review, but it will be really hard. Don't know how you intend to make the merge, but dropping nbconvert1(and other useless stuff like python-armor that was an example) might be great to do before merging. -- Matthias From takowl at gmail.com Sun Jun 30 16:30:23 2013 From: takowl at gmail.com (Thomas Kluyver) Date: Sun, 30 Jun 2013 21:30:23 +0100 Subject: [IPython-dev] Can't get sympy latex output to work In-Reply-To: <1372611306722-5023093.post@n6.nabble.com> References: <1372611306722-5023093.post@n6.nabble.com> Message-ID: What version of Sympy are you using? I ran into this recently, and it turned out there was a bug in 0.7.2 so that it doesn't enable the Latex output by default. There's a way to force it to use latex, or you can use development versions of Sympy until they get a new release out. Thomas On 30 June 2013 17:55, drrt wrote: > I have tried on the IPython version for Windows that comes with Enthought > Canopy and the latest pull from the dev version on a Mac. > > ugly.png > ugly_mat.png > > This doesn't work: > from sympy import * > %load_ext sympy.interactive.ipythonprinting > > after %reload_ext sympy.interactive.ipythonprinting > it looks like the screenshots > > ipython notebook --profile=sympy seems to import and load things but the > latex output doesn't work either > > ipython profile list > Available profiles in IPython: > cluster > math > pysh > sympy > > Available profiles in /Users/drrt/.ipython: > default > sympy > > > Any ideas? What else can I try? > > > > -- > View this message in context: > http://python.6.x6.nabble.com/Can-t-get-sympy-latex-output-to-work-tp5023093.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Sun Jun 30 16:34:24 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Sun, 30 Jun 2013 13:34:24 -0700 Subject: [IPython-dev] Merging nbconvert **now** In-Reply-To: <4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com> References: <4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com> Message-ID: The merge would be by hand and only include the nbconvert package and top level script. nbconvert1 is not coming along... Brian On Sun, Jun 30, 2013 at 1:23 PM, Matthias BUSSONNIER wrote: > > Le 30 juin 2013 ? 21:28, Brian Granger a ?crit : > >> Hi, >> >> What do others think? > > I think that would be great to merge, at least the module, if not the entry point yet. > I'm really over-booked theses day, I'll do my best to review, but it will be really hard. > > Don't know how you intend to make the merge, but dropping nbconvert1(and other > useless stuff like python-armor that was an example) might be great to do before merging. > -- > Matthias > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From asmeurer at gmail.com Sun Jun 30 16:48:33 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Sun, 30 Jun 2013 15:48:33 -0500 Subject: [IPython-dev] Can't get sympy latex output to work In-Reply-To: References: <1372611306722-5023093.post@n6.nabble.com> Message-ID: Yes, dev IPython has some issues with SymPy 0.7.2. As far as I know, there are no issues with 0.13.2 IPython and SymPy 0.7.2. At any rate, all the issues should be fixed in the git SymPy, and will be in the 0.7.3 release, which is hopefully coming very soon. By the way, %load_ext sympy.interactive.ipythonprinting is going to be deprecated in favor of just from sympy import init_printing;init_printing(). And instead of the sympy profile that imports everything, you should use init_session(). Aaron Meurer On Sun, Jun 30, 2013 at 3:30 PM, Thomas Kluyver wrote: > What version of Sympy are you using? I ran into this recently, and it turned > out there was a bug in 0.7.2 so that it doesn't enable the Latex output by > default. There's a way to force it to use latex, or you can use development > versions of Sympy until they get a new release out. > > Thomas > > > On 30 June 2013 17:55, drrt wrote: >> >> I have tried on the IPython version for Windows that comes with Enthought >> Canopy and the latest pull from the dev version on a Mac. >> >> ugly.png >> ugly_mat.png >> >> This doesn't work: >> from sympy import * >> %load_ext sympy.interactive.ipythonprinting >> >> after %reload_ext sympy.interactive.ipythonprinting >> it looks like the screenshots >> >> ipython notebook --profile=sympy seems to import and load things but the >> latex output doesn't work either >> >> ipython profile list >> Available profiles in IPython: >> cluster >> math >> pysh >> sympy >> >> Available profiles in /Users/drrt/.ipython: >> default >> sympy >> >> >> Any ideas? What else can I try? >> >> >> >> -- >> View this message in context: >> http://python.6.x6.nabble.com/Can-t-get-sympy-latex-output-to-work-tp5023093.html >> Sent from the IPython - Development mailing list archive at Nabble.com. >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From jdfreder at calpoly.edu Sun Jun 30 17:27:56 2013 From: jdfreder at calpoly.edu (Jonathan Frederic) Date: Sun, 30 Jun 2013 14:27:56 -0700 Subject: [IPython-dev] Merging nbconvert **now** In-Reply-To: References: <4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com> Message-ID: <51D0A2DC.9000202@calpoly.edu> Sounds good to me. Jon On 6/30/2013 1:34 PM, Brian Granger wrote: > The merge would be by hand and only include the nbconvert package and > top level script. nbconvert1 is not coming along... > > Brian > > On Sun, Jun 30, 2013 at 1:23 PM, Matthias BUSSONNIER > wrote: >> Le 30 juin 2013 ? 21:28, Brian Granger a ?crit : >> >>> Hi, >>> >>> What do others think? >> I think that would be great to merge, at least the module, if not the entry point yet. >> I'm really over-booked theses day, I'll do my best to review, but it will be really hard. >> >> Don't know how you intend to make the merge, but dropping nbconvert1(and other >> useless stuff like python-armor that was an example) might be great to do before merging. >> -- >> Matthias >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > From ellisonbg at gmail.com Sun Jun 30 18:46:35 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Sun, 30 Jun 2013 15:46:35 -0700 Subject: [IPython-dev] Merging nbconvert **now** In-Reply-To: <51D0A2DC.9000202@calpoly.edu> References: <4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com> <51D0A2DC.9000202@calpoly.edu> Message-ID: Here is the PR: https://github.com/ipython/ipython/pull/3497 On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic wrote: > Sounds good to me. > > Jon > > On 6/30/2013 1:34 PM, Brian Granger wrote: >> The merge would be by hand and only include the nbconvert package and >> top level script. nbconvert1 is not coming along... >> >> Brian >> >> On Sun, Jun 30, 2013 at 1:23 PM, Matthias BUSSONNIER >> wrote: >>> Le 30 juin 2013 ? 21:28, Brian Granger a ?crit : >>> >>>> Hi, >>>> >>>> What do others think? >>> I think that would be great to merge, at least the module, if not the entry point yet. >>> I'm really over-booked theses day, I'll do my best to review, but it will be really hard. >>> >>> Don't know how you intend to make the merge, but dropping nbconvert1(and other >>> useless stuff like python-armor that was an example) might be great to do before merging. >>> -- >>> Matthias >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From drrt at cs.utexas.edu Sun Jun 30 21:02:36 2013 From: drrt at cs.utexas.edu (drrt) Date: Sun, 30 Jun 2013 18:02:36 -0700 (PDT) Subject: [IPython-dev] Can't get sympy latex output to work In-Reply-To: <1372611306722-5023093.post@n6.nabble.com> References: <1372611306722-5023093.post@n6.nabble.com> Message-ID: <1372640556733-5023126.post@n6.nabble.com> Yea I was using version 0.7.2 , I'm using the dev version from git now and everything seems to be working fine now. Thank you both. btw, do you know if the latex output can be customized? Is it possible to get a sympy matrix to use parentheses ( ) instead of brackets [ ] for instance? -- View this message in context: http://python.6.x6.nabble.com/Can-t-get-sympy-latex-output-to-work-tp5023093p5023126.html Sent from the IPython - Development mailing list archive at Nabble.com. From asmeurer at gmail.com Sun Jun 30 21:07:13 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Sun, 30 Jun 2013 20:07:13 -0500 Subject: [IPython-dev] Can't get sympy latex output to work In-Reply-To: <1372640556733-5023126.post@n6.nabble.com> References: <1372611306722-5023093.post@n6.nabble.com> <1372640556733-5023126.post@n6.nabble.com> Message-ID: SymPy's latex() function has many options, include this one. Unfortunately, it's currently not possible to set these with init_printing, though it shouldn't be hard to implement if you want to send a pull request. Really, init_printing should let you pass in any SymPy printer. That would let you make arbitrary customizations on the printing. But many preset options are in latex(), so that should be available too. Aaron Meurer On Sun, Jun 30, 2013 at 8:02 PM, drrt wrote: > Yea I was using version 0.7.2 , I'm using the dev version from git now and > everything seems to be working fine now. Thank you both. > > btw, do you know if the latex output can be customized? Is it possible to > get a sympy matrix to use parentheses ( ) instead of brackets [ ] for > instance? > > > > -- > View this message in context: http://python.6.x6.nabble.com/Can-t-get-sympy-latex-output-to-work-tp5023093p5023126.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From fperez.net at gmail.com Sun Jun 30 21:27:27 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Sun, 30 Jun 2013 18:27:27 -0700 Subject: [IPython-dev] Merging nbconvert **now** In-Reply-To: References: <4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com> <51D0A2DC.9000202@calpoly.edu> Message-ID: for reference, the correct PR that preserves history is here: https://github.com/ipython/ipython/pull/3500 We'd always said we'd fully preserve the history of the nbconvert effort to properly credit all its authors. I don't know if Min ended up using the git subtree merging approach (http://git-scm.com/book/ch6-7.html), but it seems that #3500 has all the proper history. We can continue the discussion there... Cheers, f On Sun, Jun 30, 2013 at 3:46 PM, Brian Granger wrote: > Here is the PR: > > https://github.com/ipython/ipython/pull/3497 > > On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic wrote: >> Sounds good to me. >> >> Jon >> >> On 6/30/2013 1:34 PM, Brian Granger wrote: >>> The merge would be by hand and only include the nbconvert package and >>> top level script. nbconvert1 is not coming along... >>> >>> Brian >>> >>> On Sun, Jun 30, 2013 at 1:23 PM, Matthias BUSSONNIER >>> wrote: >>>> Le 30 juin 2013 ? 21:28, Brian Granger a ?crit : >>>> >>>>> Hi, >>>>> >>>>> What do others think? >>>> I think that would be great to merge, at least the module, if not the entry point yet. >>>> I'm really over-booked theses day, I'll do my best to review, but it will be really hard. >>>> >>>> Don't know how you intend to make the merge, but dropping nbconvert1(and other >>>> useless stuff like python-armor that was an example) might be great to do before merging. >>>> -- >>>> Matthias >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From fperez.net at gmail.com Sun Jun 30 22:21:31 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Sun, 30 Jun 2013 19:21:31 -0700 Subject: [IPython-dev] MultipleInstanceError In-Reply-To: References: Message-ID: Indeed, way back when IPython made blunt assumptions about being more or less in control of the user session, and created lots of global state. That made sense when it was only an interactive user shell, but now that it's a service to manage namespaces, its core should be much more constrained in how it pollutes global structures. Unfortunately as Thomas said, cleaning this up takes time and isn't at the top of the priority list. Cheers, f On Sun, Jun 30, 2013 at 8:31 AM, Thomas Kluyver wrote: > Various parts of the IPython machinery assume that there's only one instance > in a given process, and would break with multiple IPython shells in a single > process. We're slowly moving away from that, but it's not high priority for > us. > > Thomas > > > On 30 June 2013 05:52, Aaron Meurer wrote: >> >> In IPython dev, if you try to start an IPython instance from within an >> IPython instance, it raises MultipleInstanceError. What is the purpose >> of this? It breaks a use-case of mine, which is to start PuDB from >> within IPython, then to open the IPython interpreter from within PuDB >> while debugging? Is the new way to do things to somehow reattach to >> the same IPython instance? >> >> I've CCd the PuDB list. >> >> Aaron Meurer >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From asmeurer at gmail.com Sun Jun 30 22:23:11 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Sun, 30 Jun 2013 21:23:11 -0500 Subject: [IPython-dev] MultipleInstanceError In-Reply-To: References: Message-ID: So what is the workaround for PuDB? Aaron Meurer On Sun, Jun 30, 2013 at 9:21 PM, Fernando Perez wrote: > Indeed, way back when IPython made blunt assumptions about being more > or less in control of the user session, and created lots of global > state. That made sense when it was only an interactive user shell, but > now that it's a service to manage namespaces, its core should be much > more constrained in how it pollutes global structures. > > Unfortunately as Thomas said, cleaning this up takes time and isn't at > the top of the priority list. > > Cheers, > > f > > On Sun, Jun 30, 2013 at 8:31 AM, Thomas Kluyver wrote: >> Various parts of the IPython machinery assume that there's only one instance >> in a given process, and would break with multiple IPython shells in a single >> process. We're slowly moving away from that, but it's not high priority for >> us. >> >> Thomas >> >> >> On 30 June 2013 05:52, Aaron Meurer wrote: >>> >>> In IPython dev, if you try to start an IPython instance from within an >>> IPython instance, it raises MultipleInstanceError. What is the purpose >>> of this? It breaks a use-case of mine, which is to start PuDB from >>> within IPython, then to open the IPython interpreter from within PuDB >>> while debugging? Is the new way to do things to somehow reattach to >>> the same IPython instance? >>> >>> I've CCd the PuDB list. >>> >>> Aaron Meurer >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From fperez.net at gmail.com Sun Jun 30 22:23:04 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Sun, 30 Jun 2013 19:23:04 -0700 Subject: [IPython-dev] frontend namespace flattened (major change) In-Reply-To: References: <20130628203008.GB15539@HbI-OTOH.berkeley.edu> Message-ID: git submodules are indeed a PITA, but they are the least bad solution we've been able to find to the problem of managing external source trees of JS libraries. The alternative would be to require users to manually track all that themselves, which is even worse. As much as I love and preach git, submodules are the one thing I really dislike and I do trip pretty badly on. Unfortunately I don't see a cleaner solution at this point in time. Cheers, f On Sat, Jun 29, 2013 at 8:02 AM, Aaron Meurer wrote: > I also had some issues. The git submodule subcommand does not work > very well, in my opinion. You too often have to go in and fix things > manually, which is hard if you don't already know the submodule > structure of the project. > > There was also some issue where I didn't have proper permissions on > the .git/modules directory, which I hypothesize was due to it being > initially created from sudo python setup.py. > > Aaron Meurer > > On Sat, Jun 29, 2013 at 1:19 AM, Fernando Perez wrote: >> On Fri, Jun 28, 2013 at 3:36 PM, Aaron Meurer wrote: >> >>> Oh man. I hate to see things on mailing lists that say, "run this >>> command," and it's rm. What's wrong with git clean -Xdf? >> >> Mmh, for me the git clean cmd didn't work, as the issue was an empty >> directory, which git doesn't track by itself. I had to nuke it >> manually... >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From asmeurer at gmail.com Sun Jun 30 22:38:20 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Sun, 30 Jun 2013 21:38:20 -0500 Subject: [IPython-dev] frontend namespace flattened (major change) In-Reply-To: References: <20130628203008.GB15539@HbI-OTOH.berkeley.edu> Message-ID: Git has annual user surveys each fall. I guess we just need to make them aware of the issue (they also have a mailing list). IMHO, the following should be the default behavior - git clone should initialize and update submodules - git pull and checkout should update submodules - git reset --hard should recursively reset submodules, including checking out commits (if I have changes to commit, git reset --hard should clear them) - git clean should do the right thing (in my defence, I think my issues here were permissions related) - The git ps1 script that ships with git should be smarter about submodules. Aaron Meurer On Sun, Jun 30, 2013 at 9:23 PM, Fernando Perez wrote: > git submodules are indeed a PITA, but they are the least bad solution > we've been able to find to the problem of managing external source > trees of JS libraries. > > The alternative would be to require users to manually track all that > themselves, which is even worse. > > As much as I love and preach git, submodules are the one thing I > really dislike and I do trip pretty badly on. Unfortunately I don't > see a cleaner solution at this point in time. > > Cheers, > > f > > On Sat, Jun 29, 2013 at 8:02 AM, Aaron Meurer wrote: >> I also had some issues. The git submodule subcommand does not work >> very well, in my opinion. You too often have to go in and fix things >> manually, which is hard if you don't already know the submodule >> structure of the project. >> >> There was also some issue where I didn't have proper permissions on >> the .git/modules directory, which I hypothesize was due to it being >> initially created from sudo python setup.py. >> >> Aaron Meurer >> >> On Sat, Jun 29, 2013 at 1:19 AM, Fernando Perez wrote: >>> On Fri, Jun 28, 2013 at 3:36 PM, Aaron Meurer wrote: >>> >>>> Oh man. I hate to see things on mailing lists that say, "run this >>>> command," and it's rm. What's wrong with git clean -Xdf? >>> >>> Mmh, for me the git clean cmd didn't work, as the issue was an empty >>> directory, which git doesn't track by itself. I had to nuke it >>> manually... >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From fperez.net at gmail.com Sun Jun 30 22:44:33 2013 From: fperez.net at gmail.com (Fernando Perez) Date: Sun, 30 Jun 2013 19:44:33 -0700 Subject: [IPython-dev] MultipleInstanceError In-Reply-To: References: Message-ID: Mmh, I'm not sure there's one at this point. Min might know, the current enforcement of the single-instance rule is wired deep inside the config machinery. On Sun, Jun 30, 2013 at 7:23 PM, Aaron Meurer wrote: > So what is the workaround for PuDB? > > Aaron Meurer > > On Sun, Jun 30, 2013 at 9:21 PM, Fernando Perez wrote: >> Indeed, way back when IPython made blunt assumptions about being more >> or less in control of the user session, and created lots of global >> state. That made sense when it was only an interactive user shell, but >> now that it's a service to manage namespaces, its core should be much >> more constrained in how it pollutes global structures. >> >> Unfortunately as Thomas said, cleaning this up takes time and isn't at >> the top of the priority list. >> >> Cheers, >> >> f >> >> On Sun, Jun 30, 2013 at 8:31 AM, Thomas Kluyver wrote: >>> Various parts of the IPython machinery assume that there's only one instance >>> in a given process, and would break with multiple IPython shells in a single >>> process. We're slowly moving away from that, but it's not high priority for >>> us. >>> >>> Thomas >>> >>> >>> On 30 June 2013 05:52, Aaron Meurer wrote: >>>> >>>> In IPython dev, if you try to start an IPython instance from within an >>>> IPython instance, it raises MultipleInstanceError. What is the purpose >>>> of this? It breaks a use-case of mine, which is to start PuDB from >>>> within IPython, then to open the IPython interpreter from within PuDB >>>> while debugging? Is the new way to do things to somehow reattach to >>>> the same IPython instance? >>>> >>>> I've CCd the PuDB list. >>>> >>>> Aaron Meurer >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >> >> >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail From benjaminrk at gmail.com Sun Jun 30 23:32:11 2013 From: benjaminrk at gmail.com (MinRK) Date: Sun, 30 Jun 2013 20:32:11 -0700 Subject: [IPython-dev] Merging nbconvert **now** In-Reply-To: References: <4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com> <51D0A2DC.9000202@calpoly.edu> Message-ID: I didn't use git sub-tree, I just did: git remote add nbconvert ipython/nbconvert git fetch nbconvert git merge nbconvert/master and resolved the few tiny conflicts on README, .gitignore, etc. On Sun, Jun 30, 2013 at 6:27 PM, Fernando Perez wrote: > for reference, the correct PR that preserves history is here: > > https://github.com/ipython/ipython/pull/3500 > > We'd always said we'd fully preserve the history of the nbconvert > effort to properly credit all its authors. > > I don't know if Min ended up using the git subtree merging approach > (http://git-scm.com/book/ch6-7.html), but it seems that #3500 has all > the proper history. > > We can continue the discussion there... > > Cheers, > > f > > On Sun, Jun 30, 2013 at 3:46 PM, Brian Granger > wrote: > > Here is the PR: > > > > https://github.com/ipython/ipython/pull/3497 > > > > On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic > wrote: > >> Sounds good to me. > >> > >> Jon > >> > >> On 6/30/2013 1:34 PM, Brian Granger wrote: > >>> The merge would be by hand and only include the nbconvert package and > >>> top level script. nbconvert1 is not coming along... > >>> > >>> Brian > >>> > >>> On Sun, Jun 30, 2013 at 1:23 PM, Matthias BUSSONNIER > >>> wrote: > >>>> Le 30 juin 2013 ? 21:28, Brian Granger a ?crit : > >>>> > >>>>> Hi, > >>>>> > >>>>> What do others think? > >>>> I think that would be great to merge, at least the module, if not the > entry point yet. > >>>> I'm really over-booked theses day, I'll do my best to review, but it > will be really hard. > >>>> > >>>> Don't know how you intend to make the merge, but dropping > nbconvert1(and other > >>>> useless stuff like python-armor that was an example) might be great > to do before merging. > >>>> -- > >>>> Matthias > >>>> > >>>> _______________________________________________ > >>>> IPython-dev mailing list > >>>> IPython-dev at scipy.org > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>> > >>> > >> > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > > > -- > > Brian E. Granger > > Cal Poly State University, San Luis Obispo > > bgranger at calpoly.edu and ellisonbg at gmail.com > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Sun Jun 30 23:33:59 2013 From: benjaminrk at gmail.com (MinRK) Date: Sun, 30 Jun 2013 20:33:59 -0700 Subject: [IPython-dev] MultipleInstanceError In-Reply-To: References: Message-ID: This shouldn't be something that has changed since 0.11. Are you seeing a difference between 0.13 and master? The workaround is to not use `instance` to create new instances of objects. The result will be that methods asking for the global instance will retrieve the original global instance, as opposed to the new one. I don't know if this is acceptable or not. On Sun, Jun 30, 2013 at 7:44 PM, Fernando Perez wrote: > Mmh, I'm not sure there's one at this point. Min might know, the > current enforcement of the single-instance rule is wired deep inside > the config machinery. > > On Sun, Jun 30, 2013 at 7:23 PM, Aaron Meurer wrote: > > So what is the workaround for PuDB? > > > > Aaron Meurer > > > > On Sun, Jun 30, 2013 at 9:21 PM, Fernando Perez > wrote: > >> Indeed, way back when IPython made blunt assumptions about being more > >> or less in control of the user session, and created lots of global > >> state. That made sense when it was only an interactive user shell, but > >> now that it's a service to manage namespaces, its core should be much > >> more constrained in how it pollutes global structures. > >> > >> Unfortunately as Thomas said, cleaning this up takes time and isn't at > >> the top of the priority list. > >> > >> Cheers, > >> > >> f > >> > >> On Sun, Jun 30, 2013 at 8:31 AM, Thomas Kluyver > wrote: > >>> Various parts of the IPython machinery assume that there's only one > instance > >>> in a given process, and would break with multiple IPython shells in a > single > >>> process. We're slowly moving away from that, but it's not high > priority for > >>> us. > >>> > >>> Thomas > >>> > >>> > >>> On 30 June 2013 05:52, Aaron Meurer wrote: > >>>> > >>>> In IPython dev, if you try to start an IPython instance from within an > >>>> IPython instance, it raises MultipleInstanceError. What is the purpose > >>>> of this? It breaks a use-case of mine, which is to start PuDB from > >>>> within IPython, then to open the IPython interpreter from within PuDB > >>>> while debugging? Is the new way to do things to somehow reattach to > >>>> the same IPython instance? > >>>> > >>>> I've CCd the PuDB list. > >>>> > >>>> Aaron Meurer > >>>> _______________________________________________ > >>>> IPython-dev mailing list > >>>> IPython-dev at scipy.org > >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>> > >>> > >>> > >>> _______________________________________________ > >>> IPython-dev mailing list > >>> IPython-dev at scipy.org > >>> http://mail.scipy.org/mailman/listinfo/ipython-dev > >>> > >> > >> > >> > >> -- > >> Fernando Perez (@fperez_org; http://fperez.org) > >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > >> fernando.perez-at-berkeley: contact me here for any direct mail > >> _______________________________________________ > >> IPython-dev mailing list > >> IPython-dev at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From asmeurer at gmail.com Sun Jun 30 23:50:31 2013 From: asmeurer at gmail.com (Aaron Meurer) Date: Sun, 30 Jun 2013 22:50:31 -0500 Subject: [IPython-dev] MultipleInstanceError In-Reply-To: References: Message-ID: I bisected it to commit c5e77f946f77dd95ab086ea3e02802c4874c5e3d Author: MinRK Date: Fri Feb 8 21:41:19 2013 -0800 next release will be 1.0 which means either I bisected it incorrectly (possible, since I was relying on python setup.py develop), or there is something in the version checking logic of PuDB. My use case is to add pudb.set_trace() to something in sympy and run isympy, which launches IPython. Then I press ! in PuDB to open IPython in the namespace of the function I am debugging. Aaron Meurer On Sun, Jun 30, 2013 at 10:33 PM, MinRK wrote: > This shouldn't be something that has changed since 0.11. Are you seeing a > difference between 0.13 and master? > > The workaround is to not use `instance` to create new instances of objects. > The result will be that methods asking for the global instance will retrieve > the original global instance, as opposed to the new one. I don't know if > this is acceptable or not. > > > > On Sun, Jun 30, 2013 at 7:44 PM, Fernando Perez > wrote: >> >> Mmh, I'm not sure there's one at this point. Min might know, the >> current enforcement of the single-instance rule is wired deep inside >> the config machinery. >> >> On Sun, Jun 30, 2013 at 7:23 PM, Aaron Meurer wrote: >> > So what is the workaround for PuDB? >> > >> > Aaron Meurer >> > >> > On Sun, Jun 30, 2013 at 9:21 PM, Fernando Perez >> > wrote: >> >> Indeed, way back when IPython made blunt assumptions about being more >> >> or less in control of the user session, and created lots of global >> >> state. That made sense when it was only an interactive user shell, but >> >> now that it's a service to manage namespaces, its core should be much >> >> more constrained in how it pollutes global structures. >> >> >> >> Unfortunately as Thomas said, cleaning this up takes time and isn't at >> >> the top of the priority list. >> >> >> >> Cheers, >> >> >> >> f >> >> >> >> On Sun, Jun 30, 2013 at 8:31 AM, Thomas Kluyver >> >> wrote: >> >>> Various parts of the IPython machinery assume that there's only one >> >>> instance >> >>> in a given process, and would break with multiple IPython shells in a >> >>> single >> >>> process. We're slowly moving away from that, but it's not high >> >>> priority for >> >>> us. >> >>> >> >>> Thomas >> >>> >> >>> >> >>> On 30 June 2013 05:52, Aaron Meurer wrote: >> >>>> >> >>>> In IPython dev, if you try to start an IPython instance from within >> >>>> an >> >>>> IPython instance, it raises MultipleInstanceError. What is the >> >>>> purpose >> >>>> of this? It breaks a use-case of mine, which is to start PuDB from >> >>>> within IPython, then to open the IPython interpreter from within PuDB >> >>>> while debugging? Is the new way to do things to somehow reattach to >> >>>> the same IPython instance? >> >>>> >> >>>> I've CCd the PuDB list. >> >>>> >> >>>> Aaron Meurer >> >>>> _______________________________________________ >> >>>> IPython-dev mailing list >> >>>> IPython-dev at scipy.org >> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>> >> >>> >> >>> >> >>> _______________________________________________ >> >>> IPython-dev mailing list >> >>> IPython-dev at scipy.org >> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>> >> >> >> >> >> >> >> >> -- >> >> Fernando Perez (@fperez_org; http://fperez.org) >> >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> >> fernando.perez-at-berkeley: contact me here for any direct mail >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From ellisonbg at gmail.com Sun Jun 30 23:51:55 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Sun, 30 Jun 2013 20:51:55 -0700 Subject: [IPython-dev] Merging nbconvert **now** In-Reply-To: References: <4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com> <51D0A2DC.9000202@calpoly.edu> Message-ID: I see how you did it. On Sun, Jun 30, 2013 at 8:46 PM, Brian Granger wrote: > Hmm, I will look at it - but how does this command sequence know to > put nbconvert/nbconvert as ipython/IPython/nbconvert and leave out the > rest of the nbconvert repo? > > Brian > > On Sun, Jun 30, 2013 at 8:32 PM, MinRK wrote: >> I didn't use git sub-tree, I just did: >> >> git remote add nbconvert ipython/nbconvert >> git fetch nbconvert >> git merge nbconvert/master >> >> and resolved the few tiny conflicts on README, .gitignore, etc. >> >> >> >> On Sun, Jun 30, 2013 at 6:27 PM, Fernando Perez >> wrote: >>> >>> for reference, the correct PR that preserves history is here: >>> >>> https://github.com/ipython/ipython/pull/3500 >>> >>> We'd always said we'd fully preserve the history of the nbconvert >>> effort to properly credit all its authors. >>> >>> I don't know if Min ended up using the git subtree merging approach >>> (http://git-scm.com/book/ch6-7.html), but it seems that #3500 has all >>> the proper history. >>> >>> We can continue the discussion there... >>> >>> Cheers, >>> >>> f >>> >>> On Sun, Jun 30, 2013 at 3:46 PM, Brian Granger >>> wrote: >>> > Here is the PR: >>> > >>> > https://github.com/ipython/ipython/pull/3497 >>> > >>> > On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic >>> > wrote: >>> >> Sounds good to me. >>> >> >>> >> Jon >>> >> >>> >> On 6/30/2013 1:34 PM, Brian Granger wrote: >>> >>> The merge would be by hand and only include the nbconvert package and >>> >>> top level script. nbconvert1 is not coming along... >>> >>> >>> >>> Brian >>> >>> >>> >>> On Sun, Jun 30, 2013 at 1:23 PM, Matthias BUSSONNIER >>> >>> wrote: >>> >>>> Le 30 juin 2013 ? 21:28, Brian Granger a ?crit : >>> >>>> >>> >>>>> Hi, >>> >>>>> >>> >>>>> What do others think? >>> >>>> I think that would be great to merge, at least the module, if not the >>> >>>> entry point yet. >>> >>>> I'm really over-booked theses day, I'll do my best to review, but it >>> >>>> will be really hard. >>> >>>> >>> >>>> Don't know how you intend to make the merge, but dropping >>> >>>> nbconvert1(and other >>> >>>> useless stuff like python-armor that was an example) might be great >>> >>>> to do before merging. >>> >>>> -- >>> >>>> Matthias >>> >>>> >>> >>>> _______________________________________________ >>> >>>> IPython-dev mailing list >>> >>>> IPython-dev at scipy.org >>> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> >>> >> >>> >> _______________________________________________ >>> >> IPython-dev mailing list >>> >> IPython-dev at scipy.org >>> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> > >>> > >>> > >>> > -- >>> > Brian E. Granger >>> > Cal Poly State University, San Luis Obispo >>> > bgranger at calpoly.edu and ellisonbg at gmail.com >>> > _______________________________________________ >>> > IPython-dev mailing list >>> > IPython-dev at scipy.org >>> > http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >>> >>> -- >>> Fernando Perez (@fperez_org; http://fperez.org) >>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >>> fernando.perez-at-berkeley: contact me here for any direct mail >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > bgranger at calpoly.edu and ellisonbg at gmail.com -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com From ellisonbg at gmail.com Sun Jun 30 23:46:31 2013 From: ellisonbg at gmail.com (Brian Granger) Date: Sun, 30 Jun 2013 20:46:31 -0700 Subject: [IPython-dev] Merging nbconvert **now** In-Reply-To: References: <4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com> <51D0A2DC.9000202@calpoly.edu> Message-ID: Hmm, I will look at it - but how does this command sequence know to put nbconvert/nbconvert as ipython/IPython/nbconvert and leave out the rest of the nbconvert repo? Brian On Sun, Jun 30, 2013 at 8:32 PM, MinRK wrote: > I didn't use git sub-tree, I just did: > > git remote add nbconvert ipython/nbconvert > git fetch nbconvert > git merge nbconvert/master > > and resolved the few tiny conflicts on README, .gitignore, etc. > > > > On Sun, Jun 30, 2013 at 6:27 PM, Fernando Perez > wrote: >> >> for reference, the correct PR that preserves history is here: >> >> https://github.com/ipython/ipython/pull/3500 >> >> We'd always said we'd fully preserve the history of the nbconvert >> effort to properly credit all its authors. >> >> I don't know if Min ended up using the git subtree merging approach >> (http://git-scm.com/book/ch6-7.html), but it seems that #3500 has all >> the proper history. >> >> We can continue the discussion there... >> >> Cheers, >> >> f >> >> On Sun, Jun 30, 2013 at 3:46 PM, Brian Granger >> wrote: >> > Here is the PR: >> > >> > https://github.com/ipython/ipython/pull/3497 >> > >> > On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic >> > wrote: >> >> Sounds good to me. >> >> >> >> Jon >> >> >> >> On 6/30/2013 1:34 PM, Brian Granger wrote: >> >>> The merge would be by hand and only include the nbconvert package and >> >>> top level script. nbconvert1 is not coming along... >> >>> >> >>> Brian >> >>> >> >>> On Sun, Jun 30, 2013 at 1:23 PM, Matthias BUSSONNIER >> >>> wrote: >> >>>> Le 30 juin 2013 ? 21:28, Brian Granger a ?crit : >> >>>> >> >>>>> Hi, >> >>>>> >> >>>>> What do others think? >> >>>> I think that would be great to merge, at least the module, if not the >> >>>> entry point yet. >> >>>> I'm really over-booked theses day, I'll do my best to review, but it >> >>>> will be really hard. >> >>>> >> >>>> Don't know how you intend to make the merge, but dropping >> >>>> nbconvert1(and other >> >>>> useless stuff like python-armor that was an example) might be great >> >>>> to do before merging. >> >>>> -- >> >>>> Matthias >> >>>> >> >>>> _______________________________________________ >> >>>> IPython-dev mailing list >> >>>> IPython-dev at scipy.org >> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >>> >> >>> >> >> >> >> _______________________________________________ >> >> IPython-dev mailing list >> >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> > >> > >> > -- >> > Brian E. Granger >> > Cal Poly State University, San Luis Obispo >> > bgranger at calpoly.edu and ellisonbg at gmail.com >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- Brian E. Granger Cal Poly State University, San Luis Obispo bgranger at calpoly.edu and ellisonbg at gmail.com