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>
	<A2EE328B-7D40-440F-B114-26493B832E28@gmail.com>
	<5190EBD3.9040808@gmail.com>
	<CAHNn8BWdd9tmCtDJ6nkcmaMy0K8PEHgxBQYj2_8nt46_6hiUhQ@mail.gmail.com>
	<519106EE.9010404@gmail.com>
	<CANJQusXEu_9+Wwf7fy8a3OBkHJJ7XN4yvgRQP6dqoXeJmz3SrQ@mail.gmail.com>
	<352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com>
Message-ID: <CACpqBg3EyvREprgy_8egnR2U-oiFYJ2dC3KZh_gxvK2TyHfX=Q@mail.gmail.com>

On Mon, May 13, 2013 at 11:30 AM, Min RK <benjaminrk at gmail.com> 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<https://github.com/ipython/ipython-components/issues/1>,
>> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130601/84aff93b/attachment.html>

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: <CACpqBg3EyvREprgy_8egnR2U-oiFYJ2dC3KZh_gxvK2TyHfX=Q@mail.gmail.com>
References: <518F3726.8010402@gmail.com>
	<A2EE328B-7D40-440F-B114-26493B832E28@gmail.com>
	<5190EBD3.9040808@gmail.com>
	<CAHNn8BWdd9tmCtDJ6nkcmaMy0K8PEHgxBQYj2_8nt46_6hiUhQ@mail.gmail.com>
	<519106EE.9010404@gmail.com>
	<CANJQusXEu_9+Wwf7fy8a3OBkHJJ7XN4yvgRQP6dqoXeJmz3SrQ@mail.gmail.com>
	<352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com>
	<CACpqBg3EyvREprgy_8egnR2U-oiFYJ2dC3KZh_gxvK2TyHfX=Q@mail.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 <jakevdp at cs.washington.edu> wrote:

> On Mon, May 13, 2013 at 11:30 AM, Min RK <benjaminrk at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130601/eb630438/attachment.html>

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>
	<A2EE328B-7D40-440F-B114-26493B832E28@gmail.com>
	<5190EBD3.9040808@gmail.com>
	<CAHNn8BWdd9tmCtDJ6nkcmaMy0K8PEHgxBQYj2_8nt46_6hiUhQ@mail.gmail.com>
	<519106EE.9010404@gmail.com>
	<CANJQusXEu_9+Wwf7fy8a3OBkHJJ7XN4yvgRQP6dqoXeJmz3SrQ@mail.gmail.com>
	<352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com>
	<CACpqBg3EyvREprgy_8egnR2U-oiFYJ2dC3KZh_gxvK2TyHfX=Q@mail.gmail.com>
	<8DD8AC0C-D405-4F94-A76B-CF4EED6BD6E7@gmail.com>
Message-ID: <CACpqBg1zqdcrQVXLV66e397c687Qkvxwnz+cEWx5LxVC8sJugw@mail.gmail.com>

On Sat, Jun 1, 2013 at 9:59 AM, Min RK <benjaminrk at gmail.com> 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 <jakevdp at cs.washington.edu>
> wrote:
>
> On Mon, May 13, 2013 at 11:30 AM, Min RK <benjaminrk at gmail.com> 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<https://github.com/ipython/ipython-components/issues/1>,
>>> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130601/e306386a/attachment.html>

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: <CACpqBg1zqdcrQVXLV66e397c687Qkvxwnz+cEWx5LxVC8sJugw@mail.gmail.com>
References: <518F3726.8010402@gmail.com>
	<A2EE328B-7D40-440F-B114-26493B832E28@gmail.com>
	<5190EBD3.9040808@gmail.com>
	<CAHNn8BWdd9tmCtDJ6nkcmaMy0K8PEHgxBQYj2_8nt46_6hiUhQ@mail.gmail.com>
	<519106EE.9010404@gmail.com>
	<CANJQusXEu_9+Wwf7fy8a3OBkHJJ7XN4yvgRQP6dqoXeJmz3SrQ@mail.gmail.com>
	<352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com>
	<CACpqBg3EyvREprgy_8egnR2U-oiFYJ2dC3KZh_gxvK2TyHfX=Q@mail.gmail.com>
	<8DD8AC0C-D405-4F94-A76B-CF4EED6BD6E7@gmail.com>
	<CACpqBg1zqdcrQVXLV66e397c687Qkvxwnz+cEWx5LxVC8sJugw@mail.gmail.com>
Message-ID: <CAHNn8BVGvZAk2s7-Ao7A+9OqQAfqCv94NDpu3z9m6nd0QN9CYA@mail.gmail.com>

On Sat, Jun 1, 2013 at 10:40 AM, Jacob Vanderplas <jakevdp at cs.washington.edu
> wrote:

> On Sat, Jun 1, 2013 at 9:59 AM, Min RK <benjaminrk at gmail.com> 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 <jakevdp at cs.washington.edu>
>> wrote:
>>
>> On Mon, May 13, 2013 at 11:30 AM, Min RK <benjaminrk at gmail.com> 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<https://github.com/ipython/ipython-components/issues/1>,
>>>> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130601/1815dde0/attachment.html>

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: <CACpqBg1zqdcrQVXLV66e397c687Qkvxwnz+cEWx5LxVC8sJugw@mail.gmail.com>
References: <518F3726.8010402@gmail.com>
	<A2EE328B-7D40-440F-B114-26493B832E28@gmail.com>
	<5190EBD3.9040808@gmail.com>
	<CAHNn8BWdd9tmCtDJ6nkcmaMy0K8PEHgxBQYj2_8nt46_6hiUhQ@mail.gmail.com>
	<519106EE.9010404@gmail.com>
	<CANJQusXEu_9+Wwf7fy8a3OBkHJJ7XN4yvgRQP6dqoXeJmz3SrQ@mail.gmail.com>
	<352B7CF2-674F-409A-A535-FEA2AAD7250A@gmail.com>
	<CACpqBg3EyvREprgy_8egnR2U-oiFYJ2dC3KZh_gxvK2TyHfX=Q@mail.gmail.com>
	<8DD8AC0C-D405-4F94-A76B-CF4EED6BD6E7@gmail.com>
	<CACpqBg1zqdcrQVXLV66e397c687Qkvxwnz+cEWx5LxVC8sJugw@mail.gmail.com>
Message-ID: <D2E279F6-1E47-4F19-9A9D-328DDD22F9DC@gmail.com>


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 <jakevdp at cs.washington.edu> wrote:
> 
>> On Mon, May 13, 2013 at 11:30 AM, Min RK <benjaminrk at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130601/e43410b1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipython_sympy_SailfishOS.png
Type: image/png
Size: 71340 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130601/e43410b1/attachment.png>

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: <CAKgW=6KGxHOQv24TaJThhENOinmWWu8oTJPY2xo1fkvrPbY0hA@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130601/9743adc4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipython_sympy_SailfishOS.png
Type: image/png
Size: 71340 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130601/9743adc4/attachment.png>

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: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
Message-ID: <CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130602/cf4df5c9/attachment.html>

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: <CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
Message-ID: <CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130602/37206764/attachment.html>

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: <CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
Message-ID: <E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>

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: <CAHAono14Ex5hzOruheSmTte4ea6k2ueKmZ1BYqMUSOaHkoJ=_Q@mail.gmail.com>

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 = $("<div/>").attr("id", "div");

    $mydiv.empty();
    $mydiv.attr("style","background-color:rgb(104,104,104)");
    $mydiv.append("<button style=\"margin-top:2px;margin-left:2px;\"
onClick=\"reset();\">Reset</button>
    element.append($mydiv);
    function reset(){ ....

     };


Anything I might be doing incorrectly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130603/4207ff6a/attachment.html>

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: <CAHAono14Ex5hzOruheSmTte4ea6k2ueKmZ1BYqMUSOaHkoJ=_Q@mail.gmail.com>
References: <CAHAono14Ex5hzOruheSmTte4ea6k2ueKmZ1BYqMUSOaHkoJ=_Q@mail.gmail.com>
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("<button style=\"margin-top:2px;margin-left:2px;\" onClick=\"reset();\">Reset</button>


>     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 = $('<div/>')
				.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: <E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
	<E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
Message-ID: <CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>

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.python.org/pipermail/ipython-dev/attachments/20130603/54b0f069/attachment.html>

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: <CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
	<E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
	<CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>
Message-ID: <AA0AB54A-A855-451B-A3DE-9E38DDA82C90@gmail.com>


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.python.org/pipermail/ipython-dev/attachments/20130603/3c8ffd44/attachment.html>

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: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>

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: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
Message-ID: <CAKgW=6+Ey3wacr1+D6af+EOkdd54d+pofN5L3BYucc4M2ftAVQ@mail.gmail.com>

On Mon, Jun 3, 2013 at 7:45 PM, 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!

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: <CAKgW=6+Ey3wacr1+D6af+EOkdd54d+pofN5L3BYucc4M2ftAVQ@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAKgW=6+Ey3wacr1+D6af+EOkdd54d+pofN5L3BYucc4M2ftAVQ@mail.gmail.com>
Message-ID: <CAHAreOobfu-ZmxbRd9-CK9PvjJs-S_UdCvWjzcG4tx-6G6yMnQ@mail.gmail.com>

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 <asmeurer at gmail.com> wrote:
> On Mon, Jun 3, 2013 at 7:45 PM, 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!
>
> 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: <CAHAreOobfu-ZmxbRd9-CK9PvjJs-S_UdCvWjzcG4tx-6G6yMnQ@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAKgW=6+Ey3wacr1+D6af+EOkdd54d+pofN5L3BYucc4M2ftAVQ@mail.gmail.com>
	<CAHAreOobfu-ZmxbRd9-CK9PvjJs-S_UdCvWjzcG4tx-6G6yMnQ@mail.gmail.com>
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 <asmeurer at gmail.com> wrote:
>> On Mon, Jun 3, 2013 at 7:45 PM, 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!
>> 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:

<style>.rendered_html {
font-size: 150%;
font-family: Courier New;
}</style>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130603/5731f4d6/attachment.html>

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: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
Message-ID: <CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>

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 <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


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: <CAHAono1=+2kUhn4XL2x=CmwG4Prf1vH21Ar-uvGp5JaiSF7UNQ@mail.gmail.com>

    HI, I tried this ....

    container.show();
    var $mydiv = $("<div/>").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("<p style=\"margin-left:10px;margin-top:20px;\">variable=
"+test_var);

    var $mybutton =
$('<button/>').click(reset).attr("style","margin-top:20px;margin-left:80px;");
    $mydiv.append($mybutton);

    element.append($mydiv);


    the console shows that we are getting inside the function, but how can
I refresh the js to show the new value of the variable, in the
   $mydiv.append("<p style=\"margin-left:10px;margin-top:20px;\">variable=
"+test_var);
part?

Thanks


On Mon, Jun 3, 2013 at 10:30 PM, <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. Interactive SVG is not interactive in a notebook (Benjamin Root)
>    2. Re: Interactive SVG is not interactive in a notebook
>       (Benjamin Root)
>    3. Re: Interactive SVG is not interactive in a notebook
>       (Matthias BUSSONNIER)
>    4. Regarding Javascript rendering inside IPython     notebooks
>       (TARUN GABA)
>    5. Re: Regarding Javascript rendering inside IPython notebooks
>       (Matthias BUSSONNIER)
>    6. Re: Interactive SVG is not interactive in a notebook
>       (Benjamin Root)
>    7. Re: Interactive SVG is not interactive in a notebook
>       (Matthias BUSSONNIER)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 2 Jun 2013 18:29:24 -0400
> From: Benjamin Root <ben.root at ou.edu>
> Subject: [IPython-dev] Interactive SVG is not interactive in a
>         notebook
> To: IPython Development list <ipython-dev at scipy.org>
> Message-ID:
>         <CANNq6Fm5KRZ=
> NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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:
> http://mail.scipy.org/pipermail/ipython-dev/attachments/20130602/cf4df5c9/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Sun, 2 Jun 2013 18:43:45 -0400
> From: Benjamin Root <ben.root at ou.edu>
> Subject: Re: [IPython-dev] Interactive SVG is not interactive in a
>         notebook
> To: IPython Development list <ipython-dev at scipy.org>
> Message-ID:
>         <CANNq6F=
> BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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:
> http://mail.scipy.org/pipermail/ipython-dev/attachments/20130602/37206764/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Mon, 3 Jun 2013 08:58:59 +0200
> From: Matthias BUSSONNIER <bussonniermatthias at gmail.com>
> Subject: Re: [IPython-dev] Interactive SVG is not interactive in a
>         notebook
> To: IPython developers list <ipython-dev at scipy.org>
> Message-ID: <E825BE06-DEDA-4C37-96AF-5185699C09CA at gmail.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> 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
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 3 Jun 2013 16:06:01 +0530
> From: TARUN GABA <tarun.gaba7 at gmail.com>
> Subject: [IPython-dev] Regarding Javascript rendering inside IPython
>         notebooks
> To: ipython-dev at scipy.org
> Message-ID:
>         <CAHAono14Ex5hzOruheSmTte4ea6k2ueKmZ1BYqMUSOaHkoJ=_
> Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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 = $("<div/>").attr("id", "div");
>
>     $mydiv.empty();
>     $mydiv.attr("style","background-color:rgb(104,104,104)");
>     $mydiv.append("<button style=\"margin-top:2px;margin-left:2px;\"
> onClick=\"reset();\">Reset</button>
>     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 <bussonniermatthias at gmail.com>
> Subject: Re: [IPython-dev] Regarding Javascript rendering inside
>         IPython notebooks
> To: IPython developers list <ipython-dev at scipy.org>
> 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("<button style=\"margin-top:2px;margin-left:2px;\"
> onClick=\"reset();\">Reset</button>
>
>
> >     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 = $('<div/>')
>                                 .attr('style','?')
>                                 .click(reset)
> $mydiv.append($mybutton)
>
> --
> Matthias
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 3 Jun 2013 09:31:09 -0400
> From: Benjamin Root <ben.root at ou.edu>
> Subject: Re: [IPython-dev] Interactive SVG is not interactive in a
>         notebook
> To: IPython developers list <ipython-dev at scipy.org>
> Message-ID:
>         <CANNq6FnffChvbYpm-ZSG9o=
> 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 <bussonniermatthias at gmail.com>
> Subject: Re: [IPython-dev] Interactive SVG is not interactive in a
>         notebook
> To: IPython developers list <ipython-dev at scipy.org>
> Message-ID: <AA0AB54A-A855-451B-A3DE-9E38DDA82C90 at gmail.com>
> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/e375fe0d/attachment.html>

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: <CAHAono1=+2kUhn4XL2x=CmwG4Prf1vH21Ar-uvGp5JaiSF7UNQ@mail.gmail.com>
References: <CAHAono1=+2kUhn4XL2x=CmwG4Prf1vH21Ar-uvGp5JaiSF7UNQ@mail.gmail.com>
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 = $("<div/>").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 = $("<p/>").whatever()
>    

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

>    // the rest   
>     var $mydiv = $("<div/>").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: <CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
Message-ID: <CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>

Thanks, that got me on track.

For the record, this is what I used:

<style>.rendered_html {
font-size: 150%;
line-height: 1.3;
}</style>

<style>.rendered_html li {
line-height: 2;
}</style>

<style>.rendered_html h1{
margin: 0.5em 0;
line-height: 1.3;
}</style>

<style>.rendered_html h2{
margin: 0.15em 0;
line-height: 1.2;
}</style>

<style>.input_prompt {
font-size: 120%;
font-family: Consolas;
}</style>

<style>.CodeMirror-lines {
font-size: 120%;
font-family: Consolas;
}</style>

<style>.output_area {
font-size: 120%;
font-family: Consolas;
}</style>

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 <klonuo at gmail.com> 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 <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


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: <CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
Message-ID: <CANJQusXa8qhA2pUQD0DRA-ZTCy_qTXe0656SN3=junNqb=gnyg@mail.gmail.com>

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:
>
> <style>.rendered_html {
> font-size: 150%;
> line-height: 1.3;
> }</style>
>
> <style>.rendered_html li {
> line-height: 2;
> }</style>
>
> <style>.rendered_html h1{
> margin: 0.5em 0;
> line-height: 1.3;
> }</style>
>
> <style>.rendered_html h2{
> margin: 0.15em 0;
> line-height: 1.2;
> }</style>
>
> <style>.input_prompt {
> font-size: 120%;
> font-family: Consolas;
> }</style>
>
> <style>.CodeMirror-lines {
> font-size: 120%;
> font-family: Consolas;
> }</style>
>
> <style>.output_area {
> font-size: 120%;
> font-family: Consolas;
> }</style>
>
> 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 <klonuo at gmail.com <javascript:;>>
> 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 <fperez.net at gmail.com<javascript:;>>
> 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 <javascript:;>
> >> http://mail.scipy.org/mailman/listinfo/ipython-dev
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org <javascript:;>
> > 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 <javascript:;>
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/a5dab482/attachment.html>

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: <CA+A4wOk=XrDytT42ZZvTor2q7jc1jY-uimFUnJRpL7-LR26Y9g@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/f3fa9c5c/attachment.html>

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: <CA+A4wOk=XrDytT42ZZvTor2q7jc1jY-uimFUnJRpL7-LR26Y9g@mail.gmail.com>
References: <CA+A4wOk=XrDytT42ZZvTor2q7jc1jY-uimFUnJRpL7-LR26Y9g@mail.gmail.com>
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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/ab9ca0fe/attachment.html>

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: <CA+A4wOk=XrDytT42ZZvTor2q7jc1jY-uimFUnJRpL7-LR26Y9g@mail.gmail.com>
	<1DBC609B-C00A-46A6-9FFF-707092086DB4@gmail.com>
Message-ID: <CA+A4wOk97Bjv_6ehpeZ6ndxfLKCnhY5XD2K9n00ebsb_PP56-A@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/288f2a7b/attachment.html>

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: <CA+A4wOk=XrDytT42ZZvTor2q7jc1jY-uimFUnJRpL7-LR26Y9g@mail.gmail.com>
	<1DBC609B-C00A-46A6-9FFF-707092086DB4@gmail.com>
Message-ID: <CAOvn4qgABJxUfddQtCWgJqTBRxF5NkPEu==YrJTdt+bM=m-o4g@mail.gmail.com>

On 4 June 2013 15:00, Matthias BUSSONNIER <bussonniermatthias at gmail.com>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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/6e84817e/attachment.html>

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: <CAOvn4qgABJxUfddQtCWgJqTBRxF5NkPEu==YrJTdt+bM=m-o4g@mail.gmail.com>
References: <CA+A4wOk=XrDytT42ZZvTor2q7jc1jY-uimFUnJRpL7-LR26Y9g@mail.gmail.com>
	<1DBC609B-C00A-46A6-9FFF-707092086DB4@gmail.com>
	<CAOvn4qgABJxUfddQtCWgJqTBRxF5NkPEu==YrJTdt+bM=m-o4g@mail.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 <bussonniermatthias at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/0759ca81/attachment.html>

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: <CANJQusXa8qhA2pUQD0DRA-ZTCy_qTXe0656SN3=junNqb=gnyg@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
	<CANJQusXa8qhA2pUQD0DRA-ZTCy_qTXe0656SN3=junNqb=gnyg@mail.gmail.com>
Message-ID: <CAHAreOr6UD_W+t_Km=PqF69_dN3F414yiRgeipgjo3e6peqceg@mail.gmail.com>

you mean if I put it in the custom dir for the extension?

On Tue, Jun 4, 2013 at 2:04 AM, Matthias Bussonnier
<bussonniermatthias at gmail.com> 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:
>>
>> <style>.rendered_html {
>> font-size: 150%;
>> line-height: 1.3;
>> }</style>
>>
>> <style>.rendered_html li {
>> line-height: 2;
>> }</style>
>>
>> <style>.rendered_html h1{
>> margin: 0.5em 0;
>> line-height: 1.3;
>> }</style>
>>
>> <style>.rendered_html h2{
>> margin: 0.15em 0;
>> line-height: 1.2;
>> }</style>
>>
>> <style>.input_prompt {
>> font-size: 120%;
>> font-family: Consolas;
>> }</style>
>>
>> <style>.CodeMirror-lines {
>> font-size: 120%;
>> font-family: Consolas;
>> }</style>
>>
>> <style>.output_area {
>> font-size: 120%;
>> font-family: Consolas;
>> }</style>
>>
>> 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 <klonuo at gmail.com> 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 <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
>



-- 
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: <CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
Message-ID: <F723135E32F9984ABC5B614F28BF2491016C6158@UWIT-MBX06.exchange.washington.edu>

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:

<style>.rendered_html {
font-size: 150%;
line-height: 1.3;
}</style>

<style>.rendered_html li {
line-height: 2;
}</style>

<style>.rendered_html h1{
margin: 0.5em 0;
line-height: 1.3;
}</style>

<style>.rendered_html h2{
margin: 0.15em 0;
line-height: 1.2;
}</style>

<style>.input_prompt {
font-size: 120%;
font-family: Consolas;
}</style>

<style>.CodeMirror-lines {
font-size: 120%;
font-family: Consolas;
}</style>

<style>.output_area {
font-size: 120%;
font-family: Consolas;
}</style>

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 <klonuo at gmail.com> 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 <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


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: <CAHAreOr6UD_W+t_Km=PqF69_dN3F414yiRgeipgjo3e6peqceg@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
	<CANJQusXa8qhA2pUQD0DRA-ZTCy_qTXe0656SN3=junNqb=gnyg@mail.gmail.com>
	<CAHAreOr6UD_W+t_Km=PqF69_dN3F414yiRgeipgjo3e6peqceg@mail.gmail.com>
Message-ID: <DB138A14-6184-4F90-ADC8-2E82EAFB7B7D@gmail.com>

I mean that when the presentation starts it happens the "presentation_mode" class to <body>, 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
> <bussonniermatthias at gmail.com> 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:
>>> 
>>> <style>.rendered_html {
>>> font-size: 150%;
>>> line-height: 1.3;
>>> }</style>
>>> 
>>> <style>.rendered_html li {
>>> line-height: 2;
>>> }</style>
>>> 
>>> <style>.rendered_html h1{
>>> margin: 0.5em 0;
>>> line-height: 1.3;
>>> }</style>
>>> 
>>> <style>.rendered_html h2{
>>> margin: 0.15em 0;
>>> line-height: 1.2;
>>> }</style>
>>> 
>>> <style>.input_prompt {
>>> font-size: 120%;
>>> font-family: Consolas;
>>> }</style>
>>> 
>>> <style>.CodeMirror-lines {
>>> font-size: 120%;
>>> font-family: Consolas;
>>> }</style>
>>> 
>>> <style>.output_area {
>>> font-size: 120%;
>>> font-family: Consolas;
>>> }</style>
>>> 
>>> 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 <klonuo at gmail.com> 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 <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
>> 
> 
> 
> 
> -- 
> 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: <F723135E32F9984ABC5B614F28BF2491016C6158@UWIT-MBX06.exchange.washington.edu>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
	<F723135E32F9984ABC5B614F28BF2491016C6158@UWIT-MBX06.exchange.washington.edu>
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:
> 
> <style>.rendered_html {
> font-size: 150%;
> line-height: 1.3;
> }</style>
> 
> <style>.rendered_html li {
> line-height: 2;
> }</style>
> 
> <style>.rendered_html h1{
> margin: 0.5em 0;
> line-height: 1.3;
> }</style>
> 
> <style>.rendered_html h2{
> margin: 0.15em 0;
> line-height: 1.2;
> }</style>
> 
> <style>.input_prompt {
> font-size: 120%;
> font-family: Consolas;
> }</style>
> 
> <style>.CodeMirror-lines {
> font-size: 120%;
> font-family: Consolas;
> }</style>
> 
> <style>.output_area {
> font-size: 120%;
> font-family: Consolas;
> }</style>
> 
> 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 <klonuo at gmail.com> 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 <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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/0ada0962/attachment.html>

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: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
	<F723135E32F9984ABC5B614F28BF2491016C6158@UWIT-MBX06.exchange.washington.edu>
	<1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com>
Message-ID: <CAPhiW4hXjJ2Xdz0XJD4ovf3kPhmvCHRWLiOF2-+531sDWa4_Ww@mail.gmail.com>

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:
>
> <style>.rendered_html {
> font-size: 150%;
> line-height: 1.3;
> }</style>
>
> <style>.rendered_html li {
> line-height: 2;
> }</style>
>
> <style>.rendered_html h1{
> margin: 0.5em 0;
> line-height: 1.3;
> }</style>
>
> <style>.rendered_html h2{
> margin: 0.15em 0;
> line-height: 1.2;
> }</style>
>
> <style>.input_prompt {
> font-size: 120%;
> font-family: Consolas;
> }</style>
>
> <style>.CodeMirror-lines {
> font-size: 120%;
> font-family: Consolas;
> }</style>
>
> <style>.output_area {
> font-size: 120%;
> font-family: Consolas;
> }</style>
>
> 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 <klonuo at gmail.com> 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 <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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/b3b67327/attachment.html>

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: <CAPhiW4hXjJ2Xdz0XJD4ovf3kPhmvCHRWLiOF2-+531sDWa4_Ww@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
	<F723135E32F9984ABC5B614F28BF2491016C6158@UWIT-MBX06.exchange.washington.edu>
	<1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com>
	<CAPhiW4hXjJ2Xdz0XJD4ovf3kPhmvCHRWLiOF2-+531sDWa4_Ww@mail.gmail.com>
Message-ID: <CAHAreOrZVLu-9XoF-Mrgaeg3gUyv0ywQeP+eYmTV_cSXhHbB5A@mail.gmail.com>

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 <aron at ahmadia.net> 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
> <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:
>>
>> <style>.rendered_html {
>> font-size: 150%;
>> line-height: 1.3;
>> }</style>
>>
>> <style>.rendered_html li {
>> line-height: 2;
>> }</style>
>>
>> <style>.rendered_html h1{
>> margin: 0.5em 0;
>> line-height: 1.3;
>> }</style>
>>
>> <style>.rendered_html h2{
>> margin: 0.15em 0;
>> line-height: 1.2;
>> }</style>
>>
>> <style>.input_prompt {
>> font-size: 120%;
>> font-family: Consolas;
>> }</style>
>>
>> <style>.CodeMirror-lines {
>> font-size: 120%;
>> font-family: Consolas;
>> }</style>
>>
>> <style>.output_area {
>> font-size: 120%;
>> font-family: Consolas;
>> }</style>
>>
>> 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 <klonuo at gmail.com> 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 <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


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: <CAHAono2BsLgSECaE1f0Ty_eG4217XvyZB0ObLNYFUS18oBpWDg@mail.gmail.com>

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("'""<script src="full path to/three.js"></script>""")

At the developers console of my browser I am getting a 503 (service
unavailable error)

I also tried using ..

HTML("""<script src="js/three.js"></script>""")

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.python.org/pipermail/ipython-dev/attachments/20130604/8f59f250/attachment.html>

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: <CAHAono2BsLgSECaE1f0Ty_eG4217XvyZB0ObLNYFUS18oBpWDg@mail.gmail.com>
References: <CAHAono2BsLgSECaE1f0Ty_eG4217XvyZB0ObLNYFUS18oBpWDg@mail.gmail.com>
Message-ID: <CA+A4wOnYTjN16kJ6ByWoAKDnJw1czBMwGX6CfuyW-0hLRcibwQ@mail.gmail.com>

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 <tarun.gaba7 at gmail.com> 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("'""<script src="full path to/three.js"></script>""")
>
> At the developers console of my browser I am getting a 503 (service
> unavailable error)
>
> I also tried using ..
>
> HTML("""<script src="js/three.js"></script>""")
>
> 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.python.org/pipermail/ipython-dev/attachments/20130604/2dea886f/attachment.html>

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: <CA+A4wOnYTjN16kJ6ByWoAKDnJw1czBMwGX6CfuyW-0hLRcibwQ@mail.gmail.com>
References: <CAHAono2BsLgSECaE1f0Ty_eG4217XvyZB0ObLNYFUS18oBpWDg@mail.gmail.com>
	<CA+A4wOnYTjN16kJ6ByWoAKDnJw1czBMwGX6CfuyW-0hLRcibwQ@mail.gmail.com>
Message-ID: <CAH4pYpTscpENzTTP1Q1H38sLSpTRnLDo3C6J8f0SQnL0AU+Mpw@mail.gmail.com>

I would use the jQuery getScript function...

On Tue, Jun 4, 2013 at 11:28 AM, Satrajit Ghosh <satra at mit.edu> 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 <tarun.gaba7 at gmail.com> 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("'""<script src="full path to/three.js"></script>""")
>>
>> At the developers console of my browser I am getting a 503 (service
>> unavailable error)
>>
>> I also tried using ..
>>
>> HTML("""<script src="js/three.js"></script>""")
>>
>> 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: <CAH4pYpTscpENzTTP1Q1H38sLSpTRnLDo3C6J8f0SQnL0AU+Mpw@mail.gmail.com>
References: <CAHAono2BsLgSECaE1f0Ty_eG4217XvyZB0ObLNYFUS18oBpWDg@mail.gmail.com>
	<CA+A4wOnYTjN16kJ6ByWoAKDnJw1czBMwGX6CfuyW-0hLRcibwQ@mail.gmail.com>
	<CAH4pYpTscpENzTTP1Q1H38sLSpTRnLDo3C6J8f0SQnL0AU+Mpw@mail.gmail.com>
Message-ID: <CA+A4wO=RxiUajdEQK1U0G=GijfTr-9EfpiemTN2iQk9RRp3nkA@mail.gmail.com>

> 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 <satra at mit.edu> 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 <tarun.gaba7 at gmail.com>
> 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("'""<script src="full path to/three.js"></script>""")
> >>
> >> At the developers console of my browser I am getting a 503 (service
> >> unavailable error)
> >>
> >> I also tried using ..
> >>
> >> HTML("""<script src="js/three.js"></script>""")
> >>
> >> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/c65ddefc/attachment.html>

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: <CA+A4wO=RxiUajdEQK1U0G=GijfTr-9EfpiemTN2iQk9RRp3nkA@mail.gmail.com>
References: <CAHAono2BsLgSECaE1f0Ty_eG4217XvyZB0ObLNYFUS18oBpWDg@mail.gmail.com>
	<CA+A4wOnYTjN16kJ6ByWoAKDnJw1czBMwGX6CfuyW-0hLRcibwQ@mail.gmail.com>
	<CAH4pYpTscpENzTTP1Q1H38sLSpTRnLDo3C6J8f0SQnL0AU+Mpw@mail.gmail.com>
	<CA+A4wO=RxiUajdEQK1U0G=GijfTr-9EfpiemTN2iQk9RRp3nkA@mail.gmail.com>
Message-ID: <C4A7546C-4BFB-48E1-A752-B7E7DBD14BE5@gmail.com>


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: <C4A7546C-4BFB-48E1-A752-B7E7DBD14BE5@gmail.com>
References: <CAHAono2BsLgSECaE1f0Ty_eG4217XvyZB0ObLNYFUS18oBpWDg@mail.gmail.com>
	<CA+A4wOnYTjN16kJ6ByWoAKDnJw1czBMwGX6CfuyW-0hLRcibwQ@mail.gmail.com>
	<CAH4pYpTscpENzTTP1Q1H38sLSpTRnLDo3C6J8f0SQnL0AU+Mpw@mail.gmail.com>
	<CA+A4wO=RxiUajdEQK1U0G=GijfTr-9EfpiemTN2iQk9RRp3nkA@mail.gmail.com>
	<C4A7546C-4BFB-48E1-A752-B7E7DBD14BE5@gmail.com>
Message-ID: <CA+A4wO=VGt_gci+s8Yyxu0ECjG_9iefu+q9Ee0F7VXsECic3Wg@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/a12b7136/attachment.html>

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: <CAHAreOrZVLu-9XoF-Mrgaeg3gUyv0ywQeP+eYmTV_cSXhHbB5A@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
	<F723135E32F9984ABC5B614F28BF2491016C6158@UWIT-MBX06.exchange.washington.edu>
	<1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com>
	<CAPhiW4hXjJ2Xdz0XJD4ovf3kPhmvCHRWLiOF2-+531sDWa4_Ww@mail.gmail.com>
	<CAHAreOrZVLu-9XoF-Mrgaeg3gUyv0ywQeP+eYmTV_cSXhHbB5A@mail.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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130604/255cb44d/attachment.obj>
-------------- 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 <aron at ahmadia.net> 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
>> <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:
>>> 
>>> <style>.rendered_html {
>>> font-size: 150%;
>>> line-height: 1.3;
>>> }</style>
>>> 
>>> <style>.rendered_html li {
>>> line-height: 2;
>>> }</style>
>>> 
>>> <style>.rendered_html h1{
>>> margin: 0.5em 0;
>>> line-height: 1.3;
>>> }</style>
>>> 
>>> <style>.rendered_html h2{
>>> margin: 0.15em 0;
>>> line-height: 1.2;
>>> }</style>
>>> 
>>> <style>.input_prompt {
>>> font-size: 120%;
>>> font-family: Consolas;
>>> }</style>
>>> 
>>> <style>.CodeMirror-lines {
>>> font-size: 120%;
>>> font-family: Consolas;
>>> }</style>
>>> 
>>> <style>.output_area {
>>> font-size: 120%;
>>> font-family: Consolas;
>>> }</style>
>>> 
>>> 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 <klonuo at gmail.com> 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 <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


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: <CAHAono1R9q-V7hCwa5WDVSQkPcGhQLBAGPi7dOpA_Qc_3Z5ebw@mail.gmail.com>

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, <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?
>       (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 <aron at ahmadia.net>
> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style
>         notebooks?
> To: IPython developers list <ipython-dev at scipy.org>
> 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:
> >
> > <style>.rendered_html {
> > font-size: 150%;
> > line-height: 1.3;
> > }</style>
> >
> > <style>.rendered_html li {
> > line-height: 2;
> > }</style>
> >
> > <style>.rendered_html h1{
> > margin: 0.5em 0;
> > line-height: 1.3;
> > }</style>
> >
> > <style>.rendered_html h2{
> > margin: 0.15em 0;
> > line-height: 1.2;
> > }</style>
> >
> > <style>.input_prompt {
> > font-size: 120%;
> > font-family: Consolas;
> > }</style>
> >
> > <style>.CodeMirror-lines {
> > font-size: 120%;
> > font-family: Consolas;
> > }</style>
> >
> > <style>.output_area {
> > font-size: 120%;
> > font-family: Consolas;
> > }</style>
> >
> > 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 <klonuo at gmail.com> 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 <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
> >
> >
> -------------- 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 <fperez.net at gmail.com>
> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style
>         notebooks?
> To: IPython developers list <ipython-dev at scipy.org>
> 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 <aron at ahmadia.net> 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
> > <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:
> >>
> >> <style>.rendered_html {
> >> font-size: 150%;
> >> line-height: 1.3;
> >> }</style>
> >>
> >> <style>.rendered_html li {
> >> line-height: 2;
> >> }</style>
> >>
> >> <style>.rendered_html h1{
> >> margin: 0.5em 0;
> >> line-height: 1.3;
> >> }</style>
> >>
> >> <style>.rendered_html h2{
> >> margin: 0.15em 0;
> >> line-height: 1.2;
> >> }</style>
> >>
> >> <style>.input_prompt {
> >> font-size: 120%;
> >> font-family: Consolas;
> >> }</style>
> >>
> >> <style>.CodeMirror-lines {
> >> font-size: 120%;
> >> font-family: Consolas;
> >> }</style>
> >>
> >> <style>.output_area {
> >> font-size: 120%;
> >> font-family: Consolas;
> >> }</style>
> >>
> >> 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 <klonuo at gmail.com> 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 <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
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 4 Jun 2013 23:56:22 +0530
> From: TARUN GABA <tarun.gaba7 at gmail.com>
> 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("'""<script src="full path to/three.js"></script>""")
>
> At the developers console of my browser I am getting a 503 (service
> unavailable error)
>
> I also tried using ..
>
> HTML("""<script src="js/three.js"></script>""")
>
> 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 <satra at mit.edu>
> Subject: Re: [IPython-dev] Including javascript from static library
> To: IPython developers list <ipython-dev at scipy.org>
> 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 <tarun.gaba7 at gmail.com> 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("'""<script src="full path to/three.js"></script>""")
> >
> > At the developers console of my browser I am getting a 503 (service
> > unavailable error)
> >
> > I also tried using ..
> >
> > HTML("""<script src="js/three.js"></script>""")
> >
> > 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130605/aaa29757/attachment.html>

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: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
	<F723135E32F9984ABC5B614F28BF2491016C6158@UWIT-MBX06.exchange.washington.edu>
	<1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com>
	<CAPhiW4hXjJ2Xdz0XJD4ovf3kPhmvCHRWLiOF2-+531sDWa4_Ww@mail.gmail.com>
	<CAHAreOrZVLu-9XoF-Mrgaeg3gUyv0ywQeP+eYmTV_cSXhHbB5A@mail.gmail.com>
	<31462BBF-FC81-4A88-8C0A-3C8277492554@gmail.com>
Message-ID: <CAHAreOrmw2an4j9SX=MWkkQVW53xGrSseF-25i=gn6JCa-t-WA@mail.gmail.com>

thanks!

On Tue, Jun 4, 2013 at 12:00 PM, Matthias BUSSONNIER
<bussonniermatthias at gmail.com> 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 <aron at ahmadia.net> 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
>>> <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:
>>>>
>>>> <style>.rendered_html {
>>>> font-size: 150%;
>>>> line-height: 1.3;
>>>> }</style>
>>>>
>>>> <style>.rendered_html li {
>>>> line-height: 2;
>>>> }</style>
>>>>
>>>> <style>.rendered_html h1{
>>>> margin: 0.5em 0;
>>>> line-height: 1.3;
>>>> }</style>
>>>>
>>>> <style>.rendered_html h2{
>>>> margin: 0.15em 0;
>>>> line-height: 1.2;
>>>> }</style>
>>>>
>>>> <style>.input_prompt {
>>>> font-size: 120%;
>>>> font-family: Consolas;
>>>> }</style>
>>>>
>>>> <style>.CodeMirror-lines {
>>>> font-size: 120%;
>>>> font-family: Consolas;
>>>> }</style>
>>>>
>>>> <style>.output_area {
>>>> font-size: 120%;
>>>> font-family: Consolas;
>>>> }</style>
>>>>
>>>> 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 <klonuo at gmail.com> 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 <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


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: <CAHAono1R9q-V7hCwa5WDVSQkPcGhQLBAGPi7dOpA_Qc_3Z5ebw@mail.gmail.com>
References: <CAHAono1R9q-V7hCwa5WDVSQkPcGhQLBAGPi7dOpA_Qc_3Z5ebw@mail.gmail.com>
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, <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?
>       (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 <aron at ahmadia.net>
> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style
>         notebooks?
> To: IPython developers list <ipython-dev at scipy.org>
> 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:
> >
> > <style>.rendered_html {
> > font-size: 150%;
> > line-height: 1.3;
> > }</style>
> >
> > <style>.rendered_html li {
> > line-height: 2;
> > }</style>
> >
> > <style>.rendered_html h1{
> > margin: 0.5em 0;
> > line-height: 1.3;
> > }</style>
> >
> > <style>.rendered_html h2{
> > margin: 0.15em 0;
> > line-height: 1.2;
> > }</style>
> >
> > <style>.input_prompt {
> > font-size: 120%;
> > font-family: Consolas;
> > }</style>
> >
> > <style>.CodeMirror-lines {
> > font-size: 120%;
> > font-family: Consolas;
> > }</style>
> >
> > <style>.output_area {
> > font-size: 120%;
> > font-family: Consolas;
> > }</style>
> >
> > 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 <klonuo at gmail.com> 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 <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
> >
> >
> -------------- 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 <fperez.net at gmail.com>
> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style
>         notebooks?
> To: IPython developers list <ipython-dev at scipy.org>
> 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 <aron at ahmadia.net> 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
> > <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:
> >>
> >> <style>.rendered_html {
> >> font-size: 150%;
> >> line-height: 1.3;
> >> }</style>
> >>
> >> <style>.rendered_html li {
> >> line-height: 2;
> >> }</style>
> >>
> >> <style>.rendered_html h1{
> >> margin: 0.5em 0;
> >> line-height: 1.3;
> >> }</style>
> >>
> >> <style>.rendered_html h2{
> >> margin: 0.15em 0;
> >> line-height: 1.2;
> >> }</style>
> >>
> >> <style>.input_prompt {
> >> font-size: 120%;
> >> font-family: Consolas;
> >> }</style>
> >>
> >> <style>.CodeMirror-lines {
> >> font-size: 120%;
> >> font-family: Consolas;
> >> }</style>
> >>
> >> <style>.output_area {
> >> font-size: 120%;
> >> font-family: Consolas;
> >> }</style>
> >>
> >> 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 <klonuo at gmail.com> 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 <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
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Tue, 4 Jun 2013 23:56:22 +0530
> From: TARUN GABA <tarun.gaba7 at gmail.com>
> 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("'""<script src="full path to/three.js"></script>""")
> 
> At the developers console of my browser I am getting a 503 (service
> unavailable error)
> 
> I also tried using ..
> 
> HTML("""<script src="js/three.js"></script>""")
> 
> 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 <satra at mit.edu>
> Subject: Re: [IPython-dev] Including javascript from static library
> To: IPython developers list <ipython-dev at scipy.org>
> 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 <tarun.gaba7 at gmail.com> 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("'""<script src="full path to/three.js"></script>""")
> >
> > At the developers console of my browser I am getting a 503 (service
> > unavailable error)
> >
> > I also tried using ..
> >
> > HTML("""<script src="js/three.js"></script>""")
> >
> > 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: <CA+A4wOkxx2xhjR54Dn8UsyUJYNA6yUrb19OWuThp-uSy3MRdtw@mail.gmail.com>

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.python.org/pipermail/ipython-dev/attachments/20130605/64fef005/attachment.html>

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: <CAH+mRR0X0GTHeqXUb0LgGRL9r9s=OY6-9RgJBgqMi4VpZcth1w@mail.gmail.com>
References: <CA+A4wOkxx2xhjR54Dn8UsyUJYNA6yUrb19OWuThp-uSy3MRdtw@mail.gmail.com>
	<CAH+mRR0X0GTHeqXUb0LgGRL9r9s=OY6-9RgJBgqMi4VpZcth1w@mail.gmail.com>
Message-ID: <CAH+mRR1BaBS0ewSrMrz8e0kTHJ-nJj-Shk0xYvqhUXqpGVk=wA@mail.gmail.com>

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" <satra at mit.edu> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130605/24fe48d1/attachment.html>

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: <CAH+mRR1BaBS0ewSrMrz8e0kTHJ-nJj-Shk0xYvqhUXqpGVk=wA@mail.gmail.com>
References: <CA+A4wOkxx2xhjR54Dn8UsyUJYNA6yUrb19OWuThp-uSy3MRdtw@mail.gmail.com>
	<CAH+mRR0X0GTHeqXUb0LgGRL9r9s=OY6-9RgJBgqMi4VpZcth1w@mail.gmail.com>
	<CAH+mRR1BaBS0ewSrMrz8e0kTHJ-nJj-Shk0xYvqhUXqpGVk=wA@mail.gmail.com>
Message-ID: <CA+A4wO=BtswypgDOHyVuq0cQaf276Usn4QcwN+MQ11CX81Vf8Q@mail.gmail.com>

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 <damianavila at gmail.com> 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" <satra at mit.edu> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130605/c41825ed/attachment.html>

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: <CA+A4wO=BtswypgDOHyVuq0cQaf276Usn4QcwN+MQ11CX81Vf8Q@mail.gmail.com>
References: <CA+A4wOkxx2xhjR54Dn8UsyUJYNA6yUrb19OWuThp-uSy3MRdtw@mail.gmail.com>
	<CAH+mRR0X0GTHeqXUb0LgGRL9r9s=OY6-9RgJBgqMi4VpZcth1w@mail.gmail.com>
	<CAH+mRR1BaBS0ewSrMrz8e0kTHJ-nJj-Shk0xYvqhUXqpGVk=wA@mail.gmail.com>
	<CA+A4wO=BtswypgDOHyVuq0cQaf276Usn4QcwN+MQ11CX81Vf8Q@mail.gmail.com>
Message-ID: <CAH+mRR1x-8Sa+UxELMY+R6o6FoEyDCizrbYdmx64sbYFuNpk3Q@mail.gmail.com>

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" <satra at mit.edu> 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 <damianavila at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130605/0cf1e7e4/attachment.html>

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: <CAH+mRR1x-8Sa+UxELMY+R6o6FoEyDCizrbYdmx64sbYFuNpk3Q@mail.gmail.com>
References: <CA+A4wOkxx2xhjR54Dn8UsyUJYNA6yUrb19OWuThp-uSy3MRdtw@mail.gmail.com>
	<CAH+mRR0X0GTHeqXUb0LgGRL9r9s=OY6-9RgJBgqMi4VpZcth1w@mail.gmail.com>
	<CAH+mRR1BaBS0ewSrMrz8e0kTHJ-nJj-Shk0xYvqhUXqpGVk=wA@mail.gmail.com>
	<CA+A4wO=BtswypgDOHyVuq0cQaf276Usn4QcwN+MQ11CX81Vf8Q@mail.gmail.com>
	<CAH+mRR1x-8Sa+UxELMY+R6o6FoEyDCizrbYdmx64sbYFuNpk3Q@mail.gmail.com>
Message-ID: <CA+A4wOn-wnjCR6TTvBn4qEV_-Jds0bjd0HvuFe_8vmT+p4G83A@mail.gmail.com>

thanks. that works well.

cheers,

satra


On Wed, Jun 5, 2013 at 12:22 PM, Dami?n Avila <damianavila at gmail.com> 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" <satra at mit.edu> 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 <damianavila at gmail.com>
> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130605/4d2da264/attachment.html>

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: <CAHAono2XTjwhQnH+qRuBZutb_zxGUg4Vpv4HskmSgA=8Z4eN0A@mail.gmail.com>

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 <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 <fperez.net at gmail.com>
> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style
> 	notebooks?
> To: IPython developers list <ipython-dev at scipy.org>
> Message-ID:
> 	<CAHAreOrmw2an4j9SX=MWkkQVW53xGrSseF-25i=gn6JCa-t-WA at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> thanks!
>
> On Tue, Jun 4, 2013 at 12:00 PM, Matthias BUSSONNIER
> <bussonniermatthias at gmail.com> 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 <aron at ahmadia.net> 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
>>>> <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:
>>>>>
>>>>> <style>.rendered_html {
>>>>> font-size: 150%;
>>>>> line-height: 1.3;
>>>>> }</style>
>>>>>
>>>>> <style>.rendered_html li {
>>>>> line-height: 2;
>>>>> }</style>
>>>>>
>>>>> <style>.rendered_html h1{
>>>>> margin: 0.5em 0;
>>>>> line-height: 1.3;
>>>>> }</style>
>>>>>
>>>>> <style>.rendered_html h2{
>>>>> margin: 0.15em 0;
>>>>> line-height: 1.2;
>>>>> }</style>
>>>>>
>>>>> <style>.input_prompt {
>>>>> font-size: 120%;
>>>>> font-family: Consolas;
>>>>> }</style>
>>>>>
>>>>> <style>.CodeMirror-lines {
>>>>> font-size: 120%;
>>>>> font-family: Consolas;
>>>>> }</style>
>>>>>
>>>>> <style>.output_area {
>>>>> font-size: 120%;
>>>>> font-family: Consolas;
>>>>> }</style>
>>>>>
>>>>> 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 <klonuo at gmail.com> 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 <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
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 4 Jun 2013 21:21:41 +0200
> From: Matthias BUSSONNIER <bussonniermatthias at gmail.com>
> Subject: Re: [IPython-dev] Including javascript from a static library
> To: IPython developers list <ipython-dev at scipy.org>
> 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, <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?
>>       (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 <aron at ahmadia.net>
>> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style
>>         notebooks?
>> To: IPython developers list <ipython-dev at scipy.org>
>> 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:
>> >
>> > <style>.rendered_html {
>> > font-size: 150%;
>> > line-height: 1.3;
>> > }</style>
>> >
>> > <style>.rendered_html li {
>> > line-height: 2;
>> > }</style>
>> >
>> > <style>.rendered_html h1{
>> > margin: 0.5em 0;
>> > line-height: 1.3;
>> > }</style>
>> >
>> > <style>.rendered_html h2{
>> > margin: 0.15em 0;
>> > line-height: 1.2;
>> > }</style>
>> >
>> > <style>.input_prompt {
>> > font-size: 120%;
>> > font-family: Consolas;
>> > }</style>
>> >
>> > <style>.CodeMirror-lines {
>> > font-size: 120%;
>> > font-family: Consolas;
>> > }</style>
>> >
>> > <style>.output_area {
>> > font-size: 120%;
>> > font-family: Consolas;
>> > }</style>
>> >
>> > 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 <klonuo at gmail.com> 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 <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
>> >
>> >
>> -------------- 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 <fperez.net at gmail.com>
>> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style
>>         notebooks?
>> To: IPython developers list <ipython-dev at scipy.org>
>> 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 <aron at ahmadia.net> 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
>> > <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:
>> >>
>> >> <style>.rendered_html {
>> >> font-size: 150%;
>> >> line-height: 1.3;
>> >> }</style>
>> >>
>> >> <style>.rendered_html li {
>> >> line-height: 2;
>> >> }</style>
>> >>
>> >> <style>.rendered_html h1{
>> >> margin: 0.5em 0;
>> >> line-height: 1.3;
>> >> }</style>
>> >>
>> >> <style>.rendered_html h2{
>> >> margin: 0.15em 0;
>> >> line-height: 1.2;
>> >> }</style>
>> >>
>> >> <style>.input_prompt {
>> >> font-size: 120%;
>> >> font-family: Consolas;
>> >> }</style>
>> >>
>> >> <style>.CodeMirror-lines {
>> >> font-size: 120%;
>> >> font-family: Consolas;
>> >> }</style>
>> >>
>> >> <style>.output_area {
>> >> font-size: 120%;
>> >> font-family: Consolas;
>> >> }</style>
>> >>
>> >> 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 <klonuo at gmail.com> 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 <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
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Tue, 4 Jun 2013 23:56:22 +0530
>> From: TARUN GABA <tarun.gaba7 at gmail.com>
>> 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("'""<script src="full path to/three.js"></script>""")
>>
>> At the developers console of my browser I am getting a 503 (service
>> unavailable error)
>>
>> I also tried using ..
>>
>> HTML("""<script src="js/three.js"></script>""")
>>
>> 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 <satra at mit.edu>
>> Subject: Re: [IPython-dev] Including javascript from static library
>> To: IPython developers list <ipython-dev at scipy.org>
>> 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 <tarun.gaba7 at gmail.com> 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("'""<script src="full path to/three.js"></script>""")
>> >
>> > At the developers console of my browser I am getting a 503 (service
>> > unavailable error)
>> >
>> > I also tried using ..
>> >
>> > HTML("""<script src="js/three.js"></script>""")
>> >
>> > 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 <satra at mit.edu>
> Subject: [IPython-dev] slideviewer on heroku
> To: IPython Development list <ipython-dev at scipy.org>
> Message-ID:
> 	<CA+A4wOkxx2xhjR54Dn8UsyUJYNA6yUrb19OWuThp-uSy3MRdtw at mail.gmail.com>
> 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: <CAHAono2XTjwhQnH+qRuBZutb_zxGUg4Vpv4HskmSgA=8Z4eN0A@mail.gmail.com>
References: <CAHAono2XTjwhQnH+qRuBZutb_zxGUg4Vpv4HskmSgA=8Z4eN0A@mail.gmail.com>
Message-ID: <A1F73227-A75E-43AB-8A1B-D7272CA4B1E5@gmail.com>


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: <CAHAreOrmw2an4j9SX=MWkkQVW53xGrSseF-25i=gn6JCa-t-WA@mail.gmail.com>
References: <CAHAreOpNtHm5Un=q7wmdYdVzj5dQBF7O-Zeh3vavoO6uegekzA@mail.gmail.com>
	<CAA-8Ld8OATXY1S-9rSx4uiXrCqbCw7V7JJpicgSbQ=Z676AznQ@mail.gmail.com>
	<CAHAreOp0+_oQSiS-nf0fDXFHAaLvi69R7YsOcPturfT+xPEx9A@mail.gmail.com>
	<F723135E32F9984ABC5B614F28BF2491016C6158@UWIT-MBX06.exchange.washington.edu>
	<1389ADF9-AA6A-495C-A6DD-6ABC3C2BD833@gmail.com>
	<CAPhiW4hXjJ2Xdz0XJD4ovf3kPhmvCHRWLiOF2-+531sDWa4_Ww@mail.gmail.com>
	<CAHAreOrZVLu-9XoF-Mrgaeg3gUyv0ywQeP+eYmTV_cSXhHbB5A@mail.gmail.com>
	<31462BBF-FC81-4A88-8C0A-3C8277492554@gmail.com>
	<CAHAreOrmw2an4j9SX=MWkkQVW53xGrSseF-25i=gn6JCa-t-WA@mail.gmail.com>
Message-ID: <CAPhiW4i2v6hohcoq6R+R80O7pMe4bxqELo-rApNOEJG+7ko5wQ@mail.gmail.com>

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 <fperez.net at gmail.com> wrote:

> thanks!
>
> On Tue, Jun 4, 2013 at 12:00 PM, Matthias BUSSONNIER
> <bussonniermatthias at gmail.com> 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 <aron at ahmadia.net> 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
> >>> <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:
> >>>>
> >>>> <style>.rendered_html {
> >>>> font-size: 150%;
> >>>> line-height: 1.3;
> >>>> }</style>
> >>>>
> >>>> <style>.rendered_html li {
> >>>> line-height: 2;
> >>>> }</style>
> >>>>
> >>>> <style>.rendered_html h1{
> >>>> margin: 0.5em 0;
> >>>> line-height: 1.3;
> >>>> }</style>
> >>>>
> >>>> <style>.rendered_html h2{
> >>>> margin: 0.15em 0;
> >>>> line-height: 1.2;
> >>>> }</style>
> >>>>
> >>>> <style>.input_prompt {
> >>>> font-size: 120%;
> >>>> font-family: Consolas;
> >>>> }</style>
> >>>>
> >>>> <style>.CodeMirror-lines {
> >>>> font-size: 120%;
> >>>> font-family: Consolas;
> >>>> }</style>
> >>>>
> >>>> <style>.output_area {
> >>>> font-size: 120%;
> >>>> font-family: Consolas;
> >>>> }</style>
> >>>>
> >>>> 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 <klonuo at gmail.com> 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.python.org/pipermail/ipython-dev/attachments/20130605/dc008f63/attachment.html>

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

    <Location /ipython1>
        Order allow,deny
        Allow from All  
        ProxyPassReverse /
        #ProxyHTMLExtended On
        ProxyHTMLURLMap / /ipython1/ c
        SetOutputFilter proxy-html
    </Location>

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 :


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>MySite</title>
<META name="description" content="MySite"><META name="keywords" content="MySite">
</head>
<frameset rows="100%,*" border="0">
<frame src="http://LOCALNETWORK-IP:USER_PORT" frameborder="0" />
<frame frameborder="0" noresize />
</frameset>
</html>
###



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130607/a97783df/attachment.html>

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: <E357143C-3F6F-498F-A3BF-991E5BC3CF94@gmail.com>

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
> 
>     <Location /ipython1>
>         Order allow,deny
>         Allow from All  
>         ProxyPassReverse /
>         #ProxyHTMLExtended On
>         ProxyHTMLURLMap / /ipython1/ c
>         SetOutputFilter proxy-html
>     </Location>
> 
> 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 :
> 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <title>MySite</title>
> <META name="description" content="MySite"><META name="keywords" content="MySite">
> </head>
> <frameset rows="100%,*" border="0">
> <frame src="http://LOCALNETWORK-IP:USER_PORT" frameborder="0" />
> <frame frameborder="0" noresize />
> </frameset>
> </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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130607/48603034/attachment.html>

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: <E357143C-3F6F-498F-A3BF-991E5BC3CF94@gmail.com>
References: <9D8DE04D-25B5-43D1-9D51-9A7F99F9F933@gmail.com>
	<E357143C-3F6F-498F-A3BF-991E5BC3CF94@gmail.com>
Message-ID: <BFE2993B-5F93-42B0-A739-51CC833B0E44@gmail.com>

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 <bussonniermatthias at gmail.com> 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
>> 
>>     <Location /ipython1>
>>         Order allow,deny
>>         Allow from All  
>>         ProxyPassReverse /
>>         #ProxyHTMLExtended On
>>         ProxyHTMLURLMap / /ipython1/ c
>>         SetOutputFilter proxy-html
>>     </Location>
>> 
>> 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 :
>> 
>> 
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>> "http://www.w3.org/TR/html4/strict.dtd">
>> <html>
>> <head>
>> <title>MySite</title>
>> <META name="description" content="MySite"><META name="keywords" content="MySite">
>> </head>
>> <frameset rows="100%,*" border="0">
>> <frame src="http://LOCALNETWORK-IP:USER_PORT" frameborder="0" />
>> <frame frameborder="0" noresize />
>> </frameset>
>> </html>
>> ###
>> 
>> 
>> 
>> _______________________________________________
>> 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.python.org/pipermail/ipython-dev/attachments/20130607/4ddd8519/attachment.html>

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: <CAHAono0tFrtRZqsguZtZBzVvKcUeRyUyG3EZ0PcRMn-E3XiS-w@mail.gmail.com>

On Thu, Jun 6, 2013 at 10:30 PM, <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: 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 <bussonniermatthias at gmail.com>
> Subject: Re: [IPython-dev] Including javascript from a static library
> To: IPython developers list <ipython-dev at scipy.org>
> Message-ID: <A1F73227-A75E-43AB-8A1B-D7272CA4B1E5 at gmail.com>
> 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("""<script src="files/js/myfile.js"></script>""")
what I needed to do:
*display(*HTML("""<script src="files/js/myfile.js"></script>"""))
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 <aron at ahmadia.net>
> Subject: Re: [IPython-dev] A good CSS snippet for better talk-style
>         notebooks?
> To: IPython developers list <ipython-dev at scipy.org>
> 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 <fperez.net at gmail.com>
> wrote:
>
> > thanks!
> >
> > On Tue, Jun 4, 2013 at 12:00 PM, Matthias BUSSONNIER
> > <bussonniermatthias at gmail.com> 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 <aron at ahmadia.net>
> 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
> > >>> <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:
> > >>>>
> > >>>> <style>.rendered_html {
> > >>>> font-size: 150%;
> > >>>> line-height: 1.3;
> > >>>> }</style>
> > >>>>
> > >>>> <style>.rendered_html li {
> > >>>> line-height: 2;
> > >>>> }</style>
> > >>>>
> > >>>> <style>.rendered_html h1{
> > >>>> margin: 0.5em 0;
> > >>>> line-height: 1.3;
> > >>>> }</style>
> > >>>>
> > >>>> <style>.rendered_html h2{
> > >>>> margin: 0.15em 0;
> > >>>> line-height: 1.2;
> > >>>> }</style>
> > >>>>
> > >>>> <style>.input_prompt {
> > >>>> font-size: 120%;
> > >>>> font-family: Consolas;
> > >>>> }</style>
> > >>>>
> > >>>> <style>.CodeMirror-lines {
> > >>>> font-size: 120%;
> > >>>> font-family: Consolas;
> > >>>> }</style>
> > >>>>
> > >>>> <style>.output_area {
> > >>>> font-size: 120%;
> > >>>> font-family: Consolas;
> > >>>> }</style>
> > >>>>
> > >>>> 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 <klonuo at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130607/6cbc15f8/attachment.html>

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>
	<E357143C-3F6F-498F-A3BF-991E5BC3CF94@gmail.com>
	<313537B2-C7EF-47E5-A149-B262A0869061@gmail.com>
Message-ID: <F4F9828A-E0AC-4B7A-BC4B-A6B795AD2788@gmail.com>

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 <massimodisasha at gmail.com> 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 <bussonniermatthias at gmail.com> 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
>>> 
>>>     <Location /ipython1>
>>>         Order allow,deny
>>>         Allow from All  
>>>         ProxyPassReverse /
>>>         #ProxyHTMLExtended On
>>>         ProxyHTMLURLMap / /ipython1/ c
>>>         SetOutputFilter proxy-html
>>>     </Location>
>>> 
>>> 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 :
>>> 
>>> 
>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>>> "http://www.w3.org/TR/html4/strict.dtd">
>>> <html>
>>> <head>
>>> <title>MySite</title>
>>> <META name="description" content="MySite"><META name="keywords" content="MySite">
>>> </head>
>>> <frameset rows="100%,*" border="0">
>>> <frame src="http://LOCALNETWORK-IP:USER_PORT" frameborder="0" />
>>> <frame frameborder="0" noresize />
>>> </frameset>
>>> </html>
>>> ###
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> 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.python.org/pipermail/ipython-dev/attachments/20130607/894152f5/attachment.html>

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: <AA0AB54A-A855-451B-A3DE-9E38DDA82C90@gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
	<E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
	<CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>
	<AA0AB54A-A855-451B-A3DE-9E38DDA82C90@gmail.com>
Message-ID: <CANNq6FmFoSjTYC=Y36+jopHRh7YCj31YVLm20pv50c9R9HdzMQ@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130608/195c99a1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SVG test.ipynb
Type: application/octet-stream
Size: 98440 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130608/195c99a1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_demo.svg
Type: image/svg+xml
Size: 104838 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130608/195c99a1/attachment.svg>

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: <CANNq6FmFoSjTYC=Y36+jopHRh7YCj31YVLm20pv50c9R9HdzMQ@mail.gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
	<E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
	<CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>
	<AA0AB54A-A855-451B-A3DE-9E38DDA82C90@gmail.com>
	<CANNq6FmFoSjTYC=Y36+jopHRh7YCj31YVLm20pv50c9R9HdzMQ@mail.gmail.com>
Message-ID: <CB0230D5-FA69-49A8-81E9-B27FFE40E45A@gmail.com>

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 <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
> <SVG test.ipynb><plot_demo.svg>_______________________________________________
> 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.python.org/pipermail/ipython-dev/attachments/20130608/6da2f482/attachment.html>

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: <CB0230D5-FA69-49A8-81E9-B27FFE40E45A@gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
	<E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
	<CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>
	<AA0AB54A-A855-451B-A3DE-9E38DDA82C90@gmail.com>
	<CANNq6FmFoSjTYC=Y36+jopHRh7YCj31YVLm20pv50c9R9HdzMQ@mail.gmail.com>
	<CB0230D5-FA69-49A8-81E9-B27FFE40E45A@gmail.com>
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: <CB0230D5-FA69-49A8-81E9-B27FFE40E45A@gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
	<E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
	<CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>
	<AA0AB54A-A855-451B-A3DE-9E38DDA82C90@gmail.com>
	<CANNq6FmFoSjTYC=Y36+jopHRh7YCj31YVLm20pv50c9R9HdzMQ@mail.gmail.com>
	<CB0230D5-FA69-49A8-81E9-B27FFE40E45A@gmail.com>
Message-ID: <CANNq6Fn3qcVeU_LD+Uf+4YaAjQwNA3MoLnLaMoJ3566OFtn-_g@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130608/3dae4c94/attachment.html>

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: <CADDwiVC+u+KYZcicKSpTYYowGoGJSQ-0jDUmixPiFJd3wznQ8A@mail.gmail.com>

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: <CADDwiVC+u+KYZcicKSpTYYowGoGJSQ-0jDUmixPiFJd3wznQ8A@mail.gmail.com>
References: <CADDwiVC+u+KYZcicKSpTYYowGoGJSQ-0jDUmixPiFJd3wznQ8A@mail.gmail.com>
Message-ID: <CACpqBg10CLGqx4QfhgbOw+cUDkXYWn1kk5TAz5BrtOUAEmFNzQ@mail.gmail.com>

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 <ondrej.certik at gmail.com>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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130608/160c2d07/attachment.html>

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: <CACpqBg10CLGqx4QfhgbOw+cUDkXYWn1kk5TAz5BrtOUAEmFNzQ@mail.gmail.com>
References: <CADDwiVC+u+KYZcicKSpTYYowGoGJSQ-0jDUmixPiFJd3wznQ8A@mail.gmail.com>
	<CACpqBg10CLGqx4QfhgbOw+cUDkXYWn1kk5TAz5BrtOUAEmFNzQ@mail.gmail.com>
Message-ID: <CADDwiVD=yDubbUOVYTwm8yEiFeq5+or_NGu4ynd1fYEyxN1cjg@mail.gmail.com>

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
<jakevdp at cs.washington.edu> 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 <ondrej.certik at gmail.com>
> 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: <CADDwiVD=yDubbUOVYTwm8yEiFeq5+or_NGu4ynd1fYEyxN1cjg@mail.gmail.com>
References: <CADDwiVC+u+KYZcicKSpTYYowGoGJSQ-0jDUmixPiFJd3wznQ8A@mail.gmail.com>
	<CACpqBg10CLGqx4QfhgbOw+cUDkXYWn1kk5TAz5BrtOUAEmFNzQ@mail.gmail.com>
	<CADDwiVD=yDubbUOVYTwm8yEiFeq5+or_NGu4ynd1fYEyxN1cjg@mail.gmail.com>
Message-ID: <CADwqtCO0rBjsAO7EYNqKTQnKv7eErvgFhufHHbeDoZEbM18EHA@mail.gmail.com>

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 <ondrej.certik at gmail.com>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
> <jakevdp at cs.washington.edu> 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 <ondrej.certik at gmail.com>
> > 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130609/7994a593/attachment.html>

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: <CADwqtCO0rBjsAO7EYNqKTQnKv7eErvgFhufHHbeDoZEbM18EHA@mail.gmail.com>
References: <CADDwiVC+u+KYZcicKSpTYYowGoGJSQ-0jDUmixPiFJd3wznQ8A@mail.gmail.com>
	<CACpqBg10CLGqx4QfhgbOw+cUDkXYWn1kk5TAz5BrtOUAEmFNzQ@mail.gmail.com>
	<CADDwiVD=yDubbUOVYTwm8yEiFeq5+or_NGu4ynd1fYEyxN1cjg@mail.gmail.com>
	<CADwqtCO0rBjsAO7EYNqKTQnKv7eErvgFhufHHbeDoZEbM18EHA@mail.gmail.com>
Message-ID: <CADDwiVBUoDAnZ+9EasOX-W0RsmQdkJD+jbZvE5NC7wkx_r_AVw@mail.gmail.com>

Gabriel,

On Sun, Jun 9, 2013 at 10:17 PM, Gabriel Becker <gmbecker at ucdavis.edu> 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: <CADDwiVBUoDAnZ+9EasOX-W0RsmQdkJD+jbZvE5NC7wkx_r_AVw@mail.gmail.com>
References: <CADDwiVC+u+KYZcicKSpTYYowGoGJSQ-0jDUmixPiFJd3wznQ8A@mail.gmail.com>
	<CACpqBg10CLGqx4QfhgbOw+cUDkXYWn1kk5TAz5BrtOUAEmFNzQ@mail.gmail.com>
	<CADDwiVD=yDubbUOVYTwm8yEiFeq5+or_NGu4ynd1fYEyxN1cjg@mail.gmail.com>
	<CADwqtCO0rBjsAO7EYNqKTQnKv7eErvgFhufHHbeDoZEbM18EHA@mail.gmail.com>
	<CADDwiVBUoDAnZ+9EasOX-W0RsmQdkJD+jbZvE5NC7wkx_r_AVw@mail.gmail.com>
Message-ID: <CAH4pYpQ5y6itozhMEyxDzeZ5J_BrvZiG4nCQzkzsKqhbzT83-g@mail.gmail.com>

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 <ondrej.certik at gmail.com> wrote:
> Gabriel,
>
> On Sun, Jun 9, 2013 at 10:17 PM, Gabriel Becker <gmbecker at ucdavis.edu> 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: <CAH4pYpQuQg7FrnY61=qejvbV4FcwBycm3ubKCtEaUDySKDExkw@mail.gmail.com>

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: <CAHNn8BUYiUjAzaSzzVdMuJTe5xGKKJPzmM=o8+=98=OaHmOdfg@mail.gmail.com>

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 <ccordoba12 at gmail.com>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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130610/b35a4804/attachment.html>

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: <CAHNn8BUYiUjAzaSzzVdMuJTe5xGKKJPzmM=o8+=98=OaHmOdfg@mail.gmail.com>
References: <51B67B57.8050201@gmail.com>
	<CAHNn8BUYiUjAzaSzzVdMuJTe5xGKKJPzmM=o8+=98=OaHmOdfg@mail.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 <ccordoba12 at gmail.com 
> <mailto:ccordoba12 at gmail.com>> 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 <mailto: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.python.org/pipermail/ipython-dev/attachments/20130610/b6fdcfe0/attachment.html>

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>
	<CAHNn8BUYiUjAzaSzzVdMuJTe5xGKKJPzmM=o8+=98=OaHmOdfg@mail.gmail.com>
	<51B6805E.9020105@gmail.com>
Message-ID: <CAHNn8BXHCMUnPC7q9v+BOorWUT834MvCNvXpEBvnA7vH7wvVAA@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130610/112c3fcf/attachment.html>

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: <CA+A4wOkGeCGboLd_4xCD9=Po36gpAHSobmkLYQZ7brULzBKsBw@mail.gmail.com>

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).

<table>
<tr>
<td>
sth1
</td>
<td>
sth2</td>
</tr>
</table>
```

here are the things that i have tried:

1. <table style="border:0px">

2. <script> table {border: 0px} </script> (this actually gets stripped out)

cheers,

satra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130612/a46b356d/attachment.html>

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: <CA+A4wOkGeCGboLd_4xCD9=Po36gpAHSobmkLYQZ7brULzBKsBw@mail.gmail.com>
References: <CA+A4wOkGeCGboLd_4xCD9=Po36gpAHSobmkLYQZ7brULzBKsBw@mail.gmail.com>
Message-ID: <CANJQusXmWE4z0R_mmMvMnOsTZnP1NU9Nw=-=KjyLRRYCVoCBfg@mail.gmail.com>

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).
>
> <table>
> <tr>
> <td>
> sth1
> </td>
> <td>
> sth2</td>
> </tr>
> </table>
> ```
>
> here are the things that i have tried:
>
> 1. <table style="border:0px">
>
> 2. <script> table {border: 0px} </script> (this actually gets stripped out)
>
> cheers,
>
> satra
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130612/50b5688d/attachment.html>

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: <CANJQusXmWE4z0R_mmMvMnOsTZnP1NU9Nw=-=KjyLRRYCVoCBfg@mail.gmail.com>
References: <CA+A4wOkGeCGboLd_4xCD9=Po36gpAHSobmkLYQZ7brULzBKsBw@mail.gmail.com>
	<CANJQusXmWE4z0R_mmMvMnOsTZnP1NU9Nw=-=KjyLRRYCVoCBfg@mail.gmail.com>
Message-ID: <CA+A4wOn1cMfLxCnVVDVshqmo3Eewo1MEdWgXiBGCtsd28cCyHQ@mail.gmail.com>

i did mean to write style.

<style type="text/css">
table tr td {border: 0px;}
</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).
>>
>> <table>
>> <tr>
>> <td>
>> sth1
>> </td>
>> <td>
>> sth2</td>
>> </tr>
>> </table>
>> ```
>>
>> here are the things that i have tried:
>>
>> 1. <table style="border:0px">
>>
>> 2. <script> table {border: 0px} </script> (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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130612/540f1918/attachment.html>

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: <CA+A4wOn1cMfLxCnVVDVshqmo3Eewo1MEdWgXiBGCtsd28cCyHQ@mail.gmail.com>
References: <CA+A4wOkGeCGboLd_4xCD9=Po36gpAHSobmkLYQZ7brULzBKsBw@mail.gmail.com>
	<CANJQusXmWE4z0R_mmMvMnOsTZnP1NU9Nw=-=KjyLRRYCVoCBfg@mail.gmail.com>
	<CA+A4wOn1cMfLxCnVVDVshqmo3Eewo1MEdWgXiBGCtsd28cCyHQ@mail.gmail.com>
Message-ID: <F35462C9-0D4E-419D-BFB9-4317A865DF1C@gmail.com>

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.

<style>
.rendered_html table{border:0px}
.rendered_html tr{border:0px}
.rendered_html td{border:0px}
</style>

<table>
<tr>
<td>
sth1
</td>
<td>
sth2</td>
</tr>
</table>


Le 12 juin 2013 ? 17:52, Satrajit Ghosh a ?crit :

> i did mean to write style.
> 
> <style type="text/css">
> table tr td {border: 0px;} 
> </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).
> 
> <table>
> <tr>
> <td>
> sth1
> </td>
> <td>
> sth2</td>
> </tr>
> </table>
> ```
> 
> here are the things that i have tried:
> 
> 1. <table style="border:0px">
> 
> 2. <script> table {border: 0px} </script> (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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130612/b297dcb5/attachment.html>

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: <F35462C9-0D4E-419D-BFB9-4317A865DF1C@gmail.com>
References: <CA+A4wOkGeCGboLd_4xCD9=Po36gpAHSobmkLYQZ7brULzBKsBw@mail.gmail.com>
	<CANJQusXmWE4z0R_mmMvMnOsTZnP1NU9Nw=-=KjyLRRYCVoCBfg@mail.gmail.com>
	<CA+A4wOn1cMfLxCnVVDVshqmo3Eewo1MEdWgXiBGCtsd28cCyHQ@mail.gmail.com>
	<F35462C9-0D4E-419D-BFB9-4317A865DF1C@gmail.com>
Message-ID: <CA+A4wO=FXdr2+-nBMM4KLasRfAT-SJdEzhjEOB==RJWfMhYA=w@mail.gmail.com>

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.
>
> <style>
> .rendered_html table{border:0px}
> .rendered_html tr{border:0px}
> .rendered_html td{border:0px}
> </style>
>
> <table>
> <tr>
> <td>
> sth1
> </td>
> <td>
> sth2</td>
> </tr>
> </table>
>
>
> Le 12 juin 2013 ? 17:52, Satrajit Ghosh a ?crit :
>
> i did mean to write style.
>
> <style type="text/css">
> table tr td {border: 0px;}
> </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).
>>>
>>> <table>
>>> <tr>
>>> <td>
>>> sth1
>>> </td>
>>> <td>
>>> sth2</td>
>>> </tr>
>>> </table>
>>> ```
>>>
>>> here are the things that i have tried:
>>>
>>> 1. <table style="border:0px">
>>>
>>> 2. <script> table {border: 0px} </script> (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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130612/7a5b2845/attachment.html>

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: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>

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: <CAHNn8BXSaFX-fX1ttfDtqGcY50Gz8X8_+hE9RPgiyDYaWtdaXA@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130615/119e5b3f/attachment.html>

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: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
Message-ID: <CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>

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


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: <CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
	<CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
Message-ID: <CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130615/ae1567f7/attachment.html>

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: <CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
	<CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
	<CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>
Message-ID: <CAH4pYpR+uOjgsmDirfdEdBX4uVEs+XaUx0HfMFnAzk9KDG=kHw@mail.gmail.com>

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 <moorepants at gmail.com> 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


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: <CAH4pYpR+uOjgsmDirfdEdBX4uVEs+XaUx0HfMFnAzk9KDG=kHw@mail.gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
	<CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
	<CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>
	<CAH4pYpR+uOjgsmDirfdEdBX4uVEs+XaUx0HfMFnAzk9KDG=kHw@mail.gmail.com>
Message-ID: <CAP7f1Ah_V7Re62Exnykh=ieWBOqqPANafcQeJtRqa+5wUw3sKg@mail.gmail.com>

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 <ellisonbg at gmail.com> 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 <moorepants at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130615/31eef50d/attachment.html>

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: <CAP7f1Ah_V7Re62Exnykh=ieWBOqqPANafcQeJtRqa+5wUw3sKg@mail.gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
	<CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
	<CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>
	<CAH4pYpR+uOjgsmDirfdEdBX4uVEs+XaUx0HfMFnAzk9KDG=kHw@mail.gmail.com>
	<CAP7f1Ah_V7Re62Exnykh=ieWBOqqPANafcQeJtRqa+5wUw3sKg@mail.gmail.com>
Message-ID: <CAH4pYpQ_OXxnCXVLTnXTJ0xmrL8JJwnAqpZSJK45YO-ZkOuxLA@mail.gmail.com>

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 <moorepants at gmail.com> 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 <ellisonbg at gmail.com> 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 <moorepants at gmail.com> 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


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: <CAP7f1Ah_V7Re62Exnykh=ieWBOqqPANafcQeJtRqa+5wUw3sKg@mail.gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
	<CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
	<CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>
	<CAH4pYpR+uOjgsmDirfdEdBX4uVEs+XaUx0HfMFnAzk9KDG=kHw@mail.gmail.com>
	<CAP7f1Ah_V7Re62Exnykh=ieWBOqqPANafcQeJtRqa+5wUw3sKg@mail.gmail.com>
Message-ID: <D18F134B-C352-4AC8-ABB2-EBFF3D6085F7@gmail.com>


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: <CANNq6Fn3qcVeU_LD+Uf+4YaAjQwNA3MoLnLaMoJ3566OFtn-_g@mail.gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
	<E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
	<CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>
	<AA0AB54A-A855-451B-A3DE-9E38DDA82C90@gmail.com>
	<CANNq6FmFoSjTYC=Y36+jopHRh7YCj31YVLm20pv50c9R9HdzMQ@mail.gmail.com>
	<CB0230D5-FA69-49A8-81E9-B27FFE40E45A@gmail.com>
	<CANNq6Fn3qcVeU_LD+Uf+4YaAjQwNA3MoLnLaMoJ3566OFtn-_g@mail.gmail.com>
Message-ID: <CANNq6Fkf-j5qGO0uyjUw0-joeQt4NMkUo6XCuW9-TWB9htJFHw@mail.gmail.com>

On Sat, Jun 8, 2013 at 11:36 AM, Benjamin Root <ben.root at ou.edu> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130615/47d3d5f0/attachment.html>

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: <CANNq6Fkf-j5qGO0uyjUw0-joeQt4NMkUo6XCuW9-TWB9htJFHw@mail.gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
	<E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
	<CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>
	<AA0AB54A-A855-451B-A3DE-9E38DDA82C90@gmail.com>
	<CANNq6FmFoSjTYC=Y36+jopHRh7YCj31YVLm20pv50c9R9HdzMQ@mail.gmail.com>
	<CB0230D5-FA69-49A8-81E9-B27FFE40E45A@gmail.com>
	<CANNq6Fn3qcVeU_LD+Uf+4YaAjQwNA3MoLnLaMoJ3566OFtn-_g@mail.gmail.com>
	<CANNq6Fkf-j5qGO0uyjUw0-joeQt4NMkUo6XCuW9-TWB9htJFHw@mail.gmail.com>
Message-ID: <A3CC10B5-5692-46E6-B577-1AC188FEC21C@gmail.com>


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: <A3CC10B5-5692-46E6-B577-1AC188FEC21C@gmail.com>
References: <CANNq6FnrNyx1+a1+V58F+CeiFgekSPOdPm=iMvBMMxhjNr6T6w@mail.gmail.com>
	<CANNq6Fm5KRZ=NWJV4eT8bf_n3SPBU49yc6qYqhTa2HFpcEgQYA@mail.gmail.com>
	<CANNq6F=BinJ2UP9Qcx-YitxKFcnrXOgty5puMEnw4Xxy6roZaQ@mail.gmail.com>
	<E825BE06-DEDA-4C37-96AF-5185699C09CA@gmail.com>
	<CANNq6FnffChvbYpm-ZSG9o=jAbO0BZLouNZFXv62PbdrGEEioQ@mail.gmail.com>
	<AA0AB54A-A855-451B-A3DE-9E38DDA82C90@gmail.com>
	<CANNq6FmFoSjTYC=Y36+jopHRh7YCj31YVLm20pv50c9R9HdzMQ@mail.gmail.com>
	<CB0230D5-FA69-49A8-81E9-B27FFE40E45A@gmail.com>
	<CANNq6Fn3qcVeU_LD+Uf+4YaAjQwNA3MoLnLaMoJ3566OFtn-_g@mail.gmail.com>
	<CANNq6Fkf-j5qGO0uyjUw0-joeQt4NMkUo6XCuW9-TWB9htJFHw@mail.gmail.com>
	<A3CC10B5-5692-46E6-B577-1AC188FEC21C@gmail.com>
Message-ID: <CANNq6Fm7AHr5e1qOHwk5VPNU52GJLzuJctw+sgsPm23B3a1=JA@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130615/766277b6/attachment.html>

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: <CAKgW=6KGxHOQv24TaJThhENOinmWWu8oTJPY2xo1fkvrPbY0hA@mail.gmail.com>
References: <510EC481.5060604@gmail.com> <51AA64B4.4090707@gmail.com>
	<CAKgW=6KGxHOQv24TaJThhENOinmWWu8oTJPY2xo1fkvrPbY0hA@mail.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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130616/fb97950a/attachment.png>

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>
	<CAKgW=6KGxHOQv24TaJThhENOinmWWu8oTJPY2xo1fkvrPbY0hA@mail.gmail.com>
	<51BE156F.4060907@gmail.com>
Message-ID: <CAKgW=6LwuZVhMLz1Jes23Skmk39Y6q=ZMKkX0emdEu6wg5Qujw@mail.gmail.com>

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.
<roberto.colistete at gmail.com> 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: <CAKgW=6LwuZVhMLz1Jes23Skmk39Y6q=ZMKkX0emdEu6wg5Qujw@mail.gmail.com>
References: <510EC481.5060604@gmail.com> <51AA64B4.4090707@gmail.com>
	<CAKgW=6KGxHOQv24TaJThhENOinmWWu8oTJPY2xo1fkvrPbY0hA@mail.gmail.com>
	<51BE156F.4060907@gmail.com>
	<CAKgW=6LwuZVhMLz1Jes23Skmk39Y6q=ZMKkX0emdEu6wg5Qujw@mail.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.
> <roberto.colistete at gmail.com> 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: <CAH4pYpQ_OXxnCXVLTnXTJ0xmrL8JJwnAqpZSJK45YO-ZkOuxLA@mail.gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
	<CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
	<CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>
	<CAH4pYpR+uOjgsmDirfdEdBX4uVEs+XaUx0HfMFnAzk9KDG=kHw@mail.gmail.com>
	<CAP7f1Ah_V7Re62Exnykh=ieWBOqqPANafcQeJtRqa+5wUw3sKg@mail.gmail.com>
	<CAH4pYpQ_OXxnCXVLTnXTJ0xmrL8JJwnAqpZSJK45YO-ZkOuxLA@mail.gmail.com>
Message-ID: <CAP7f1Aisa6BCTn0nXm+Q4UOjnx5+wN2VTH10N+7Svz=Sr-Pm-w@mail.gmail.com>

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 <ellisonbg at gmail.com> 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 <moorepants at gmail.com> 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 <ellisonbg at gmail.com>
> 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 <moorepants at gmail.com>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130616/d07091e2/attachment.html>

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: <D18F134B-C352-4AC8-ABB2-EBFF3D6085F7@gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
	<CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
	<CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>
	<CAH4pYpR+uOjgsmDirfdEdBX4uVEs+XaUx0HfMFnAzk9KDG=kHw@mail.gmail.com>
	<CAP7f1Ah_V7Re62Exnykh=ieWBOqqPANafcQeJtRqa+5wUw3sKg@mail.gmail.com>
	<D18F134B-C352-4AC8-ABB2-EBFF3D6085F7@gmail.com>
Message-ID: <CAP7f1AjRHQUnqXNWRC8kgvu=RpXA=GKqSimz-v4KbRTTOynQDQ@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130616/690e5dd4/attachment.html>

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: <CAP7f1Aisa6BCTn0nXm+Q4UOjnx5+wN2VTH10N+7Svz=Sr-Pm-w@mail.gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
	<CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
	<CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>
	<CAH4pYpR+uOjgsmDirfdEdBX4uVEs+XaUx0HfMFnAzk9KDG=kHw@mail.gmail.com>
	<CAP7f1Ah_V7Re62Exnykh=ieWBOqqPANafcQeJtRqa+5wUw3sKg@mail.gmail.com>
	<CAH4pYpQ_OXxnCXVLTnXTJ0xmrL8JJwnAqpZSJK45YO-ZkOuxLA@mail.gmail.com>
	<CAP7f1Aisa6BCTn0nXm+Q4UOjnx5+wN2VTH10N+7Svz=Sr-Pm-w@mail.gmail.com>
Message-ID: <CAH4pYpTxxJZ4_HvfwV4yPTZ_R3sHXef85Crj01YPRaW5WvH5+g@mail.gmail.com>

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 <ellisonbg at gmail.com> 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 <moorepants at gmail.com> 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 <ellisonbg at gmail.com>
>> > 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 <moorepants at gmail.com>
>> >> 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


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: <CAH4pYpTxxJZ4_HvfwV4yPTZ_R3sHXef85Crj01YPRaW5WvH5+g@mail.gmail.com>
References: <CAHAono12ZA2W6PKhvU=6yP0exEC4t7K=X_raiqTu+2n_ceObcQ@mail.gmail.com>
	<CAH4pYpRbeGHRnedwHVQnu3cXnwmvNaL1FRKCuCgCP+zJjvkU3A@mail.gmail.com>
	<CAP7f1AgH+vCKn-jUFGaV=J4kCKn5QCtLJpnwTVLRA7jUhit5dw@mail.gmail.com>
	<CAH4pYpR+uOjgsmDirfdEdBX4uVEs+XaUx0HfMFnAzk9KDG=kHw@mail.gmail.com>
	<CAP7f1Ah_V7Re62Exnykh=ieWBOqqPANafcQeJtRqa+5wUw3sKg@mail.gmail.com>
	<CAH4pYpQ_OXxnCXVLTnXTJ0xmrL8JJwnAqpZSJK45YO-ZkOuxLA@mail.gmail.com>
	<CAP7f1Aisa6BCTn0nXm+Q4UOjnx5+wN2VTH10N+7Svz=Sr-Pm-w@mail.gmail.com>
	<CAH4pYpTxxJZ4_HvfwV4yPTZ_R3sHXef85Crj01YPRaW5WvH5+g@mail.gmail.com>
Message-ID: <CAP7f1AiwA+MC=vPucyd2LSLxcgtffv0HwR-YM2oFRuFS2cvS8g@mail.gmail.com>

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 <ellisonbg at gmail.com> 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 <ellisonbg at gmail.com>
> 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 <moorepants at gmail.com>
> 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 <ellisonbg at gmail.com>
> >> > 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 <moorepants at gmail.com>
> >> >> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130616/ae40bfa2/attachment.html>

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: <F216DA98-5360-468D-97F3-4F2F0B7880AE@wolever.net>


On 2013-06-17, at 12:06 PM, J?rgen Stenarson <jorgen.stenarson at kroywen.se> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130617/9edebd6a/attachment.html>

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: <CAMjgkScRJKEyp5=eMiiWvfmTuTb7qHOxdjc3qV+TRm412VqUWQ@mail.gmail.com>

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<http://nbviewer.ipython.org/2352771> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130617/c0b97e38/attachment.html>

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: <CAMjgkScRJKEyp5=eMiiWvfmTuTb7qHOxdjc3qV+TRm412VqUWQ@mail.gmail.com>
References: <CAMjgkScRJKEyp5=eMiiWvfmTuTb7qHOxdjc3qV+TRm412VqUWQ@mail.gmail.com>
Message-ID: <CAH4pYpQptycCA-111zEiiiYDd7Wk12niOg_34F9-eC7eKYLp+Q@mail.gmail.com>

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 <hroe.lee at gmail.com> 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: <CAH4pYpQptycCA-111zEiiiYDd7Wk12niOg_34F9-eC7eKYLp+Q@mail.gmail.com>
References: <CAMjgkScRJKEyp5=eMiiWvfmTuTb7qHOxdjc3qV+TRm412VqUWQ@mail.gmail.com>
	<CAH4pYpQptycCA-111zEiiiYDd7Wk12niOg_34F9-eC7eKYLp+Q@mail.gmail.com>
Message-ID: <CAPk-6T4URvkABArJg09pjerhKfA7ysy3UF+8gfiw4GKObfQwaQ@mail.gmail.com>

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 <ellisonbg at gmail.com> 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 <hroe.lee at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130617/7b50ef8b/attachment.html>

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: <CAPk-6T4URvkABArJg09pjerhKfA7ysy3UF+8gfiw4GKObfQwaQ@mail.gmail.com>
References: <CAMjgkScRJKEyp5=eMiiWvfmTuTb7qHOxdjc3qV+TRm412VqUWQ@mail.gmail.com>
	<CAH4pYpQptycCA-111zEiiiYDd7Wk12niOg_34F9-eC7eKYLp+Q@mail.gmail.com>
	<CAPk-6T4URvkABArJg09pjerhKfA7ysy3UF+8gfiw4GKObfQwaQ@mail.gmail.com>
Message-ID: <CAMjgkScYDZsd5jWL8rHJoiWRYu+T_b-4Rxivc2dCfm2suGPbVA@mail.gmail.com>

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 <scopatz at gmail.com> 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 <ellisonbg at gmail.com>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 <hroe.lee at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130617/e0852f90/attachment.html>

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: <CAMjgkScYDZsd5jWL8rHJoiWRYu+T_b-4Rxivc2dCfm2suGPbVA@mail.gmail.com>
References: <CAMjgkScRJKEyp5=eMiiWvfmTuTb7qHOxdjc3qV+TRm412VqUWQ@mail.gmail.com>
	<CAH4pYpQptycCA-111zEiiiYDd7Wk12niOg_34F9-eC7eKYLp+Q@mail.gmail.com>
	<CAPk-6T4URvkABArJg09pjerhKfA7ysy3UF+8gfiw4GKObfQwaQ@mail.gmail.com>
	<CAMjgkScYDZsd5jWL8rHJoiWRYu+T_b-4Rxivc2dCfm2suGPbVA@mail.gmail.com>
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 <scopatz at gmail.com> 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 <ellisonbg at gmail.com> 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 <hroe.lee at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130618/40c6fe58/attachment.html>

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: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130618/2480f945/attachment.html>

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: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>
References: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>
Message-ID: <CAPhiW4iM99XRCsWRZgATMwzBOfby9jav5AZ3KaueRsYpzZWsyw@mail.gmail.com>

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 <rpmuller at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130618/358cc61d/attachment.html>

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: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>
References: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>
Message-ID: <CAOvn4qgnHco+nfHze5VnqWL9fQ0zKftw4BNKPORXnoFjQ+oYKA@mail.gmail.com>

On 18 June 2013 17:48, Rick Muller <rpmuller at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130618/a4ac0297/attachment.html>

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: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>
References: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>
Message-ID: <CAH4pYpS_9=ymZiK3t0iYW6dk0mQFfvwxMGdNvTQj1EssttCcBw@mail.gmail.com>

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 <rpmuller at gmail.com> 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: <CAH-HCWWfFirp29TSfan4D06oNK-Ug=VHE--3C4PObuQMqpZ-7g@mail.gmail.com>

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: <CAOvn4qgnHco+nfHze5VnqWL9fQ0zKftw4BNKPORXnoFjQ+oYKA@mail.gmail.com>
References: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>
	<CAOvn4qgnHco+nfHze5VnqWL9fQ0zKftw4BNKPORXnoFjQ+oYKA@mail.gmail.com>
Message-ID: <51C0963B.4040204@ucsf.edu>

On 06/18/2013 09:58 AM, Thomas Kluyver wrote:
> On 18 June 2013 17:48, Rick Muller <rpmuller at gmail.com> 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: <CAH-HCWWfFirp29TSfan4D06oNK-Ug=VHE--3C4PObuQMqpZ-7g@mail.gmail.com>
References: <CAH-HCWWfFirp29TSfan4D06oNK-Ug=VHE--3C4PObuQMqpZ-7g@mail.gmail.com>
Message-ID: <CAHAreOpTTcd91car6TuJ7iMQVgWAzUYjCR3u3kkPJRnBOKF7TA@mail.gmail.com>

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 <samjnaa at gmail.com> 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: <CAH4pYpS_9=ymZiK3t0iYW6dk0mQFfvwxMGdNvTQj1EssttCcBw@mail.gmail.com>
References: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>
	<CAH4pYpS_9=ymZiK3t0iYW6dk0mQFfvwxMGdNvTQj1EssttCcBw@mail.gmail.com>
Message-ID: <CAH-123RLkXJmWqoe3tUH6sxOMz0pd83k_YyqSNt7M8UaB=AwAQ@mail.gmail.com>

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 <ellisonbg at gmail.com> 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 <rpmuller at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130618/2e3a1288/attachment.html>

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: <CAPhiW4iM99XRCsWRZgATMwzBOfby9jav5AZ3KaueRsYpzZWsyw@mail.gmail.com>
References: <CAH-123QoB8NdZbUnM_tYYcfdhsZ3-HkzeG8ZX32sFQbCAOvaCg@mail.gmail.com>
	<CAPhiW4iM99XRCsWRZgATMwzBOfby9jav5AZ3KaueRsYpzZWsyw@mail.gmail.com>
Message-ID: <CAH-123QHrsqRVLgW9b5LsCaqRHwVKd5FMTjidsu9SALiW=Lxwg@mail.gmail.com>

Yeah, I was afraid of that. On to other solutions, then.


On Tue, Jun 18, 2013 at 10:55 AM, Aron Ahmadia <aron at ahmadia.net> 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 <rpmuller at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130618/3ec08d2e/attachment.html>

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: <CAH4pYpQ3kU=WZuCgcR-dfyHadxDNtQbFFRy3muZY_3YQrdPDqw@mail.gmail.com>

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 <benjaminrk at gmail.com> 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: <CAOvn4qg5eSKonidtRijEW3UhDiR4DmDrvVnkdbnutPjxW6TiRg@mail.gmail.com>

Hi Bartosz,

On 19 June 2013 20:10, Bartosz <mail at telenczuk.pl> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130619/1f47196f/attachment.html>

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: <CAOvn4qg5eSKonidtRijEW3UhDiR4DmDrvVnkdbnutPjxW6TiRg@mail.gmail.com>
References: <51C2020E.20503@telenczuk.pl>
	<CAOvn4qg5eSKonidtRijEW3UhDiR4DmDrvVnkdbnutPjxW6TiRg@mail.gmail.com>
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 <mail at telenczuk.pl> 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: <CAHNn8BXHCMUnPC7q9v+BOorWUT834MvCNvXpEBvnA7vH7wvVAA@mail.gmail.com>
References: <51B67B57.8050201@gmail.com>	<CAHNn8BUYiUjAzaSzzVdMuJTe5xGKKJPzmM=o8+=98=OaHmOdfg@mail.gmail.com>	<51B6805E.9020105@gmail.com>
	<CAHNn8BXHCMUnPC7q9v+BOorWUT834MvCNvXpEBvnA7vH7wvVAA@mail.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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130619/a7689777/attachment.html>

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: <CAH4pYpQ3kU=WZuCgcR-dfyHadxDNtQbFFRy3muZY_3YQrdPDqw@mail.gmail.com>
References: <3B6BCFAD-8177-48AA-803E-1FD1D85E67B0@gmail.com>
	<CAH4pYpQ3kU=WZuCgcR-dfyHadxDNtQbFFRy3muZY_3YQrdPDqw@mail.gmail.com>
Message-ID: <CAHAreOrUCEErbUdvdPkwNtinypmy4TKJ-4PmRVDbN9Ls9qu4Ag@mail.gmail.com>

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 <ellisonbg at gmail.com> 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 <benjaminrk at gmail.com> 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: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130626/4b3b6d33/attachment.html>

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: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
References: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
Message-ID: <D62C85F4-E359-4865-B44E-AFBBE4328C60@gmail.com>

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: <D62C85F4-E359-4865-B44E-AFBBE4328C60@gmail.com>
References: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
	<D62C85F4-E359-4865-B44E-AFBBE4328C60@gmail.com>
Message-ID: <CAHNn8BW3WtTepTvJhDwhjyHE+m4jGpq4D_sGLViMVZSmqYSbRQ@mail.gmail.com>

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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130627/591af50f/attachment.html>

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>
	<CAOvn4qg5eSKonidtRijEW3UhDiR4DmDrvVnkdbnutPjxW6TiRg@mail.gmail.com>
	<7bd974c88dce76ac2374363e26583c07@webmail.webfaction.com>
Message-ID: <CALnw1fTVwYZWHOwKT6dzvEJDck-VdkMi2g=y2PL5wvYAtq0Y_w@mail.gmail.com>

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: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
References: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
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: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
	<20130628203008.GB15539@HbI-OTOH.berkeley.edu>
Message-ID: <CAKgW=6K6SpqbG4T8OEeTj6Hovf67dn1ydhPtqY7+6MrgM-Y81w@mail.gmail.com>

On Fri, Jun 28, 2013 at 3:30 PM, Paul Ivanov <pi at berkeley.edu> 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: <CAKgW=6K6SpqbG4T8OEeTj6Hovf67dn1ydhPtqY7+6MrgM-Y81w@mail.gmail.com>
References: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
	<20130628203008.GB15539@HbI-OTOH.berkeley.edu>
	<CAKgW=6K6SpqbG4T8OEeTj6Hovf67dn1ydhPtqY7+6MrgM-Y81w@mail.gmail.com>
Message-ID: <CAHNn8BVdkECmeFLFr2sTSAV4CxBcVZbLtPYmVFYKw6C+xPtWgg@mail.gmail.com>

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 <asmeurer at gmail.com> wrote:

> On Fri, Jun 28, 2013 at 3:30 PM, Paul Ivanov <pi at berkeley.edu> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130628/a7b2f7a6/attachment.html>

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: <CAKgW=6K6SpqbG4T8OEeTj6Hovf67dn1ydhPtqY7+6MrgM-Y81w@mail.gmail.com>
References: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
	<20130628203008.GB15539@HbI-OTOH.berkeley.edu>
	<CAKgW=6K6SpqbG4T8OEeTj6Hovf67dn1ydhPtqY7+6MrgM-Y81w@mail.gmail.com>
Message-ID: <CAHAreOomc=Y3hsrZnv7PqncZAMZ1pEp7-=bV6LxOPS0YbTvniQ@mail.gmail.com>

On Fri, Jun 28, 2013 at 3:36 PM, Aaron Meurer <asmeurer at gmail.com> 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: <CALnw1fTVwYZWHOwKT6dzvEJDck-VdkMi2g=y2PL5wvYAtq0Y_w@mail.gmail.com>
References: <51C2020E.20503@telenczuk.pl>
	<CAOvn4qg5eSKonidtRijEW3UhDiR4DmDrvVnkdbnutPjxW6TiRg@mail.gmail.com>
	<7bd974c88dce76ac2374363e26583c07@webmail.webfaction.com>
	<CALnw1fTVwYZWHOwKT6dzvEJDck-VdkMi2g=y2PL5wvYAtq0Y_w@mail.gmail.com>
Message-ID: <CAHAreOp+e9A+98uuR4D-af=KxT1gdnNt4=GD8TUqstz5wkD02w@mail.gmail.com>

Very cool!

On Fri, Jun 28, 2013 at 2:29 PM, Puneeth Chaganti <punchagan at gmail.com> 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: <CAHAreOomc=Y3hsrZnv7PqncZAMZ1pEp7-=bV6LxOPS0YbTvniQ@mail.gmail.com>
References: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
	<20130628203008.GB15539@HbI-OTOH.berkeley.edu>
	<CAKgW=6K6SpqbG4T8OEeTj6Hovf67dn1ydhPtqY7+6MrgM-Y81w@mail.gmail.com>
	<CAHAreOomc=Y3hsrZnv7PqncZAMZ1pEp7-=bV6LxOPS0YbTvniQ@mail.gmail.com>
Message-ID: <CAKgW=6L8OPUX4KuV0brfkdbkkJ8v0TdcCwvFVvBLkfPWb1ZgTw@mail.gmail.com>

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 <fperez.net at gmail.com> wrote:
> On Fri, Jun 28, 2013 at 3:36 PM, Aaron Meurer <asmeurer at gmail.com> 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: <CAKgW=6Ksd_Xtw8mhYcAeQRcb95oE3AnXsezEL_+Tb_RG0wMAiQ@mail.gmail.com>

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: <CAKgW=6Ksd_Xtw8mhYcAeQRcb95oE3AnXsezEL_+Tb_RG0wMAiQ@mail.gmail.com>
References: <CAKgW=6Ksd_Xtw8mhYcAeQRcb95oE3AnXsezEL_+Tb_RG0wMAiQ@mail.gmail.com>
Message-ID: <CAOvn4qjC860wjhdLbp8YccjZHHP3f5A+1QY7XZjdhoaTNeZYBA@mail.gmail.com>

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 <asmeurer at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130630/6b2eab7b/attachment.html>

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 <http://python.6.x6.nabble.com/file/n5023093/ugly.png>  
ugly_mat.png <http://python.6.x6.nabble.com/file/n5023093/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: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>

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: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
References: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
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: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
References: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
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: <CAOvn4qgXxSq=HgdGvVmGx==vGKqPFCA_sRYhfeX59yaVX7g=3A@mail.gmail.com>

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 <drrt at cs.utexas.edu> 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 <http://python.6.x6.nabble.com/file/n5023093/ugly.png>
> ugly_mat.png <http://python.6.x6.nabble.com/file/n5023093/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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130630/3c3a1abe/attachment.html>

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: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
	<4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com>
Message-ID: <CAH4pYpRpKc96g2SMYtYJULzg_ukD2Zg3oOJDKsRBAZZ7B3tp1A@mail.gmail.com>

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
<bussonniermatthias at gmail.com> 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: <CAOvn4qgXxSq=HgdGvVmGx==vGKqPFCA_sRYhfeX59yaVX7g=3A@mail.gmail.com>
References: <1372611306722-5023093.post@n6.nabble.com>
	<CAOvn4qgXxSq=HgdGvVmGx==vGKqPFCA_sRYhfeX59yaVX7g=3A@mail.gmail.com>
Message-ID: <CAKgW=6LGXngX1k6oMhZoZ1hn5Hjxhrn18dKTF5qf5FeQkQOTbA@mail.gmail.com>

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 <takowl at gmail.com> 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 <drrt at cs.utexas.edu> 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 <http://python.6.x6.nabble.com/file/n5023093/ugly.png>
>> ugly_mat.png <http://python.6.x6.nabble.com/file/n5023093/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: <CAH4pYpRpKc96g2SMYtYJULzg_ukD2Zg3oOJDKsRBAZZ7B3tp1A@mail.gmail.com>
References: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
	<4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com>
	<CAH4pYpRpKc96g2SMYtYJULzg_ukD2Zg3oOJDKsRBAZZ7B3tp1A@mail.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
> <bussonniermatthias at gmail.com> 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: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
	<4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com>
	<CAH4pYpRpKc96g2SMYtYJULzg_ukD2Zg3oOJDKsRBAZZ7B3tp1A@mail.gmail.com>
	<51D0A2DC.9000202@calpoly.edu>
Message-ID: <CAH4pYpQkB8YycnXHdTv0BLFVoJ20cObHcgQ=RVqLpb6j_pvjdQ@mail.gmail.com>

Here is the PR:

https://github.com/ipython/ipython/pull/3497

On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic <jdfreder at calpoly.edu> 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
>> <bussonniermatthias at gmail.com> 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: <CAKgW=6KE_qpYYBMwS-4vr-Ez24X4spvw4ksu9EhJsSZESrNgJw@mail.gmail.com>

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 <drrt at cs.utexas.edu> 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: <CAH4pYpQkB8YycnXHdTv0BLFVoJ20cObHcgQ=RVqLpb6j_pvjdQ@mail.gmail.com>
References: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
	<4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com>
	<CAH4pYpRpKc96g2SMYtYJULzg_ukD2Zg3oOJDKsRBAZZ7B3tp1A@mail.gmail.com>
	<51D0A2DC.9000202@calpoly.edu>
	<CAH4pYpQkB8YycnXHdTv0BLFVoJ20cObHcgQ=RVqLpb6j_pvjdQ@mail.gmail.com>
Message-ID: <CAHAreOpKFTpOFtRgnE9wddmE_udS71W2-Fj2ZwKCT=nunFBdng@mail.gmail.com>

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 <ellisonbg at gmail.com> wrote:
> Here is the PR:
>
> https://github.com/ipython/ipython/pull/3497
>
> On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic <jdfreder at calpoly.edu> 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
>>> <bussonniermatthias at gmail.com> 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: <CAOvn4qjC860wjhdLbp8YccjZHHP3f5A+1QY7XZjdhoaTNeZYBA@mail.gmail.com>
References: <CAKgW=6Ksd_Xtw8mhYcAeQRcb95oE3AnXsezEL_+Tb_RG0wMAiQ@mail.gmail.com>
	<CAOvn4qjC860wjhdLbp8YccjZHHP3f5A+1QY7XZjdhoaTNeZYBA@mail.gmail.com>
Message-ID: <CAHAreOoVN4fx+vdyJEnjGPi5ZHi+oBM_YJ1r2gm1TP8kQosa8A@mail.gmail.com>

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 <takowl at gmail.com> 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 <asmeurer at gmail.com> 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: <CAHAreOoVN4fx+vdyJEnjGPi5ZHi+oBM_YJ1r2gm1TP8kQosa8A@mail.gmail.com>
References: <CAKgW=6Ksd_Xtw8mhYcAeQRcb95oE3AnXsezEL_+Tb_RG0wMAiQ@mail.gmail.com>
	<CAOvn4qjC860wjhdLbp8YccjZHHP3f5A+1QY7XZjdhoaTNeZYBA@mail.gmail.com>
	<CAHAreOoVN4fx+vdyJEnjGPi5ZHi+oBM_YJ1r2gm1TP8kQosa8A@mail.gmail.com>
Message-ID: <CAKgW=6LFFd4_-2KR7KNb-YyzsExHYa+VAkbAo7RLB9KpLfH-EA@mail.gmail.com>

So what is the workaround for PuDB?

Aaron Meurer

On Sun, Jun 30, 2013 at 9:21 PM, Fernando Perez <fperez.net at gmail.com> 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 <takowl at gmail.com> 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 <asmeurer at gmail.com> 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: <CAKgW=6L8OPUX4KuV0brfkdbkkJ8v0TdcCwvFVvBLkfPWb1ZgTw@mail.gmail.com>
References: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
	<20130628203008.GB15539@HbI-OTOH.berkeley.edu>
	<CAKgW=6K6SpqbG4T8OEeTj6Hovf67dn1ydhPtqY7+6MrgM-Y81w@mail.gmail.com>
	<CAHAreOomc=Y3hsrZnv7PqncZAMZ1pEp7-=bV6LxOPS0YbTvniQ@mail.gmail.com>
	<CAKgW=6L8OPUX4KuV0brfkdbkkJ8v0TdcCwvFVvBLkfPWb1ZgTw@mail.gmail.com>
Message-ID: <CAHAreOqWenKHY7_rDEHbs4GODB_229nAWnPd-njP_hjUSLXo3w@mail.gmail.com>

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 <asmeurer at gmail.com> 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 <fperez.net at gmail.com> wrote:
>> On Fri, Jun 28, 2013 at 3:36 PM, Aaron Meurer <asmeurer at gmail.com> 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: <CAHAreOqWenKHY7_rDEHbs4GODB_229nAWnPd-njP_hjUSLXo3w@mail.gmail.com>
References: <CA+n9YfqACs+s=5GRmFded=9UBxgWnNWuUCRBgYKbc3O9y3nOvQ@mail.gmail.com>
	<20130628203008.GB15539@HbI-OTOH.berkeley.edu>
	<CAKgW=6K6SpqbG4T8OEeTj6Hovf67dn1ydhPtqY7+6MrgM-Y81w@mail.gmail.com>
	<CAHAreOomc=Y3hsrZnv7PqncZAMZ1pEp7-=bV6LxOPS0YbTvniQ@mail.gmail.com>
	<CAKgW=6L8OPUX4KuV0brfkdbkkJ8v0TdcCwvFVvBLkfPWb1ZgTw@mail.gmail.com>
	<CAHAreOqWenKHY7_rDEHbs4GODB_229nAWnPd-njP_hjUSLXo3w@mail.gmail.com>
Message-ID: <CAKgW=6LLPBSPDcLhc09-Qo4ha=uSDpt2y5Y7aFwU3yxXheQ-ug@mail.gmail.com>

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 <fperez.net at gmail.com> 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 <asmeurer at gmail.com> 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 <fperez.net at gmail.com> wrote:
>>> On Fri, Jun 28, 2013 at 3:36 PM, Aaron Meurer <asmeurer at gmail.com> 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: <CAKgW=6LFFd4_-2KR7KNb-YyzsExHYa+VAkbAo7RLB9KpLfH-EA@mail.gmail.com>
References: <CAKgW=6Ksd_Xtw8mhYcAeQRcb95oE3AnXsezEL_+Tb_RG0wMAiQ@mail.gmail.com>
	<CAOvn4qjC860wjhdLbp8YccjZHHP3f5A+1QY7XZjdhoaTNeZYBA@mail.gmail.com>
	<CAHAreOoVN4fx+vdyJEnjGPi5ZHi+oBM_YJ1r2gm1TP8kQosa8A@mail.gmail.com>
	<CAKgW=6LFFd4_-2KR7KNb-YyzsExHYa+VAkbAo7RLB9KpLfH-EA@mail.gmail.com>
Message-ID: <CAHAreOruxoe0nmD5KEQE5M3WbR9dfogHHDBJ3ZPkiUFQYO=3yw@mail.gmail.com>

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 <asmeurer at gmail.com> wrote:
> So what is the workaround for PuDB?
>
> Aaron Meurer
>
> On Sun, Jun 30, 2013 at 9:21 PM, Fernando Perez <fperez.net at gmail.com> 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 <takowl at gmail.com> 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 <asmeurer at gmail.com> 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: <CAHAreOpKFTpOFtRgnE9wddmE_udS71W2-Fj2ZwKCT=nunFBdng@mail.gmail.com>
References: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
	<4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com>
	<CAH4pYpRpKc96g2SMYtYJULzg_ukD2Zg3oOJDKsRBAZZ7B3tp1A@mail.gmail.com>
	<51D0A2DC.9000202@calpoly.edu>
	<CAH4pYpQkB8YycnXHdTv0BLFVoJ20cObHcgQ=RVqLpb6j_pvjdQ@mail.gmail.com>
	<CAHAreOpKFTpOFtRgnE9wddmE_udS71W2-Fj2ZwKCT=nunFBdng@mail.gmail.com>
Message-ID: <CAHNn8BXV715esCu-xpR2L5rrQ_ZZfb+q3qGSB8yZjnJCGGONKg@mail.gmail.com>

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 <fperez.net at gmail.com>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 <ellisonbg at gmail.com>
> wrote:
> > Here is the PR:
> >
> > https://github.com/ipython/ipython/pull/3497
> >
> > On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic <jdfreder at calpoly.edu>
> 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
> >>> <bussonniermatthias at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130630/afc62acf/attachment.html>

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: <CAHAreOruxoe0nmD5KEQE5M3WbR9dfogHHDBJ3ZPkiUFQYO=3yw@mail.gmail.com>
References: <CAKgW=6Ksd_Xtw8mhYcAeQRcb95oE3AnXsezEL_+Tb_RG0wMAiQ@mail.gmail.com>
	<CAOvn4qjC860wjhdLbp8YccjZHHP3f5A+1QY7XZjdhoaTNeZYBA@mail.gmail.com>
	<CAHAreOoVN4fx+vdyJEnjGPi5ZHi+oBM_YJ1r2gm1TP8kQosa8A@mail.gmail.com>
	<CAKgW=6LFFd4_-2KR7KNb-YyzsExHYa+VAkbAo7RLB9KpLfH-EA@mail.gmail.com>
	<CAHAreOruxoe0nmD5KEQE5M3WbR9dfogHHDBJ3ZPkiUFQYO=3yw@mail.gmail.com>
Message-ID: <CAHNn8BXcrTkYp-JkdwvjQOWHP29Q6od1r1A65L+5OYg2g0r+qw@mail.gmail.com>

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 <fperez.net at gmail.com>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 <asmeurer at gmail.com> wrote:
> > So what is the workaround for PuDB?
> >
> > Aaron Meurer
> >
> > On Sun, Jun 30, 2013 at 9:21 PM, Fernando Perez <fperez.net at gmail.com>
> 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 <takowl at gmail.com>
> 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 <asmeurer at gmail.com> 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: <http://mail.python.org/pipermail/ipython-dev/attachments/20130630/df8f0834/attachment.html>

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: <CAHNn8BXcrTkYp-JkdwvjQOWHP29Q6od1r1A65L+5OYg2g0r+qw@mail.gmail.com>
References: <CAKgW=6Ksd_Xtw8mhYcAeQRcb95oE3AnXsezEL_+Tb_RG0wMAiQ@mail.gmail.com>
	<CAOvn4qjC860wjhdLbp8YccjZHHP3f5A+1QY7XZjdhoaTNeZYBA@mail.gmail.com>
	<CAHAreOoVN4fx+vdyJEnjGPi5ZHi+oBM_YJ1r2gm1TP8kQosa8A@mail.gmail.com>
	<CAKgW=6LFFd4_-2KR7KNb-YyzsExHYa+VAkbAo7RLB9KpLfH-EA@mail.gmail.com>
	<CAHAreOruxoe0nmD5KEQE5M3WbR9dfogHHDBJ3ZPkiUFQYO=3yw@mail.gmail.com>
	<CAHNn8BXcrTkYp-JkdwvjQOWHP29Q6od1r1A65L+5OYg2g0r+qw@mail.gmail.com>
Message-ID: <CAKgW=6J=2KHiAitUVk6L+dhfK=ha4YHDjW9u4+MZnAjbDDZJSg@mail.gmail.com>

I bisected it to

commit c5e77f946f77dd95ab086ea3e02802c4874c5e3d
Author: MinRK <benjaminrk at gmail.com>
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 <benjaminrk at gmail.com> 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 <fperez.net at gmail.com>
> 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 <asmeurer at gmail.com> wrote:
>> > So what is the workaround for PuDB?
>> >
>> > Aaron Meurer
>> >
>> > On Sun, Jun 30, 2013 at 9:21 PM, Fernando Perez <fperez.net at gmail.com>
>> > 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 <takowl at gmail.com>
>> >> 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 <asmeurer at gmail.com> 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: <CAH4pYpTHFRbpg-=zkZPJhg1RFjTDMg3bHqoxOSkNLBewHL80NQ@mail.gmail.com>
References: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
	<4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com>
	<CAH4pYpRpKc96g2SMYtYJULzg_ukD2Zg3oOJDKsRBAZZ7B3tp1A@mail.gmail.com>
	<51D0A2DC.9000202@calpoly.edu>
	<CAH4pYpQkB8YycnXHdTv0BLFVoJ20cObHcgQ=RVqLpb6j_pvjdQ@mail.gmail.com>
	<CAHAreOpKFTpOFtRgnE9wddmE_udS71W2-Fj2ZwKCT=nunFBdng@mail.gmail.com>
	<CAHNn8BXV715esCu-xpR2L5rrQ_ZZfb+q3qGSB8yZjnJCGGONKg@mail.gmail.com>
	<CAH4pYpTHFRbpg-=zkZPJhg1RFjTDMg3bHqoxOSkNLBewHL80NQ@mail.gmail.com>
Message-ID: <CAH4pYpQMXpvVc6gM4uG_UcqKsqF_mSmM=3KTVN+VqCesE_SaJg@mail.gmail.com>

I see how you did it.

On Sun, Jun 30, 2013 at 8:46 PM, Brian Granger <ellisonbg at gmail.com> 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 <benjaminrk at gmail.com> 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 <fperez.net at gmail.com>
>> 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 <ellisonbg at gmail.com>
>>> wrote:
>>> > Here is the PR:
>>> >
>>> > https://github.com/ipython/ipython/pull/3497
>>> >
>>> > On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic
>>> > <jdfreder at calpoly.edu> 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
>>> >>> <bussonniermatthias at gmail.com> 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: <CAHNn8BXV715esCu-xpR2L5rrQ_ZZfb+q3qGSB8yZjnJCGGONKg@mail.gmail.com>
References: <CAH4pYpSH3EaPQ4t7ZHN5BdLO8MNuGqJjoyNc189eV73W+tL3bQ@mail.gmail.com>
	<4EEF9B7E-F72B-4A94-A3E9-21D74FAC982A@gmail.com>
	<CAH4pYpRpKc96g2SMYtYJULzg_ukD2Zg3oOJDKsRBAZZ7B3tp1A@mail.gmail.com>
	<51D0A2DC.9000202@calpoly.edu>
	<CAH4pYpQkB8YycnXHdTv0BLFVoJ20cObHcgQ=RVqLpb6j_pvjdQ@mail.gmail.com>
	<CAHAreOpKFTpOFtRgnE9wddmE_udS71W2-Fj2ZwKCT=nunFBdng@mail.gmail.com>
	<CAHNn8BXV715esCu-xpR2L5rrQ_ZZfb+q3qGSB8yZjnJCGGONKg@mail.gmail.com>
Message-ID: <CAH4pYpTHFRbpg-=zkZPJhg1RFjTDMg3bHqoxOSkNLBewHL80NQ@mail.gmail.com>

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 <benjaminrk at gmail.com> 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 <fperez.net at gmail.com>
> 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 <ellisonbg at gmail.com>
>> wrote:
>> > Here is the PR:
>> >
>> > https://github.com/ipython/ipython/pull/3497
>> >
>> > On Sun, Jun 30, 2013 at 2:27 PM, Jonathan Frederic
>> > <jdfreder at calpoly.edu> 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
>> >>> <bussonniermatthias at gmail.com> 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