From mmmnow at gmail.com  Tue Apr  1 08:10:28 2014
From: mmmnow at gmail.com (=?ISO-8859-2?Q?Micha=B3_Nowotka?=)
Date: Tue, 1 Apr 2014 13:10:28 +0100
Subject: [IPython-dev] How to use SSHLauncher to_send and to_fetch settings?
Message-ID: <CAAGvU1aNkz1cgD16vahO4JbQN20g081teH_7isBAD10v806OSQ@mail.gmail.com>

Hi,

I'm trying to set my IPython cluster composed of several machines. I'm
planning to install ipython engines on machines living on the same nfs.
Unfortunately, the controller should be installed on machine without access
to nfs.

Looking at Ipython documentation I though this is impossible to configure
using ipcluster:

"Currently *ipcluster* requires that the
IPYTHONDIR/profile_<name>/securitydirectory live on a shared
filesystem that is seen by both the controller
and engines. If you don't have a shared file system you will need to use
*ipcontroller* and *ipengine* directly."

But SSH mode specific instructions, bring some hope:

"If your machines are on a shared filesystem, this step is unnecessary, and
can be skipped by setting these to empty lists..."

So, if my machines are NOT on a shared filesystem, I can use to_send and
to_fetch to get around, right?
The problem is, there is no example of how to set to_send and to_fetch
settings in order to get it working without shared fs.
Can you give me some example, any advice, hint would be highly appreciated.

Kind regards,

Michal Nowotka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140401/7ec683fd/attachment.html>

From benjaminrk at gmail.com  Wed Apr  2 01:57:55 2014
From: benjaminrk at gmail.com (MinRK)
Date: Tue, 1 Apr 2014 22:57:55 -0700
Subject: [IPython-dev] [ANNOUNCE] IPython 2.0.0
Message-ID: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>

While April 1 may be a very loose definition of winter, IPython 2.0 is
actually [out](https://pypi.python.org/pypi/ipython)!

I promise this is not an April Fool's joke, but if you don't believe me just

    pip install --upgrade ipython

to find out.

See [what's new](http://ipython.org/ipython-doc/2/whatsnew/version2.0.html)
for more details, but the highlights are:

- interactive widgets for the notebook
- directory navigation in the notebook dashboard
- persistent URLs for notebooks
- a new modal user interface in the notebook
- a security model for notebooks

You can check out the [example notebooks](
http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Index.ipynb)
on nbviewer, or download them and try things out yourself.

This is the first IPython release with wheels (one for py2, one for py3,
for now), so please give those a test if you can. These will be installed
by default for anyone using current pip (1.5).

We plan to have 2.0.1 within a month based on initial feedback, so bring on
the bug reports!

Thanks for all your support, we have a great time working on this.

-IPython HQ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140401/3f837954/attachment.html>

From fperez.net at gmail.com  Wed Apr  2 03:04:28 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Wed, 2 Apr 2014 00:04:28 -0700
Subject: [IPython-dev] [ANNOUNCE] IPython 2.0.0
In-Reply-To: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
Message-ID: <CAHAreOpH=tkguRdMZLw+0U6eVifLZcgXmrsbKT09sptCMzZ5cA@mail.gmail.com>

Thanks everyone for the hard work you've put into this!!! It's an awesome
release, with lots to be excited about.

Cheers,

f


On Tue, Apr 1, 2014 at 10:57 PM, MinRK <benjaminrk at gmail.com> wrote:

> While April 1 may be a very loose definition of winter, IPython 2.0 is
> actually [out](https://pypi.python.org/pypi/ipython)!
>
> I promise this is not an April Fool's joke, but if you don't believe me
> just
>
>     pip install --upgrade ipython
>
> to find out.
>
> See [what's new](http://ipython.org/ipython-doc/2/whatsnew/version2.0.html)
> for more details, but the highlights are:
>
> - interactive widgets for the notebook
> - directory navigation in the notebook dashboard
> - persistent URLs for notebooks
> - a new modal user interface in the notebook
> - a security model for notebooks
>
> You can check out the [example notebooks](
> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Index.ipynb)
> on nbviewer, or download them and try things out yourself.
>
> This is the first IPython release with wheels (one for py2, one for py3,
> for now), so please give those a test if you can. These will be installed
> by default for anyone using current pip (1.5).
>
> We plan to have 2.0.1 within a month based on initial feedback, so bring
> on the bug reports!
>
> Thanks for all your support, we have a great time working on this.
>
>  -IPython HQ
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140402/12ece419/attachment.html>

From mhearne at usgs.gov  Wed Apr  2 09:16:15 2014
From: mhearne at usgs.gov (Hearne, Mike)
Date: Wed, 2 Apr 2014 07:16:15 -0600
Subject: [IPython-dev] nbconvert
Message-ID: <CALf5BBtkLcrYj6kAPqUBOpVFZS6ktyx-nJ3az0t1tNVs0Hrs=Q@mail.gmail.com>

Possibly stupid question:  I just updated to IPython 1.2.1 (stable)
using Enthought Canopy, and I'm trying to find nbconvert.  It doesn't
seem to be in the path, and the only installation instructions I've
found point to a github repo which states that nbconvert has been
integrated into IPython.

How do I find/install nbconvert?

Thanks,

Mike


From bussonniermatthias at gmail.com  Wed Apr  2 09:22:54 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Wed, 2 Apr 2014 15:22:54 +0200
Subject: [IPython-dev] nbconvert
In-Reply-To: <CALf5BBtkLcrYj6kAPqUBOpVFZS6ktyx-nJ3az0t1tNVs0Hrs=Q@mail.gmail.com>
References: <CALf5BBtkLcrYj6kAPqUBOpVFZS6ktyx-nJ3az0t1tNVs0Hrs=Q@mail.gmail.com>
Message-ID: <0297A87A-AFCC-4E28-A08E-53FC00F8CB2A@gmail.com>

Hi Mike 
Le 2 avr. 2014 ? 15:16, Hearne, Mike a ?crit :

> Possibly stupid question:  I just updated to IPython 1.2.1 (stable)

(technically since yesterday Ipython stable is 2.0)


> using Enthought Canopy, and I'm trying to find nbconvert.  It doesn't
> seem to be in the path, and the only installation instructions I've
> found point to a github repo which states that nbconvert has been
> integrated into IPython.
> 
> How do I find/install nbconvert?

if IPython >1.0 is install then nbconvert is available by using the 
$ ipython nbconvert

command; not nbconvert directly. 

$ ipython nbconvert --help
This application is used to convert notebook files (*.ipynb) to various other
formats.

WARNING: THE COMMANDLINE INTERFACE MAY CHANGE IN FUTURE RELEASES.

Options
-------

Arguments that take values are actually convenience aliases to full
Configurables, whose aliases are listed on the help line. For more information
on full configurables, see '--help-all'.

--
Matthias
> 
> Thanks,
> 
> Mike
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From aaron.oleary at gmail.com  Wed Apr  2 09:25:26 2014
From: aaron.oleary at gmail.com (Aaron O'Leary)
Date: Wed, 2 Apr 2014 14:25:26 +0100
Subject: [IPython-dev] nbconvert
In-Reply-To: <CALf5BBtkLcrYj6kAPqUBOpVFZS6ktyx-nJ3az0t1tNVs0Hrs=Q@mail.gmail.com>
References: <CALf5BBtkLcrYj6kAPqUBOpVFZS6ktyx-nJ3az0t1tNVs0Hrs=Q@mail.gmail.com>
Message-ID: <20140402132526.GA3729@tk422.wireless.leeds.ac.uk>

On Wed 02 Apr, Hearne, Mike wrote:
> Possibly stupid question:  I just updated to IPython 1.2.1 (stable)
> using Enthought Canopy, and I'm trying to find nbconvert.  It doesn't
> seem to be in the path, and the only installation instructions I've
> found point to a github repo which states that nbconvert has been
> integrated into IPython.
> 
> How do I find/install nbconvert?

you access it through ipython, e.g.

    ipython nbconvert your_notebook.ipynb --to html


From ellisonbg at gmail.com  Wed Apr  2 12:15:52 2014
From: ellisonbg at gmail.com (Brian Granger)
Date: Wed, 2 Apr 2014 09:15:52 -0700
Subject: [IPython-dev] [ANNOUNCE] IPython 2.0.0
In-Reply-To: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
Message-ID: <CAH4pYpTfu2AwcfdXujY_MZqNJF5Dtb4Hn6sMKMiSFUL7xCKrHg@mail.gmail.com>

Congrats everyone!

On Tue, Apr 1, 2014 at 10:57 PM, MinRK <benjaminrk at gmail.com> wrote:
> While April 1 may be a very loose definition of winter, IPython 2.0 is
> actually [out](https://pypi.python.org/pypi/ipython)!
>
> I promise this is not an April Fool's joke, but if you don't believe me just
>
>     pip install --upgrade ipython
>
> to find out.
>
> See [what's new](http://ipython.org/ipython-doc/2/whatsnew/version2.0.html)
> for more details, but the highlights are:
>
> - interactive widgets for the notebook
> - directory navigation in the notebook dashboard
> - persistent URLs for notebooks
> - a new modal user interface in the notebook
> - a security model for notebooks
>
> You can check out the [example
> notebooks](http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Index.ipynb)
> on nbviewer, or download them and try things out yourself.
>
> This is the first IPython release with wheels (one for py2, one for py3, for
> now), so please give those a test if you can. These will be installed by
> default for anyone using current pip (1.5).
>
> We plan to have 2.0.1 within a month based on initial feedback, so bring on
> the bug reports!
>
> Thanks for all your support, we have a great time working on this.
>
> -IPython HQ
>
> _______________________________________________
> 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  Wed Apr  2 13:33:31 2014
From: satra at mit.edu (Satrajit Ghosh)
Date: Wed, 2 Apr 2014 13:33:31 -0400
Subject: [IPython-dev] [ANNOUNCE] IPython 2.0.0
In-Reply-To: <CAH4pYpTfu2AwcfdXujY_MZqNJF5Dtb4Hn6sMKMiSFUL7xCKrHg@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<CAH4pYpTfu2AwcfdXujY_MZqNJF5Dtb4Hn6sMKMiSFUL7xCKrHg@mail.gmail.com>
Message-ID: <CA+A4wOmSXgmHFsNR1vFCbfAcfyg2vf024+Lt9m38CQpo9LgfPA@mail.gmail.com>

congrats everyone - fantastic work!

cheers,

satra

On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger <ellisonbg at gmail.com> wrote:

> Congrats everyone!
>
> On Tue, Apr 1, 2014 at 10:57 PM, MinRK <benjaminrk at gmail.com> wrote:
> > While April 1 may be a very loose definition of winter, IPython 2.0 is
> > actually [out](https://pypi.python.org/pypi/ipython)!
> >
> > I promise this is not an April Fool's joke, but if you don't believe me
> just
> >
> >     pip install --upgrade ipython
> >
> > to find out.
> >
> > See [what's new](
> http://ipython.org/ipython-doc/2/whatsnew/version2.0.html)
> > for more details, but the highlights are:
> >
> > - interactive widgets for the notebook
> > - directory navigation in the notebook dashboard
> > - persistent URLs for notebooks
> > - a new modal user interface in the notebook
> > - a security model for notebooks
> >
> > You can check out the [example
> > notebooks](
> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Index.ipynb
> )
> > on nbviewer, or download them and try things out yourself.
> >
> > This is the first IPython release with wheels (one for py2, one for py3,
> for
> > now), so please give those a test if you can. These will be installed by
> > default for anyone using current pip (1.5).
> >
> > We plan to have 2.0.1 within a month based on initial feedback, so bring
> on
> > the bug reports!
> >
> > Thanks for all your support, we have a great time working on this.
> >
> > -IPython HQ
> >
> > _______________________________________________
> > 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/20140402/18384927/attachment.html>

From scopatz at gmail.com  Wed Apr  2 14:17:55 2014
From: scopatz at gmail.com (Anthony Scopatz)
Date: Wed, 2 Apr 2014 11:17:55 -0700
Subject: [IPython-dev] [ANNOUNCE] IPython 2.0.0
In-Reply-To: <CA+A4wOmSXgmHFsNR1vFCbfAcfyg2vf024+Lt9m38CQpo9LgfPA@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<CAH4pYpTfu2AwcfdXujY_MZqNJF5Dtb4Hn6sMKMiSFUL7xCKrHg@mail.gmail.com>
	<CA+A4wOmSXgmHFsNR1vFCbfAcfyg2vf024+Lt9m38CQpo9LgfPA@mail.gmail.com>
Message-ID: <CAPk-6T70ugT6xtREb+577wSDDZ6ggORObd1b+KhAQMcO62fY4A@mail.gmail.com>

Congrats All!


On Wed, Apr 2, 2014 at 10:33 AM, Satrajit Ghosh <satra at mit.edu> wrote:

> congrats everyone - fantastic work!
>
> cheers,
>
> satra
>
> On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger <ellisonbg at gmail.com>wrote:
>
>> Congrats everyone!
>>
>> On Tue, Apr 1, 2014 at 10:57 PM, MinRK <benjaminrk at gmail.com> wrote:
>> > While April 1 may be a very loose definition of winter, IPython 2.0 is
>> > actually [out](https://pypi.python.org/pypi/ipython)!
>> >
>> > I promise this is not an April Fool's joke, but if you don't believe me
>> just
>> >
>> >     pip install --upgrade ipython
>> >
>> > to find out.
>> >
>> > See [what's new](
>> http://ipython.org/ipython-doc/2/whatsnew/version2.0.html)
>> > for more details, but the highlights are:
>> >
>> > - interactive widgets for the notebook
>> > - directory navigation in the notebook dashboard
>> > - persistent URLs for notebooks
>> > - a new modal user interface in the notebook
>> > - a security model for notebooks
>> >
>> > You can check out the [example
>> > notebooks](
>> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Index.ipynb
>> )
>> > on nbviewer, or download them and try things out yourself.
>> >
>> > This is the first IPython release with wheels (one for py2, one for
>> py3, for
>> > now), so please give those a test if you can. These will be installed by
>> > default for anyone using current pip (1.5).
>> >
>> > We plan to have 2.0.1 within a month based on initial feedback, so
>> bring on
>> > the bug reports!
>> >
>> > Thanks for all your support, we have a great time working on this.
>> >
>> > -IPython HQ
>> >
>> > _______________________________________________
>> > 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/20140402/c1c26867/attachment.html>

From jrocher at enthought.com  Wed Apr  2 14:39:06 2014
From: jrocher at enthought.com (Jonathan Rocher)
Date: Wed, 2 Apr 2014 13:39:06 -0500
Subject: [IPython-dev] [ANNOUNCE] IPython 2.0.0
In-Reply-To: <CAPk-6T70ugT6xtREb+577wSDDZ6ggORObd1b+KhAQMcO62fY4A@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<CAH4pYpTfu2AwcfdXujY_MZqNJF5Dtb4Hn6sMKMiSFUL7xCKrHg@mail.gmail.com>
	<CA+A4wOmSXgmHFsNR1vFCbfAcfyg2vf024+Lt9m38CQpo9LgfPA@mail.gmail.com>
	<CAPk-6T70ugT6xtREb+577wSDDZ6ggORObd1b+KhAQMcO62fY4A@mail.gmail.com>
Message-ID: <CAOzk5QdAmYQXPjjgTDkh22K0xvGj8jrJXDP9M0-xEbj6sUFdYg@mail.gmail.com>

The feature list is incredible. Congrats to all!


On Wed, Apr 2, 2014 at 1:17 PM, Anthony Scopatz <scopatz at gmail.com> wrote:

> Congrats All!
>
>
> On Wed, Apr 2, 2014 at 10:33 AM, Satrajit Ghosh <satra at mit.edu> wrote:
>
>> congrats everyone - fantastic work!
>>
>> cheers,
>>
>> satra
>>
>> On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger <ellisonbg at gmail.com>wrote:
>>
>>> Congrats everyone!
>>>
>>> On Tue, Apr 1, 2014 at 10:57 PM, MinRK <benjaminrk at gmail.com> wrote:
>>> > While April 1 may be a very loose definition of winter, IPython 2.0 is
>>> > actually [out](https://pypi.python.org/pypi/ipython)!
>>> >
>>> > I promise this is not an April Fool's joke, but if you don't believe
>>> me just
>>> >
>>> >     pip install --upgrade ipython
>>> >
>>> > to find out.
>>> >
>>> > See [what's new](
>>> http://ipython.org/ipython-doc/2/whatsnew/version2.0.html)
>>> > for more details, but the highlights are:
>>> >
>>> > - interactive widgets for the notebook
>>> > - directory navigation in the notebook dashboard
>>> > - persistent URLs for notebooks
>>> > - a new modal user interface in the notebook
>>> > - a security model for notebooks
>>> >
>>> > You can check out the [example
>>> > notebooks](
>>> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Index.ipynb
>>> )
>>> > on nbviewer, or download them and try things out yourself.
>>> >
>>> > This is the first IPython release with wheels (one for py2, one for
>>> py3, for
>>> > now), so please give those a test if you can. These will be installed
>>> by
>>> > default for anyone using current pip (1.5).
>>> >
>>> > We plan to have 2.0.1 within a month based on initial feedback, so
>>> bring on
>>> > the bug reports!
>>> >
>>> > Thanks for all your support, we have a great time working on this.
>>> >
>>> > -IPython HQ
>>> >
>>> > _______________________________________________
>>> > 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
>
>


-- 
Jonathan Rocher, PhD
Scientific software developer
Enthought, Inc.
jrocher at enthought.com
1-512-536-1057
http://www.enthought.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140402/19d9ca3b/attachment.html>

From tom at knitatoms.net  Wed Apr  2 14:48:00 2014
From: tom at knitatoms.net (Tom Atkins)
Date: Wed, 02 Apr 2014 19:48:00 +0100
Subject: [IPython-dev] IPython notebook 2.0 with Django
Message-ID: <533C5B60.5030506@knitatoms.net>

Congratualtions on the release of IPython 2.

I've been using IPython notebook with Django via this app:

https://github.com/cpbotha/django-shell-ipynb

It's stopped working with IPython 2. I've forked the repo and made a fix 
to suppress the 'frontend' deprecation warning and make a print 
statement Python 3 compatible. Here's the file in question:

https://github.com/knitatoms/django-shell-ipynb/blob/master/django_shell_ipynb/management/commands/shell_ipynb.py

But when I run:

python manage.py shell_ipynb

I get:

2014-04-02 11:35:07.561 [NotebookApp] CRITICAL | No such file or 
directory: /home/tom/dev/django/test34/shell_ipynb

Any suggestions on what might have changed or how I could debug?

Thanks in advance,
Tom


From mark.voorhies at ucsf.edu  Wed Apr  2 16:02:28 2014
From: mark.voorhies at ucsf.edu (Mark Voorhies)
Date: Wed, 2 Apr 2014 13:02:28 -0700
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
Message-ID: <533C6CD4.9030309@ucsf.edu>

Congratulations on the new release!

I'm trying out rel-2.0.0 and running into interesting issues on Firefox 28 on Ubuntu Precise:

* "ipython notebook" launches the dashboard in Firefox as expected
* "New notebook" creates a new notebook and opens a tab for it, but the page is blank and the notebook does not show up as "running"
* Opening an existing notebook or creating a new one in Chromium _does_ render the notebook and _does_ list it in the "running" tab
* Even after launching a notebook in Chromium, it still doesn't render in Firefox

Version details:

* I'm using IPython rel-2.0.0 and Tornado v3.2.0 from git (both installed via "python setup.py install --user")
* All other IPython dependencies should be current Ubuntu Precise versions
* Browsers are up-to-date from Ubuntu Precise:
mvoorhie at virgil:~/$ dpkg -l chromium-browser firefox
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                      Version                                   Description
+++-=========================================-=========================================-==================================================================================================
ii  chromium-browser                          33.0.1750.152-0ubuntu0.12.04.1~pkg879.1   Chromium browser
ii  firefox                                   28.0+build2-0ubuntu0.12.04.1              Safe and easy web browser from Mozilla
* Firefox has NoScript, allowing 127.0.0.1 (I see the same behavior when allowing scripts globally)

Thought I'd check the list for obvious fixes before opening an issue.

Thanks,

Mark



From takowl at gmail.com  Wed Apr  2 16:17:45 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Wed, 2 Apr 2014 13:17:45 -0700
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <533C6CD4.9030309@ucsf.edu>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<533C6CD4.9030309@ucsf.edu>
Message-ID: <CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>

On 2 April 2014 13:02, Mark Voorhies <mark.voorhies at ucsf.edu> wrote:

> * "New notebook" creates a new notebook and opens a tab for it, but the
> page is blank and the notebook does not show up as "running"


This sounds to me like a browser caching issue. Try hitting Ctrl-F5 several
times to clear the cache.

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

From mark.voorhies at ucsf.edu  Wed Apr  2 16:31:57 2014
From: mark.voorhies at ucsf.edu (Mark Voorhies)
Date: Wed, 2 Apr 2014 13:31:57 -0700
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<533C6CD4.9030309@ucsf.edu>
	<CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>
Message-ID: <533C73BD.3080605@ucsf.edu>

On 04/02/2014 01:17 PM, Thomas Kluyver wrote:
> On 2 April 2014 13:02, Mark Voorhies <mark.voorhies at ucsf.edu> wrote:
>
>> * "New notebook" creates a new notebook and opens a tab for it, but the
>> page is blank and the notebook does not show up as "running"
>
>
> This sounds to me like a browser caching issue. Try hitting Ctrl-F5 several
> times to clear the cache.

Still getting the same problem.

Here's the JS log from the Firefox web console:

SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery.min.js:1
Error: http://127.0.0.1:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd is being assigned a //# sourceMappingURL, but already has one
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. jquery.min.js:5
SecurityError: The operation is insecure. bootstrap-tour.min.js:19
Empty string passed to getElementById(). jquery.min.js:4

--Mark




From takowl at gmail.com  Wed Apr  2 17:10:49 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Wed, 2 Apr 2014 14:10:49 -0700
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <533C73BD.3080605@ucsf.edu>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<533C6CD4.9030309@ucsf.edu>
	<CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>
	<533C73BD.3080605@ucsf.edu>
Message-ID: <CAOvn4qhFSSKZt25+bg7o4nyWAOjpXZDQV7FY5zmCmGfx8hVvQQ@mail.gmail.com>

On 2 April 2014 13:31, Mark Voorhies <mark.voorhies at ucsf.edu> wrote:

> Here's the JS log from the Firefox web console:
>
> SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated.
> Use //# instead jquery.min.js:1
> Error:
> http://127.0.0.1:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cdis being assigned a //# sourceMappingURL, but already has one
> Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.
> jquery.min.js:5
> SecurityError: The operation is insecure. bootstrap-tour.min.js:19
> Empty string passed to getElementById(). jquery.min.js:4
>


I see similar messages in my console (except the SecurityError one, but
that only seems to relate to the tour). So I don't think they're related to
the problem. I'm using Firefox 28 in Debian, and it's working fine.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140402/981c10a8/attachment.html>

From rgbkrk at gmail.com  Wed Apr  2 21:47:52 2014
From: rgbkrk at gmail.com (Kyle Kelley)
Date: Wed, 2 Apr 2014 20:47:52 -0500
Subject: [IPython-dev] [ANNOUNCE] IPython 2.0.0
In-Reply-To: <CAOzk5QdAmYQXPjjgTDkh22K0xvGj8jrJXDP9M0-xEbj6sUFdYg@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<CAH4pYpTfu2AwcfdXujY_MZqNJF5Dtb4Hn6sMKMiSFUL7xCKrHg@mail.gmail.com>
	<CA+A4wOmSXgmHFsNR1vFCbfAcfyg2vf024+Lt9m38CQpo9LgfPA@mail.gmail.com>
	<CAPk-6T70ugT6xtREb+577wSDDZ6ggORObd1b+KhAQMcO62fY4A@mail.gmail.com>
	<CAOzk5QdAmYQXPjjgTDkh22K0xvGj8jrJXDP9M0-xEbj6sUFdYg@mail.gmail.com>
Message-ID: <CA+tbMaUKQiqkqpWMLxBLvuckE=L4r4hw7nz_yobBcu8tVYti_g@mail.gmail.com>

Congrats everyone!


On Wed, Apr 2, 2014 at 1:39 PM, Jonathan Rocher <jrocher at enthought.com>wrote:

> The feature list is incredible. Congrats to all!
>
>
> On Wed, Apr 2, 2014 at 1:17 PM, Anthony Scopatz <scopatz at gmail.com> wrote:
>
>> Congrats All!
>>
>>
>> On Wed, Apr 2, 2014 at 10:33 AM, Satrajit Ghosh <satra at mit.edu> wrote:
>>
>>> congrats everyone - fantastic work!
>>>
>>> cheers,
>>>
>>> satra
>>>
>>> On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger <ellisonbg at gmail.com>wrote:
>>>
>>>> Congrats everyone!
>>>>
>>>> On Tue, Apr 1, 2014 at 10:57 PM, MinRK <benjaminrk at gmail.com> wrote:
>>>> > While April 1 may be a very loose definition of winter, IPython 2.0 is
>>>> > actually [out](https://pypi.python.org/pypi/ipython)!
>>>> >
>>>> > I promise this is not an April Fool's joke, but if you don't believe
>>>> me just
>>>> >
>>>> >     pip install --upgrade ipython
>>>> >
>>>> > to find out.
>>>> >
>>>> > See [what's new](
>>>> http://ipython.org/ipython-doc/2/whatsnew/version2.0.html)
>>>> > for more details, but the highlights are:
>>>> >
>>>> > - interactive widgets for the notebook
>>>> > - directory navigation in the notebook dashboard
>>>> > - persistent URLs for notebooks
>>>> > - a new modal user interface in the notebook
>>>> > - a security model for notebooks
>>>> >
>>>> > You can check out the [example
>>>> > notebooks](
>>>> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Index.ipynb
>>>> )
>>>> > on nbviewer, or download them and try things out yourself.
>>>> >
>>>> > This is the first IPython release with wheels (one for py2, one for
>>>> py3, for
>>>> > now), so please give those a test if you can. These will be installed
>>>> by
>>>> > default for anyone using current pip (1.5).
>>>> >
>>>> > We plan to have 2.0.1 within a month based on initial feedback, so
>>>> bring on
>>>> > the bug reports!
>>>> >
>>>> > Thanks for all your support, we have a great time working on this.
>>>> >
>>>> > -IPython HQ
>>>> >
>>>> > _______________________________________________
>>>> > 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
>>
>>
>
>
> --
> Jonathan Rocher, PhD
> Scientific software developer
> Enthought, Inc.
> jrocher at enthought.com
> 1-512-536-1057
> http://www.enthought.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/20140402/06237a1f/attachment.html>

From damianavila at gmail.com  Wed Apr  2 22:29:20 2014
From: damianavila at gmail.com (=?ISO-8859-1?Q?Dami=E1n_Avila?=)
Date: Wed, 2 Apr 2014 23:29:20 -0300
Subject: [IPython-dev] [ANNOUNCE] IPython 2.0.0
In-Reply-To: <CA+tbMaUKQiqkqpWMLxBLvuckE=L4r4hw7nz_yobBcu8tVYti_g@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<CAH4pYpTfu2AwcfdXujY_MZqNJF5Dtb4Hn6sMKMiSFUL7xCKrHg@mail.gmail.com>
	<CA+A4wOmSXgmHFsNR1vFCbfAcfyg2vf024+Lt9m38CQpo9LgfPA@mail.gmail.com>
	<CAPk-6T70ugT6xtREb+577wSDDZ6ggORObd1b+KhAQMcO62fY4A@mail.gmail.com>
	<CAOzk5QdAmYQXPjjgTDkh22K0xvGj8jrJXDP9M0-xEbj6sUFdYg@mail.gmail.com>
	<CA+tbMaUKQiqkqpWMLxBLvuckE=L4r4hw7nz_yobBcu8tVYti_g@mail.gmail.com>
Message-ID: <CAH+mRR0HrN2qkXjLDqFOFVmk4sczNeWT-64xrDHBR-0XiBPDjA@mail.gmail.com>

Congratulations to everyone!


2014-04-02 22:47 GMT-03:00 Kyle Kelley <rgbkrk at gmail.com>:

> Congrats everyone!
>
>
> On Wed, Apr 2, 2014 at 1:39 PM, Jonathan Rocher <jrocher at enthought.com>wrote:
>
>> The feature list is incredible. Congrats to all!
>>
>>
>> On Wed, Apr 2, 2014 at 1:17 PM, Anthony Scopatz <scopatz at gmail.com>wrote:
>>
>>> Congrats All!
>>>
>>>
>>> On Wed, Apr 2, 2014 at 10:33 AM, Satrajit Ghosh <satra at mit.edu> wrote:
>>>
>>>> congrats everyone - fantastic work!
>>>>
>>>> cheers,
>>>>
>>>> satra
>>>>
>>>> On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger <ellisonbg at gmail.com>wrote:
>>>>
>>>>> Congrats everyone!
>>>>>
>>>>> On Tue, Apr 1, 2014 at 10:57 PM, MinRK <benjaminrk at gmail.com> wrote:
>>>>> > While April 1 may be a very loose definition of winter, IPython 2.0
>>>>> is
>>>>> > actually [out](https://pypi.python.org/pypi/ipython)!
>>>>> >
>>>>> > I promise this is not an April Fool's joke, but if you don't believe
>>>>> me just
>>>>> >
>>>>> >     pip install --upgrade ipython
>>>>> >
>>>>> > to find out.
>>>>> >
>>>>> > See [what's new](
>>>>> http://ipython.org/ipython-doc/2/whatsnew/version2.0.html)
>>>>> > for more details, but the highlights are:
>>>>> >
>>>>> > - interactive widgets for the notebook
>>>>> > - directory navigation in the notebook dashboard
>>>>> > - persistent URLs for notebooks
>>>>> > - a new modal user interface in the notebook
>>>>> > - a security model for notebooks
>>>>> >
>>>>> > You can check out the [example
>>>>> > notebooks](
>>>>> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Index.ipynb
>>>>> )
>>>>> > on nbviewer, or download them and try things out yourself.
>>>>> >
>>>>> > This is the first IPython release with wheels (one for py2, one for
>>>>> py3, for
>>>>> > now), so please give those a test if you can. These will be
>>>>> installed by
>>>>> > default for anyone using current pip (1.5).
>>>>> >
>>>>> > We plan to have 2.0.1 within a month based on initial feedback, so
>>>>> bring on
>>>>> > the bug reports!
>>>>> >
>>>>> > Thanks for all your support, we have a great time working on this.
>>>>> >
>>>>> > -IPython HQ
>>>>> >
>>>>> > _______________________________________________
>>>>> > 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
>>>
>>>
>>
>>
>> --
>> Jonathan Rocher, PhD
>> Scientific software developer
>> Enthought, Inc.
>> jrocher at enthought.com
>> 1-512-536-1057
>> http://www.enthought.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
>
>


-- 
Dami?n Avila
Scientific Python Developer
Quantitative Finance Analyst
Statistics, Biostatistics and Econometrics Consultant
Biochemist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140402/1bd97a19/attachment.html>

From vasco+python at tenner.nl  Thu Apr  3 04:06:07 2014
From: vasco+python at tenner.nl (Vasco Tenner)
Date: Thu, 03 Apr 2014 10:06:07 +0200
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <533C73BD.3080605@ucsf.edu>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>	<533C6CD4.9030309@ucsf.edu>	<CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>
	<533C73BD.3080605@ucsf.edu>
Message-ID: <533D166F.9050302@tenner.nl>

Hi Mark,

On 04/02/2014 10:31 PM, Mark Voorhies wrote:
> On 04/02/2014 01:17 PM, Thomas Kluyver wrote:
>> On 2 April 2014 13:02, Mark Voorhies <mark.voorhies at ucsf.edu> wrote:
>>
>>> * "New notebook" creates a new notebook and opens a tab for it, but the
>>> page is blank and the notebook does not show up as "running"
>>
>>
>> This sounds to me like a browser caching issue. Try hitting Ctrl-F5 several
>> times to clear the cache.
A fail safe way to test this is to open a private-window (crtl-shift-p), 
and then load the ipython dashboard.

Groet,
Vasco


From vasco+python at tenner.nl  Thu Apr  3 04:07:48 2014
From: vasco+python at tenner.nl (Vasco Tenner)
Date: Thu, 03 Apr 2014 10:07:48 +0200
Subject: [IPython-dev] changing plotting backend
In-Reply-To: <CAOvn4qgDtv81A948YHmexoEknuG+Cd_oPem7iSct-+kT8mbotA@mail.gmail.com>
References: <533556E5.9060903@tenner.nl>	<CAOvn4qi381D6FF6FNvYzkZFHDmzUtMSb829wm7M+XU=oeA5+qA@mail.gmail.com>	<53397EF6.4060800@tenner.nl>
	<CAOvn4qgDtv81A948YHmexoEknuG+Cd_oPem7iSct-+kT8mbotA@mail.gmail.com>
Message-ID: <533D16D4.6010309@tenner.nl>

Hi Thomas,

On 03/31/2014 07:19 PM, Thomas Kluyver wrote:
> On 31 March 2014 07:43, Vasco Tenner <vasco+python at tenner.nl
> <mailto:vasco+python at tenner.nl>> wrote:
>
>     I tried this again with the master version of this afternoon. First
>     create a new profile, and use that profile. Still the same symptoms, I
>     cannot change the plotting backend.
>
>
> And you're not starting the notebook server with any command line flags?
> Could you have set up a bash alias for it which uses some flags? A
> $PYTHONSTARTUP file? Sorry if it seems like a basic question, but I can
> only think that something must be loading tk before you get to run
> %matplotlib.
Indeed, I started ipython notebook with the --matplotlib flag. Without 
this flag I can run
%matplotlib wx

On 03/28/2014 12:03 PM, Vasco Tenner wrote:> when I open a new ipython 
shell (master), withouth any flags, I can set
> the plotting backend by:
>   > %matplotlib wx
> Or
>   > %matplotlib gtk
>
> However, I cannot change it halfway my session:
>   > %matplotlib wx
>
>   > %matplotlib gtk
> Warning: Cannot change to a different GUI toolkit: qt. Using wx
> instead.

Is the other point (you cannot change the matplotlib backend) normal 
behaviour?

Vasco


From cyrille.rossant at gmail.com  Thu Apr  3 05:47:39 2014
From: cyrille.rossant at gmail.com (Cyrille Rossant)
Date: Thu, 3 Apr 2014 11:47:39 +0200
Subject: [IPython-dev] Interactive visualization in the IPython notebook 2.0
Message-ID: <CA+-1RQTGYuVqufBDGkay-Ftti23ULHRORmqYTHYAhofY6g+X6A@mail.gmail.com>

Dear IPython developers,

Let me introduce you to Mustafa Kaptan (in CC), a student who has
started to contribute to Vispy [1], and who has made an application to
GSoC this year. He'd be interested in integrating Vispy in the IPython
notebook for high-performance interactive visualization in the
browser. He already made a nice proof of concept [2]. We're likely to
need your help soon enough!

There are many different and complementary approaches. For now, we've
chosen to start with the simplest approach: the server renders a
figure with OpenGL, outputs a PNG, and sends it to the browser with
WebSockets and Tornado. Javascript captures user actions (mouse
clicks, mouse moves, keystrokes...) and sends them in return to the
server. I think that is similar to a proof of concept for matplotlib
made by Michael Droettboom some time ago [3].

IPython 2.0 now offers the right architecture for this. I was
wondering whether there was anyone on your side working on something
like this already? I think it would make sense to have common
protocols, interfaces and code for matplotlib, Vispy, and other
visualization libraries. Sending PNG and user events in JSON, creating
a sort of "distributed" event loop, all seem generic enough to me. It
would be too bad if we all duplicated our efforts for the same thing.

Where should we start? Comms, something else? Also, we'd like to reuse
some of this architecture for a slightly different approach. Instead
of letting the server render the figure with OpenGL, we'd just send
OpenGL commands and binary data to the browser (client-side rendering
with WebGL).

Best regards,
Cyrille

[1] http://vispy.org/
[2] https://github.com/mfkaptan/experimental/tree/master/online_backend/tornado
[3] http://mdboom.github.io/blog/2012/10/11/matplotlib-in-the-browser-its-coming/


From prakhar_aaidu16 at hotmail.com  Thu Apr  3 07:15:24 2014
From: prakhar_aaidu16 at hotmail.com (PRAKHAR gaur)
Date: Thu, 3 Apr 2014 16:45:24 +0530
Subject: [IPython-dev] Missing IPython module on Dev Branch Installation
Message-ID: <SNT150-W6260006197FD6CED96F5A89C6C0@phx.gbl>

Hello,
I am new to ipython but not Linux.
Want to use a ipython notebook for some bioinfotool,
OS: Debian 7 - 64 bitDid standard installation using apt-get(instructions from ipython.org) , it works fine.System installation version: 0.13.1But the notebook has code that requires me to use ipython dev branch
http://nbviewer.ipython.org/github/qiime/qiime/blob/1.8.0/examples/ipynb/illumina_overview_tutorial.ipynbThe first code block.
Hence did git clone of ipython repofollowed by $python setup.py build$python setup.py install --prefix=/home/pg/local_bin/ipython/bin
when run ipython from the installed bin folder I get,$ ./ipythonTraceback (most recent call last):  File "./ipython", line 4, in <module>    from IPython import start_ipythonImportError: cannot import name start_ipython
Now i did google the error, played around with PYTHONPATH and PATH variables as suggested in posts on Stackoverflow.
But that did not work, please suggest.
Regards,--Prakhar GaurSenior Research FellowIndian Agricultural Research Institute, New DelhiIN.

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

From pelson.pub at gmail.com  Thu Apr  3 09:13:17 2014
From: pelson.pub at gmail.com (Phil Elson)
Date: Thu, 3 Apr 2014 14:13:17 +0100
Subject: [IPython-dev] Interactive visualization in the IPython notebook
	2.0
In-Reply-To: <CA+-1RQTGYuVqufBDGkay-Ftti23ULHRORmqYTHYAhofY6g+X6A@mail.gmail.com>
References: <CA+-1RQTGYuVqufBDGkay-Ftti23ULHRORmqYTHYAhofY6g+X6A@mail.gmail.com>
Message-ID: <CA+L60sBQc1ZCY3r5GpZnZeUC6Cv3kaNs+ynW0earztAE5s9FUQ@mail.gmail.com>

I'm not aware of IPython providing anything other than the generic (and
useful) infrastructure for this plotting usecase, but there exists a comm
based proof-of-concept interactive visualisation produced by Jason Grout in
https://github.com/matplotlib/matplotlib/pull/2524 which may be of interest.

It is also worth noting that the WebAgg backend in matplotlib is a fully bona
fide backend available since v1.3.

Essentially the only reason there isn't an interactive matplotlib IPython
interface already is because nobody with the right technical expertise has
had an opportunity to do - I don't believe there are any remaining
technical hurdles, and I don't even think it is a big piece of work at this
point.

HTH,

Phil




On 3 April 2014 10:47, Cyrille Rossant <cyrille.rossant at gmail.com> wrote:

> Dear IPython developers,
>
> Let me introduce you to Mustafa Kaptan (in CC), a student who has
> started to contribute to Vispy [1], and who has made an application to
> GSoC this year. He'd be interested in integrating Vispy in the IPython
> notebook for high-performance interactive visualization in the
> browser. He already made a nice proof of concept [2]. We're likely to
> need your help soon enough!
>
> There are many different and complementary approaches. For now, we've
> chosen to start with the simplest approach: the server renders a
> figure with OpenGL, outputs a PNG, and sends it to the browser with
> WebSockets and Tornado. Javascript captures user actions (mouse
> clicks, mouse moves, keystrokes...) and sends them in return to the
> server. I think that is similar to a proof of concept for matplotlib
> made by Michael Droettboom some time ago [3].
>
> IPython 2.0 now offers the right architecture for this. I was
> wondering whether there was anyone on your side working on something
> like this already? I think it would make sense to have common
> protocols, interfaces and code for matplotlib, Vispy, and other
> visualization libraries. Sending PNG and user events in JSON, creating
> a sort of "distributed" event loop, all seem generic enough to me. It
> would be too bad if we all duplicated our efforts for the same thing.
>
> Where should we start? Comms, something else? Also, we'd like to reuse
> some of this architecture for a slightly different approach. Instead
> of letting the server render the figure with OpenGL, we'd just send
> OpenGL commands and binary data to the browser (client-side rendering
> with WebGL).
>
> Best regards,
> Cyrille
>
> [1] http://vispy.org/
> [2]
> https://github.com/mfkaptan/experimental/tree/master/online_backend/tornado
> [3]
> http://mdboom.github.io/blog/2012/10/11/matplotlib-in-the-browser-its-coming/
> _______________________________________________
> 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/20140403/1703cc95/attachment.html>

From takowl at gmail.com  Thu Apr  3 12:32:58 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Thu, 3 Apr 2014 09:32:58 -0700
Subject: [IPython-dev] changing plotting backend
In-Reply-To: <533D16D4.6010309@tenner.nl>
References: <533556E5.9060903@tenner.nl>
	<CAOvn4qi381D6FF6FNvYzkZFHDmzUtMSb829wm7M+XU=oeA5+qA@mail.gmail.com>
	<53397EF6.4060800@tenner.nl>
	<CAOvn4qgDtv81A948YHmexoEknuG+Cd_oPem7iSct-+kT8mbotA@mail.gmail.com>
	<533D16D4.6010309@tenner.nl>
Message-ID: <CAOvn4qjM5cSAu7EjiYCgPiQZ1DRBjMEVsk8t9ePoVj5jJpCiGA@mail.gmail.com>

On 3 April 2014 01:07, Vasco Tenner <vasco+python at tenner.nl> wrote:

> Is the other point (you cannot change the matplotlib backend) normal
> behaviour?
>

Yes. You can switch between the 'inline' backend and one GUI backend, but
not between different GUI backends.

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

From takowl at gmail.com  Thu Apr  3 12:36:21 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Thu, 3 Apr 2014 09:36:21 -0700
Subject: [IPython-dev] Missing IPython module on Dev Branch Installation
In-Reply-To: <SNT150-W6260006197FD6CED96F5A89C6C0@phx.gbl>
References: <SNT150-W6260006197FD6CED96F5A89C6C0@phx.gbl>
Message-ID: <CAOvn4qhJ7HfmBLLYuhF_x4FhAG5t8r_5T6hqNqees6=TtLObJg@mail.gmail.com>

On 3 April 2014 04:15, PRAKHAR gaur <prakhar_aaidu16 at hotmail.com> wrote:

> $python setup.py install --prefix=/home/pg/local_bin/ipython/bin
>
> when run ipython from the installed bin folder I get,
> $ ./ipython
> Traceback (most recent call last):
>   File "./ipython", line 4, in <module>
>     from IPython import start_ipython
> ImportError: cannot import name start_ipython
>

The prefix you're specifying won't install IPython anywhere that Python
looks for modules. If you want to install it for just your own user, you
can do this:

python setup.py install --user

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140403/4f1f9158/attachment.html>

From jason-sage at creativetrax.com  Thu Apr  3 12:40:13 2014
From: jason-sage at creativetrax.com (Jason Grout)
Date: Thu, 03 Apr 2014 11:40:13 -0500
Subject: [IPython-dev] Interactive visualization in the IPython notebook
 2.0
In-Reply-To: <CA+L60sBQc1ZCY3r5GpZnZeUC6Cv3kaNs+ynW0earztAE5s9FUQ@mail.gmail.com>
References: <CA+-1RQTGYuVqufBDGkay-Ftti23ULHRORmqYTHYAhofY6g+X6A@mail.gmail.com>
	<CA+L60sBQc1ZCY3r5GpZnZeUC6Cv3kaNs+ynW0earztAE5s9FUQ@mail.gmail.com>
Message-ID: <533D8EED.1020106@creativetrax.com>

I should also mention that we have been working on wrapping three.js as 
a widget, which may be much closer to your usecase than the matplotlib 
work.  I think we're nearly done (our main TODO now is wrapping 
interactive picking, and then cleaning up the existing code based on the 
patterns we've observed, plus documenting and providing examples).

https://github.com/jasongrout/pythreejs

Live demo of your face on a sphere: 
http://sagecell.sagemath.org/?q=qjjurl (you may need to press Evaluate 
to overcome the latency of loading the javascript, and you'll also need 
to grant the browser permission to use your camera)

The idea behind wrapping three.js is that it provides useful scenegraph 
primitives, and also renders to canvas if webgl isn't available.  We 
basically are just providing access to the three.js primitives in 
Python, along with a few convenience classes (for example, for rendering 
a function surface, or rendering a text sprite).  We are also building a 
converter for Sage graphics on top of this wrapping.

It sounds like vispy needs a lower layer than our pythree.js project 
(since it looks like you are constructing the opengl code directly). 
But it might give you some ideas...

Thanks,

Jason


On 4/3/14, 8:13, Phil Elson wrote:
> I'm not aware of IPython providing anything other than the generic (and
> useful) infrastructure for this plotting usecase, but there exists a
> comm based proof-of-concept interactive visualisation produced by Jason
> Grout in https://github.com/matplotlib/matplotlib/pull/2524 which may be
> of interest.
>
> It is also worth noting that the WebAgg backend in matplotlib is a fully
> bona fide backend available since v1.3.
>
> Essentially the only reason there isn't an interactive matplotlib
> IPython interface already is because nobody with the right technical
> expertise has had an opportunity to do - I don't believe there are any
> remaining technical hurdles, and I don't even think it is a big piece of
> work at this point.
>
> HTH,
>
> Phil
>
>
>
>
> On 3 April 2014 10:47, Cyrille Rossant <cyrille.rossant at gmail.com
> <mailto:cyrille.rossant at gmail.com>> wrote:
>
>     Dear IPython developers,
>
>     Let me introduce you to Mustafa Kaptan (in CC), a student who has
>     started to contribute to Vispy [1], and who has made an application to
>     GSoC this year. He'd be interested in integrating Vispy in the IPython
>     notebook for high-performance interactive visualization in the
>     browser. He already made a nice proof of concept [2]. We're likely to
>     need your help soon enough!
>
>     There are many different and complementary approaches. For now, we've
>     chosen to start with the simplest approach: the server renders a
>     figure with OpenGL, outputs a PNG, and sends it to the browser with
>     WebSockets and Tornado. Javascript captures user actions (mouse
>     clicks, mouse moves, keystrokes...) and sends them in return to the
>     server. I think that is similar to a proof of concept for matplotlib
>     made by Michael Droettboom some time ago [3].
>
>     IPython 2.0 now offers the right architecture for this. I was
>     wondering whether there was anyone on your side working on something
>     like this already? I think it would make sense to have common
>     protocols, interfaces and code for matplotlib, Vispy, and other
>     visualization libraries. Sending PNG and user events in JSON, creating
>     a sort of "distributed" event loop, all seem generic enough to me. It
>     would be too bad if we all duplicated our efforts for the same thing.
>
>     Where should we start? Comms, something else? Also, we'd like to reuse
>     some of this architecture for a slightly different approach. Instead
>     of letting the server render the figure with OpenGL, we'd just send
>     OpenGL commands and binary data to the browser (client-side rendering
>     with WebGL).
>
>     Best regards,
>     Cyrille
>
>     [1] http://vispy.org/
>     [2]
>     https://github.com/mfkaptan/experimental/tree/master/online_backend/tornado
>     [3]
>     http://mdboom.github.io/blog/2012/10/11/matplotlib-in-the-browser-its-coming/
>     _______________________________________________
>     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
>



From mark.voorhies at ucsf.edu  Thu Apr  3 11:05:34 2014
From: mark.voorhies at ucsf.edu (Mark Voorhies)
Date: Thu, 3 Apr 2014 08:05:34 -0700
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <533D166F.9050302@tenner.nl>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<533C6CD4.9030309@ucsf.edu>
	<CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>
	<533C73BD.3080605@ucsf.edu> <533D166F.9050302@tenner.nl>
Message-ID: <533D78BE.2080309@ucsf.edu>

On 04/03/2014 01:06 AM, Vasco Tenner wrote:
> Hi Mark,
>
> On 04/02/2014 10:31 PM, Mark Voorhies wrote:
>> On 04/02/2014 01:17 PM, Thomas Kluyver wrote:
>>> On 2 April 2014 13:02, Mark Voorhies <mark.voorhies at ucsf.edu> wrote:
>>>
>>>> * "New notebook" creates a new notebook and opens a tab for it, but the
>>>> page is blank and the notebook does not show up as "running"
>>>
>>>
>>> This sounds to me like a browser caching issue. Try hitting Ctrl-F5 several
>>> times to clear the cache.
> A fail safe way to test this is to open a private-window (crtl-shift-p),
> and then load the ipython dashboard.

Thanks for the suggestion -> still getting the same behavior in a private window

--Mark




From takowl at gmail.com  Thu Apr  3 12:59:14 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Thu, 3 Apr 2014 09:59:14 -0700
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <533D78BE.2080309@ucsf.edu>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<533C6CD4.9030309@ucsf.edu>
	<CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>
	<533C73BD.3080605@ucsf.edu> <533D166F.9050302@tenner.nl>
	<533D78BE.2080309@ucsf.edu>
Message-ID: <CAOvn4qgNSD32MmBa5yLmcUZiGwOUzKZMJwLbmZy+maW+5Qsa8Q@mail.gmail.com>

On 3 April 2014 08:05, Mark Voorhies <mark.voorhies at ucsf.edu> wrote:

> Thanks for the suggestion -> still getting the same behavior in a private
> window


Just to double check, can you temporarily disable noscript altogether and
restart Firefox, or start Firefox in safe mode (which should disable all
extensions)? It seems like the most obvious difference between your Firefox
installation and the many environments where it is working.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140403/07a835e7/attachment.html>

From cyrille.rossant at gmail.com  Thu Apr  3 13:22:53 2014
From: cyrille.rossant at gmail.com (Cyrille Rossant)
Date: Thu, 3 Apr 2014 19:22:53 +0200
Subject: [IPython-dev] Interactive visualization in the IPython notebook
	2.0
In-Reply-To: <533D8EED.1020106@creativetrax.com>
References: <CA+-1RQTGYuVqufBDGkay-Ftti23ULHRORmqYTHYAhofY6g+X6A@mail.gmail.com>
	<CA+L60sBQc1ZCY3r5GpZnZeUC6Cv3kaNs+ynW0earztAE5s9FUQ@mail.gmail.com>
	<533D8EED.1020106@creativetrax.com>
Message-ID: <CA+-1RQT2Up0xbaAgXRzUnXU+fZaBp9+whOPoiZWkrMws0K+ZVw@mail.gmail.com>

Thanks, pythreejs look cool! Now I'm wondering whether we should use
comms or the higher-level widgets API for our use-case...

2014-04-03 18:40 GMT+02:00 Jason Grout <jason-sage at creativetrax.com>:
> I should also mention that we have been working on wrapping three.js as
> a widget, which may be much closer to your usecase than the matplotlib
> work.  I think we're nearly done (our main TODO now is wrapping
> interactive picking, and then cleaning up the existing code based on the
> patterns we've observed, plus documenting and providing examples).
>
> https://github.com/jasongrout/pythreejs
>
> Live demo of your face on a sphere:
> http://sagecell.sagemath.org/?q=qjjurl (you may need to press Evaluate
> to overcome the latency of loading the javascript, and you'll also need
> to grant the browser permission to use your camera)
>
> The idea behind wrapping three.js is that it provides useful scenegraph
> primitives, and also renders to canvas if webgl isn't available.  We
> basically are just providing access to the three.js primitives in
> Python, along with a few convenience classes (for example, for rendering
> a function surface, or rendering a text sprite).  We are also building a
> converter for Sage graphics on top of this wrapping.
>
> It sounds like vispy needs a lower layer than our pythree.js project
> (since it looks like you are constructing the opengl code directly).
> But it might give you some ideas...
>
> Thanks,
>
> Jason
>
>
> On 4/3/14, 8:13, Phil Elson wrote:
>> I'm not aware of IPython providing anything other than the generic (and
>> useful) infrastructure for this plotting usecase, but there exists a
>> comm based proof-of-concept interactive visualisation produced by Jason
>> Grout in https://github.com/matplotlib/matplotlib/pull/2524 which may be
>> of interest.
>>
>> It is also worth noting that the WebAgg backend in matplotlib is a fully
>> bona fide backend available since v1.3.
>>
>> Essentially the only reason there isn't an interactive matplotlib
>> IPython interface already is because nobody with the right technical
>> expertise has had an opportunity to do - I don't believe there are any
>> remaining technical hurdles, and I don't even think it is a big piece of
>> work at this point.
>>
>> HTH,
>>
>> Phil
>>
>>
>>
>>
>> On 3 April 2014 10:47, Cyrille Rossant <cyrille.rossant at gmail.com
>> <mailto:cyrille.rossant at gmail.com>> wrote:
>>
>>     Dear IPython developers,
>>
>>     Let me introduce you to Mustafa Kaptan (in CC), a student who has
>>     started to contribute to Vispy [1], and who has made an application to
>>     GSoC this year. He'd be interested in integrating Vispy in the IPython
>>     notebook for high-performance interactive visualization in the
>>     browser. He already made a nice proof of concept [2]. We're likely to
>>     need your help soon enough!
>>
>>     There are many different and complementary approaches. For now, we've
>>     chosen to start with the simplest approach: the server renders a
>>     figure with OpenGL, outputs a PNG, and sends it to the browser with
>>     WebSockets and Tornado. Javascript captures user actions (mouse
>>     clicks, mouse moves, keystrokes...) and sends them in return to the
>>     server. I think that is similar to a proof of concept for matplotlib
>>     made by Michael Droettboom some time ago [3].
>>
>>     IPython 2.0 now offers the right architecture for this. I was
>>     wondering whether there was anyone on your side working on something
>>     like this already? I think it would make sense to have common
>>     protocols, interfaces and code for matplotlib, Vispy, and other
>>     visualization libraries. Sending PNG and user events in JSON, creating
>>     a sort of "distributed" event loop, all seem generic enough to me. It
>>     would be too bad if we all duplicated our efforts for the same thing.
>>
>>     Where should we start? Comms, something else? Also, we'd like to reuse
>>     some of this architecture for a slightly different approach. Instead
>>     of letting the server render the figure with OpenGL, we'd just send
>>     OpenGL commands and binary data to the browser (client-side rendering
>>     with WebGL).
>>
>>     Best regards,
>>     Cyrille
>>
>>     [1] http://vispy.org/
>>     [2]
>>     https://github.com/mfkaptan/experimental/tree/master/online_backend/tornado
>>     [3]
>>     http://mdboom.github.io/blog/2012/10/11/matplotlib-in-the-browser-its-coming/
>>     _______________________________________________
>>     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
>>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev


From jason-sage at creativetrax.com  Thu Apr  3 13:38:51 2014
From: jason-sage at creativetrax.com (Jason Grout)
Date: Thu, 03 Apr 2014 12:38:51 -0500
Subject: [IPython-dev] Interactive visualization in the IPython notebook
 2.0
In-Reply-To: <CA+-1RQT2Up0xbaAgXRzUnXU+fZaBp9+whOPoiZWkrMws0K+ZVw@mail.gmail.com>
References: <CA+-1RQTGYuVqufBDGkay-Ftti23ULHRORmqYTHYAhofY6g+X6A@mail.gmail.com>	<CA+L60sBQc1ZCY3r5GpZnZeUC6Cv3kaNs+ynW0earztAE5s9FUQ@mail.gmail.com>	<533D8EED.1020106@creativetrax.com>
	<CA+-1RQT2Up0xbaAgXRzUnXU+fZaBp9+whOPoiZWkrMws0K+ZVw@mail.gmail.com>
Message-ID: <533D9CAB.2060609@creativetrax.com>

I think it depends on how you think about your communication.  If your 
thinking is data/state-oriented, the widget infrastructure makes a lot 
of sense (you just set data values, and the widget infrastructure takes 
care of syncing those values).  If your thinking is function-oriented, 
then the lower-level Comm framework may work better---it's leaner and 
doesn't have a lot of fluff.

For pythreejs, since we are basically providing proxy objects, it made a 
lot of sense to adopt a state-oriented view and just sync all the 
objects' states back and forth.

Thanks,

Jason



On 4/3/14, 12:22, Cyrille Rossant wrote:
> Thanks, pythreejs look cool! Now I'm wondering whether we should use
> comms or the higher-level widgets API for our use-case...
>
> 2014-04-03 18:40 GMT+02:00 Jason Grout <jason-sage at creativetrax.com>:
>> I should also mention that we have been working on wrapping three.js as
>> a widget, which may be much closer to your usecase than the matplotlib
>> work.  I think we're nearly done (our main TODO now is wrapping
>> interactive picking, and then cleaning up the existing code based on the
>> patterns we've observed, plus documenting and providing examples).
>>
>> https://github.com/jasongrout/pythreejs
>>
>> Live demo of your face on a sphere:
>> http://sagecell.sagemath.org/?q=qjjurl (you may need to press Evaluate
>> to overcome the latency of loading the javascript, and you'll also need
>> to grant the browser permission to use your camera)
>>
>> The idea behind wrapping three.js is that it provides useful scenegraph
>> primitives, and also renders to canvas if webgl isn't available.  We
>> basically are just providing access to the three.js primitives in
>> Python, along with a few convenience classes (for example, for rendering
>> a function surface, or rendering a text sprite).  We are also building a
>> converter for Sage graphics on top of this wrapping.
>>
>> It sounds like vispy needs a lower layer than our pythree.js project
>> (since it looks like you are constructing the opengl code directly).
>> But it might give you some ideas...
>>
>> Thanks,
>>
>> Jason
>>
>>
>> On 4/3/14, 8:13, Phil Elson wrote:
>>> I'm not aware of IPython providing anything other than the generic (and
>>> useful) infrastructure for this plotting usecase, but there exists a
>>> comm based proof-of-concept interactive visualisation produced by Jason
>>> Grout in https://github.com/matplotlib/matplotlib/pull/2524 which may be
>>> of interest.
>>>
>>> It is also worth noting that the WebAgg backend in matplotlib is a fully
>>> bona fide backend available since v1.3.
>>>
>>> Essentially the only reason there isn't an interactive matplotlib
>>> IPython interface already is because nobody with the right technical
>>> expertise has had an opportunity to do - I don't believe there are any
>>> remaining technical hurdles, and I don't even think it is a big piece of
>>> work at this point.
>>>
>>> HTH,
>>>
>>> Phil
>>>
>>>
>>>
>>>
>>> On 3 April 2014 10:47, Cyrille Rossant <cyrille.rossant at gmail.com
>>> <mailto:cyrille.rossant at gmail.com>> wrote:
>>>
>>>      Dear IPython developers,
>>>
>>>      Let me introduce you to Mustafa Kaptan (in CC), a student who has
>>>      started to contribute to Vispy [1], and who has made an application to
>>>      GSoC this year. He'd be interested in integrating Vispy in the IPython
>>>      notebook for high-performance interactive visualization in the
>>>      browser. He already made a nice proof of concept [2]. We're likely to
>>>      need your help soon enough!
>>>
>>>      There are many different and complementary approaches. For now, we've
>>>      chosen to start with the simplest approach: the server renders a
>>>      figure with OpenGL, outputs a PNG, and sends it to the browser with
>>>      WebSockets and Tornado. Javascript captures user actions (mouse
>>>      clicks, mouse moves, keystrokes...) and sends them in return to the
>>>      server. I think that is similar to a proof of concept for matplotlib
>>>      made by Michael Droettboom some time ago [3].
>>>
>>>      IPython 2.0 now offers the right architecture for this. I was
>>>      wondering whether there was anyone on your side working on something
>>>      like this already? I think it would make sense to have common
>>>      protocols, interfaces and code for matplotlib, Vispy, and other
>>>      visualization libraries. Sending PNG and user events in JSON, creating
>>>      a sort of "distributed" event loop, all seem generic enough to me. It
>>>      would be too bad if we all duplicated our efforts for the same thing.
>>>
>>>      Where should we start? Comms, something else? Also, we'd like to reuse
>>>      some of this architecture for a slightly different approach. Instead
>>>      of letting the server render the figure with OpenGL, we'd just send
>>>      OpenGL commands and binary data to the browser (client-side rendering
>>>      with WebGL).
>>>
>>>      Best regards,
>>>      Cyrille
>>>
>>>      [1] http://vispy.org/
>>>      [2]
>>>      https://github.com/mfkaptan/experimental/tree/master/online_backend/tornado
>>>      [3]
>>>      http://mdboom.github.io/blog/2012/10/11/matplotlib-in-the-browser-its-coming/
>>>      _______________________________________________
>>>      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
>>>
>>
>> _______________________________________________
>> 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 mark.voorhies at ucsf.edu  Thu Apr  3 15:32:38 2014
From: mark.voorhies at ucsf.edu (Mark Voorhies)
Date: Thu, 3 Apr 2014 12:32:38 -0700
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <CAOvn4qgNSD32MmBa5yLmcUZiGwOUzKZMJwLbmZy+maW+5Qsa8Q@mail.gmail.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<533C6CD4.9030309@ucsf.edu>
	<CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>
	<533C73BD.3080605@ucsf.edu> <533D166F.9050302@tenner.nl>
	<533D78BE.2080309@ucsf.edu>
	<CAOvn4qgNSD32MmBa5yLmcUZiGwOUzKZMJwLbmZy+maW+5Qsa8Q@mail.gmail.com>
Message-ID: <533DB756.2020601@ucsf.edu>

On 04/03/2014 09:59 AM, Thomas Kluyver wrote:
> On 3 April 2014 08:05, Mark Voorhies <mark.voorhies at ucsf.edu> wrote:
>
>> Thanks for the suggestion -> still getting the same behavior in a private
>> window
>
>
> Just to double check, can you temporarily disable noscript altogether and
> restart Firefox, or start Firefox in safe mode (which should disable all
> extensions)? It seems like the most obvious difference between your Firefox
> installation and the many environments where it is working.
>
> Thomas

Disabling NoScript didn't work, but creating a new firefox profile
(
firefox -CreateProfile "firefox_clean /home/mvoorhie/.mozilla/firefox/firefox_clean"
firefox -no-remote -P firefox_clean
)
did work, so it's definitely something particular to my Firefox configuration.
I'll see if I can narrow it down to something specific (probably this weekend).

--Mark




From ellisonbg at gmail.com  Thu Apr  3 17:37:59 2014
From: ellisonbg at gmail.com (Brian Granger)
Date: Thu, 3 Apr 2014 14:37:59 -0700
Subject: [IPython-dev] Interactive visualization in the IPython notebook
	2.0
In-Reply-To: <533D9CAB.2060609@creativetrax.com>
References: <CA+-1RQTGYuVqufBDGkay-Ftti23ULHRORmqYTHYAhofY6g+X6A@mail.gmail.com>
	<CA+L60sBQc1ZCY3r5GpZnZeUC6Cv3kaNs+ynW0earztAE5s9FUQ@mail.gmail.com>
	<533D8EED.1020106@creativetrax.com>
	<CA+-1RQT2Up0xbaAgXRzUnXU+fZaBp9+whOPoiZWkrMws0K+ZVw@mail.gmail.com>
	<533D9CAB.2060609@creativetrax.com>
Message-ID: <CAH4pYpT1ZCZ4Dq2Xgz=V5BFAkiEKBj0ggq6Pu0TKae1MQga7ug@mail.gmail.com>

For this usage case I would definitely build a Widget, rather than
building directly on top of the Comm layer. The reason is that Widgets
are composible objects that can be hooked together and reused in
different ways. If you using the Comm layer alone, your stuff won't
play at all with existing Widgets and you will have to reinvent a lot
of the Widget stuff yourself.

On Thu, Apr 3, 2014 at 10:38 AM, Jason Grout
<jason-sage at creativetrax.com> wrote:
> I think it depends on how you think about your communication.  If your
> thinking is data/state-oriented, the widget infrastructure makes a lot
> of sense (you just set data values, and the widget infrastructure takes
> care of syncing those values).  If your thinking is function-oriented,
> then the lower-level Comm framework may work better---it's leaner and
> doesn't have a lot of fluff.
>
> For pythreejs, since we are basically providing proxy objects, it made a
> lot of sense to adopt a state-oriented view and just sync all the
> objects' states back and forth.
>
> Thanks,
>
> Jason
>
>
>
> On 4/3/14, 12:22, Cyrille Rossant wrote:
>> Thanks, pythreejs look cool! Now I'm wondering whether we should use
>> comms or the higher-level widgets API for our use-case...
>>
>> 2014-04-03 18:40 GMT+02:00 Jason Grout <jason-sage at creativetrax.com>:
>>> I should also mention that we have been working on wrapping three.js as
>>> a widget, which may be much closer to your usecase than the matplotlib
>>> work.  I think we're nearly done (our main TODO now is wrapping
>>> interactive picking, and then cleaning up the existing code based on the
>>> patterns we've observed, plus documenting and providing examples).
>>>
>>> https://github.com/jasongrout/pythreejs
>>>
>>> Live demo of your face on a sphere:
>>> http://sagecell.sagemath.org/?q=qjjurl (you may need to press Evaluate
>>> to overcome the latency of loading the javascript, and you'll also need
>>> to grant the browser permission to use your camera)
>>>
>>> The idea behind wrapping three.js is that it provides useful scenegraph
>>> primitives, and also renders to canvas if webgl isn't available.  We
>>> basically are just providing access to the three.js primitives in
>>> Python, along with a few convenience classes (for example, for rendering
>>> a function surface, or rendering a text sprite).  We are also building a
>>> converter for Sage graphics on top of this wrapping.
>>>
>>> It sounds like vispy needs a lower layer than our pythree.js project
>>> (since it looks like you are constructing the opengl code directly).
>>> But it might give you some ideas...
>>>
>>> Thanks,
>>>
>>> Jason
>>>
>>>
>>> On 4/3/14, 8:13, Phil Elson wrote:
>>>> I'm not aware of IPython providing anything other than the generic (and
>>>> useful) infrastructure for this plotting usecase, but there exists a
>>>> comm based proof-of-concept interactive visualisation produced by Jason
>>>> Grout in https://github.com/matplotlib/matplotlib/pull/2524 which may be
>>>> of interest.
>>>>
>>>> It is also worth noting that the WebAgg backend in matplotlib is a fully
>>>> bona fide backend available since v1.3.
>>>>
>>>> Essentially the only reason there isn't an interactive matplotlib
>>>> IPython interface already is because nobody with the right technical
>>>> expertise has had an opportunity to do - I don't believe there are any
>>>> remaining technical hurdles, and I don't even think it is a big piece of
>>>> work at this point.
>>>>
>>>> HTH,
>>>>
>>>> Phil
>>>>
>>>>
>>>>
>>>>
>>>> On 3 April 2014 10:47, Cyrille Rossant <cyrille.rossant at gmail.com
>>>> <mailto:cyrille.rossant at gmail.com>> wrote:
>>>>
>>>>      Dear IPython developers,
>>>>
>>>>      Let me introduce you to Mustafa Kaptan (in CC), a student who has
>>>>      started to contribute to Vispy [1], and who has made an application to
>>>>      GSoC this year. He'd be interested in integrating Vispy in the IPython
>>>>      notebook for high-performance interactive visualization in the
>>>>      browser. He already made a nice proof of concept [2]. We're likely to
>>>>      need your help soon enough!
>>>>
>>>>      There are many different and complementary approaches. For now, we've
>>>>      chosen to start with the simplest approach: the server renders a
>>>>      figure with OpenGL, outputs a PNG, and sends it to the browser with
>>>>      WebSockets and Tornado. Javascript captures user actions (mouse
>>>>      clicks, mouse moves, keystrokes...) and sends them in return to the
>>>>      server. I think that is similar to a proof of concept for matplotlib
>>>>      made by Michael Droettboom some time ago [3].
>>>>
>>>>      IPython 2.0 now offers the right architecture for this. I was
>>>>      wondering whether there was anyone on your side working on something
>>>>      like this already? I think it would make sense to have common
>>>>      protocols, interfaces and code for matplotlib, Vispy, and other
>>>>      visualization libraries. Sending PNG and user events in JSON, creating
>>>>      a sort of "distributed" event loop, all seem generic enough to me. It
>>>>      would be too bad if we all duplicated our efforts for the same thing.
>>>>
>>>>      Where should we start? Comms, something else? Also, we'd like to reuse
>>>>      some of this architecture for a slightly different approach. Instead
>>>>      of letting the server render the figure with OpenGL, we'd just send
>>>>      OpenGL commands and binary data to the browser (client-side rendering
>>>>      with WebGL).
>>>>
>>>>      Best regards,
>>>>      Cyrille
>>>>
>>>>      [1] http://vispy.org/
>>>>      [2]
>>>>      https://github.com/mfkaptan/experimental/tree/master/online_backend/tornado
>>>>      [3]
>>>>      http://mdboom.github.io/blog/2012/10/11/matplotlib-in-the-browser-its-coming/
>>>>      _______________________________________________
>>>>      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
>>>>
>>>
>>> _______________________________________________
>>> 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



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu and ellisonbg at gmail.com


From gvwilson at third-bit.com  Thu Apr  3 18:37:46 2014
From: gvwilson at third-bit.com (Greg Wilson)
Date: Thu, 03 Apr 2014 18:37:46 -0400
Subject: [IPython-dev] easiest way to insert a literal tab character in a
	code cell?
Message-ID: <533DE2BA.9030701@third-bit.com>

Hi,
I'd like to put literal tab characters in cells, but of course tab means 
"indent" to the editor.  What's the easiest way to do this?
Thanks,
Greg
p.s. because I'm going to write Makefiles in the notebook...


From pi at berkeley.edu  Thu Apr  3 22:46:03 2014
From: pi at berkeley.edu (Paul Ivanov)
Date: Thu, 3 Apr 2014 19:46:03 -0700
Subject: [IPython-dev] easiest way to insert a literal tab character in
 a code cell?
In-Reply-To: <533DE2BA.9030701@third-bit.com>
References: <533DE2BA.9030701@third-bit.com>
Message-ID: <20140404024603.GC23703@HbI-OTOH.berkeley.edu>

Greg Wilson, on 2014-04-03 18:37,  wrote:
> Hi,
> I'd like to put literal tab characters in cells, but of course tab means 
> "indent" to the editor.  What's the easiest way to do this?
> Thanks,
> Greg
> p.s. because I'm going to write Makefiles in the notebook...

Here you go, Greg:

http://nbviewer.ipython.org/url/pirsquared.org/blog/notebooks/indenting-tabs.ipynb

The TL;DR version is - you can toggle tab-literal insertion via:

    %%javascript

    IPython.tab_as_tab_everywhere = function(use_tabs) {
        if (use_tabs === undefined) {
            use_tabs = true; 
        }
        
        // apply setting to all current CodeMirror instances
        IPython.notebook.get_cells().map(
            function(c) {  return c.code_mirror.options.indentWithTabs=use_tabs;  }
        );
        // make sure new CodeMirror instances created in the future also use this setting
        CodeMirror.defaults.indentWithTabs=use_tabs;
        
    };

And then just call

    %%javascript

    IPython.tab_as_tab_everywhere();

I believe you already have code to add buttons to the toolbar
that Matthias and Min supplied in the past, so hooking those
things up would be a breeze.

best,
-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org


From asmeurer at gmail.com  Fri Apr  4 00:20:02 2014
From: asmeurer at gmail.com (Aaron Meurer)
Date: Thu, 3 Apr 2014 23:20:02 -0500
Subject: [IPython-dev] easiest way to insert a literal tab character in
 a code cell?
In-Reply-To: <20140404024603.GC23703@HbI-OTOH.berkeley.edu>
References: <533DE2BA.9030701@third-bit.com>
	<20140404024603.GC23703@HbI-OTOH.berkeley.edu>
Message-ID: <CAKgW=6+r3Eed_RoP2+-CNy5S8j-xn6Rc7Hk2_Cvna76kwtWoSw@mail.gmail.com>

Since you asked for the easiest way, I should point out that you can just
paste a tab into a code cell. If you need one to paste, just type
print('\t') and copy the whitespace below the cell.

Aaron Meurer


On Thu, Apr 3, 2014 at 9:46 PM, Paul Ivanov <pi at berkeley.edu> wrote:

> Greg Wilson, on 2014-04-03 18:37,  wrote:
> > Hi,
> > I'd like to put literal tab characters in cells, but of course tab means
> > "indent" to the editor.  What's the easiest way to do this?
> > Thanks,
> > Greg
> > p.s. because I'm going to write Makefiles in the notebook...
>
> Here you go, Greg:
>
>
> http://nbviewer.ipython.org/url/pirsquared.org/blog/notebooks/indenting-tabs.ipynb
>
> The TL;DR version is - you can toggle tab-literal insertion via:
>
>     %%javascript
>
>     IPython.tab_as_tab_everywhere = function(use_tabs) {
>         if (use_tabs === undefined) {
>             use_tabs = true;
>         }
>
>         // apply setting to all current CodeMirror instances
>         IPython.notebook.get_cells().map(
>             function(c) {  return
> c.code_mirror.options.indentWithTabs=use_tabs;  }
>         );
>         // make sure new CodeMirror instances created in the future also
> use this setting
>         CodeMirror.defaults.indentWithTabs=use_tabs;
>
>     };
>
> And then just call
>
>     %%javascript
>
>     IPython.tab_as_tab_everywhere();
>
> I believe you already have code to add buttons to the toolbar
> that Matthias and Min supplied in the past, so hooking those
> things up would be a breeze.
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140403/912b5a0e/attachment.html>

From prakhar_aaidu16 at hotmail.com  Fri Apr  4 02:19:10 2014
From: prakhar_aaidu16 at hotmail.com (PRAKHAR gaur)
Date: Fri, 4 Apr 2014 11:49:10 +0530
Subject: [IPython-dev] IPython-dev Digest, Vol 123, Issue 5
In-Reply-To: <mailman.13088.1396542661.1037.ipython-dev@scipy.org>
References: <mailman.13088.1396542661.1037.ipython-dev@scipy.org>
Message-ID: <SNT150-W242A23B417939E98ADB2999C6F0@phx.gbl>

Dear Thomas,
Thank you for the reply.
I thought the prefix option can be used just the way it works forAutotools configure script.
I did$python setup.py install --userthat installed everything here : /home/prakhar/.local/
now the dev version of ipython is available globally in $PATH
Two questions,
A) If I want to use the system installed version(0.13.1) of ipython , how do I do that ?
and, 
When I try running a notebook,$ipython2 notebook illumina_overview_tutorial.ipynbor$/home/prakhar/.local/bin/ipython2 notebook illumina_overview_tutorial.ipynb
B) ipython reports an error about missing "jinja2" module, the OS installed ipython can run notebooks just fine.What can be wrong here ? 
Regards,--Prakhar GaurIARI, IN
> Message: 7
> Date: Thu, 3 Apr 2014 09:36:21 -0700
> From: Thomas Kluyver <takowl at gmail.com>
> Subject: Re: [IPython-dev] Missing IPython module on Dev Branch
> 	Installation
> To: IPython developers list <ipython-dev at scipy.org>
> Message-ID:
> 	<CAOvn4qhJ7HfmBLLYuhF_x4FhAG5t8r_5T6hqNqees6=TtLObJg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On 3 April 2014 04:15, PRAKHAR gaur <prakhar_aaidu16 at hotmail.com> wrote:
> 
> > $python setup.py install --prefix=/home/pg/local_bin/ipython/bin
> >
> > when run ipython from the installed bin folder I get,
> > $ ./ipython
> > Traceback (most recent call last):
> >   File "./ipython", line 4, in <module>
> >     from IPython import start_ipython
> > ImportError: cannot import name start_ipython
> >
> 
> The prefix you're specifying won't install IPython anywhere that Python
> looks for modules. If you want to install it for just your own user, you
> can do this:
> 
> python setup.py install --user
> 
> Thomas 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140404/3e824a35/attachment.html>

From rjohns67 at gmail.com  Fri Apr  4 02:34:11 2014
From: rjohns67 at gmail.com (Richard Johns)
Date: Thu, 3 Apr 2014 23:34:11 -0700
Subject: [IPython-dev] SymPy printing in the ipython notebook
Message-ID: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>

I attempted to follow the examples in

http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/notebooks/SymPy%20Examples.ipynb

If I open a new notebook and carry out the steps below the output is
mathematically correct but it isn't displayed in latex/mathjax format:

from IPython.display import display

from sympy.interactive import printing
printing.init_printing()

from __future__ import division
import sympy as sym
from sympy import *
x, y, z = symbols("x y z")
k, m, n = symbols("k m n", integer=True)
f, g, h = map(Function, 'fgh')

Rational(3,2)*pi + exp(I*x) / (x**2 + y)

The output is:


3*pi/2 + exp(I*x)/(x**2 + y)


SoftwareVersionPython2.7.3 (default, Feb 27 2014, 20:00:17) [GCC 4.6.3]
IPython2.0.0OSposix [linux2]numpy1.6.1matplotlib1.1.1rcscipy0.9.0Thu Apr 03
00:02:41 2014 MST

If I open a terminal in the same directory and repeat these steps the
output is displayed in a pretty printing format:

rj at rjslptp:~$ ipython
Python 2.7.3 (default, Feb 27 2014, 20:00:17)
Type "copyright", "credits" or "license" for more information.

IPython 2.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from IPython.display import display

In [2]:

In [2]: from sympy.interactive import printing

In [3]: printing.init_printing()

In [4]:

In [4]: from __future__ import division

In [5]: import sympy as sym

In [6]: from sympy import *

In [7]: x, y, z = symbols("x y z")

In [8]: k, m, n = symbols("k m n", integer=True)

In [9]: f, g, h = map(Function, 'fgh')

In [10]: Rational(3,2)*pi + exp(I*x) / (x**2 + y)
        ??x
3??    ?
??? + ??????
 2     2
      x  + y

I imagine I'm missing something simple but I haven't been able to figure
out what it is. Any help would be appreciated.

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

From pi at berkeley.edu  Fri Apr  4 03:49:28 2014
From: pi at berkeley.edu (Paul Ivanov)
Date: Fri, 4 Apr 2014 00:49:28 -0700
Subject: [IPython-dev] easiest way to insert a literal tab character in
 a code cell?
In-Reply-To: <CAKgW=6+r3Eed_RoP2+-CNy5S8j-xn6Rc7Hk2_Cvna76kwtWoSw@mail.gmail.com>
References: <533DE2BA.9030701@third-bit.com>
	<20140404024603.GC23703@HbI-OTOH.berkeley.edu>
	<CAKgW=6+r3Eed_RoP2+-CNy5S8j-xn6Rc7Hk2_Cvna76kwtWoSw@mail.gmail.com>
Message-ID: <20140404074928.GD23703@HbI-OTOH.berkeley.edu>

Aaron Meurer, on 2014-04-03 23:20,  wrote:
> Since you asked for the easiest way, I should point out that you can just
> paste a tab into a code cell. If you need one to paste, just type
> print('\t') and copy the whitespace below the cell.

Well, I started off my post with exactly that, but figured that
Greg already figured that out and wanted something more elegant.

    The easiest way to do this is to just get a tab character
    somewhere that you can copy, and then paste it in.

    In [1]: print("\t")
        

    In [2]:		# I copy pasted the output of the cell above here

Then I also gave the alternative of using

	get_ipython().set_next_input("\t Your code here")

wich will create a new cell with a tab and your code.


> 
> Aaron Meurer
> 
> 
> On Thu, Apr 3, 2014 at 9:46 PM, Paul Ivanov <pi at berkeley.edu> wrote:
> 
> > Greg Wilson, on 2014-04-03 18:37,  wrote:
> > > Hi,
> > > I'd like to put literal tab characters in cells, but of course tab means
> > > "indent" to the editor.  What's the easiest way to do this?
> > > Thanks,
> > > Greg
> > > p.s. because I'm going to write Makefiles in the notebook...
> >
> > Here you go, Greg:
> >
> >
> > http://nbviewer.ipython.org/url/pirsquared.org/blog/notebooks/indenting-tabs.ipynb
> >
> > The TL;DR version is - you can toggle tab-literal insertion via:
> >
> >     %%javascript
> >
> >     IPython.tab_as_tab_everywhere = function(use_tabs) {
> >         if (use_tabs === undefined) {
> >             use_tabs = true;
> >         }
> >
> >         // apply setting to all current CodeMirror instances
> >         IPython.notebook.get_cells().map(
> >             function(c) {  return
> > c.code_mirror.options.indentWithTabs=use_tabs;  }
> >         );
> >         // make sure new CodeMirror instances created in the future also
> > use this setting
> >         CodeMirror.defaults.indentWithTabs=use_tabs;
> >
> >     };
> >
> > And then just call
> >
> >     %%javascript
> >
> >     IPython.tab_as_tab_everywhere();
> >
> > I believe you already have code to add buttons to the toolbar
> > that Matthias and Min supplied in the past, so hooking those
> > things up would be a breeze.
> >
> > 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


-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org


From prakhar_aaidu16 at hotmail.com  Fri Apr  4 03:57:09 2014
From: prakhar_aaidu16 at hotmail.com (PRAKHAR gaur)
Date: Fri, 4 Apr 2014 13:27:09 +0530
Subject: [IPython-dev] Missing IPython module on Dev Branch
In-Reply-To: <SNT150-W242A23B417939E98ADB2999C6F0@phx.gbl>
References: <mailman.13088.1396542661.1037.ipython-dev@scipy.org>,
	<SNT150-W242A23B417939E98ADB2999C6F0@phx.gbl>
Message-ID: <SNT150-W8754522D705D62398606089C6F0@phx.gbl>

Edit: Forgot to change the subject, sorry.


To: ipython-dev at scipy.org
Subject: RE: IPython-dev Digest, Vol 123, Issue 5
Date: Fri, 4 Apr 2014 11:49:10 +0530




Dear Thomas,
Thank you for the reply.
I thought the prefix option can be used just the way it works forAutotools configure script.
I did$python setup.py install --userthat installed everything here : /home/prakhar/.local/
now the dev version of ipython is available globally in $PATH
Two questions,
A) If I want to use the system installed version(0.13.1) of ipython , how do I do that ?
and, 
When I try running a notebook,$ipython2 notebook illumina_overview_tutorial.ipynbor$/home/prakhar/.local/bin/ipython2 notebook illumina_overview_tutorial.ipynb
B) ipython reports an error about missing "jinja2" module, the OS installed ipython can run notebooks just fine.What can be wrong here ? 
Regards,--Prakhar GaurIARI, IN
> Message: 7
> Date: Thu, 3 Apr 2014 09:36:21 -0700
> From: Thomas Kluyver <takowl at gmail.com>
> Subject: Re: [IPython-dev] Missing IPython module on Dev Branch
> 	Installation
> To: IPython developers list <ipython-dev at scipy.org>
> Message-ID:
> 	<CAOvn4qhJ7HfmBLLYuhF_x4FhAG5t8r_5T6hqNqees6=TtLObJg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On 3 April 2014 04:15, PRAKHAR gaur <prakhar_aaidu16 at hotmail.com> wrote:
> 
> > $python setup.py install --prefix=/home/pg/local_bin/ipython/bin
> >
> > when run ipython from the installed bin folder I get,
> > $ ./ipython
> > Traceback (most recent call last):
> >   File "./ipython", line 4, in <module>
> >     from IPython import start_ipython
> > ImportError: cannot import name start_ipython
> >
> 
> The prefix you're specifying won't install IPython anywhere that Python
> looks for modules. If you want to install it for just your own user, you
> can do this:
> 
> python setup.py install --user
> 
> Thomas 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140404/10557503/attachment.html>

From moorepants at gmail.com  Fri Apr  4 07:40:00 2014
From: moorepants at gmail.com (Jason Moore)
Date: Fri, 4 Apr 2014 07:40:00 -0400
Subject: [IPython-dev] SymPy printing in the ipython notebook
In-Reply-To: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
References: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
Message-ID: <CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>

Hi Richard,

I don't think SymPy has tested with IPython 2.0 yet. It is possible that
the printing is no broken... It should display in mathjax/latex by default
in the notebook and pretty print in the terminal.

If you don't mind please submit an issue on github to the main sympy
repository.


Jason
moorepants.info
+01 530-601-9791


On Fri, Apr 4, 2014 at 2:34 AM, Richard Johns <rjohns67 at gmail.com> wrote:

> I attempted to follow the examples in
>
>
> http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/notebooks/SymPy%20Examples.ipynb
>
> If I open a new notebook and carry out the steps below the output is
> mathematically correct but it isn't displayed in latex/mathjax format:
>
> from IPython.display import display
>
>
> from sympy.interactive import printing
> printing.init_printing()
>
> from __future__ import division
> import sympy as sym
> from sympy import *
> x, y, z = symbols("x y z")
> k, m, n = symbols("k m n", integer=True)
>
>
> f, g, h = map(Function, 'fgh')
>
> Rational(3,2)*pi + exp(I*x) / (x**2 + y)
>
> The output is:
>
>
> 3*pi/2 + exp(I*x)/(x**2 + y)
>
>
> SoftwareVersion Python2.7.3 (default, Feb 27 2014, 20:00:17) [GCC 4.6.3]
> IPython2.0.0OSposix [linux2]numpy1.6.1matplotlib 1.1.1rcscipy0.9.0Thu Apr
> 03 00:02:41 2014 MST
>
> If I open a terminal in the same directory and repeat these steps the
> output is displayed in a pretty printing format:
>
> rj at rjslptp:~$ ipython
> Python 2.7.3 (default, Feb 27 2014, 20:00:17)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 2.0.0 -- An enhanced Interactive Python.
> ?         -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help      -> Python's own help system.
> object?   -> Details about 'object', use 'object??' for extra details.
>
> In [1]: from IPython.display import display
>
> In [2]:
>
> In [2]: from sympy.interactive import printing
>
> In [3]: printing.init_printing()
>
> In [4]:
>
> In [4]: from __future__ import division
>
> In [5]: import sympy as sym
>
> In [6]: from sympy import *
>
> In [7]: x, y, z = symbols("x y z")
>
> In [8]: k, m, n = symbols("k m n", integer=True)
>
> In [9]: f, g, h = map(Function, 'fgh')
>
> In [10]: Rational(3,2)*pi + exp(I*x) / (x**2 + y)
>         ??x
> 3??    ?
> ??? + ??????
>  2     2
>       x  + y
>
> I imagine I'm missing something simple but I haven't been able to figure
> out what it is. Any help would be appreciated.
>
> Richard
>
> _______________________________________________
> 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/20140404/63c06345/attachment.html>

From ondrej.certik at gmail.com  Fri Apr  4 11:14:12 2014
From: ondrej.certik at gmail.com (=?UTF-8?B?T25kxZllaiDEjGVydMOtaw==?=)
Date: Fri, 4 Apr 2014 09:14:12 -0600
Subject: [IPython-dev] [sympy] Re: SymPy printing in the ipython notebook
In-Reply-To: <CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>
References: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
	<CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>
Message-ID: <CADDwiVBQpf3tOz-o_XzyeeBZhRbX2aU8HuAxLi9ScyetSFSTBg@mail.gmail.com>

On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore <moorepants at gmail.com> wrote:

> Hi Richard,
>
> I don't think SymPy has tested with IPython 2.0 yet. It is possible that
> the printing is no broken... It should display in mathjax/latex by default
> in the notebook and pretty print in the terminal.
>
> If you don't mind please submit an issue on github to the main sympy
> repository.
>

I think SymPy works with IPython 2.0. Which version of SymPy are you using?

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

From jake.biesinger at gmail.com  Fri Apr  4 12:01:34 2014
From: jake.biesinger at gmail.com (Jacob Biesinger)
Date: Fri, 4 Apr 2014 09:01:34 -0700
Subject: [IPython-dev] Widget idea: Global Parameters
Message-ID: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>

Hi!

I don't follow this list very closely but had an idea I thought worth
sharing.  I'm not sure if this is the right list to share to but here goes:

I find myself creating notebooks as reports on different datasets and
parameters.  There are a few global variables listed at the top and after
the code munging phase is complete, I make duplicates of the notebook, only
changing the global variables and rerunning all the cells.  This quickly
becomes unmanageable.  Additional notebooks are hard to maintain and tweak
whereas maintaining a single notebook means I have to rerun the report for
every tweak. I also can't compare reports without copying notebooks.

What if we had a way to specify "report parameters", global variables you
can modify using a widget interface (dropdown, slider, input box, etc but
tied to multiple cells or possibly the whole notebook) and a caching
mechanism to store notebook contents for each combination of report
parameters? I'm imagining quickly switching the dataset for a series of
graphs I'm looking at and having the graphs already cached for the ones
I've looked at, or having the report run for any new combinations.

I suppose I could open multiple tabs on the same report to simulate some of
this though it seems the autosaves would conflict.

Thanks for listening!
--
Jake Biesinger
Graduate Student
Xie Lab, UC Irvine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140404/6514ffc7/attachment.html>

From rjohns67 at gmail.com  Fri Apr  4 13:28:05 2014
From: rjohns67 at gmail.com (Richard Johns)
Date: Fri, 4 Apr 2014 10:28:05 -0700
Subject: [IPython-dev] [sympy] Re: SymPy printing in the ipython notebook
In-Reply-To: <CADDwiVBQpf3tOz-o_XzyeeBZhRbX2aU8HuAxLi9ScyetSFSTBg@mail.gmail.com>
References: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
	<CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>
	<CADDwiVBQpf3tOz-o_XzyeeBZhRbX2aU8HuAxLi9ScyetSFSTBg@mail.gmail.com>
Message-ID: <CABHtHddzpVp8YLUj7uQ3_K7gP-w=vDQDiacM2AAG2PD4M2yoOQ@mail.gmail.com>

Hi Ondrej:

I assumed that SymPy worked with 2.0 since the example notebook included
this at the bottom of the page:

nbviewer version:
4c2edac<https://github.com/ipython/nbviewer/commit/4c2edac6078f44ee8190a4eccce34bf32b2d88d8>(Mon,
31 Mar 2014 09:14:05 -0500)

IPython version: 2.0.0-dev ( 65651b5
<https://github.com/ipython/ipython/commit/65651b5>)

Rendered on: Mon, 31 Mar 2014 18:26:32 UTC


I originally tried to do this, with no success, by installing 2.0.0-dev
when it didn't work with my old ipython.


My SymPy version is:

In [14]: sym.__version__
0.7.1.rc1

Richard


On Fri, Apr 4, 2014 at 8:14 AM, Ond?ej ?ert?k <ondrej.certik at gmail.com>wrote:

>
>
>
> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore <moorepants at gmail.com> wrote:
>
>> Hi Richard,
>>
>> I don't think SymPy has tested with IPython 2.0 yet. It is possible that
>> the printing is no broken... It should display in mathjax/latex by default
>> in the notebook and pretty print in the terminal.
>>
>> If you don't mind please submit an issue on github to the main sympy
>> repository.
>>
>
> I think SymPy works with IPython 2.0. Which version of SymPy are you using?
>
> 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/20140404/05694276/attachment.html>

From moorepants at gmail.com  Fri Apr  4 13:44:32 2014
From: moorepants at gmail.com (Jason Moore)
Date: Fri, 4 Apr 2014 13:44:32 -0400
Subject: [IPython-dev] [sympy] Re: SymPy printing in the ipython notebook
In-Reply-To: <CABHtHddzpVp8YLUj7uQ3_K7gP-w=vDQDiacM2AAG2PD4M2yoOQ@mail.gmail.com>
References: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
	<CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>
	<CADDwiVBQpf3tOz-o_XzyeeBZhRbX2aU8HuAxLi9ScyetSFSTBg@mail.gmail.com>
	<CABHtHddzpVp8YLUj7uQ3_K7gP-w=vDQDiacM2AAG2PD4M2yoOQ@mail.gmail.com>
Message-ID: <CAP7f1Ai=phBnADJ2h9=fzmbVK4MrKyeJZJGU+r3Jzv6-gGf-6A@mail.gmail.com>

The latest version of SymPy is 0.7.5. Maybe you just need to upgrade?


Jason
moorepants.info
+01 530-601-9791


On Fri, Apr 4, 2014 at 1:28 PM, Richard Johns <rjohns67 at gmail.com> wrote:

> Hi Ondrej:
>
> I assumed that SymPy worked with 2.0 since the example notebook included
> this at the bottom of the page:
>
> nbviewer version: 4c2edac<https://github.com/ipython/nbviewer/commit/4c2edac6078f44ee8190a4eccce34bf32b2d88d8>(Mon, 31 Mar 2014 09:14:05 -0500)
>
> IPython version: 2.0.0-dev ( 65651b5
> <https://github.com/ipython/ipython/commit/65651b5>)
>
> Rendered on: Mon, 31 Mar 2014 18:26:32 UTC
>
>
> I originally tried to do this, with no success, by installing 2.0.0-dev
> when it didn't work with my old ipython.
>
>
> My SymPy version is:
>
> In [14]: sym.__version__
> 0.7.1.rc1
>
> Richard
>
>
> On Fri, Apr 4, 2014 at 8:14 AM, Ond?ej ?ert?k <ondrej.certik at gmail.com>wrote:
>
>>
>>
>>
>> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore <moorepants at gmail.com> wrote:
>>
>>> Hi Richard,
>>>
>>> I don't think SymPy has tested with IPython 2.0 yet. It is possible that
>>> the printing is no broken... It should display in mathjax/latex by default
>>> in the notebook and pretty print in the terminal.
>>>
>>> If you don't mind please submit an issue on github to the main sympy
>>> repository.
>>>
>>
>> I think SymPy works with IPython 2.0. Which version of SymPy are you
>> using?
>>
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140404/049b5091/attachment.html>

From ondrej.certik at gmail.com  Fri Apr  4 13:46:13 2014
From: ondrej.certik at gmail.com (=?UTF-8?B?T25kxZllaiDEjGVydMOtaw==?=)
Date: Fri, 4 Apr 2014 11:46:13 -0600
Subject: [IPython-dev] [sympy] Re: SymPy printing in the ipython notebook
In-Reply-To: <CAP7f1Ai=phBnADJ2h9=fzmbVK4MrKyeJZJGU+r3Jzv6-gGf-6A@mail.gmail.com>
References: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
	<CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>
	<CADDwiVBQpf3tOz-o_XzyeeBZhRbX2aU8HuAxLi9ScyetSFSTBg@mail.gmail.com>
	<CABHtHddzpVp8YLUj7uQ3_K7gP-w=vDQDiacM2AAG2PD4M2yoOQ@mail.gmail.com>
	<CAP7f1Ai=phBnADJ2h9=fzmbVK4MrKyeJZJGU+r3Jzv6-gGf-6A@mail.gmail.com>
Message-ID: <CADDwiVATGfDk80myiiSim_zuMPZuk8NRGFVPQpUGqbEh67A_iQ@mail.gmail.com>

Yes, definitely upgrade. The 0.7.1 was released 3 years ago, so I am
not surprised it doesn't work.

Ondrej

On Fri, Apr 4, 2014 at 11:44 AM, Jason Moore <moorepants at gmail.com> wrote:
> The latest version of SymPy is 0.7.5. Maybe you just need to upgrade?
>
>
> Jason
> moorepants.info
> +01 530-601-9791
>
>
> On Fri, Apr 4, 2014 at 1:28 PM, Richard Johns <rjohns67 at gmail.com> wrote:
>>
>> Hi Ondrej:
>>
>> I assumed that SymPy worked with 2.0 since the example notebook included
>> this at the bottom of the page:
>>
>> nbviewer version: 4c2edac (Mon, 31 Mar 2014 09:14:05 -0500)
>>
>> IPython version: 2.0.0-dev ( 65651b5 )
>>
>> Rendered on: Mon, 31 Mar 2014 18:26:32 UTC
>>
>>
>> I originally tried to do this, with no success, by installing 2.0.0-dev
>> when it didn't work with my old ipython.
>>
>>
>>
>> My SymPy version is:
>>
>> In [14]: sym.__version__
>> 0.7.1.rc1
>>
>> Richard
>>
>>
>> On Fri, Apr 4, 2014 at 8:14 AM, Ond?ej ?ert?k <ondrej.certik at gmail.com>
>> wrote:
>>>
>>>
>>>
>>>
>>> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore <moorepants at gmail.com> wrote:
>>>>
>>>> Hi Richard,
>>>>
>>>> I don't think SymPy has tested with IPython 2.0 yet. It is possible that
>>>> the printing is no broken... It should display in mathjax/latex by default
>>>> in the notebook and pretty print in the terminal.
>>>>
>>>> If you don't mind please submit an issue on github to the main sympy
>>>> repository.
>>>
>>>
>>> I think SymPy works with IPython 2.0. Which version of SymPy are you
>>> using?
>>>
>>> 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
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+unsubscribe at googlegroups.com.
> To post to this group, send email to sympy at googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAP7f1Ai%3DphBnADJ2h9%3DfzmbVK4MrKyeJZJGU%2Br3Jzv6-gGf-6A%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.


From rjohns67 at gmail.com  Fri Apr  4 14:22:32 2014
From: rjohns67 at gmail.com (Richard Johns)
Date: Fri, 4 Apr 2014 11:22:32 -0700
Subject: [IPython-dev] [sympy] Re: SymPy printing in the ipython notebook
In-Reply-To: <CADDwiVATGfDk80myiiSim_zuMPZuk8NRGFVPQpUGqbEh67A_iQ@mail.gmail.com>
References: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
	<CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>
	<CADDwiVBQpf3tOz-o_XzyeeBZhRbX2aU8HuAxLi9ScyetSFSTBg@mail.gmail.com>
	<CABHtHddzpVp8YLUj7uQ3_K7gP-w=vDQDiacM2AAG2PD4M2yoOQ@mail.gmail.com>
	<CAP7f1Ai=phBnADJ2h9=fzmbVK4MrKyeJZJGU+r3Jzv6-gGf-6A@mail.gmail.com>
	<CADDwiVATGfDk80myiiSim_zuMPZuk8NRGFVPQpUGqbEh67A_iQ@mail.gmail.com>
Message-ID: <CABHtHde5L5QyC8fKoA7xZyonFn_qm5ecWeZJG1wSPZwMc3Kkwg@mail.gmail.com>

Yes that was the problem. I should have thought of that myself, however; it
would have been nice if the example web page had used something like:

 %load_ext version_information
%version_information numpy, matplotlib, scipy, sympy

Thanks for the help.
Richard


On Fri, Apr 4, 2014 at 10:46 AM, Ond?ej ?ert?k <ondrej.certik at gmail.com>wrote:

> Yes, definitely upgrade. The 0.7.1 was released 3 years ago, so I am
> not surprised it doesn't work.
>
> Ondrej
>
> On Fri, Apr 4, 2014 at 11:44 AM, Jason Moore <moorepants at gmail.com> wrote:
> > The latest version of SymPy is 0.7.5. Maybe you just need to upgrade?
> >
> >
> > Jason
> > moorepants.info
> > +01 530-601-9791
> >
> >
> > On Fri, Apr 4, 2014 at 1:28 PM, Richard Johns <rjohns67 at gmail.com>
> wrote:
> >>
> >> Hi Ondrej:
> >>
> >> I assumed that SymPy worked with 2.0 since the example notebook included
> >> this at the bottom of the page:
> >>
> >> nbviewer version: 4c2edac (Mon, 31 Mar 2014 09:14:05 -0500)
> >>
> >> IPython version: 2.0.0-dev ( 65651b5 )
> >>
> >> Rendered on: Mon, 31 Mar 2014 18:26:32 UTC
> >>
> >>
> >> I originally tried to do this, with no success, by installing 2.0.0-dev
> >> when it didn't work with my old ipython.
> >>
> >>
> >>
> >> My SymPy version is:
> >>
> >> In [14]: sym.__version__
> >> 0.7.1.rc1
> >>
> >> Richard
> >>
> >>
> >> On Fri, Apr 4, 2014 at 8:14 AM, Ond?ej ?ert?k <ondrej.certik at gmail.com>
> >> wrote:
> >>>
> >>>
> >>>
> >>>
> >>> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore <moorepants at gmail.com>
> wrote:
> >>>>
> >>>> Hi Richard,
> >>>>
> >>>> I don't think SymPy has tested with IPython 2.0 yet. It is possible
> that
> >>>> the printing is no broken... It should display in mathjax/latex by
> default
> >>>> in the notebook and pretty print in the terminal.
> >>>>
> >>>> If you don't mind please submit an issue on github to the main sympy
> >>>> repository.
> >>>
> >>>
> >>> I think SymPy works with IPython 2.0. Which version of SymPy are you
> >>> using?
> >>>
> >>> 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
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "sympy" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to sympy+unsubscribe at googlegroups.com.
> > To post to this group, send email to sympy at googlegroups.com.
> > Visit this group at http://groups.google.com/group/sympy.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sympy/CAP7f1Ai%3DphBnADJ2h9%3DfzmbVK4MrKyeJZJGU%2Br3Jzv6-gGf-6A%40mail.gmail.com
> .
> >
> > For more options, visit https://groups.google.com/d/optout.
> _______________________________________________
> 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/20140404/95a0122d/attachment.html>

From asmeurer at gmail.com  Fri Apr  4 15:16:06 2014
From: asmeurer at gmail.com (Aaron Meurer)
Date: Fri, 4 Apr 2014 14:16:06 -0500
Subject: [IPython-dev] [sympy] Re: SymPy printing in the ipython notebook
In-Reply-To: <CABHtHde5L5QyC8fKoA7xZyonFn_qm5ecWeZJG1wSPZwMc3Kkwg@mail.gmail.com>
References: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
	<CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>
	<CADDwiVBQpf3tOz-o_XzyeeBZhRbX2aU8HuAxLi9ScyetSFSTBg@mail.gmail.com>
	<CABHtHddzpVp8YLUj7uQ3_K7gP-w=vDQDiacM2AAG2PD4M2yoOQ@mail.gmail.com>
	<CAP7f1Ai=phBnADJ2h9=fzmbVK4MrKyeJZJGU+r3Jzv6-gGf-6A@mail.gmail.com>
	<CADDwiVATGfDk80myiiSim_zuMPZuk8NRGFVPQpUGqbEh67A_iQ@mail.gmail.com>
	<CABHtHde5L5QyC8fKoA7xZyonFn_qm5ecWeZJG1wSPZwMc3Kkwg@mail.gmail.com>
Message-ID: <CAKgW=6K9yhRtcV5YbXOz5XKXxdHpZJc=JG0cvqkwNN7Oxp2LcA@mail.gmail.com>

Yes, at some point IPython stopped working and we had to fix it (either
they changed their API or SymPy was using non-public APIs, I don't remember
which). But it should work with the latest version. If you run into any
more issues with the latest versions of IPython and SymPy, be sure to let
us know.

Aaron Meurer


On Fri, Apr 4, 2014 at 1:22 PM, Richard Johns <rjohns67 at gmail.com> wrote:

> Yes that was the problem. I should have thought of that myself, however;
> it would have been nice if the example web page had used something like:
>
>  %load_ext version_information
> %version_information numpy, matplotlib, scipy, sympy
>
> Thanks for the help.
> Richard
>
>
> On Fri, Apr 4, 2014 at 10:46 AM, Ond?ej ?ert?k <ondrej.certik at gmail.com>wrote:
>
>> Yes, definitely upgrade. The 0.7.1 was released 3 years ago, so I am
>> not surprised it doesn't work.
>>
>> Ondrej
>>
>> On Fri, Apr 4, 2014 at 11:44 AM, Jason Moore <moorepants at gmail.com>
>> wrote:
>> > The latest version of SymPy is 0.7.5. Maybe you just need to upgrade?
>> >
>> >
>> > Jason
>> > moorepants.info
>> > +01 530-601-9791
>> >
>> >
>> > On Fri, Apr 4, 2014 at 1:28 PM, Richard Johns <rjohns67 at gmail.com>
>> wrote:
>> >>
>> >> Hi Ondrej:
>> >>
>> >> I assumed that SymPy worked with 2.0 since the example notebook
>> included
>> >> this at the bottom of the page:
>> >>
>> >> nbviewer version: 4c2edac (Mon, 31 Mar 2014 09:14:05 -0500)
>> >>
>> >> IPython version: 2.0.0-dev ( 65651b5 )
>> >>
>> >> Rendered on: Mon, 31 Mar 2014 18:26:32 UTC
>> >>
>> >>
>> >> I originally tried to do this, with no success, by installing 2.0.0-dev
>> >> when it didn't work with my old ipython.
>> >>
>> >>
>> >>
>> >> My SymPy version is:
>> >>
>> >> In [14]: sym.__version__
>> >> 0.7.1.rc1
>> >>
>> >> Richard
>> >>
>> >>
>> >> On Fri, Apr 4, 2014 at 8:14 AM, Ond?ej ?ert?k <ondrej.certik at gmail.com
>> >
>> >> wrote:
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore <moorepants at gmail.com>
>> wrote:
>> >>>>
>> >>>> Hi Richard,
>> >>>>
>> >>>> I don't think SymPy has tested with IPython 2.0 yet. It is possible
>> that
>> >>>> the printing is no broken... It should display in mathjax/latex by
>> default
>> >>>> in the notebook and pretty print in the terminal.
>> >>>>
>> >>>> If you don't mind please submit an issue on github to the main sympy
>> >>>> repository.
>> >>>
>> >>>
>> >>> I think SymPy works with IPython 2.0. Which version of SymPy are you
>> >>> using?
>> >>>
>> >>> 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
>> >>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "sympy" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > email to sympy+unsubscribe at googlegroups.com.
>> > To post to this group, send email to sympy at googlegroups.com.
>> > Visit this group at http://groups.google.com/group/sympy.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/sympy/CAP7f1Ai%3DphBnADJ2h9%3DfzmbVK4MrKyeJZJGU%2Br3Jzv6-gGf-6A%40mail.gmail.com
>> .
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>> _______________________________________________
>> 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/20140404/15257240/attachment.html>

From takowl at gmail.com  Fri Apr  4 15:17:32 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Fri, 4 Apr 2014 12:17:32 -0700
Subject: [IPython-dev] Missing IPython module on Dev Branch
In-Reply-To: <SNT150-W8754522D705D62398606089C6F0@phx.gbl>
References: <mailman.13088.1396542661.1037.ipython-dev@scipy.org>
	<SNT150-W242A23B417939E98ADB2999C6F0@phx.gbl>
	<SNT150-W8754522D705D62398606089C6F0@phx.gbl>
Message-ID: <CAOvn4qjsEPgVc9YxJwCgthxcg6xD=MGb3VQn3y8Yw4dFNU3E0w@mail.gmail.com>

On 4 April 2014 00:57, PRAKHAR gaur <prakhar_aaidu16 at hotmail.com> wrote:

> I thought the prefix option can be used just the way it works for
> Autotools configure script.
>

I believe it can, but you still need to install Python packages to
somewhere that Python will look. Normal values for prefix are /usr and
/usr/local.


> *A) If I want to use the system installed version(0.13.1**) of ipython ,
> how do I do that ?*
>

You'd have to ensure that the system ipython script (/usr/bin/ipython) came
before the other one on $PATH, and the system IPython package is first on
sys.path. If you want to use both versions, I would recommend installing
the new version in a virtualenv, then activate and deactivate the
virtualenv.


> and,
>
> When I try running a notebook,
> $ipython2 notebook illumina_overview_tutorial.ipynb
> or
> $/home/prakhar/.local/bin/ipython2 notebook
> illumina_overview_tutorial.ipynb
>
> *B) ipython reports an error about missing "jinja2" module, *
> *the OS installed ipython can run notebooks just fine.*
> *What can be wrong here ?*
>

Newer versions of IPython require things that the older version of IPython
doesn't.

Make a virtualenv, activate it, and run:

pip install ipython[notebook]

This will get all the dependencies for it.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140404/3e958474/attachment.html>

From rjohns67 at gmail.com  Fri Apr  4 15:45:27 2014
From: rjohns67 at gmail.com (Richard Johns)
Date: Fri, 4 Apr 2014 12:45:27 -0700
Subject: [IPython-dev] [sympy] Re: SymPy printing in the ipython notebook
In-Reply-To: <CAKgW=6K9yhRtcV5YbXOz5XKXxdHpZJc=JG0cvqkwNN7Oxp2LcA@mail.gmail.com>
References: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
	<CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>
	<CADDwiVBQpf3tOz-o_XzyeeBZhRbX2aU8HuAxLi9ScyetSFSTBg@mail.gmail.com>
	<CABHtHddzpVp8YLUj7uQ3_K7gP-w=vDQDiacM2AAG2PD4M2yoOQ@mail.gmail.com>
	<CAP7f1Ai=phBnADJ2h9=fzmbVK4MrKyeJZJGU+r3Jzv6-gGf-6A@mail.gmail.com>
	<CADDwiVATGfDk80myiiSim_zuMPZuk8NRGFVPQpUGqbEh67A_iQ@mail.gmail.com>
	<CABHtHde5L5QyC8fKoA7xZyonFn_qm5ecWeZJG1wSPZwMc3Kkwg@mail.gmail.com>
	<CAKgW=6K9yhRtcV5YbXOz5XKXxdHpZJc=JG0cvqkwNN7Oxp2LcA@mail.gmail.com>
Message-ID: <CABHtHddwFQ_HjysjMUsOvwQVOGsMFN9XOAi2sZNLhgt113VbDA@mail.gmail.com>

Thanks Aaron, will do.

When I was upgrading to 7.5 I noticed that the documentation said:

'After the download is complete, you should have a folder called ?sympy?.
>From your favorite command line terminal, change directory into that folder
and execute the following:'

The folder should actually be 'sympy-0.7.5'.

Also, clicking on the downloads link leads to a message saying that the
downloads have moved to github. Wouldn't it be more efficient to just link
the new location directly to

https://github.com/sympy/sympy/releases


Thanks again for the great software.
Richard


On Fri, Apr 4, 2014 at 12:16 PM, Aaron Meurer <asmeurer at gmail.com> wrote:

> Yes, at some point IPython stopped working and we had to fix it (either
> they changed their API or SymPy was using non-public APIs, I don't remember
> which). But it should work with the latest version. If you run into any
> more issues with the latest versions of IPython and SymPy, be sure to let
> us know.
>
> Aaron Meurer
>
>
> On Fri, Apr 4, 2014 at 1:22 PM, Richard Johns <rjohns67 at gmail.com> wrote:
>
>> Yes that was the problem. I should have thought of that myself, however;
>> it would have been nice if the example web page had used something like:
>>
>>  %load_ext version_information
>> %version_information numpy, matplotlib, scipy, sympy
>>
>> Thanks for the help.
>> Richard
>>
>>
>> On Fri, Apr 4, 2014 at 10:46 AM, Ond?ej ?ert?k <ondrej.certik at gmail.com>wrote:
>>
>>> Yes, definitely upgrade. The 0.7.1 was released 3 years ago, so I am
>>> not surprised it doesn't work.
>>>
>>> Ondrej
>>>
>>> On Fri, Apr 4, 2014 at 11:44 AM, Jason Moore <moorepants at gmail.com>
>>> wrote:
>>> > The latest version of SymPy is 0.7.5. Maybe you just need to upgrade?
>>> >
>>> >
>>> > Jason
>>> > moorepants.info
>>> > +01 530-601-9791
>>> >
>>> >
>>> > On Fri, Apr 4, 2014 at 1:28 PM, Richard Johns <rjohns67 at gmail.com>
>>> wrote:
>>> >>
>>> >> Hi Ondrej:
>>> >>
>>> >> I assumed that SymPy worked with 2.0 since the example notebook
>>> included
>>> >> this at the bottom of the page:
>>> >>
>>> >> nbviewer version: 4c2edac (Mon, 31 Mar 2014 09:14:05 -0500)
>>> >>
>>> >> IPython version: 2.0.0-dev ( 65651b5 )
>>> >>
>>> >> Rendered on: Mon, 31 Mar 2014 18:26:32 UTC
>>> >>
>>> >>
>>> >> I originally tried to do this, with no success, by installing
>>> 2.0.0-dev
>>> >> when it didn't work with my old ipython.
>>> >>
>>> >>
>>> >>
>>> >> My SymPy version is:
>>> >>
>>> >> In [14]: sym.__version__
>>> >> 0.7.1.rc1
>>> >>
>>> >> Richard
>>> >>
>>> >>
>>> >> On Fri, Apr 4, 2014 at 8:14 AM, Ond?ej ?ert?k <
>>> ondrej.certik at gmail.com>
>>> >> wrote:
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore <moorepants at gmail.com>
>>> wrote:
>>> >>>>
>>> >>>> Hi Richard,
>>> >>>>
>>> >>>> I don't think SymPy has tested with IPython 2.0 yet. It is possible
>>> that
>>> >>>> the printing is no broken... It should display in mathjax/latex by
>>> default
>>> >>>> in the notebook and pretty print in the terminal.
>>> >>>>
>>> >>>> If you don't mind please submit an issue on github to the main sympy
>>> >>>> repository.
>>> >>>
>>> >>>
>>> >>> I think SymPy works with IPython 2.0. Which version of SymPy are you
>>> >>> using?
>>> >>>
>>> >>> 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
>>> >>
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups
>>> > "sympy" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> > email to sympy+unsubscribe at googlegroups.com.
>>> > To post to this group, send email to sympy at googlegroups.com.
>>> > Visit this group at http://groups.google.com/group/sympy.
>>> > To view this discussion on the web visit
>>> >
>>> https://groups.google.com/d/msgid/sympy/CAP7f1Ai%3DphBnADJ2h9%3DfzmbVK4MrKyeJZJGU%2Br3Jzv6-gGf-6A%40mail.gmail.com
>>> .
>>> >
>>> > For more options, visit https://groups.google.com/d/optout.
>>> _______________________________________________
>>> 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/20140404/96e3cc4f/attachment.html>

From asmeurer at gmail.com  Fri Apr  4 15:51:12 2014
From: asmeurer at gmail.com (Aaron Meurer)
Date: Fri, 4 Apr 2014 14:51:12 -0500
Subject: [IPython-dev] [sympy] Re: SymPy printing in the ipython notebook
In-Reply-To: <CABHtHddwFQ_HjysjMUsOvwQVOGsMFN9XOAi2sZNLhgt113VbDA@mail.gmail.com>
References: <CABHtHdfOxjPr=XQ32U-QmcOA3sPN09MwpvkMLP4BRLX2m3z3LQ@mail.gmail.com>
	<CAP7f1Ah=Rp9wWGHvwMUD4ooS6DnH189DQ97fTrMBPA+x=zzATA@mail.gmail.com>
	<CADDwiVBQpf3tOz-o_XzyeeBZhRbX2aU8HuAxLi9ScyetSFSTBg@mail.gmail.com>
	<CABHtHddzpVp8YLUj7uQ3_K7gP-w=vDQDiacM2AAG2PD4M2yoOQ@mail.gmail.com>
	<CAP7f1Ai=phBnADJ2h9=fzmbVK4MrKyeJZJGU+r3Jzv6-gGf-6A@mail.gmail.com>
	<CADDwiVATGfDk80myiiSim_zuMPZuk8NRGFVPQpUGqbEh67A_iQ@mail.gmail.com>
	<CABHtHde5L5QyC8fKoA7xZyonFn_qm5ecWeZJG1wSPZwMc3Kkwg@mail.gmail.com>
	<CAKgW=6K9yhRtcV5YbXOz5XKXxdHpZJc=JG0cvqkwNN7Oxp2LcA@mail.gmail.com>
	<CABHtHddwFQ_HjysjMUsOvwQVOGsMFN9XOAi2sZNLhgt113VbDA@mail.gmail.com>
Message-ID: <CAKgW=6+_MtLgeKj3oRX3hToDMZrBc0cZT0kHoEdvwJAPJsHwwA@mail.gmail.com>

On Fri, Apr 4, 2014 at 2:45 PM, Richard Johns <rjohns67 at gmail.com> wrote:

> Thanks Aaron, will do.
>
> When I was upgrading to 7.5 I noticed that the documentation said:
>
> 'After the download is complete, you should have a folder called ?sympy?.
> From your favorite command line terminal, change directory into that folder
> and execute the following:'
>
> The folder should actually be 'sympy-0.7.5'.
>

Hmm, this is unintentional. I will take a look at this the next time I do a
release.


>
> Also, clicking on the downloads link leads to a message saying that the
> downloads have moved to github. Wouldn't it be more efficient to just link
> the new location directly to
>
> https://github.com/sympy/sympy/releases
>
>
Thanks for pointing that out. I fixed it at
https://github.com/sympy/sympy/pull/7367.

Aaron Meurer


>
> Thanks again for the great software.
> Richard
>
>
> On Fri, Apr 4, 2014 at 12:16 PM, Aaron Meurer <asmeurer at gmail.com> wrote:
>
>> Yes, at some point IPython stopped working and we had to fix it (either
>> they changed their API or SymPy was using non-public APIs, I don't remember
>> which). But it should work with the latest version. If you run into any
>> more issues with the latest versions of IPython and SymPy, be sure to let
>> us know.
>>
>> Aaron Meurer
>>
>>
>> On Fri, Apr 4, 2014 at 1:22 PM, Richard Johns <rjohns67 at gmail.com> wrote:
>>
>>> Yes that was the problem. I should have thought of that myself, however;
>>> it would have been nice if the example web page had used something like:
>>>
>>>  %load_ext version_information
>>> %version_information numpy, matplotlib, scipy, sympy
>>>
>>> Thanks for the help.
>>> Richard
>>>
>>>
>>> On Fri, Apr 4, 2014 at 10:46 AM, Ond?ej ?ert?k <ondrej.certik at gmail.com>wrote:
>>>
>>>> Yes, definitely upgrade. The 0.7.1 was released 3 years ago, so I am
>>>> not surprised it doesn't work.
>>>>
>>>> Ondrej
>>>>
>>>> On Fri, Apr 4, 2014 at 11:44 AM, Jason Moore <moorepants at gmail.com>
>>>> wrote:
>>>> > The latest version of SymPy is 0.7.5. Maybe you just need to upgrade?
>>>> >
>>>> >
>>>> > Jason
>>>> > moorepants.info
>>>> > +01 530-601-9791
>>>> >
>>>> >
>>>> > On Fri, Apr 4, 2014 at 1:28 PM, Richard Johns <rjohns67 at gmail.com>
>>>> wrote:
>>>> >>
>>>> >> Hi Ondrej:
>>>> >>
>>>> >> I assumed that SymPy worked with 2.0 since the example notebook
>>>> included
>>>> >> this at the bottom of the page:
>>>> >>
>>>> >> nbviewer version: 4c2edac (Mon, 31 Mar 2014 09:14:05 -0500)
>>>> >>
>>>> >> IPython version: 2.0.0-dev ( 65651b5 )
>>>> >>
>>>> >> Rendered on: Mon, 31 Mar 2014 18:26:32 UTC
>>>> >>
>>>> >>
>>>> >> I originally tried to do this, with no success, by installing
>>>> 2.0.0-dev
>>>> >> when it didn't work with my old ipython.
>>>> >>
>>>> >>
>>>> >>
>>>> >> My SymPy version is:
>>>> >>
>>>> >> In [14]: sym.__version__
>>>> >> 0.7.1.rc1
>>>> >>
>>>> >> Richard
>>>> >>
>>>> >>
>>>> >> On Fri, Apr 4, 2014 at 8:14 AM, Ond?ej ?ert?k <
>>>> ondrej.certik at gmail.com>
>>>> >> wrote:
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore <moorepants at gmail.com>
>>>> wrote:
>>>> >>>>
>>>> >>>> Hi Richard,
>>>> >>>>
>>>> >>>> I don't think SymPy has tested with IPython 2.0 yet. It is
>>>> possible that
>>>> >>>> the printing is no broken... It should display in mathjax/latex by
>>>> default
>>>> >>>> in the notebook and pretty print in the terminal.
>>>> >>>>
>>>> >>>> If you don't mind please submit an issue on github to the main
>>>> sympy
>>>> >>>> repository.
>>>> >>>
>>>> >>>
>>>> >>> I think SymPy works with IPython 2.0. Which version of SymPy are you
>>>> >>> using?
>>>> >>>
>>>> >>> 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
>>>> >>
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> Groups
>>>> > "sympy" group.
>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>> send an
>>>> > email to sympy+unsubscribe at googlegroups.com.
>>>> > To post to this group, send email to sympy at googlegroups.com.
>>>> > Visit this group at http://groups.google.com/group/sympy.
>>>> > To view this discussion on the web visit
>>>> >
>>>> https://groups.google.com/d/msgid/sympy/CAP7f1Ai%3DphBnADJ2h9%3DfzmbVK4MrKyeJZJGU%2Br3Jzv6-gGf-6A%40mail.gmail.com
>>>> .
>>>> >
>>>> > For more options, visit https://groups.google.com/d/optout.
>>>> _______________________________________________
>>>> 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/20140404/9c3b453b/attachment.html>

From tritemio at gmail.com  Sat Apr  5 14:16:30 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Sat, 5 Apr 2014 11:16:30 -0700
Subject: [IPython-dev] Widget idea: Global Parameters
In-Reply-To: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
References: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
Message-ID: <CANn2QUyhwavnGtmuNCCb3LG1y3pqqcPjVx5dG=fKceX_R3OBJQ@mail.gmail.com>

I second the idea. I think it is a common pattern (at lest for me) to
create a notebook to perform an analysis and then to process a series of
datasets for comparison.

Right now I create several notebook copies manually, but as Jake says, it
quickly becomes tricky once you want to tweak the analysis (either you
modify N notebooks or re-create the N copies).

Some sort of parametrization of the notebooks would be useful, and using
the widget infrastructure seems a sensible idea.

Antonio


On Fri, Apr 4, 2014 at 9:01 AM, Jacob Biesinger <jake.biesinger at gmail.com>wrote:

> Hi!
>
> I don't follow this list very closely but had an idea I thought worth
> sharing.  I'm not sure if this is the right list to share to but here goes:
>
> I find myself creating notebooks as reports on different datasets and
> parameters.  There are a few global variables listed at the top and after
> the code munging phase is complete, I make duplicates of the notebook, only
> changing the global variables and rerunning all the cells.  This quickly
> becomes unmanageable.  Additional notebooks are hard to maintain and tweak
> whereas maintaining a single notebook means I have to rerun the report for
> every tweak. I also can't compare reports without copying notebooks.
>
> What if we had a way to specify "report parameters", global variables you
> can modify using a widget interface (dropdown, slider, input box, etc but
> tied to multiple cells or possibly the whole notebook) and a caching
> mechanism to store notebook contents for each combination of report
> parameters? I'm imagining quickly switching the dataset for a series of
> graphs I'm looking at and having the graphs already cached for the ones
> I've looked at, or having the report run for any new combinations.
>
> I suppose I could open multiple tabs on the same report to simulate some
> of this though it seems the autosaves would conflict.
>
> Thanks for listening!
> --
> Jake Biesinger
> Graduate Student
> Xie Lab, UC Irvine
>
> _______________________________________________
> 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/20140405/c7f4c8cb/attachment.html>

From bussonniermatthias at gmail.com  Sat Apr  5 15:26:27 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Sat, 5 Apr 2014 21:26:27 +0200
Subject: [IPython-dev] Widget idea: Global Parameters
In-Reply-To: <CANn2QUyhwavnGtmuNCCb3LG1y3pqqcPjVx5dG=fKceX_R3OBJQ@mail.gmail.com>
References: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
	<CANn2QUyhwavnGtmuNCCb3LG1y3pqqcPjVx5dG=fKceX_R3OBJQ@mail.gmail.com>
Message-ID: <6214C215-AB34-4E1F-8828-ACD9BBEC42E6@gmail.com>

I might misremember and/or misunderstand , but it seem to me that theses propositions have already been 
disscussed on the ML, and that the response was that such a thing is  out of scope for the time being. 

It is relatively easy to build as a standalone project and IIRC some project like runipy already
implement theses functions. (cf copy from read me below) 

-- 
Matthias



Passing Arguments

You can pass arguments to the notebook through environment variables. The use of environment variables is OS- and shell- dependent, but in a typical UNIX-like environment they can be passed on the command line before the program name:

$ myvar=value runipy MyNotebook.ipynb

Then in the notebook, to access myvar:

from os import environ
myvar = environ['myvar']

environ is just a dict, so you can use .get() to fall back on a default value:

from os import environ
myvar = environ.get('myvar', 'default!')

Le 5 avr. 2014 ? 20:16, Antonino Ingargiola a ?crit :

> I second the idea. I think it is a common pattern (at lest for me) to create a notebook to perform an analysis and then to process a series of datasets for comparison.
> 
> Right now I create several notebook copies manually, but as Jake says, it quickly becomes tricky once you want to tweak the analysis (either you modify N notebooks or re-create the N copies).
> 
> Some sort of parametrization of the notebooks would be useful, and using the widget infrastructure seems a sensible idea.
> 
> Antonio
> 
> 
> On Fri, Apr 4, 2014 at 9:01 AM, Jacob Biesinger <jake.biesinger at gmail.com> wrote:
> Hi!
> 
> I don't follow this list very closely but had an idea I thought worth sharing.  I'm not sure if this is the right list to share to but here goes:
> 
> I find myself creating notebooks as reports on different datasets and parameters.  There are a few global variables listed at the top and after the code munging phase is complete, I make duplicates of the notebook, only changing the global variables and rerunning all the cells.  This quickly becomes unmanageable.  Additional notebooks are hard to maintain and tweak whereas maintaining a single notebook means I have to rerun the report for every tweak. I also can't compare reports without copying notebooks.
> 
> What if we had a way to specify "report parameters", global variables you can modify using a widget interface (dropdown, slider, input box, etc but tied to multiple cells or possibly the whole notebook) and a caching mechanism to store notebook contents for each combination of report parameters? I'm imagining quickly switching the dataset for a series of graphs I'm looking at and having the graphs already cached for the ones I've looked at, or having the report run for any new combinations.
> 
> I suppose I could open multiple tabs on the same report to simulate some of this though it seems the autosaves would conflict.
> 
> Thanks for listening!
> --
> Jake Biesinger
> Graduate Student
> Xie Lab, UC Irvine
> 
> _______________________________________________
> 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 takowl at gmail.com  Sat Apr  5 15:38:01 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Sat, 5 Apr 2014 12:38:01 -0700
Subject: [IPython-dev] Widget idea: Global Parameters
In-Reply-To: <6214C215-AB34-4E1F-8828-ACD9BBEC42E6@gmail.com>
References: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
	<CANn2QUyhwavnGtmuNCCb3LG1y3pqqcPjVx5dG=fKceX_R3OBJQ@mail.gmail.com>
	<6214C215-AB34-4E1F-8828-ACD9BBEC42E6@gmail.com>
Message-ID: <CAOvn4qj8JtAO8-_7jxWT=JQh8ec=a1KSQisE-bKTcoGy-He16A@mail.gmail.com>

On 5 April 2014 12:26, Matthias BUSSONNIER <bussonniermatthias at gmail.com>wrote:

> I might misremember and/or misunderstand , but it seem to me that theses
> propositions have already been
> disscussed on the ML, and that the response was that such a thing is  out
> of scope for the time being.
>
> It is relatively easy to build as a standalone project and IIRC some
> project like runipy already
> implement theses functions. (cf copy from read me below)
>

Passing parameters from the command line isn't really the same as what this
discussion is about. But it would also be easy to have a widget callback -
even an interact function - which simply assigns its parameters to global
variables. That should enable precisely the use case described, at the cost
of a few lines of boilerplate, without needing major changes to the widget
API model.

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

From tritemio at gmail.com  Sat Apr  5 15:56:33 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Sat, 5 Apr 2014 12:56:33 -0700
Subject: [IPython-dev] Widget idea: Global Parameters
In-Reply-To: <CAOvn4qj8JtAO8-_7jxWT=JQh8ec=a1KSQisE-bKTcoGy-He16A@mail.gmail.com>
References: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
	<CANn2QUyhwavnGtmuNCCb3LG1y3pqqcPjVx5dG=fKceX_R3OBJQ@mail.gmail.com>
	<6214C215-AB34-4E1F-8828-ACD9BBEC42E6@gmail.com>
	<CAOvn4qj8JtAO8-_7jxWT=JQh8ec=a1KSQisE-bKTcoGy-He16A@mail.gmail.com>
Message-ID: <CANn2QUzTEa2wKHuW6a2DCbQLS7YepdtmRx6ra5ni0EQ38oUj+g@mail.gmail.com>

On Sat, Apr 5, 2014 at 12:38 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> On 5 April 2014 12:26, Matthias BUSSONNIER <bussonniermatthias at gmail.com>wrote:
>
>> I might misremember and/or misunderstand , but it seem to me that theses
>> propositions have already been
>> disscussed on the ML, and that the response was that such a thing is  out
>> of scope for the time being.
>>
>> It is relatively easy to build as a standalone project and IIRC some
>> project like runipy already
>> implement theses functions. (cf copy from read me below)
>>
>
> Passing parameters from the command line isn't really the same as what
> this discussion is about. But it would also be easy to have a widget
> callback - even an interact function - which simply assigns its parameters
> to global variables. That should enable precisely the use case described,
> at the cost of a few lines of boilerplate, without needing major changes to
> the widget API model.
>

Agree with Thomas. Thanks to the pointer to runipy though, it is surely
handy in some situations.

In this use case, passing parameters through environment variables is
equally cumbersome. I manly work on windows boxes, and using bash scripts
to set the variables would not be compatible with Windows. I could try a
notebook that sets the environment variables and then calls runipy
though....

There are two issues here that can be decoupled.

One is running a Notebook with different input parameters (i.e. file names,
floats, etc...). According to Thomas comment that seems to be an easy reach
within the current widget infrastructure.

The second problem would be saving the output of the different inputs for
easy comparison. I don't know if this can be easily achieved. At the very
least, a semi-automated way to save N notebooks would be useful.

Anyway, let me congratulate for the fantastic work you made so far!

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

From fperez.net at gmail.com  Sat Apr  5 20:58:55 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Sat, 5 Apr 2014 17:58:55 -0700
Subject: [IPython-dev] Widget idea: Global Parameters
In-Reply-To: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
References: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
Message-ID: <CAHAreOqSKfcqr4aWc35NCmJkDJYJjcrDqDNTE1BWmK3MTMcN2Q@mail.gmail.com>

On Fri, Apr 4, 2014 at 9:01 AM, Jacob Biesinger <jake.biesinger at gmail.com>wrote:

> What if we had a way to specify "report parameters", global variables you
> can modify using a widget interface (dropdown, slider, input box, etc but
> tied to multiple cells or possibly the whole notebook) and a caching
> mechanism to store notebook contents for each combination of report
> parameters? I'm imagining quickly switching the dataset for a series of
> graphs I'm looking at and having the graphs already cached for the ones
> I've looked at, or having the report run for any new combinations.


Paul Ivanov might chime in soon, he and I discussed this a while back and I
think he might even have some prototype code that could be a useful
starting point.

This is both a really important problem, and one that I think a lot of
progress can be made on before we need to think about changes in IPython
itself.

The direction Paul and I were considering was to annotate a cell with
metadata indicating that it contains parameters, and then have something
like runipy create new copies of the notebook varying each parameter over
the specified range.  I actually think it's better, for now, to explicitly
create copies of all notebooks, so it's a little easier to simply open one
and look at it. I would have the tool simply dump the 'children' notebooks
with names that make them all easy to later remove/clean up. But that makes
it possible to simply open any one of them and inspect it, re-execute it
manually with further tweaks, etc.

And, it's the simplest thing that can possibly work, before thinking too
hard about building new GUIs or anything else. All you need is:

- a note in the cell metadata.
- some markup syntax to specify in the cell the parameter ranges you want.
- a wrapper script that uses something like runipy and loops over the lot.

That's what I'd do *first*, until I understood the use cases and problems
better...  And the nice thing is that you can do all that today, without
needing anything new whatsoever from upstream or having to mess with the
code in IPython itself.

Cheers,

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

From maximilian.albert at gmail.com  Sun Apr  6 11:06:45 2014
From: maximilian.albert at gmail.com (Maximilian Albert)
Date: Sun, 6 Apr 2014 11:06:45 -0400
Subject: [IPython-dev] Widget idea: Global Parameters
In-Reply-To: <CAHAreOqSKfcqr4aWc35NCmJkDJYJjcrDqDNTE1BWmK3MTMcN2Q@mail.gmail.com>
References: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
	<CAHAreOqSKfcqr4aWc35NCmJkDJYJjcrDqDNTE1BWmK3MTMcN2Q@mail.gmail.com>
Message-ID: <CAGA_dmi4cfjt_TddQMywX52psL=VFCW3TTAx15f6wiY_Z3es1g@mail.gmail.com>

Hi all,

somewhat complementary, but it might be useful to combine some of the
ideas mentioned here with tools like Sumatra [1], which might be
useful for further automization and/or reproducibility. I haven't
thought about this deeply, but offhand I could imagine that it would
help with some of the caching issues mentioned (because the outcome of
different simulation/analysis runs is stored in a database, so it
would be easy to get the data or plots corresponding to a specific
parameter set).

Cheers,
Max

P.S.: If anyone knows of tools similar to Sumatra, I'd be interested
to hear about them (although it may be better to devote a separate
thread to this).

[1] http://pythonhosted.org/Sumatra/

2014-04-05 20:58 GMT-04:00 Fernando Perez <fperez.net at gmail.com>:
> On Fri, Apr 4, 2014 at 9:01 AM, Jacob Biesinger <jake.biesinger at gmail.com>
> wrote:
>>
>> What if we had a way to specify "report parameters", global variables you
>> can modify using a widget interface (dropdown, slider, input box, etc but
>> tied to multiple cells or possibly the whole notebook) and a caching
>> mechanism to store notebook contents for each combination of report
>> parameters? I'm imagining quickly switching the dataset for a series of
>> graphs I'm looking at and having the graphs already cached for the ones I've
>> looked at, or having the report run for any new combinations.
>
>
> Paul Ivanov might chime in soon, he and I discussed this a while back and I
> think he might even have some prototype code that could be a useful starting
> point.
>
> This is both a really important problem, and one that I think a lot of
> progress can be made on before we need to think about changes in IPython
> itself.
>
> The direction Paul and I were considering was to annotate a cell with
> metadata indicating that it contains parameters, and then have something
> like runipy create new copies of the notebook varying each parameter over
> the specified range.  I actually think it's better, for now, to explicitly
> create copies of all notebooks, so it's a little easier to simply open one
> and look at it. I would have the tool simply dump the 'children' notebooks
> with names that make them all easy to later remove/clean up. But that makes
> it possible to simply open any one of them and inspect it, re-execute it
> manually with further tweaks, etc.
>
> And, it's the simplest thing that can possibly work, before thinking too
> hard about building new GUIs or anything else. All you need is:
>
> - a note in the cell metadata.
> - some markup syntax to specify in the cell the parameter ranges you want.
> - a wrapper script that uses something like runipy and loops over the lot.
>
> That's what I'd do *first*, until I understood the use cases and problems
> better...  And the nice thing is that you can do all that today, without
> needing anything new whatsoever from upstream or having to mess with the
> code in IPython itself.
>
> Cheers,
>
> 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 j.davidgriffiths at gmail.com  Sun Apr  6 12:00:18 2014
From: j.davidgriffiths at gmail.com (John Griffiths)
Date: Sun, 6 Apr 2014 17:00:18 +0100
Subject: [IPython-dev] Widget idea: Global Parameters
In-Reply-To: <CAGA_dmi4cfjt_TddQMywX52psL=VFCW3TTAx15f6wiY_Z3es1g@mail.gmail.com>
References: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
	<CAHAreOqSKfcqr4aWc35NCmJkDJYJjcrDqDNTE1BWmK3MTMcN2Q@mail.gmail.com>
	<CAGA_dmi4cfjt_TddQMywX52psL=VFCW3TTAx15f6wiY_Z3es1g@mail.gmail.com>
Message-ID: <CACcz1g20dSHCD8FNVZ7Qw9wvA2zx9b4rnEWdpwYXdqFR==ngUA@mail.gmail.com>

theres a tool called lancet that does stuff similar to sumatra and has been
specifically developed with notebooks in mind

http://www.ncbi.nlm.nih.gov/pubmed/24416014
On 6 Apr 2014 16:06, "Maximilian Albert" <maximilian.albert at gmail.com>
wrote:

> Hi all,
>
> somewhat complementary, but it might be useful to combine some of the
> ideas mentioned here with tools like Sumatra [1], which might be
> useful for further automization and/or reproducibility. I haven't
> thought about this deeply, but offhand I could imagine that it would
> help with some of the caching issues mentioned (because the outcome of
> different simulation/analysis runs is stored in a database, so it
> would be easy to get the data or plots corresponding to a specific
> parameter set).
>
> Cheers,
> Max
>
> P.S.: If anyone knows of tools similar to Sumatra, I'd be interested
> to hear about them (although it may be better to devote a separate
> thread to this).
>
> [1] http://pythonhosted.org/Sumatra/
>
> 2014-04-05 20:58 GMT-04:00 Fernando Perez <fperez.net at gmail.com>:
> > On Fri, Apr 4, 2014 at 9:01 AM, Jacob Biesinger <
> jake.biesinger at gmail.com>
> > wrote:
> >>
> >> What if we had a way to specify "report parameters", global variables
> you
> >> can modify using a widget interface (dropdown, slider, input box, etc
> but
> >> tied to multiple cells or possibly the whole notebook) and a caching
> >> mechanism to store notebook contents for each combination of report
> >> parameters? I'm imagining quickly switching the dataset for a series of
> >> graphs I'm looking at and having the graphs already cached for the ones
> I've
> >> looked at, or having the report run for any new combinations.
> >
> >
> > Paul Ivanov might chime in soon, he and I discussed this a while back
> and I
> > think he might even have some prototype code that could be a useful
> starting
> > point.
> >
> > This is both a really important problem, and one that I think a lot of
> > progress can be made on before we need to think about changes in IPython
> > itself.
> >
> > The direction Paul and I were considering was to annotate a cell with
> > metadata indicating that it contains parameters, and then have something
> > like runipy create new copies of the notebook varying each parameter over
> > the specified range.  I actually think it's better, for now, to
> explicitly
> > create copies of all notebooks, so it's a little easier to simply open
> one
> > and look at it. I would have the tool simply dump the 'children'
> notebooks
> > with names that make them all easy to later remove/clean up. But that
> makes
> > it possible to simply open any one of them and inspect it, re-execute it
> > manually with further tweaks, etc.
> >
> > And, it's the simplest thing that can possibly work, before thinking too
> > hard about building new GUIs or anything else. All you need is:
> >
> > - a note in the cell metadata.
> > - some markup syntax to specify in the cell the parameter ranges you
> want.
> > - a wrapper script that uses something like runipy and loops over the
> lot.
> >
> > That's what I'd do *first*, until I understood the use cases and problems
> > better...  And the nice thing is that you can do all that today, without
> > needing anything new whatsoever from upstream or having to mess with the
> > code in IPython itself.
> >
> > Cheers,
> >
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140406/f2d1447a/attachment.html>

From fperez.net at gmail.com  Sun Apr  6 16:56:37 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Sun, 6 Apr 2014 13:56:37 -0700
Subject: [IPython-dev] Widget idea: Global Parameters
In-Reply-To: <CAGA_dmi4cfjt_TddQMywX52psL=VFCW3TTAx15f6wiY_Z3es1g@mail.gmail.com>
References: <CAHYXj6f9bQvmgxsJ9ji=gUAW5RRrgVoFj7mnjubcazFkzh5i9g@mail.gmail.com>
	<CAHAreOqSKfcqr4aWc35NCmJkDJYJjcrDqDNTE1BWmK3MTMcN2Q@mail.gmail.com>
	<CAGA_dmi4cfjt_TddQMywX52psL=VFCW3TTAx15f6wiY_Z3es1g@mail.gmail.com>
Message-ID: <CAHAreOq8oZV9duDQfSoHybe5fMOr1rkOhr6Lk+ZKJFLVUV4x5g@mail.gmail.com>

On Sun, Apr 6, 2014 at 8:06 AM, Maximilian Albert <
maximilian.albert at gmail.com> wrote:

> somewhat complementary, but it might be useful to combine some of the
> ideas mentioned here with tools like Sumatra [1], which might be
> useful for further automization and/or reproducibility. I haven't
> thought about this deeply, but offhand I could imagine that it would
> help with some of the caching issues mentioned (because the outcome of
> different simulation/analysis runs is stored in a database, so it
> would be easy to get the data or plots corresponding to a specific
> parameter set).
>

Indeed, and we're very much of the opinion that such efforts should be
taken outside of the core IPython code. That makes life easier for
everyone: third parties can develop new ideas without bottlenecking on our
already too small team, and we manage to keep a modicum of control over the
scope of IPython.

Obviously if experience builds in such an effort that points to
improvements being needed in IPython, we're always happy to make them. But
it's much better to run as far as possible outside of the core code (even
if it requires temporary workarounds).

Cheers

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

From tylere at google.com  Mon Apr  7 13:11:30 2014
From: tylere at google.com (Tyler Erickson)
Date: Mon, 7 Apr 2014 10:11:30 -0700
Subject: [IPython-dev] working towards an interactive Google Maps widget
Message-ID: <CAKAkUohf0tEGnvGLanrFt6f41onGFg4sC671aZ5XCNsx3V=nRQ@mail.gmail.com>

I have been attempting to create an interactive Google Map widget,
following the directions on the custom
widgets<http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Interactive%20Widgets/Custom%20Widgets.ipynb>notebook.
My end goal is to create a widget that passes back location (lat,
lon) based on a user's input, but for now I would be happy just get the map
to appear in a notebook.

For a simple HTML page page, an interactive Google Map is typically
added by<https://developers.google.com/maps/documentation/javascript/examples/map-simple>
:

   - referencing a javascript library in a <html><head><script> element
   - adding a <html><body><div> element as a container
   - adding an javascript initialize() function, and adding a DOM listener
   event so that it the initialization happens during the page load.

I am not clear on how to do the equivalent in an IPython notebook /
require.js / backbone.js. My current attempt (see attached ipynb file)
results in a Comm exception (listed below).

My guess on what is going wrong is that I am not correctly referencing the
external Maps API JS library, and as a result google.maps.Map() is
undefined. Ideally I would like the google.maps object to be available for
all cells in the notebook, because I think it will be common to display
multiple maps in a notebook.

Any ideas how do debug this?

Cheers,
Tyler


Exception in Comm callback
 TypeError {stack: "TypeError: undefined is not a function? at
IPyt?ocalhost:8889/static/widgets/js/widget.js:340:17)", message: "undefined
is not a function"}
 TypeError: undefined is not a function at
IPython.DOMWidgetView.extend.initialize (eval at <anonymous> (
http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb:549:18<http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb>),
<anonymous>:21:28) at a.View (
http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:12150<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
at r (
http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
at r (
http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
at new r (
http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
at WidgetManager.create_view (
http://localhost:8889/static/widgets/js/manager.js:121:24<http://localhost:8889/static/widgets/js/manager.js>)
at Backbone.View.extend.create_child_view (
http://localhost:8889/static/widgets/js/widget.js:305:56<http://localhost:8889/static/widgets/js/widget.js>)
at IPython.DOMWidgetView.extend.add_child_model (
http://localhost:8889/static/widgets/js/widget_container.js:48:29<http://localhost:8889/static/widgets/js/widget_container.js>)
at x.isFunction.i (
http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd:4:5488<http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd>
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140407/9771e91e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GoogleMapWidget.ipynb
Type: application/octet-stream
Size: 4578 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140407/9771e91e/attachment.obj>

From raymond.yee at gmail.com  Mon Apr  7 13:24:38 2014
From: raymond.yee at gmail.com (Raymond Yee)
Date: Mon, 07 Apr 2014 10:24:38 -0700
Subject: [IPython-dev] working towards an interactive Google Maps widget
In-Reply-To: <CAKAkUohf0tEGnvGLanrFt6f41onGFg4sC671aZ5XCNsx3V=nRQ@mail.gmail.com>
References: <CAKAkUohf0tEGnvGLanrFt6f41onGFg4sC671aZ5XCNsx3V=nRQ@mail.gmail.com>
Message-ID: <5342DF56.4030403@gmail.com>

Hi Tyler,

Take a look at
http://nbviewer.ipython.org/github/rdhyee/working-open-data-2014/blob/master/notebooks/Day_07_C_Google_Map_API.ipynb 


-Raymond

On 4/7/14 10:11 AM, Tyler Erickson wrote:
> I have been attempting to create an interactive Google Map widget,
> following the directions on the custom widgets
> <http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Interactive%20Widgets/Custom%20Widgets.ipynb>
> notebook. My end goal is to create a widget that passes back location
> (lat, lon) based on a user's input, but for now I would be happy just
> get the map to appear in a notebook.
>
> For a simple HTML page page, an interactive Google Map is typically
> added by
> <https://developers.google.com/maps/documentation/javascript/examples/map-simple>:
>
>   * referencing a javascript library in a <html><head><script> element
>   * adding a <html><body><div> element as a container
>   * adding an javascript initialize() function, and adding a DOM
>     listener event so that it the initialization happens during the
>     page load.
>
> I am not clear on how to do the equivalent in an IPython notebook /
> require.js / backbone.js. My current attempt (see attached ipynb file)
> results in a Comm exception (listed below).
>
> My guess on what is going wrong is that I am not correctly referencing
> the external Maps API JS library, and as a result google.maps.Map() is
> undefined. Ideally I would like the google.maps object to be available
> for all cells in the notebook, because I think it will be common to
> display multiple maps in a notebook.
>
> Any ideas how do debug this?
>
> Cheers,
> Tyler
>
>
> Exception in Comm callback
> TypeError {stack: "TypeError: undefined is not a function? at
> IPyt...ocalhost:8889/static/widgets/js/widget.js:340:17)", message: "undefined
> is not a function"}
> TypeError: undefined is not a function at
> IPython.DOMWidgetView.extend.initialize (eval at <anonymous>
> (http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb:549:18
> <http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb>),
> <anonymous>:21:28) at a.View
> (http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:12150
> <http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
> at r
> (http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091
> <http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
> at r
> (http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091
> <http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
> at new r
> (http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091
> <http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
> at WidgetManager.create_view
> (http://localhost:8889/static/widgets/js/manager.js:121:24
> <http://localhost:8889/static/widgets/js/manager.js>) at
> Backbone.View.extend.create_child_view
> (http://localhost:8889/static/widgets/js/widget.js:305:56
> <http://localhost:8889/static/widgets/js/widget.js>) at
> IPython.DOMWidgetView.extend.add_child_model
> (http://localhost:8889/static/widgets/js/widget_container.js:48:29
> <http://localhost:8889/static/widgets/js/widget_container.js>) at
> x.isFunction.i
> (http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd:4:5488
> <http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd>)
>
>
> _______________________________________________
> 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/20140407/d7960675/attachment.html>

From aron at ahmadia.net  Mon Apr  7 13:27:00 2014
From: aron at ahmadia.net (Aron Ahmadia)
Date: Mon, 7 Apr 2014 13:27:00 -0400
Subject: [IPython-dev] working towards an interactive Google Maps widget
In-Reply-To: <5342DF56.4030403@gmail.com>
References: <CAKAkUohf0tEGnvGLanrFt6f41onGFg4sC671aZ5XCNsx3V=nRQ@mail.gmail.com>
	<5342DF56.4030403@gmail.com>
Message-ID: <CAPhiW4jA-WwtrpXzgOO-Yf3LLfFB-FXdWzZg6xxTYJ9g=7d-DA@mail.gmail.com>

Raymond,

Cool example!  I think Tyler is asking for a way to integrate Google Maps
as an IPython Widget.

-A


On Mon, Apr 7, 2014 at 1:24 PM, Raymond Yee <raymond.yee at gmail.com> wrote:

>  Hi Tyler,
>
> Take a look at
> http://nbviewer.ipython.org/github/rdhyee/working-open-data-2014/blob/master/notebooks/Day_07_C_Google_Map_API.ipynb
>
>
> -Raymond
>
>
> On 4/7/14 10:11 AM, Tyler Erickson wrote:
>
>  I have been attempting to create an interactive Google Map widget,
> following the directions on the custom widgets<http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Interactive%20Widgets/Custom%20Widgets.ipynb>notebook. My end goal is to create a widget that passes back location (lat,
> lon) based on a user's input, but for now I would be happy just get the map
> to appear in a notebook.
>
>  For a simple HTML page page, an interactive Google Map is typically
> added by<https://developers.google.com/maps/documentation/javascript/examples/map-simple>
> :
>
>    - referencing a javascript library in a <html><head><script> element
>     - adding a <html><body><div> element as a container
>    - adding an javascript initialize() function, and adding a DOM
>    listener event so that it the initialization happens during the page load.
>
> I am not clear on how to do the equivalent in an IPython notebook /
> require.js / backbone.js. My current attempt (see attached ipynb file)
> results in a Comm exception (listed below).
>
>  My guess on what is going wrong is that I am not correctly referencing
> the external Maps API JS library, and as a result google.maps.Map() is
> undefined. Ideally I would like the google.maps object to be available for
> all cells in the notebook, because I think it will be common to display
> multiple maps in a notebook.
>
>  Any ideas how do debug this?
>
>  Cheers,
> Tyler
>
>
>  Exception in Comm callback
>  TypeError {stack: "TypeError: undefined is not a function? at
> IPyt?ocalhost:8889/static/widgets/js/widget.js:340:17)", message: "undefined
> is not a function"}
>   TypeError: undefined is not a function at
> IPython.DOMWidgetView.extend.initialize (eval at <anonymous> (
> http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb:549:18<http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb>),
> <anonymous>:21:28) at a.View (
> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:12150<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
> at r (
> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
> at r (
> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
> at new r (
> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
> at WidgetManager.create_view (
> http://localhost:8889/static/widgets/js/manager.js:121:24<http://localhost:8889/static/widgets/js/manager.js>)
> at Backbone.View.extend.create_child_view (
> http://localhost:8889/static/widgets/js/widget.js:305:56<http://localhost:8889/static/widgets/js/widget.js>)
> at IPython.DOMWidgetView.extend.add_child_model (
> http://localhost:8889/static/widgets/js/widget_container.js:48:29<http://localhost:8889/static/widgets/js/widget_container.js>)
> at x.isFunction.i (
> http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd:4:5488<http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd>
> )
>
>
> _______________________________________________
> IPython-dev mailing listIPython-dev at scipy.orghttp://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/20140407/db657a2c/attachment.html>

From kikocorreoso at gmail.com  Mon Apr  7 14:26:20 2014
From: kikocorreoso at gmail.com (Kiko)
Date: Mon, 7 Apr 2014 20:26:20 +0200
Subject: [IPython-dev] working towards an interactive Google Maps widget
In-Reply-To: <CAPhiW4jA-WwtrpXzgOO-Yf3LLfFB-FXdWzZg6xxTYJ9g=7d-DA@mail.gmail.com>
References: <CAKAkUohf0tEGnvGLanrFt6f41onGFg4sC671aZ5XCNsx3V=nRQ@mail.gmail.com>
	<5342DF56.4030403@gmail.com>
	<CAPhiW4jA-WwtrpXzgOO-Yf3LLfFB-FXdWzZg6xxTYJ9g=7d-DA@mail.gmail.com>
Message-ID: <CAB-sx601kG+yytu-Mfs3WWZ8rbQ77zg2gARp5Kbm2XUeryVJiw@mail.gmail.com>

hi Tyler,

(sorry for the top-posting)

Maybe you will find this interesting:

https://github.com/kikocorreoso/brythonmagic

(see the openlayers notebook in the notebooks folder).

It is not using the custom widgets but maybe it is helpful for your use case.

kind regards.

2014-04-07 19:27 GMT+02:00, Aron Ahmadia <aron at ahmadia.net>:
> Raymond,
>
> Cool example!  I think Tyler is asking for a way to integrate Google Maps
> as an IPython Widget.
>
> -A
>
>
> On Mon, Apr 7, 2014 at 1:24 PM, Raymond Yee <raymond.yee at gmail.com> wrote:
>
>>  Hi Tyler,
>>
>> Take a look at
>> http://nbviewer.ipython.org/github/rdhyee/working-open-data-2014/blob/master/notebooks/Day_07_C_Google_Map_API.ipynb
>>
>>
>> -Raymond
>>
>>
>> On 4/7/14 10:11 AM, Tyler Erickson wrote:
>>
>>  I have been attempting to create an interactive Google Map widget,
>> following the directions on the custom
>> widgets<http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Interactive%20Widgets/Custom%20Widgets.ipynb>notebook.
>> My end goal is to create a widget that passes back location (lat,
>> lon) based on a user's input, but for now I would be happy just get the
>> map
>> to appear in a notebook.
>>
>>  For a simple HTML page page, an interactive Google Map is typically
>> added
>> by<https://developers.google.com/maps/documentation/javascript/examples/map-simple>
>> :
>>
>>    - referencing a javascript library in a <html><head><script> element
>>     - adding a <html><body><div> element as a container
>>    - adding an javascript initialize() function, and adding a DOM
>>    listener event so that it the initialization happens during the page
>> load.
>>
>> I am not clear on how to do the equivalent in an IPython notebook /
>> require.js / backbone.js. My current attempt (see attached ipynb file)
>> results in a Comm exception (listed below).
>>
>>  My guess on what is going wrong is that I am not correctly referencing
>> the external Maps API JS library, and as a result google.maps.Map() is
>> undefined. Ideally I would like the google.maps object to be available
>> for
>> all cells in the notebook, because I think it will be common to display
>> multiple maps in a notebook.
>>
>>  Any ideas how do debug this?
>>
>>  Cheers,
>> Tyler
>>
>>
>>  Exception in Comm callback
>>  TypeError {stack: "TypeError: undefined is not a function? at
>> IPyt?ocalhost:8889/static/widgets/js/widget.js:340:17)", message:
>> "undefined
>> is not a function"}
>>   TypeError: undefined is not a function at
>> IPython.DOMWidgetView.extend.initialize (eval at <anonymous> (
>> http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb:549:18<http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb>),
>> <anonymous>:21:28) at a.View (
>> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:12150<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
>> at r (
>> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
>> at r (
>> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
>> at new r (
>> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
>> at WidgetManager.create_view (
>> http://localhost:8889/static/widgets/js/manager.js:121:24<http://localhost:8889/static/widgets/js/manager.js>)
>> at Backbone.View.extend.create_child_view (
>> http://localhost:8889/static/widgets/js/widget.js:305:56<http://localhost:8889/static/widgets/js/widget.js>)
>> at IPython.DOMWidgetView.extend.add_child_model (
>> http://localhost:8889/static/widgets/js/widget_container.js:48:29<http://localhost:8889/static/widgets/js/widget_container.js>)
>> at x.isFunction.i (
>> http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd:4:5488<http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd>
>> )
>>
>>
>> _______________________________________________
>> IPython-dev mailing
>> listIPython-dev at scipy.orghttp://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 tylere at google.com  Mon Apr  7 14:37:22 2014
From: tylere at google.com (Tyler Erickson)
Date: Mon, 7 Apr 2014 11:37:22 -0700
Subject: [IPython-dev] working towards an interactive Google Maps widget
In-Reply-To: <CAPhiW4jA-WwtrpXzgOO-Yf3LLfFB-FXdWzZg6xxTYJ9g=7d-DA@mail.gmail.com>
References: <CAKAkUohf0tEGnvGLanrFt6f41onGFg4sC671aZ5XCNsx3V=nRQ@mail.gmail.com>
	<5342DF56.4030403@gmail.com>
	<CAPhiW4jA-WwtrpXzgOO-Yf3LLfFB-FXdWzZg6xxTYJ9g=7d-DA@mail.gmail.com>
Message-ID: <CAKAkUoiahWr7OkUcSmF4Wzk=CE6Em4v3904r7qHDC3TBsA7oqg@mail.gmail.com>

Yes, I am specifically interested in using the IPython widgets, so that I
update python variables based on the interactions with the map.


On Mon, Apr 7, 2014 at 10:27 AM, Aron Ahmadia <aron at ahmadia.net> wrote:

> Raymond,
>
> Cool example!  I think Tyler is asking for a way to integrate Google Maps
> as an IPython Widget.
>
> -A
>
>
> On Mon, Apr 7, 2014 at 1:24 PM, Raymond Yee <raymond.yee at gmail.com> wrote:
>
>>  Hi Tyler,
>>
>> Take a look at
>> http://nbviewer.ipython.org/github/rdhyee/working-open-data-2014/blob/master/notebooks/Day_07_C_Google_Map_API.ipynb
>>
>>
>> -Raymond
>>
>>
>> On 4/7/14 10:11 AM, Tyler Erickson wrote:
>>
>>  I have been attempting to create an interactive Google Map widget,
>> following the directions on the custom widgets<http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Interactive%20Widgets/Custom%20Widgets.ipynb>notebook. My end goal is to create a widget that passes back location (lat,
>> lon) based on a user's input, but for now I would be happy just get the map
>> to appear in a notebook.
>>
>>  For a simple HTML page page, an interactive Google Map is typically
>> added by<https://developers.google.com/maps/documentation/javascript/examples/map-simple>
>> :
>>
>>    - referencing a javascript library in a <html><head><script> element
>>     - adding a <html><body><div> element as a container
>>    - adding an javascript initialize() function, and adding a DOM
>>    listener event so that it the initialization happens during the page load.
>>
>> I am not clear on how to do the equivalent in an IPython notebook /
>> require.js / backbone.js. My current attempt (see attached ipynb file)
>> results in a Comm exception (listed below).
>>
>>  My guess on what is going wrong is that I am not correctly referencing
>> the external Maps API JS library, and as a result google.maps.Map() is
>> undefined. Ideally I would like the google.maps object to be available for
>> all cells in the notebook, because I think it will be common to display
>> multiple maps in a notebook.
>>
>>  Any ideas how do debug this?
>>
>>  Cheers,
>> Tyler
>>
>>
>>  Exception in Comm callback
>>  TypeError {stack: "TypeError: undefined is not a function? at
>> IPyt?ocalhost:8889/static/widgets/js/widget.js:340:17)", message: "undefined
>> is not a function"}
>>   TypeError: undefined is not a function at
>> IPython.DOMWidgetView.extend.initialize (eval at <anonymous> (
>> http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb:549:18<http://localhost:8889/static/notebook/js/outputarea.js?v=de72c2eeb2653a9b75ab7c6f84c451fb>),
>> <anonymous>:21:28) at a.View (
>> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:12150<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
>> at r (
>> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
>> at r (
>> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
>> at new r (
>> http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d:1:19091<http://localhost:8889/static/components/backbone/backbone-min.js?v=dd2e6c2643968f7932487454302f407d>)
>> at WidgetManager.create_view (
>> http://localhost:8889/static/widgets/js/manager.js:121:24<http://localhost:8889/static/widgets/js/manager.js>)
>> at Backbone.View.extend.create_child_view (
>> http://localhost:8889/static/widgets/js/widget.js:305:56<http://localhost:8889/static/widgets/js/widget.js>)
>> at IPython.DOMWidgetView.extend.add_child_model (
>> http://localhost:8889/static/widgets/js/widget_container.js:48:29<http://localhost:8889/static/widgets/js/widget_container.js>)
>> at x.isFunction.i (
>> http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd:4:5488<http://localhost:8889/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd>
>> )
>>
>>
>> _______________________________________________
>> IPython-dev mailing listIPython-dev at scipy.orghttp://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/20140407/ab4ba00f/attachment.html>

From jason-sage at creativetrax.com  Mon Apr  7 16:33:19 2014
From: jason-sage at creativetrax.com (Jason Grout)
Date: Mon, 07 Apr 2014 15:33:19 -0500
Subject: [IPython-dev] working towards an interactive Google Maps widget
In-Reply-To: <CAKAkUohf0tEGnvGLanrFt6f41onGFg4sC671aZ5XCNsx3V=nRQ@mail.gmail.com>
References: <CAKAkUohf0tEGnvGLanrFt6f41onGFg4sC671aZ5XCNsx3V=nRQ@mail.gmail.com>
Message-ID: <53430B8F.3000100@creativetrax.com>

On 4/7/14, 12:11, Tyler Erickson wrote:
> I have been attempting to create an interactive Google Map widget,
> following the directions on the custom widgets
> <http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Interactive%20Widgets/Custom%20Widgets.ipynb>
> notebook. My end goal is to create a widget that passes back location
> (lat, lon) based on a user's input, but for now I would be happy just
> get the map to appear in a notebook.
>
> For a simple HTML page page, an interactive Google Map is typically
> added by
> <https://developers.google.com/maps/documentation/javascript/examples/map-simple>:
>
>   * referencing a javascript library in a <html><head><script> element
>   * adding a <html><body><div> element as a container
>   * adding an javascript initialize() function, and adding a DOM
>     listener event so that it the initialization happens during the page
>     load.
>
> I am not clear on how to do the equivalent in an IPython notebook /
> require.js / backbone.js. My current attempt (see attached ipynb file)
> results in a Comm exception (listed below).
>
> My guess on what is going wrong is that I am not correctly referencing
> the external Maps API JS library, and as a result google.maps.Map() is
> undefined. Ideally I would like the google.maps object to be available
> for all cells in the notebook, because I think it will be common to
> display multiple maps in a notebook.
>
> Any ideas how do debug this?


I haven't looked at your code, but I remember that debugging Comm-based 
widgets seems more difficult than it needs to be because the Comm 
swallows all errors (and tries to print them, but I don't have much luck 
trying to find the actual error from its printout).  It would be nice if 
there was a debug level somewhere that would let the javascript comm 
objects just propagate their errors.

What I've done to debug widgets and comm-based things is to set a 
breakpoint in the code using Chrome Developer tools, and then step 
through the code, or turn on the "pause on all exceptions" in Chrome 
(https://developers.google.com/chrome-developer-tools/docs/javascript-debugging#pause-on-exceptions). 
  Then the javascript error triggers a break, and I can play with things 
in the console, inspect variables, etc.

By the way, I think this map thing is a cool idea.

Jason



From nwhcairns at gmail.com  Mon Apr  7 16:45:55 2014
From: nwhcairns at gmail.com (Nathan Cairns)
Date: Mon, 7 Apr 2014 14:45:55 -0600
Subject: [IPython-dev] IPython Turtle Functionality
Message-ID: <CANfC4Aq3paZZFL_h0irdNdVufr5xEo0T=pNS_nfgP1+pGbP7gQ@mail.gmail.com>

Hi everyone, over the past 2 months Nathan, Nic and Jake of the Aspidites
team have been working on IPython as a project for a 3rd year Computer
Science course. Our goal was to add turtle functionality to IPython using
an HTML canvas and Paper.js. We were able to meet our goal within the
semester and we're quite happy with the result. There are some bugs and
there's plenty of room for new features, but, we think it came out pretty
nicely in the end so we would like to share it with you guys. Below you
will find a link to our GitHub repository. Once you clone it to start it up
just run "python -m IPython notebook" from the command line in the
aspidites directory. Then start a new notebook with the following lines and
you'll see our turtle.

from NewTurtle import Turtle
t = Turtle()
t.forward(100)

Some of the other turtle commands we have are:

backward()
right()
left()
circle()
penup()
pendown()
speed()
pencolor()

Here's the link to the repo, enjoy.

https://github.com/macewanCMPT395/aspidites

--

The Aspidites Team

Nathan Cairns
Jake Bowering
Nic Lefebvre

Grant MacEwan University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140407/edf67404/attachment.html>

From sylvain.corlay at gmail.com  Mon Apr  7 17:06:26 2014
From: sylvain.corlay at gmail.com (Sylvain Corlay)
Date: Mon, 7 Apr 2014 17:06:26 -0400
Subject: [IPython-dev] Link widget
In-Reply-To: <5321F660.8080000@creativetrax.com>
References: <53211C1C.3080209@creativetrax.com>
	<CAK=Phk7P_b015hPT5FZx0pte0ZKgRH3e67Kx5a8ndJbq2CQm9Q@mail.gmail.com>
	<532132AE.8090500@creativetrax.com>
	<CAH4pYpQnSayvAGQXd8+yJDi8z6QtWrkKLScM=b4yuiMC63cA-A@mail.gmail.com>
	<5321E46B.1080803@creativetrax.com>
	<CAK=Phk65_zMg7iGMyOETnC5s231iCcsKKJgeqpFDHnG1TR1srg@mail.gmail.com>
	<5321F660.8080000@creativetrax.com>
Message-ID: <CAK=Phk5b5xhwWukZY4XjnzOTw36y92UXtOeHTrLdnX85dQx=AA@mail.gmail.com>

I personally would prefer to exactly reproduce the signature of
IPython.utils.traitlets.link (using tuples rather than lists etc) even if
it is merely a wrapper around a the creation of the Link object.
Another reason is that you need to call display() on the link instance,
which is a bit misleading from the user's point of view.
Sylvain


On Thu, Mar 13, 2014 at 2:18 PM, Jason Grout <jason-sage at creativetrax.com>wrote:

> On 3/13/14, 12:59, Sylvain Corlay wrote:
> > Quick question on the API:
> >
> > Does it really have to be a widget, or could it be a function in
> > IPython.html.widgets.
> >
> > from IPython.html import widgets
> > a = widgets.FloatSliderWidget(value=30)
> > b = widgets.FloatSliderWidget()
> >
> > show(a)
> > show(b)
> >
> > widgets.link([[a,'value'], [b,'value']])    # could be called "sync" as
> well
> >
>
> Somehow, the message has to get across to the javascript side that the
> models should be linked together.  We could send a message to, say, the
> widget manager to do that, but right now we don't have a good way to
> directly communicate with the widget manager and send it messages.  I
> hesitate to add such a messaging system when it seems even better to
> have the link object be a separate object we can manipulate by itself.
> By making the link a separate object (mirroring the link function in the
> traitlets file), it's easy to change the properties of the link, or
> abolish the link altogether.  That said, we could make a link() function
> in the widgets.py file that would construct, display, and return the
> Link object.
>
> I chose the name link because that was what we decided to do in the
> traitlets case: https://github.com/ipython/ipython/pull/5060.
>
> Thanks,
>
> Jason
>
> _______________________________________________
> 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/20140407/d528bf45/attachment.html>

From bullclaudine at gmail.com  Mon Apr  7 17:44:58 2014
From: bullclaudine at gmail.com (Claudine Bull)
Date: Mon, 7 Apr 2014 15:44:58 -0600
Subject: [IPython-dev] Introducing IPython Turtle
Message-ID: <CAFGNs_AxuTC2eY6t=J6GBx761GFmN=20Lj+qpFyxp34pjfwkdw@mail.gmail.com>

Hello,

We are PACAttack, senior students at MacEwan University in Edmonton, AB.
Cameron Macdonell and Greg Wilson are mentoring us this term on our
Software Engineering project. The team members are Andrew Kind, Claudine
Gladue, and Paul Schmermund.

Our goal was to create a IPython Notebook application to mimic the built-in
Python Turtle module. We attempted to include as many Turtle features as
time permitted.

We invite you to view and give our project a try:
https://github.com/macewanCMPT395/PACattack

The button with '"i" will give you more information on how to run the
IPython Turtle. We look forward to any comments or suggestions you have.

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

From rjohns67 at gmail.com  Mon Apr  7 18:12:56 2014
From: rjohns67 at gmail.com (Richard Johns)
Date: Mon, 7 Apr 2014 15:12:56 -0700
Subject: [IPython-dev] Plot label problem with MathJax
Message-ID: <CABHtHdcsfC1ocTjPCiyNzy=LRZJzAN-wY19WqgXOmdxhuQKuYA@mail.gmail.com>

I've run into a problem using MathJax and 'bold' in a plot label at the
same time in both ipython and the notebook. Please see the attached
nbconversion which illustrates the problem.
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140407/00b2e645/attachment.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140407/00b2e645/attachment-0001.html>

From jsseabold at gmail.com  Mon Apr  7 18:16:52 2014
From: jsseabold at gmail.com (Skipper Seabold)
Date: Mon, 7 Apr 2014 18:16:52 -0400
Subject: [IPython-dev] Tab behavior in a function call in notebooks on 2.0
Message-ID: <CAKF=DjsWLEC3xoBr7bGrcTScfKA6h+iYO4fP=6fkBbyP-ARHYQ@mail.gmail.com>

Hi,

I used to be able to hit <tab> while writing a function in the
notebook and get the documentation in a pop-up. E.g.,

np.array(<TAB>

Somewhere during 2.0.0 development this behavior seems to have stopped
working. It worked three weeks ago at 487ee99. I now get a list of
pretty much everything an empty word could tab-complete to when I try
the above. I found the old behavior to be very helpful and more
natural than the ? behavior of a new pane in the browser.

Is there a way to re-enable this?

Thanks,

Skipper


From ntezak at stanford.edu  Mon Apr  7 18:18:48 2014
From: ntezak at stanford.edu (Nikolas Tezak)
Date: Mon, 7 Apr 2014 15:18:48 -0700
Subject: [IPython-dev] Tab behavior in a function call in notebooks on
	2.0
In-Reply-To: <CAKF=DjsWLEC3xoBr7bGrcTScfKA6h+iYO4fP=6fkBbyP-ARHYQ@mail.gmail.com>
References: <CAKF=DjsWLEC3xoBr7bGrcTScfKA6h+iYO4fP=6fkBbyP-ARHYQ@mail.gmail.com>
Message-ID: <C7A81CB7-63F8-46D3-A365-300611766781@stanford.edu>

Hi Skipper,
try <SHIFT-TAB>.

Nik

On Apr 7, 2014, at 3:16 PM, Skipper Seabold <jsseabold at gmail.com> wrote:

> Hi,
> 
> I used to be able to hit <tab> while writing a function in the
> notebook and get the documentation in a pop-up. E.g.,
> 
> np.array(<TAB>
> 
> Somewhere during 2.0.0 development this behavior seems to have stopped
> working. It worked three weeks ago at 487ee99. I now get a list of
> pretty much everything an empty word could tab-complete to when I try
> the above. I found the old behavior to be very helpful and more
> natural than the ? behavior of a new pane in the browser.
> 
> Is there a way to re-enable this?
> 
> Thanks,
> 
> Skipper
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From jsseabold at gmail.com  Mon Apr  7 18:31:00 2014
From: jsseabold at gmail.com (Skipper Seabold)
Date: Mon, 7 Apr 2014 18:31:00 -0400
Subject: [IPython-dev] Tab behavior in a function call in notebooks on
	2.0
In-Reply-To: <C7A81CB7-63F8-46D3-A365-300611766781@stanford.edu>
References: <CAKF=DjsWLEC3xoBr7bGrcTScfKA6h+iYO4fP=6fkBbyP-ARHYQ@mail.gmail.com>
	<C7A81CB7-63F8-46D3-A365-300611766781@stanford.edu>
Message-ID: <CAKF=DjvCA4sThtyxzSEvr_CZWuc49rw53ixM9SL9Te7kpiPn7w@mail.gmail.com>

On Mon, Apr 7, 2014 at 6:18 PM, Nikolas Tezak <ntezak at stanford.edu> wrote:
> Hi Skipper,
> try <SHIFT-TAB>.

Great. Thanks. I actually see this in the release notes now too, so
sorry for the noise.

Skipper


From aron at ahmadia.net  Mon Apr  7 19:29:52 2014
From: aron at ahmadia.net (Aron Ahmadia)
Date: Mon, 7 Apr 2014 19:29:52 -0400
Subject: [IPython-dev] Plot label problem with MathJax
In-Reply-To: <CABHtHdcsfC1ocTjPCiyNzy=LRZJzAN-wY19WqgXOmdxhuQKuYA@mail.gmail.com>
References: <CABHtHdcsfC1ocTjPCiyNzy=LRZJzAN-wY19WqgXOmdxhuQKuYA@mail.gmail.com>
Message-ID: <CAPhiW4g179iq8_SFQDsagmLOZ+nS0ORpLvUENhBojDmqWPfqtA@mail.gmail.com>

I don't actually see any of the output in your attached .html file.  This
sounds like it's a matplotlib issue, but maybe somebody on this list might
have an idea.

A


On Mon, Apr 7, 2014 at 6:12 PM, Richard Johns <rjohns67 at gmail.com> wrote:

> I've run into a problem using MathJax and 'bold' in a plot label at the
> same time in both ipython and the notebook. Please see the attached
> nbconversion which illustrates the problem.
> Richard
>
>
>
> _______________________________________________
> 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/20140407/5fcebf63/attachment.html>

From fperez.net at gmail.com  Mon Apr  7 20:05:25 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Mon, 7 Apr 2014 17:05:25 -0700
Subject: [IPython-dev] Plot label problem with MathJax
In-Reply-To: <CAPhiW4g179iq8_SFQDsagmLOZ+nS0ORpLvUENhBojDmqWPfqtA@mail.gmail.com>
References: <CABHtHdcsfC1ocTjPCiyNzy=LRZJzAN-wY19WqgXOmdxhuQKuYA@mail.gmail.com>
	<CAPhiW4g179iq8_SFQDsagmLOZ+nS0ORpLvUENhBojDmqWPfqtA@mail.gmail.com>
Message-ID: <CAHAreOqs5n-a930KnoAY+egiEM_58q2i2ktaRavUCx6iL8rqmg@mail.gmail.com>

Indeed, you (OP, not Aron :) should post your question to the matplotlib
user list, where hopefully they can give you a hand.


On Mon, Apr 7, 2014 at 4:29 PM, Aron Ahmadia <aron at ahmadia.net> wrote:

> I don't actually see any of the output in your attached .html file.  This
> sounds like it's a matplotlib issue, but maybe somebody on this list might
> have an idea.
>
> A
>
>
> On Mon, Apr 7, 2014 at 6:12 PM, Richard Johns <rjohns67 at gmail.com> wrote:
>
>>  I've run into a problem using MathJax and 'bold' in a plot label at the
>> same time in both ipython and the notebook. Please see the attached
>> nbconversion which illustrates the problem.
>>  Richard
>>
>>
>>
>> _______________________________________________
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140407/abefaf5f/attachment.html>

From takowl at gmail.com  Mon Apr  7 21:19:22 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Mon, 7 Apr 2014 18:19:22 -0700
Subject: [IPython-dev] Introducing IPython Turtle
In-Reply-To: <CAFGNs_AxuTC2eY6t=J6GBx761GFmN=20Lj+qpFyxp34pjfwkdw@mail.gmail.com>
References: <CAFGNs_AxuTC2eY6t=J6GBx761GFmN=20Lj+qpFyxp34pjfwkdw@mail.gmail.com>
Message-ID: <CAOvn4qjWiOr84CsOU8731BumA96q=nUvr61GsNes4CBdFYaR6g@mail.gmail.com>

Thanks to PACAttack and Aspidites for implementing notebook turtle
interfaces - I've tested both versions, and they work very nicely (though
PACattack, your examples use 'rotate' when your turtle has 'right' and
'left' methods).

We'd love to see one of these projects - or a merger of the best bits of
both - become a package that people can easily install and use. The next
step towards that would be separating your code out from the IPython source
code: forking and modifying IPython might be an easy way to get started,
but users will expect to install it separately and use it from a regular
IPython environment. We've been asked several times about turtles in the
notebook, so there are definitely people interested in using something like
this. Get in touch if you're interested, we can help you take it forwards.

Best wishes,
Thomas


On 7 April 2014 14:44, Claudine Bull <bullclaudine at gmail.com> wrote:

> Hello,
>
> We are PACAttack, senior students at MacEwan University in Edmonton, AB.
> Cameron Macdonell and Greg Wilson are mentoring us this term on our
> Software Engineering project. The team members are Andrew Kind, Claudine
> Gladue, and Paul Schmermund.
>
> Our goal was to create a IPython Notebook application to mimic the
> built-in Python Turtle module. We attempted to include as many Turtle
> features as time permitted.
>
> We invite you to view and give our project a try:
> https://github.com/macewanCMPT395/PACattack
>
> The button with '"i" will give you more information on how to run the
> IPython Turtle. We look forward to any comments or suggestions you have.
>
> -PACattack
>
>
>
> _______________________________________________
> 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/20140407/961c9600/attachment.html>

From wes.turner at gmail.com  Mon Apr  7 22:16:40 2014
From: wes.turner at gmail.com (Wes Turner)
Date: Mon, 7 Apr 2014 21:16:40 -0500
Subject: [IPython-dev] Introducing IPython Turtle
In-Reply-To: <CAOvn4qjWiOr84CsOU8731BumA96q=nUvr61GsNes4CBdFYaR6g@mail.gmail.com>
References: <CAFGNs_AxuTC2eY6t=J6GBx761GFmN=20Lj+qpFyxp34pjfwkdw@mail.gmail.com>
	<CAOvn4qjWiOr84CsOU8731BumA96q=nUvr61GsNes4CBdFYaR6g@mail.gmail.com>
Message-ID: <CACfEFw--uZC0jm+DJwC_PGXUwx5fxUVtsL9YiW7v9mY6MzJLmQ@mail.gmail.com>

Awesome!

* https://github.com/macewanCMPT395/PACattack/blob/master/IPython/extensions/pacturtle.py
* https://github.com/jabowering/aspidites/blob/master/IPython/extensions/NewTurtle.py

Resources for Further Development:

* Packaging (setup.py, requirements.txt):
https://github.com/audreyr/cookiecutter-pypackage

* IPython Extensions: http://ipython.org/ipython-doc/dev/config/extensions/
  * Likely not necessary if there are not any requirements besides:
    * Having your *turtle module (usually lowercased module name,
uppercased ClassName) in sys.path (python -m site)
    * Having IPython (>= ...) installed (requirements.txt)

* Docstrings: https://pypi.python.org/pypi/sphinxcontrib-napoleon
(IPython is NumPy style)

* Reference Turtle Implementation:
  * https://docs.python.org/2/library/turtle.html
  * http://hg.python.org/cpython/file/tip/Lib/turtle.py




On 4/7/14, Thomas Kluyver <takowl at gmail.com> wrote:
> Thanks to PACAttack and Aspidites for implementing notebook turtle
> interfaces - I've tested both versions, and they work very nicely (though
> PACattack, your examples use 'rotate' when your turtle has 'right' and
> 'left' methods).
>
> We'd love to see one of these projects - or a merger of the best bits of
> both - become a package that people can easily install and use. The next
> step towards that would be separating your code out from the IPython source
> code: forking and modifying IPython might be an easy way to get started,
> but users will expect to install it separately and use it from a regular
> IPython environment. We've been asked several times about turtles in the
> notebook, so there are definitely people interested in using something like
> this. Get in touch if you're interested, we can help you take it forwards.
>
> Best wishes,
> Thomas
>
>
> On 7 April 2014 14:44, Claudine Bull <bullclaudine at gmail.com> wrote:
>
>> Hello,
>>
>> We are PACAttack, senior students at MacEwan University in Edmonton, AB.
>> Cameron Macdonell and Greg Wilson are mentoring us this term on our
>> Software Engineering project. The team members are Andrew Kind, Claudine
>> Gladue, and Paul Schmermund.
>>
>> Our goal was to create a IPython Notebook application to mimic the
>> built-in Python Turtle module. We attempted to include as many Turtle
>> features as time permitted.
>>
>> We invite you to view and give our project a try:
>> https://github.com/macewanCMPT395/PACattack
>>
>> The button with '"i" will give you more information on how to run the
>> IPython Turtle. We look forward to any comments or suggestions you have.
>>
>> -PACattack
>>
>>
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
>


-- 
-- 
Wes Turner


From rjohns67 at gmail.com  Mon Apr  7 22:34:59 2014
From: rjohns67 at gmail.com (Richard Johns)
Date: Mon, 7 Apr 2014 19:34:59 -0700
Subject: [IPython-dev] Plot label problem with MathJax
In-Reply-To: <CAHAreOqs5n-a930KnoAY+egiEM_58q2i2ktaRavUCx6iL8rqmg@mail.gmail.com>
References: <CABHtHdcsfC1ocTjPCiyNzy=LRZJzAN-wY19WqgXOmdxhuQKuYA@mail.gmail.com>
	<CAPhiW4g179iq8_SFQDsagmLOZ+nS0ORpLvUENhBojDmqWPfqtA@mail.gmail.com>
	<CAHAreOqs5n-a930KnoAY+egiEM_58q2i2ktaRavUCx6iL8rqmg@mail.gmail.com>
Message-ID: <CABHtHdfCk=B5gwUYdYjwzLw_O3yH9-+vnskGCMtZL5+W=o-U1Q@mail.gmail.com>

OK Thanks.


On Mon, Apr 7, 2014 at 5:05 PM, Fernando Perez <fperez.net at gmail.com> wrote:

> Indeed, you (OP, not Aron :) should post your question to the matplotlib
> user list, where hopefully they can give you a hand.
>
>
> On Mon, Apr 7, 2014 at 4:29 PM, Aron Ahmadia <aron at ahmadia.net> wrote:
>
>> I don't actually see any of the output in your attached .html file.  This
>> sounds like it's a matplotlib issue, but maybe somebody on this list might
>> have an idea.
>>
>> A
>>
>>
>> On Mon, Apr 7, 2014 at 6:12 PM, Richard Johns <rjohns67 at gmail.com> wrote:
>>
>>>  I've run into a problem using MathJax and 'bold' in a plot label at
>>> the same time in both ipython and the notebook. Please see the attached
>>> nbconversion which illustrates the problem.
>>>  Richard
>>>
>>>
>>>
>>> _______________________________________________
>>> 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/20140407/9ab4b9aa/attachment.html>

From pierre.villeneuve at gmail.com  Tue Apr  8 01:10:00 2014
From: pierre.villeneuve at gmail.com (Pierre Villeneuve)
Date: Mon, 7 Apr 2014 22:10:00 -0700
Subject: [IPython-dev] Amazing Notebook UI Customization
Message-ID: <CANL3p1+3Ded5ZE4TeJ7M30yiwmPt1AriQEnP-oAn0aeADZUOPA@mail.gmail.com>

Hey, this is my first post to the list, but I've been a fan and lurker for
many years.  With the 2.0 release I am so excited about using the Notebook
at work.  I just love those widgets.

Anyhow, I wanted to pass along a blog post I came across yesterday while
browsing through reddit.  It's about a great custom UI for the Notebook:

http://eoinmurray.io/customising-the-ipython-notebook-ui/

Btw, here's the post on reddit:
http://www.reddit.com/r/IPython/comments/22danb/customising_the_ipython_notebook_ui/

It would be so nice if this type of customization were easier to implement,
but I have the impression a lot of hard work would need to happen first.  I
thought I would share my find in case others had not seen it.

*Pierre Villeneuve*
pierre.villeneuve at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140407/3984dcfc/attachment.html>

From pi at berkeley.edu  Tue Apr  8 01:24:12 2014
From: pi at berkeley.edu (Paul Ivanov)
Date: Mon, 7 Apr 2014 22:24:12 -0700
Subject: [IPython-dev] Amazing Notebook UI Customization
In-Reply-To: <CANL3p1+3Ded5ZE4TeJ7M30yiwmPt1AriQEnP-oAn0aeADZUOPA@mail.gmail.com>
References: <CANL3p1+3Ded5ZE4TeJ7M30yiwmPt1AriQEnP-oAn0aeADZUOPA@mail.gmail.com>
Message-ID: <20140408052412.GD25634@HbI-OTOH.berkeley.edu>


Pierre Villeneuve, on 2014-04-07 22:10,  wrote:
> Hey, this is my first post to the list, but I've been a fan and lurker for
> many years.  With the 2.0 release I am so excited about using the Notebook
> at work.  I just love those widgets.

Thanks for your enthusiasm, Pierre!
 
> Anyhow, I wanted to pass along a blog post I came across yesterday while
> browsing through reddit.  It's about a great custom UI for the Notebook:
> 
> http://eoinmurray.io/customising-the-ipython-notebook-ui/
> 
> Btw, here's the post on reddit:
> http://www.reddit.com/r/IPython/comments/22danb/customising_the_ipython_notebook_ui/
> 
> It would be so nice if this type of customization were easier to implement,
> but I have the impression a lot of hard work would need to happen first.  I
> thought I would share my find in case others had not seen it.

The author of that blog post did open an issue in our bug
tracker, https://github.com/ipython/ipython/issues/5551 and I
have requested that he make a pull request so that it's more
clear about all of the parts needed to be changed to make such
styling possible.

best,
-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org


From claresloggett at gmail.com  Tue Apr  8 03:59:12 2014
From: claresloggett at gmail.com (Clare Sloggett)
Date: Tue, 8 Apr 2014 17:59:12 +1000
Subject: [IPython-dev] IPython Notebook 2.0 and websockets
Message-ID: <CAETqNqFPxZmFn2GLidXWxV4kQ1b+c+DTML6RHdyopZcq7W5jnQ@mail.gmail.com>

Hi all,

Reading through the IPython Notebook 2.0 "what's new", I saw that there are
changes in the way notebooks are addressed. Can anyone tell me if this
means that 2.0 no longer uses websockets?

I and a couple of people I know had issues occasionally because we
unfortunately had to go through a proxy that would not correctly handle
websockets. If this isn't a requirement anymore that would be good to know.

In any case, thanks for the hard work on 2.0, the new feature list is just
incredible!

Clare
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140408/880761a5/attachment.html>

From doug.blank at gmail.com  Tue Apr  8 06:41:30 2014
From: doug.blank at gmail.com (Doug Blank)
Date: Tue, 8 Apr 2014 06:41:30 -0400
Subject: [IPython-dev] Seeing javascript visualization from nbviewer?
In-Reply-To: <CAH4pYpQADt4XtTqMc=FFDC57Yo97FjWZvOksGVycGzHGO9drRg@mail.gmail.com>
References: <CAAusYChjktPnvqyLPrOejbg5xSFuS0ezfMgBD7TuvxVBnx3Qgw@mail.gmail.com>
	<CAAusYCiSxUYbGJXs=Ag8R3qYvyvUMAPvhJt=UNnWhsL4YzrVgw@mail.gmail.com>
	<CAH4pYpRrgiVwnDw0TOuPFMutKQp7RJnE9FMFL3bpJNO=aNkvkQ@mail.gmail.com>
	<CAH4pYpQADt4XtTqMc=FFDC57Yo97FjWZvOksGVycGzHGO9drRg@mail.gmail.com>
Message-ID: <CAAusYCgEZibQ=Gum9wLZ=QaULNgKxQ0jopJiDZ+3h857onumvg@mail.gmail.com>

On Fri, Mar 14, 2014 at 11:33 AM, Brian Granger <ellisonbg at gmail.com> wrote:
> I should note that nbviewer 2.0 is not yet deployed - should be in the
> next few days. These things don't currently work on the nbviewer that
> is deployed today.

Is nbviewer 2.0 deployed now? Should I expect to see Javascript output
in nbviewer?

This notebook has javascript output as you can see:

https://bitbucket.org/ipre/calico/raw/master/notebooks/Python/Travelling%20Salesperson.ipynb

But isn't rendered:

http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/Python/Travelling%20Salesperson.ipynb

-Doug

> On Fri, Mar 14, 2014 at 8:32 AM, Brian Granger <ellisonbg at gmail.com> wrote:
>> If the library is aware of require.js, you should use that. But the
>> calling syntax for require is similar to `getScript` is similar - the
>> second argument is a function that gets called when the libraries are
>> loaded. These days, many JavaScript libraries have to be loaded with
>> require.js in the notebook. With IPython 2.0, all different ways
>> should work fine on nbviewer/nbconvert though.
>>
>> On Fri, Mar 14, 2014 at 5:45 AM, Doug Blank <doug.blank at gmail.com> wrote:
>>> I think the problem was with my implementation of Javascript(..,
>>> lib=...). I see that the lib is used like this in the Python kernel:
>>>
>>> $.getScript("https://www.google.com/jsapi", function () {
>>>    [code]
>>> }
>>>
>>> whereas I had:
>>>
>>> require["https://www.google.com/jsapi"];
>>> [code];
>>>
>>> Which did work, but only when running the cells.
>>>
>>> Is putting Javascript(lib="") the best method for including external
>>> Javascript libraries that are used often/many times? Or is there
>>> something I should add to custom.js that would load it at the right
>>> time?
>>>
>>> -Doug
>>>
>>> On Fri, Mar 14, 2014 at 2:01 AM, Doug Blank <doug.blank at gmail.com> wrote:
>>>> I am working on migrating a Google visualization example [1] by
>>>> victor_zverovich to a simpler version shown here:
>>>>
>>>> http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/GeoChart.ipynb
>>>>
>>>> (users using the regular IPython Python kernel can just change
>>>> calico.Javascript to Javascript and import it from IPython.display)
>>>>
>>>> What do I need to do be able to have the GeoChart render in nbviewer?
>>>> Is that possible? Currently I get the same error I get before I
>>>> execute the cells when I first open the notebook:
>>>>
>>>> """
>>>> Javascript error adding output!
>>>> ReferenceError: google is not defined
>>>> """
>>>>
>>>> Any insight appreciated!
>>>>
>>>> -Doug
>>>>
>>>>
>>>> [1] - http://zverovich.net/2013/06/27/visualizing-geographical-ampl-data-using-ipython-and-google-charts.html
>>> _______________________________________________
>>> 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
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev


From franz.bergesund at gmail.com  Tue Apr  8 07:24:30 2014
From: franz.bergesund at gmail.com (Francesco Montesano)
Date: Tue, 8 Apr 2014 13:24:30 +0200
Subject: [IPython-dev] wrong notebook doc (?)
Message-ID: <CAOCdBKJ6dwocOeK7zdLRYGjU4EAFCYg6cXmU1x9XM07TadKEQA@mail.gmail.com>

Hi,

I am checking the notebook documentation (looking for some info about the
widget system).

I think that the documentation has not been updated with the v2.0 version.
E.g. there is nothing about the modal interface, and therefore the
shortcuts:
http://ipython.org/ipython-doc/stable/notebook/notebook.html#keyboard-shortcuts
are likely wrong.

Cheers,
Fra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140408/9cae8a7c/attachment.html>

From doug.blank at gmail.com  Tue Apr  8 07:58:33 2014
From: doug.blank at gmail.com (Doug Blank)
Date: Tue, 8 Apr 2014 07:58:33 -0400
Subject: [IPython-dev] wrong notebook doc (?)
In-Reply-To: <CAOCdBKJ6dwocOeK7zdLRYGjU4EAFCYg6cXmU1x9XM07TadKEQA@mail.gmail.com>
References: <CAOCdBKJ6dwocOeK7zdLRYGjU4EAFCYg6cXmU1x9XM07TadKEQA@mail.gmail.com>
Message-ID: <CAAusYCgYVCTChZr7y7HQBo7=-PCMsM3+Nu6tDRPExUoTWKcG0g@mail.gmail.com>

On Tue, Apr 8, 2014 at 7:24 AM, Francesco Montesano
<franz.bergesund at gmail.com> wrote:
> Hi,
>
> I am checking the notebook documentation (looking for some info about the
> widget system).
>
> I think that the documentation has not been updated with the v2.0 version.
> E.g. there is nothing about the modal interface, and therefore the
> shortcuts:
> http://ipython.org/ipython-doc/stable/notebook/notebook.html#keyboard-shortcuts
> are likely wrong.

They look updated to me (e.g. "Ctrl-m x: cut cell" ... cached browser page?

-Doug


> Cheers,
> Fra
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>


From franz.bergesund at gmail.com  Tue Apr  8 08:35:41 2014
From: franz.bergesund at gmail.com (Francesco Montesano)
Date: Tue, 8 Apr 2014 14:35:41 +0200
Subject: [IPython-dev] wrong notebook doc (?)
In-Reply-To: <CAAusYCgYVCTChZr7y7HQBo7=-PCMsM3+Nu6tDRPExUoTWKcG0g@mail.gmail.com>
References: <CAOCdBKJ6dwocOeK7zdLRYGjU4EAFCYg6cXmU1x9XM07TadKEQA@mail.gmail.com>
	<CAAusYCgYVCTChZr7y7HQBo7=-PCMsM3+Nu6tDRPExUoTWKcG0g@mail.gmail.com>
Message-ID: <CAOCdBK+ay20uHaOZ5f3ZMqja8BWV0XHUi1iCbvztnZw9U-0jFQ@mail.gmail.com>

Probably "wrong" is a bit strong, but for sure are outdated.
>From the Help -> Keyboard shortcuts:

   * Ctrl-m switch from insert to command mode
   * no command mode command has Ctrl-m, so I guess that if you type it
before, e.g., 'x', 'a', ..., it's just ignored

Anyway, in the page I linked should say something about the modal interface
(or at least link to it) and the new table of shortcuts should be
given/linked

Cheers
Fra


2014-04-08 13:58 GMT+02:00 Doug Blank <doug.blank at gmail.com>:

> On Tue, Apr 8, 2014 at 7:24 AM, Francesco Montesano
> <franz.bergesund at gmail.com> wrote:
> > Hi,
> >
> > I am checking the notebook documentation (looking for some info about the
> > widget system).
> >
> > I think that the documentation has not been updated with the v2.0
> version.
> > E.g. there is nothing about the modal interface, and therefore the
> > shortcuts:
> >
> http://ipython.org/ipython-doc/stable/notebook/notebook.html#keyboard-shortcuts
> > are likely wrong.
>
> They look updated to me (e.g. "Ctrl-m x: cut cell" ... cached browser page?
>
> -Doug
>
>
> > Cheers,
> > Fra
> >
> > _______________________________________________
> > 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/20140408/f3cb6905/attachment.html>

From jason-sage at creativetrax.com  Tue Apr  8 08:53:15 2014
From: jason-sage at creativetrax.com (Jason Grout)
Date: Tue, 08 Apr 2014 07:53:15 -0500
Subject: [IPython-dev] Link widget
In-Reply-To: <CAK=Phk5b5xhwWukZY4XjnzOTw36y92UXtOeHTrLdnX85dQx=AA@mail.gmail.com>
References: <53211C1C.3080209@creativetrax.com>	<CAK=Phk7P_b015hPT5FZx0pte0ZKgRH3e67Kx5a8ndJbq2CQm9Q@mail.gmail.com>	<532132AE.8090500@creativetrax.com>	<CAH4pYpQnSayvAGQXd8+yJDi8z6QtWrkKLScM=b4yuiMC63cA-A@mail.gmail.com>	<5321E46B.1080803@creativetrax.com>	<CAK=Phk65_zMg7iGMyOETnC5s231iCcsKKJgeqpFDHnG1TR1srg@mail.gmail.com>	<5321F660.8080000@creativetrax.com>
	<CAK=Phk5b5xhwWukZY4XjnzOTw36y92UXtOeHTrLdnX85dQx=AA@mail.gmail.com>
Message-ID: <5343F13B.3040003@creativetrax.com>

On 4/7/14, 16:06, Sylvain Corlay wrote:
> I personally would prefer to exactly reproduce the signature of
> IPython.utils.traitlets.link (using tuples rather than lists etc) even
> if it is merely a wrapper around a the creation of the Link object.

Yes, that makes a lot of sense.

Jason



From rgbkrk at gmail.com  Tue Apr  8 10:32:11 2014
From: rgbkrk at gmail.com (Kyle Kelley)
Date: Tue, 8 Apr 2014 09:32:11 -0500
Subject: [IPython-dev] IPython Notebook 2.0 and websockets
In-Reply-To: <CAETqNqFPxZmFn2GLidXWxV4kQ1b+c+DTML6RHdyopZcq7W5jnQ@mail.gmail.com>
References: <CAETqNqFPxZmFn2GLidXWxV4kQ1b+c+DTML6RHdyopZcq7W5jnQ@mail.gmail.com>
Message-ID: <CA+tbMaWqpb4S5JAemNfjG4k4aSm6zEwkmbEWi-1DytxWJ=2+HQ@mail.gmail.com>

Hey Clare,

IPython 2.0 still uses websockets.

-- Kyle


On Tue, Apr 8, 2014 at 2:59 AM, Clare Sloggett <claresloggett at gmail.com>wrote:

> Hi all,
>
> Reading through the IPython Notebook 2.0 "what's new", I saw that there
> are changes in the way notebooks are addressed. Can anyone tell me if this
> means that 2.0 no longer uses websockets?
>
> I and a couple of people I know had issues occasionally because we
> unfortunately had to go through a proxy that would not correctly handle
> websockets. If this isn't a requirement anymore that would be good to know.
>
> In any case, thanks for the hard work on 2.0, the new feature list is just
> incredible!
>
> Clare
>
> _______________________________________________
> 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/20140408/078d6c5c/attachment.html>

From jason-sage at creativetrax.com  Tue Apr  8 10:35:55 2014
From: jason-sage at creativetrax.com (Jason Grout)
Date: Tue, 08 Apr 2014 09:35:55 -0500
Subject: [IPython-dev] IPython Notebook 2.0 and websockets
In-Reply-To: <CAETqNqFPxZmFn2GLidXWxV4kQ1b+c+DTML6RHdyopZcq7W5jnQ@mail.gmail.com>
References: <CAETqNqFPxZmFn2GLidXWxV4kQ1b+c+DTML6RHdyopZcq7W5jnQ@mail.gmail.com>
Message-ID: <5344094B.3050901@creativetrax.com>

On 4/8/14, 2:59, Clare Sloggett wrote:
> Hi all,
>
> Reading through the IPython Notebook 2.0 "what's new", I saw that there
> are changes in the way notebooks are addressed. Can anyone tell me if
> this means that 2.0 no longer uses websockets?

it still uses websockets.


>
> I and a couple of people I know had issues occasionally because we
> unfortunately had to go through a proxy that would not correctly handle
> websockets. If this isn't a requirement anymore that would be good to know.

If you can use https (for example, you could use stunnel or haproxy to 
terminate the ssl connection and pass off the unencrypted stream to the 
ipython notebook), that will avoid proxy problems with websockets.

-Jason



From jonathan.taylor at stanford.edu  Tue Apr  8 12:23:16 2014
From: jonathan.taylor at stanford.edu (Jonathan Taylor)
Date: Tue, 8 Apr 2014 09:23:16 -0700
Subject: [IPython-dev] latex error?
Message-ID: <CANmCCuR_D2aYg-AbmoaatNsR-+aLA414mhe3R3sbkov3YiRRWQ@mail.gmail.com>

I am having trouble building the latex for some notebooks, and am at a loss
as to what the problem is. The MathJax looks fine, as does the html.

Here is a small notebook -- I get something about \ttfamily in math mode
from the last display, but it looks like pretty innocuous latex to me.

Can anyone reproduce this (and help me understand perhaps)?


-- 
Jonathan Taylor
Dept. of Statistics
Sequoia Hall, 137
390 Serra Mall
Stanford, CA 94305
Tel:   650.723.9230
Fax:   650.725.8977
Web: http://www-stat.stanford.edu/~jtaylo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140408/715ee659/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.ipynb
Type: application/octet-stream
Size: 1124 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140408/715ee659/attachment.obj>

From zvoros at gmail.com  Tue Apr  8 13:00:57 2014
From: zvoros at gmail.com (=?ISO-8859-1?Q?Zolt=E1n_V=F6r=F6s?=)
Date: Tue, 08 Apr 2014 19:00:57 +0200
Subject: [IPython-dev] latex error?
In-Reply-To: <CANmCCuR_D2aYg-AbmoaatNsR-+aLA414mhe3R3sbkov3YiRRWQ@mail.gmail.com>
References: <CANmCCuR_D2aYg-AbmoaatNsR-+aLA414mhe3R3sbkov3YiRRWQ@mail.gmail.com>
Message-ID: <53442B49.7040004@gmail.com>

Hi Jonathan,

I have had problems with | before. You can replace that by \vert, and it 
should be all right.

I hope this helps,

Zolt?n

On 08/04/14 18:23, Jonathan Taylor wrote:
> I am having trouble building the latex for some notebooks, and am at a 
> loss
> as to what the problem is. The MathJax looks fine, as does the html.
>
> Here is a small notebook -- I get something about \ttfamily in math 
> mode from the last display, but it looks like pretty innocuous latex 
> to me.
>
> Can anyone reproduce this (and help me understand perhaps)?
>
>
> -- 
> Jonathan Taylor
> Dept. of Statistics
> Sequoia Hall, 137
> 390 Serra Mall
> Stanford, CA 94305
> Tel:   650.723.9230
> Fax:   650.725.8977
> Web: http://www-stat.stanford.edu/~jtaylo 
> <http://www-stat.stanford.edu/%7Ejtaylo>
>
>
> _______________________________________________
> 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/20140408/7676d77c/attachment.html>

From ellisonbg at gmail.com  Tue Apr  8 13:42:58 2014
From: ellisonbg at gmail.com (Brian Granger)
Date: Tue, 8 Apr 2014 10:42:58 -0700
Subject: [IPython-dev] Seeing javascript visualization from nbviewer?
In-Reply-To: <CAAusYCgEZibQ=Gum9wLZ=QaULNgKxQ0jopJiDZ+3h857onumvg@mail.gmail.com>
References: <CAAusYChjktPnvqyLPrOejbg5xSFuS0ezfMgBD7TuvxVBnx3Qgw@mail.gmail.com>
	<CAAusYCiSxUYbGJXs=Ag8R3qYvyvUMAPvhJt=UNnWhsL4YzrVgw@mail.gmail.com>
	<CAH4pYpRrgiVwnDw0TOuPFMutKQp7RJnE9FMFL3bpJNO=aNkvkQ@mail.gmail.com>
	<CAH4pYpQADt4XtTqMc=FFDC57Yo97FjWZvOksGVycGzHGO9drRg@mail.gmail.com>
	<CAAusYCgEZibQ=Gum9wLZ=QaULNgKxQ0jopJiDZ+3h857onumvg@mail.gmail.com>
Message-ID: <CAH4pYpTUDP9NyvR0mT+iiE1eF1wnP4yjVqp1VO5h0bpB1o=1NA@mail.gmail.com>

I can't tell from your notebook if this is the case, but the one thing
that doesn't (and won't ever) work on nbviewer is the "element"
variable that is injected into the namespace of the JS code run in the
live kernel. If you are using that to append things to the page, it
won't work. Instead, but throw a div on the page using an HTML output
with a particular id and then append directly to that div.

On Tue, Apr 8, 2014 at 3:41 AM, Doug Blank <doug.blank at gmail.com> wrote:
> On Fri, Mar 14, 2014 at 11:33 AM, Brian Granger <ellisonbg at gmail.com> wrote:
>> I should note that nbviewer 2.0 is not yet deployed - should be in the
>> next few days. These things don't currently work on the nbviewer that
>> is deployed today.
>
> Is nbviewer 2.0 deployed now? Should I expect to see Javascript output
> in nbviewer?
>
> This notebook has javascript output as you can see:
>
> https://bitbucket.org/ipre/calico/raw/master/notebooks/Python/Travelling%20Salesperson.ipynb
>
> But isn't rendered:
>
> http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/Python/Travelling%20Salesperson.ipynb
>
> -Doug
>
>> On Fri, Mar 14, 2014 at 8:32 AM, Brian Granger <ellisonbg at gmail.com> wrote:
>>> If the library is aware of require.js, you should use that. But the
>>> calling syntax for require is similar to `getScript` is similar - the
>>> second argument is a function that gets called when the libraries are
>>> loaded. These days, many JavaScript libraries have to be loaded with
>>> require.js in the notebook. With IPython 2.0, all different ways
>>> should work fine on nbviewer/nbconvert though.
>>>
>>> On Fri, Mar 14, 2014 at 5:45 AM, Doug Blank <doug.blank at gmail.com> wrote:
>>>> I think the problem was with my implementation of Javascript(..,
>>>> lib=...). I see that the lib is used like this in the Python kernel:
>>>>
>>>> $.getScript("https://www.google.com/jsapi", function () {
>>>>    [code]
>>>> }
>>>>
>>>> whereas I had:
>>>>
>>>> require["https://www.google.com/jsapi"];
>>>> [code];
>>>>
>>>> Which did work, but only when running the cells.
>>>>
>>>> Is putting Javascript(lib="") the best method for including external
>>>> Javascript libraries that are used often/many times? Or is there
>>>> something I should add to custom.js that would load it at the right
>>>> time?
>>>>
>>>> -Doug
>>>>
>>>> On Fri, Mar 14, 2014 at 2:01 AM, Doug Blank <doug.blank at gmail.com> wrote:
>>>>> I am working on migrating a Google visualization example [1] by
>>>>> victor_zverovich to a simpler version shown here:
>>>>>
>>>>> http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/GeoChart.ipynb
>>>>>
>>>>> (users using the regular IPython Python kernel can just change
>>>>> calico.Javascript to Javascript and import it from IPython.display)
>>>>>
>>>>> What do I need to do be able to have the GeoChart render in nbviewer?
>>>>> Is that possible? Currently I get the same error I get before I
>>>>> execute the cells when I first open the notebook:
>>>>>
>>>>> """
>>>>> Javascript error adding output!
>>>>> ReferenceError: google is not defined
>>>>> """
>>>>>
>>>>> Any insight appreciated!
>>>>>
>>>>> -Doug
>>>>>
>>>>>
>>>>> [1] - http://zverovich.net/2013/06/27/visualizing-geographical-ampl-data-using-ipython-and-google-charts.html
>>>> _______________________________________________
>>>> 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
>> _______________________________________________
>> 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 doug.blank at gmail.com  Tue Apr  8 13:56:37 2014
From: doug.blank at gmail.com (Doug Blank)
Date: Tue, 8 Apr 2014 13:56:37 -0400
Subject: [IPython-dev] Seeing javascript visualization from nbviewer?
In-Reply-To: <CAH4pYpTUDP9NyvR0mT+iiE1eF1wnP4yjVqp1VO5h0bpB1o=1NA@mail.gmail.com>
References: <CAAusYChjktPnvqyLPrOejbg5xSFuS0ezfMgBD7TuvxVBnx3Qgw@mail.gmail.com>
	<CAAusYCiSxUYbGJXs=Ag8R3qYvyvUMAPvhJt=UNnWhsL4YzrVgw@mail.gmail.com>
	<CAH4pYpRrgiVwnDw0TOuPFMutKQp7RJnE9FMFL3bpJNO=aNkvkQ@mail.gmail.com>
	<CAH4pYpQADt4XtTqMc=FFDC57Yo97FjWZvOksGVycGzHGO9drRg@mail.gmail.com>
	<CAAusYCgEZibQ=Gum9wLZ=QaULNgKxQ0jopJiDZ+3h857onumvg@mail.gmail.com>
	<CAH4pYpTUDP9NyvR0mT+iiE1eF1wnP4yjVqp1VO5h0bpB1o=1NA@mail.gmail.com>
Message-ID: <CAAusYCj3vTJ0E+tdjLO=VXBbZZZnUcWu7FN9D9ArbQm_szmLjQ@mail.gmail.com>

On Tue, Apr 8, 2014 at 1:42 PM, Brian Granger <ellisonbg at gmail.com> wrote:
> I can't tell from your notebook if this is the case, but the one thing
> that doesn't (and won't ever) work on nbviewer is the "element"
> variable that is injected into the namespace of the JS code run in the
> live kernel. If you are using that to append things to the page, it
> won't work. Instead, but throw a div on the page using an HTML output
> with a particular id and then append directly to that div.

Ok, thanks; that is probably the issue.

-Doug

> On Tue, Apr 8, 2014 at 3:41 AM, Doug Blank <doug.blank at gmail.com> wrote:
>> On Fri, Mar 14, 2014 at 11:33 AM, Brian Granger <ellisonbg at gmail.com> wrote:
>>> I should note that nbviewer 2.0 is not yet deployed - should be in the
>>> next few days. These things don't currently work on the nbviewer that
>>> is deployed today.
>>
>> Is nbviewer 2.0 deployed now? Should I expect to see Javascript output
>> in nbviewer?
>>
>> This notebook has javascript output as you can see:
>>
>> https://bitbucket.org/ipre/calico/raw/master/notebooks/Python/Travelling%20Salesperson.ipynb
>>
>> But isn't rendered:
>>
>> http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/Python/Travelling%20Salesperson.ipynb
>>
>> -Doug
>>
>>> On Fri, Mar 14, 2014 at 8:32 AM, Brian Granger <ellisonbg at gmail.com> wrote:
>>>> If the library is aware of require.js, you should use that. But the
>>>> calling syntax for require is similar to `getScript` is similar - the
>>>> second argument is a function that gets called when the libraries are
>>>> loaded. These days, many JavaScript libraries have to be loaded with
>>>> require.js in the notebook. With IPython 2.0, all different ways
>>>> should work fine on nbviewer/nbconvert though.
>>>>
>>>> On Fri, Mar 14, 2014 at 5:45 AM, Doug Blank <doug.blank at gmail.com> wrote:
>>>>> I think the problem was with my implementation of Javascript(..,
>>>>> lib=...). I see that the lib is used like this in the Python kernel:
>>>>>
>>>>> $.getScript("https://www.google.com/jsapi", function () {
>>>>>    [code]
>>>>> }
>>>>>
>>>>> whereas I had:
>>>>>
>>>>> require["https://www.google.com/jsapi"];
>>>>> [code];
>>>>>
>>>>> Which did work, but only when running the cells.
>>>>>
>>>>> Is putting Javascript(lib="") the best method for including external
>>>>> Javascript libraries that are used often/many times? Or is there
>>>>> something I should add to custom.js that would load it at the right
>>>>> time?
>>>>>
>>>>> -Doug
>>>>>
>>>>> On Fri, Mar 14, 2014 at 2:01 AM, Doug Blank <doug.blank at gmail.com> wrote:
>>>>>> I am working on migrating a Google visualization example [1] by
>>>>>> victor_zverovich to a simpler version shown here:
>>>>>>
>>>>>> http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/GeoChart.ipynb
>>>>>>
>>>>>> (users using the regular IPython Python kernel can just change
>>>>>> calico.Javascript to Javascript and import it from IPython.display)
>>>>>>
>>>>>> What do I need to do be able to have the GeoChart render in nbviewer?
>>>>>> Is that possible? Currently I get the same error I get before I
>>>>>> execute the cells when I first open the notebook:
>>>>>>
>>>>>> """
>>>>>> Javascript error adding output!
>>>>>> ReferenceError: google is not defined
>>>>>> """
>>>>>>
>>>>>> Any insight appreciated!
>>>>>>
>>>>>> -Doug
>>>>>>
>>>>>>
>>>>>> [1] - http://zverovich.net/2013/06/27/visualizing-geographical-ampl-data-using-ipython-and-google-charts.html
>>>>> _______________________________________________
>>>>> 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
>>> _______________________________________________
>>> 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


From ellisonbg at gmail.com  Tue Apr  8 19:49:49 2014
From: ellisonbg at gmail.com (Brian Granger)
Date: Tue, 8 Apr 2014 16:49:49 -0700
Subject: [IPython-dev] Introducing IPython Turtle
In-Reply-To: <CAFGNs_AxuTC2eY6t=J6GBx761GFmN=20Lj+qpFyxp34pjfwkdw@mail.gmail.com>
References: <CAFGNs_AxuTC2eY6t=J6GBx761GFmN=20Lj+qpFyxp34pjfwkdw@mail.gmail.com>
Message-ID: <CAH4pYpT2ghBEKqiK686GPUErmm9_KLyvBGYgBBb4yKgeBDFOQw@mail.gmail.com>

Awesome! I have been waiting for someone to do this for a long time.
Some comments:

* Usually Python packages and modules are named with lowercase, so it
would usually be "newturtle" rather than "NewTurtle"
* Can you say more about why the entire IPython project is inside your
repo? I would think that the turtle module could just be a completely
separate github repo and package that someone could say:

pip install newturtle

Can you talk more about that?

* How are you doing the display in the notebook? Does this use IPython widgets?

Cheers,

Brian

On Mon, Apr 7, 2014 at 2:44 PM, Claudine Bull <bullclaudine at gmail.com> wrote:
> Hello,
>
> We are PACAttack, senior students at MacEwan University in Edmonton, AB.
> Cameron Macdonell and Greg Wilson are mentoring us this term on our Software
> Engineering project. The team members are Andrew Kind, Claudine Gladue, and
> Paul Schmermund.
>
> Our goal was to create a IPython Notebook application to mimic the built-in
> Python Turtle module. We attempted to include as many Turtle features as
> time permitted.
>
> We invite you to view and give our project a try:
> https://github.com/macewanCMPT395/PACattack
>
> The button with '"i" will give you more information on how to run the
> IPython Turtle. We look forward to any comments or suggestions you have.
>
> -PACattack
>
>
>
> _______________________________________________
> 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 claresloggett at gmail.com  Tue Apr  8 23:35:14 2014
From: claresloggett at gmail.com (Clare Sloggett)
Date: Wed, 9 Apr 2014 13:35:14 +1000
Subject: [IPython-dev] IPython Notebook 2.0 and websockets
In-Reply-To: <5344094B.3050901@creativetrax.com>
References: <CAETqNqFPxZmFn2GLidXWxV4kQ1b+c+DTML6RHdyopZcq7W5jnQ@mail.gmail.com>
	<5344094B.3050901@creativetrax.com>
Message-ID: <CAETqNqHBansy2+NFx3eBY19QoxcEHegzHqR-XKNY-pHW9u2oQw@mail.gmail.com>

Thanks Kyle, Jason!



On 9 April 2014 00:35, Jason Grout <jason-sage at creativetrax.com> wrote:

> On 4/8/14, 2:59, Clare Sloggett wrote:
> > Hi all,
> >
> > Reading through the IPython Notebook 2.0 "what's new", I saw that there
> > are changes in the way notebooks are addressed. Can anyone tell me if
> > this means that 2.0 no longer uses websockets?
>
> it still uses websockets.
>
>
> >
> > I and a couple of people I know had issues occasionally because we
> > unfortunately had to go through a proxy that would not correctly handle
> > websockets. If this isn't a requirement anymore that would be good to
> know.
>
> If you can use https (for example, you could use stunnel or haproxy to
> terminate the ssl connection and pass off the unencrypted stream to the
> ipython notebook), that will avoid proxy problems with websockets.
>
> -Jason
>
> _______________________________________________
> 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/20140409/7461ba34/attachment.html>

From zvoros at gmail.com  Wed Apr  9 05:53:10 2014
From: zvoros at gmail.com (=?ISO-8859-1?Q?Zolt=E1n_V=F6r=F6s?=)
Date: Wed, 09 Apr 2014 11:53:10 +0200
Subject: [IPython-dev] running all cells uninterrupted
Message-ID: <53451886.5090904@gmail.com>

Hi all,

I would like to raise a question about running multiple notebook cells. 
At the moment, there is an option for "running all below", which seems 
to collect all input cells, submit it to the server, and then wait for 
the results. However, if there is an unattended to error in one of the 
cells, then this
sequence immediately breaks, and the remaining cells don't execute.

I would like to suggest that there be an option for running all cells 
truly sequentially, meaning that the notebook should submit cell [N] 
only when the server returned from cell [N-1].

I would see at least three advantages. One is that the above-mentioned 
issue could be avoided (of course, this particular case could be solved 
by wrapping each cell in a try/catch loop on the client side). The other 
is that this would allow one to sequentially programme the content of 
the input cells. What I meant is something like this (pseudo-code)

In [1]:  i = 0
             ip = get_ipython()
             def set_input(i):
                 if i < 10:
ip.set_next_input('i += 1\nset_input(i)')

In [2]:     i += 1
                set_input(i)

and when the user hits "run all below" on In [2], i would be incremented 
9 times, and placed in successive input cells, each executed in turn.
Finally, if cells were collected and executed one-by-one, it would be 
possible to "supervise" the running of a longer calculation without 
having to interrupt the server: parameters could be tweaked or enquired 
about by simply inserting a cell in the notebook. Being able to get 
intermediate results on demand I would find quite useful.

I should also point out that this issue is related to a question that 
was posted here a couple of weeks ago 
http://mail.scipy.org/pipermail/ipython-dev/2014-March/013601.html

I don't know what kind of architectural problems might arise from this 
scheme, but I really don't see any stumbling blocks. I don't advocate 
modifying anything in the core, and I believe, this could be done with 
minimal effort (I would be more than happy to contribute, if the scheme 
is viable) on the client side. Perhaps, some of the developers could 
comment.

Cheers,
Zolt?n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140409/3e51c46c/attachment.html>

From jabooth at gmail.com  Wed Apr  9 08:20:22 2014
From: jabooth at gmail.com (James Booth)
Date: Wed, 9 Apr 2014 13:20:22 +0100
Subject: [IPython-dev] Documentation on Notebook keyboad shortcuts out of
	date
Message-ID: <CAE3fZXVs2D5WACaxzP46aoxUFrYizak1vKuag+Jvsmy5H1v5NA@mail.gmail.com>

Hey guys,

Just updated a friend to IPython 2.0 and sent them to the docs to
understand the new modal keyboard shortcuts, but they are not yet updated:

*http://ipython.org/ipython-doc/dev/notebook/notebook.html#keyboard-shortcuts
<http://ipython.org/ipython-doc/dev/notebook/notebook.html#keyboard-shortcuts>*

Is it possible to submit edits to the website documentation?

Best
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140409/26638ab5/attachment.html>

From bussonniermatthias at gmail.com  Wed Apr  9 09:42:49 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Wed, 9 Apr 2014 09:42:49 -0400
Subject: [IPython-dev] Documentation on Notebook keyboad shortcuts out
	of date
In-Reply-To: <CAE3fZXVs2D5WACaxzP46aoxUFrYizak1vKuag+Jvsmy5H1v5NA@mail.gmail.com>
References: <CAE3fZXVs2D5WACaxzP46aoxUFrYizak1vKuag+Jvsmy5H1v5NA@mail.gmail.com>
Message-ID: <DE450A9F-5DBB-4A54-9AB9-E5056B266C79@gmail.com>

Hi James, 

Le 9 avr. 2014 ? 08:20, James Booth a ?crit :

> Hey guys,
> 
> Just updated a friend to IPython 2.0 and sent them to the docs to understand the new modal keyboard shortcuts, but they are not yet updated:
> 
> http://ipython.org/ipython-doc/dev/notebook/notebook.html#keyboard-shortcuts
> 
> Is it possible to submit edits to the website documentation?


Yes, this part of the doc is generated directly from IPython source, in particular 

[IPython source folder] /docs/source/interactive/

Though, it seem that the web site as just not been rebuilded as this does not seem to exist in current source. 

Thanks.
-- 
Matthias

> 
> Best
> James
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From pelson.pub at gmail.com  Wed Apr  9 11:38:50 2014
From: pelson.pub at gmail.com (Phil Elson)
Date: Wed, 9 Apr 2014 16:38:50 +0100
Subject: [IPython-dev] Slideshow mode for IPython 2.0
Message-ID: <CA+L60sCFRiEh-_h_fJq7Y1Jjo-x_1MO_STOn_OYtiK07kE2Mtw@mail.gmail.com>

Just wondering if anybody has taken the slideshow mode and made it work
with IPython notebook 2.0.0 yet? I did try the notebook at
http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynbbut
I suspect the internals have changed sufficiently between v1.x and
v2.x
to prevent it working with the latest version.

Looks like the repo hasn't been updated in a while, so wondered if anybody
was working on this?

Cheers,

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140409/49c19724/attachment.html>

From scott.s.burns at vanderbilt.edu  Wed Apr  9 12:54:05 2014
From: scott.s.burns at vanderbilt.edu (Scott Burns)
Date: Wed, 9 Apr 2014 11:54:05 -0500
Subject: [IPython-dev] Upgrade OpenSSL & Restart notebook servers
Message-ID: <6CB63322-136B-4633-91EF-98C435D5715D@vanderbilt.edu>

Just a friendly reminder to people running publicly-accessible notebook 
servers...if you serve it over HTTPS (which you should be doing) your 
machine is most likely vulnerable to the 
[Heartbleed](http://heartbleed.com) attack.

* Shutdown the server ASAP
* Upgrade OpenSSL (patches are out for major linux distros and on OSX 
`brew update && brew upgrade openssl`)
* Regenerate your SSL/TLS certificate
* Restart the server.

--Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140409/9d81ea02/attachment.html>

From alessandro.gagliardi at glassdoor.com  Wed Apr  9 13:16:35 2014
From: alessandro.gagliardi at glassdoor.com (Alessandro Gagliardi)
Date: Wed, 9 Apr 2014 17:16:35 +0000
Subject: [IPython-dev] Slideshow mode for IPython 2.0
In-Reply-To: <mailman.1.1397062801.17860.ipython-dev@scipy.org>
Message-ID: <CF6ACC94.9371%alessandro.gagliardi@glassdoor.com>

I used IPython-2.0.0-dev extensively in making slides these past few months. (I used 2.0 because I had better luck with getting speaker notes to render, though it is still inconsistent and I don?t know why.)

I think the notebook you linked to is no longer relevant though. These days, to make my slides, I just run
ipython nbconvert my_notebook.ipynb --to slides
from the command line and it works great.
reveal.js does need to be in that directory.

I definitely have a wish list of things I?d like to see developed with the slide conversion (for example, I?ve found styling the slides to be impossibly difficult.) I think it?s also confusing because this is such a new feature and has changed so many times since it was first introduced that it?s easy to find things like the link below that are no longer needed (and probably don?t work anymore). I suppose that?s the price of working on the bleeding edge.

-Alessandro

Date: Wed, 9 Apr 2014 16:38:50 +0100
From: Phil Elson <pelson.pub at gmail.com<mailto:pelson.pub at gmail.com>>
Subject: [IPython-dev] Slideshow mode for IPython 2.0

Just wondering if anybody has taken the slideshow mode and made it work
with IPython notebook 2.0.0 yet? I did try the notebook at
http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynbbut
I suspect the internals have changed sufficiently between v1.x and
v2.x
to prevent it working with the latest version.

Looks like the repo hasn't been updated in a while, so wondered if anybody
was working on this?

Cheers,

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140409/60508fea/attachment.html>

From damianavila at gmail.com  Wed Apr  9 13:52:54 2014
From: damianavila at gmail.com (=?ISO-8859-1?Q?Dami=E1n_Avila?=)
Date: Wed, 9 Apr 2014 14:52:54 -0300
Subject: [IPython-dev] Slideshow mode for IPython 2.0
In-Reply-To: <CF6ACC94.9371%alessandro.gagliardi@glassdoor.com>
References: <mailman.1.1397062801.17860.ipython-dev@scipy.org>
	<CF6ACC94.9371%alessandro.gagliardi@glassdoor.com>
Message-ID: <CAH+mRR2N95aiz2hXRVR+DN8CJofQBZ0NFCWJhWaUkqzHJuZCOQ@mail.gmail.com>

People, you are mistaken two things... three in fact...

1) IPython slides, generated from IPython.nbconvert using reveal.js, static
presentations. About the customization, you can check some of my blog post
about it: http://www.damian.oquanta.info/categories/slideshow.html. There
are a lot of things to improve, and it will be discussed soon here and in
proper issues.

2) Slideshow mode: This is a js hack from Mathias, which let you see the
IPython notebook as a slideshow, but it is live, I mean you can run code in
the slideshow itself... and the installation step are described here
(possibly outdated, and I don't know if it is IPython 2.0 compatible, I did
not check it yet):
http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynb

3) Live_Reveal IPython extension, which gives you an slideshow powered by
reveal.js, but not static as IPython slides, instead they are lives, I mean
you can execute code as with the slidemode. This is still in development
and working in IPython 1.x... I am not making the adjustment to use it in
IPython 2.0: https://github.com/damianavila/live_reveal

Hope it is more clear right now...



2014-04-09 14:16 GMT-03:00 Alessandro Gagliardi <
alessandro.gagliardi at glassdoor.com>:

>  I used IPython-2.0.0-dev extensively in making slides these past few
> months. (I used 2.0 because I had better luck with getting speaker notes to
> render, though it is still inconsistent and I don't know why.)
>
>  I think the notebook you linked to is no longer relevant though. These
> days, to make my slides, I just run
> ipython nbconvert my_notebook.ipynb --to slides
> from the command line and it works great.
> reveal.js does need to be in that directory.
>
>  I definitely have a wish list of things I'd like to see developed with
> the slide conversion (for example, I've found styling the slides to be
> impossibly difficult.) I think it's also confusing because this is such a
> new feature and has changed so many times since it was first introduced
> that it's easy to find things like the link below that are no longer needed
> (and probably don't work anymore). I suppose that's the price of working on
> the bleeding edge.
>
>  -Alessandro
>
>   Date: Wed, 9 Apr 2014 16:38:50 +0100
>  From: Phil Elson <pelson.pub at gmail.com>
> Subject: [IPython-dev] Slideshow mode for IPython 2.0
>
>  Just wondering if anybody has taken the slideshow mode and made it work
> with IPython notebook 2.0.0 yet? I did try the notebook at
>
> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynbbut
> I suspect the internals have changed sufficiently between v1.x and
> v2.x
> to prevent it working with the latest version.
>
>  Looks like the repo hasn't been updated in a while, so wondered if
> anybody
> was working on this?
>
>  Cheers,
>
>  Phil
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>


-- 
Dami?n Avila
Scientific Python Developer
Quantitative Finance Analyst
Statistics, Biostatistics and Econometrics Consultant
Biochemist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140409/3e387d3d/attachment.html>

From takowl at gmail.com  Wed Apr  9 13:55:28 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Wed, 9 Apr 2014 10:55:28 -0700
Subject: [IPython-dev] Documentation on Notebook keyboad shortcuts out
	of date
In-Reply-To: <DE450A9F-5DBB-4A54-9AB9-E5056B266C79@gmail.com>
References: <CAE3fZXVs2D5WACaxzP46aoxUFrYizak1vKuag+Jvsmy5H1v5NA@mail.gmail.com>
	<DE450A9F-5DBB-4A54-9AB9-E5056B266C79@gmail.com>
Message-ID: <CAOvn4qiohw-xnb35QzLoVFqTcUiV2zkgBAVwsT+XRXrT6rVh=w@mail.gmail.com>

On 9 April 2014 06:42, Matthias BUSSONNIER <bussonniermatthias at gmail.com>wrote:

> [IPython source folder] /docs/source/interactive/
>
> Though, it seem that the web site as just not been rebuilded as this does
> not seem to exist in current source.


The notebook docs are now in docs/source/notebook/. And the shortcuts are
out of date. Thank-you everyone who pointed it out; I've made an issue so
it doesn't get forgotten:
https://github.com/ipython/ipython/issues/5569

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

From nathan12343 at gmail.com  Wed Apr  9 14:20:47 2014
From: nathan12343 at gmail.com (Nathan Goldbaum)
Date: Wed, 9 Apr 2014 11:20:47 -0700
Subject: [IPython-dev] Slideshow mode for IPython 2.0
In-Reply-To: <CAH+mRR2N95aiz2hXRVR+DN8CJofQBZ0NFCWJhWaUkqzHJuZCOQ@mail.gmail.com>
References: <mailman.1.1397062801.17860.ipython-dev@scipy.org>
	<CF6ACC94.9371%alessandro.gagliardi@glassdoor.com>
	<CAH+mRR2N95aiz2hXRVR+DN8CJofQBZ0NFCWJhWaUkqzHJuZCOQ@mail.gmail.com>
Message-ID: <CAJXewOk-vo4P6htFB3_+yfE2ZEEB3BURxB_ju3v8+X3zzdDtng@mail.gmail.com>

On Wed, Apr 9, 2014 at 10:52 AM, Dami?n Avila <damianavila at gmail.com> wrote:

> People, you are mistaken two things... three in fact...
>
> 1) IPython slides, generated from IPython.nbconvert using reveal.js,
> static presentations. About the customization, you can check some of my
> blog post about it:
> http://www.damian.oquanta.info/categories/slideshow.html. There are a lot
> of things to improve, and it will be discussed soon here and in proper
> issues.
>
> 2) Slideshow mode: This is a js hack from Mathias, which let you see the
> IPython notebook as a slideshow, but it is live, I mean you can run code in
> the slideshow itself... and the installation step are described here
> (possibly outdated, and I don't know if it is IPython 2.0 compatible, I did
> not check it yet):
> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynb
>
> 3) Live_Reveal IPython extension, which gives you an slideshow powered by
> reveal.js, but not static as IPython slides, instead they are lives, I mean
> you can execute code as with the slidemode. This is still in development
> and working in IPython 1.x... I am not making the adjustment to use it in
> IPython 2.0: https://github.com/damianavila/live_reveal
>
>
Are there plans to incorporate a live slideshow mode into IPython proper or
is that beyond the scope of the project?

I've used static reveal.js presentations in the past but it's really cool
to do a live calculation when you want to demonstrate that a piece of code
really is as fast as you're saying it is.


> Hope it is more clear right now...
>
>
>
> 2014-04-09 14:16 GMT-03:00 Alessandro Gagliardi <
> alessandro.gagliardi at glassdoor.com>:
>
>>  I used IPython-2.0.0-dev extensively in making slides these past few
>> months. (I used 2.0 because I had better luck with getting speaker notes to
>> render, though it is still inconsistent and I don't know why.)
>>
>>  I think the notebook you linked to is no longer relevant though. These
>> days, to make my slides, I just run
>> ipython nbconvert my_notebook.ipynb --to slides
>> from the command line and it works great.
>> reveal.js does need to be in that directory.
>>
>>  I definitely have a wish list of things I'd like to see developed with
>> the slide conversion (for example, I've found styling the slides to be
>> impossibly difficult.) I think it's also confusing because this is such a
>> new feature and has changed so many times since it was first introduced
>> that it's easy to find things like the link below that are no longer needed
>> (and probably don't work anymore). I suppose that's the price of working on
>> the bleeding edge.
>>
>>  -Alessandro
>>
>>   Date: Wed, 9 Apr 2014 16:38:50 +0100
>>  From: Phil Elson <pelson.pub at gmail.com>
>> Subject: [IPython-dev] Slideshow mode for IPython 2.0
>>
>>  Just wondering if anybody has taken the slideshow mode and made it work
>> with IPython notebook 2.0.0 yet? I did try the notebook at
>>
>> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynbbut
>> I suspect the internals have changed sufficiently between v1.x and
>> v2.x
>> to prevent it working with the latest version.
>>
>>  Looks like the repo hasn't been updated in a while, so wondered if
>> anybody
>> was working on this?
>>
>>  Cheers,
>>
>>  Phil
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
>
>
> --
> Dami?n Avila
> Scientific Python Developer
> Quantitative Finance Analyst
> Statistics, Biostatistics and Econometrics Consultant
> Biochemist
>
> _______________________________________________
> 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/20140409/1054db81/attachment.html>

From benjaminrk at gmail.com  Wed Apr  9 14:37:52 2014
From: benjaminrk at gmail.com (MinRK)
Date: Wed, 9 Apr 2014 11:37:52 -0700
Subject: [IPython-dev] Slideshow mode for IPython 2.0
In-Reply-To: <CAJXewOk-vo4P6htFB3_+yfE2ZEEB3BURxB_ju3v8+X3zzdDtng@mail.gmail.com>
References: <mailman.1.1397062801.17860.ipython-dev@scipy.org>
	<CF6ACC94.9371%alessandro.gagliardi@glassdoor.com>
	<CAH+mRR2N95aiz2hXRVR+DN8CJofQBZ0NFCWJhWaUkqzHJuZCOQ@mail.gmail.com>
	<CAJXewOk-vo4P6htFB3_+yfE2ZEEB3BURxB_ju3v8+X3zzdDtng@mail.gmail.com>
Message-ID: <CAHNn8BWnQgb+M3GeTp2-HWP5bTF6YN+btNhxNM1PZKb5++XXjg@mail.gmail.com>

On Wed, Apr 9, 2014 at 11:20 AM, Nathan Goldbaum <nathan12343 at gmail.com>wrote:

>
>
>
> On Wed, Apr 9, 2014 at 10:52 AM, Dami?n Avila <damianavila at gmail.com>wrote:
>
>> People, you are mistaken two things... three in fact...
>>
>> 1) IPython slides, generated from IPython.nbconvert using reveal.js,
>> static presentations. About the customization, you can check some of my
>> blog post about it:
>> http://www.damian.oquanta.info/categories/slideshow.html. There are a
>> lot of things to improve, and it will be discussed soon here and in proper
>> issues.
>>
>> 2) Slideshow mode: This is a js hack from Mathias, which let you see the
>> IPython notebook as a slideshow, but it is live, I mean you can run code in
>> the slideshow itself... and the installation step are described here
>> (possibly outdated, and I don't know if it is IPython 2.0 compatible, I did
>> not check it yet):
>> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynb
>>
>> 3) Live_Reveal IPython extension, which gives you an slideshow powered by
>> reveal.js, but not static as IPython slides, instead they are lives, I mean
>> you can execute code as with the slidemode. This is still in development
>> and working in IPython 1.x... I am not making the adjustment to use it in
>> IPython 2.0: https://github.com/damianavila/live_reveal
>>
>>
> Are there plans to incorporate a live slideshow mode into IPython proper
> or is that beyond the scope of the project?
>

I think it's appropriate for an IPython *extension*, but probably not in
IPython itself.


>
> I've used static reveal.js presentations in the past but it's really cool
> to do a live calculation when you want to demonstrate that a piece of code
> really is as fast as you're saying it is.
>
>
>> Hope it is more clear right now...
>>
>>
>>
>> 2014-04-09 14:16 GMT-03:00 Alessandro Gagliardi <
>> alessandro.gagliardi at glassdoor.com>:
>>
>>>  I used IPython-2.0.0-dev extensively in making slides these past few
>>> months. (I used 2.0 because I had better luck with getting speaker notes to
>>> render, though it is still inconsistent and I don?t know why.)
>>>
>>>  I think the notebook you linked to is no longer relevant though. These
>>> days, to make my slides, I just run
>>> ipython nbconvert my_notebook.ipynb --to slides
>>> from the command line and it works great.
>>> reveal.js does need to be in that directory.
>>>
>>>  I definitely have a wish list of things I?d like to see developed with
>>> the slide conversion (for example, I?ve found styling the slides to be
>>> impossibly difficult.) I think it?s also confusing because this is such a
>>> new feature and has changed so many times since it was first introduced
>>> that it?s easy to find things like the link below that are no longer needed
>>> (and probably don?t work anymore). I suppose that?s the price of working on
>>> the bleeding edge.
>>>
>>>  -Alessandro
>>>
>>>   Date: Wed, 9 Apr 2014 16:38:50 +0100
>>>  From: Phil Elson <pelson.pub at gmail.com>
>>> Subject: [IPython-dev] Slideshow mode for IPython 2.0
>>>
>>>  Just wondering if anybody has taken the slideshow mode and made it work
>>> with IPython notebook 2.0.0 yet? I did try the notebook at
>>>
>>> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynbbut
>>> I suspect the internals have changed sufficiently between v1.x and
>>> v2.x
>>> to prevent it working with the latest version.
>>>
>>>  Looks like the repo hasn't been updated in a while, so wondered if
>>> anybody
>>> was working on this?
>>>
>>>  Cheers,
>>>
>>>  Phil
>>>
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>
>>>
>>
>>
>> --
>> Dami?n Avila
>> Scientific Python Developer
>> Quantitative Finance Analyst
>> Statistics, Biostatistics and Econometrics Consultant
>> Biochemist
>>
>> _______________________________________________
>> 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/20140409/227537f0/attachment.html>

From damianavila at gmail.com  Wed Apr  9 14:45:56 2014
From: damianavila at gmail.com (=?ISO-8859-1?Q?Dami=E1n_Avila?=)
Date: Wed, 9 Apr 2014 15:45:56 -0300
Subject: [IPython-dev] Slideshow mode for IPython 2.0
In-Reply-To: <CAHNn8BWnQgb+M3GeTp2-HWP5bTF6YN+btNhxNM1PZKb5++XXjg@mail.gmail.com>
References: <mailman.1.1397062801.17860.ipython-dev@scipy.org>
	<CF6ACC94.9371%alessandro.gagliardi@glassdoor.com>
	<CAH+mRR2N95aiz2hXRVR+DN8CJofQBZ0NFCWJhWaUkqzHJuZCOQ@mail.gmail.com>
	<CAJXewOk-vo4P6htFB3_+yfE2ZEEB3BURxB_ju3v8+X3zzdDtng@mail.gmail.com>
	<CAHNn8BWnQgb+M3GeTp2-HWP5bTF6YN+btNhxNM1PZKb5++XXjg@mail.gmail.com>
Message-ID: <CAH+mRR3RNmKhEPGYibzReMOKTRFYs3MMVu_CrMFF474icCFKbA@mail.gmail.com>

>I am not making the adjustment to use it in IPython 2.0:

Typo: I *****am***** making the adjustment to Live_Reveal to work with
IPython 2.0


2014-04-09 15:37 GMT-03:00 MinRK <benjaminrk at gmail.com>:

>
>
>
> On Wed, Apr 9, 2014 at 11:20 AM, Nathan Goldbaum <nathan12343 at gmail.com>wrote:
>
>>
>>
>>
>> On Wed, Apr 9, 2014 at 10:52 AM, Dami?n Avila <damianavila at gmail.com>wrote:
>>
>>> People, you are mistaken two things... three in fact...
>>>
>>> 1) IPython slides, generated from IPython.nbconvert using reveal.js,
>>> static presentations. About the customization, you can check some of my
>>> blog post about it:
>>> http://www.damian.oquanta.info/categories/slideshow.html. There are a
>>> lot of things to improve, and it will be discussed soon here and in proper
>>> issues.
>>>
>>> 2) Slideshow mode: This is a js hack from Mathias, which let you see the
>>> IPython notebook as a slideshow, but it is live, I mean you can run code in
>>> the slideshow itself... and the installation step are described here
>>> (possibly outdated, and I don't know if it is IPython 2.0 compatible, I did
>>> not check it yet):
>>> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynb
>>>
>>> 3) Live_Reveal IPython extension, which gives you an slideshow powered
>>> by reveal.js, but not static as IPython slides, instead they are lives, I
>>> mean you can execute code as with the slidemode. This is still in
>>> development and working in IPython 1.x... I am not making the adjustment to
>>> use it in IPython 2.0: https://github.com/damianavila/live_reveal
>>>
>>>
>> Are there plans to incorporate a live slideshow mode into IPython proper
>> or is that beyond the scope of the project?
>>
>
> I think it's appropriate for an IPython *extension*, but probably not in
> IPython itself.
>
>
>>
>> I've used static reveal.js presentations in the past but it's really cool
>> to do a live calculation when you want to demonstrate that a piece of code
>> really is as fast as you're saying it is.
>>
>>
>>> Hope it is more clear right now...
>>>
>>>
>>>
>>> 2014-04-09 14:16 GMT-03:00 Alessandro Gagliardi <
>>> alessandro.gagliardi at glassdoor.com>:
>>>
>>>>  I used IPython-2.0.0-dev extensively in making slides these past few
>>>> months. (I used 2.0 because I had better luck with getting speaker notes to
>>>> render, though it is still inconsistent and I don't know why.)
>>>>
>>>>  I think the notebook you linked to is no longer relevant though.
>>>> These days, to make my slides, I just run
>>>> ipython nbconvert my_notebook.ipynb --to slides
>>>> from the command line and it works great.
>>>> reveal.js does need to be in that directory.
>>>>
>>>>  I definitely have a wish list of things I'd like to see developed
>>>> with the slide conversion (for example, I've found styling the slides to be
>>>> impossibly difficult.) I think it's also confusing because this is such a
>>>> new feature and has changed so many times since it was first introduced
>>>> that it's easy to find things like the link below that are no longer needed
>>>> (and probably don't work anymore). I suppose that's the price of working on
>>>> the bleeding edge.
>>>>
>>>>  -Alessandro
>>>>
>>>>   Date: Wed, 9 Apr 2014 16:38:50 +0100
>>>>  From: Phil Elson <pelson.pub at gmail.com>
>>>> Subject: [IPython-dev] Slideshow mode for IPython 2.0
>>>>
>>>>  Just wondering if anybody has taken the slideshow mode and made it
>>>> work
>>>> with IPython notebook 2.0.0 yet? I did try the notebook at
>>>>
>>>> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynbbut
>>>> I suspect the internals have changed sufficiently between v1.x and
>>>> v2.x
>>>> to prevent it working with the latest version.
>>>>
>>>>  Looks like the repo hasn't been updated in a while, so wondered if
>>>> anybody
>>>> was working on this?
>>>>
>>>>  Cheers,
>>>>
>>>>  Phil
>>>>
>>>> _______________________________________________
>>>> IPython-dev mailing list
>>>> IPython-dev at scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Dami?n Avila
>>> Scientific Python Developer
>>> Quantitative Finance Analyst
>>> Statistics, Biostatistics and Econometrics Consultant
>>> Biochemist
>>>
>>> _______________________________________________
>>> 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
>
>


-- 
Dami?n Avila
Scientific Python Developer
Quantitative Finance Analyst
Statistics, Biostatistics and Econometrics Consultant
Biochemist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140409/59247729/attachment.html>

From j.davidgriffiths at gmail.com  Wed Apr  9 14:49:08 2014
From: j.davidgriffiths at gmail.com (John Griffiths)
Date: Wed, 9 Apr 2014 19:49:08 +0100
Subject: [IPython-dev] Slideshow mode for IPython 2.0
In-Reply-To: <CAH+mRR3RNmKhEPGYibzReMOKTRFYs3MMVu_CrMFF474icCFKbA@mail.gmail.com>
References: <mailman.1.1397062801.17860.ipython-dev@scipy.org>
	<CF6ACC94.9371%alessandro.gagliardi@glassdoor.com>
	<CAH+mRR2N95aiz2hXRVR+DN8CJofQBZ0NFCWJhWaUkqzHJuZCOQ@mail.gmail.com>
	<CAJXewOk-vo4P6htFB3_+yfE2ZEEB3BURxB_ju3v8+X3zzdDtng@mail.gmail.com>
	<CAHNn8BWnQgb+M3GeTp2-HWP5bTF6YN+btNhxNM1PZKb5++XXjg@mail.gmail.com>
	<CAH+mRR3RNmKhEPGYibzReMOKTRFYs3MMVu_CrMFF474icCFKbA@mail.gmail.com>
Message-ID: <CACcz1g0dAO3HYiG0nJpz6ScVtHKGT2Cu9L1cTsU_f36qK02VmQ@mail.gmail.com>

phew!


On 9 April 2014 19:45, Dami?n Avila <damianavila at gmail.com> wrote:

> >I am not making the adjustment to use it in IPython 2.0:
>
> Typo: I *****am***** making the adjustment to Live_Reveal to work with
> IPython 2.0
>
>
> 2014-04-09 15:37 GMT-03:00 MinRK <benjaminrk at gmail.com>:
>
>
>>
>>
>> On Wed, Apr 9, 2014 at 11:20 AM, Nathan Goldbaum <nathan12343 at gmail.com>wrote:
>>
>>>
>>>
>>>
>>> On Wed, Apr 9, 2014 at 10:52 AM, Dami?n Avila <damianavila at gmail.com>wrote:
>>>
>>>> People, you are mistaken two things... three in fact...
>>>>
>>>> 1) IPython slides, generated from IPython.nbconvert using reveal.js,
>>>> static presentations. About the customization, you can check some of my
>>>> blog post about it:
>>>> http://www.damian.oquanta.info/categories/slideshow.html. There are a
>>>> lot of things to improve, and it will be discussed soon here and in proper
>>>> issues.
>>>>
>>>> 2) Slideshow mode: This is a js hack from Mathias, which let you see
>>>> the IPython notebook as a slideshow, but it is live, I mean you can run
>>>> code in the slideshow itself... and the installation step are described
>>>> here (possibly outdated, and I don't know if it is IPython 2.0 compatible,
>>>> I did not check it yet):
>>>> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynb
>>>>
>>>> 3) Live_Reveal IPython extension, which gives you an slideshow powered
>>>> by reveal.js, but not static as IPython slides, instead they are lives, I
>>>> mean you can execute code as with the slidemode. This is still in
>>>> development and working in IPython 1.x... I am not making the adjustment to
>>>> use it in IPython 2.0: https://github.com/damianavila/live_reveal
>>>>
>>>>
>>> Are there plans to incorporate a live slideshow mode into IPython proper
>>> or is that beyond the scope of the project?
>>>
>>
>> I think it's appropriate for an IPython *extension*, but probably not in
>> IPython itself.
>>
>>
>>>
>>> I've used static reveal.js presentations in the past but it's really
>>> cool to do a live calculation when you want to demonstrate that a piece of
>>> code really is as fast as you're saying it is.
>>>
>>>
>>>> Hope it is more clear right now...
>>>>
>>>>
>>>>
>>>> 2014-04-09 14:16 GMT-03:00 Alessandro Gagliardi <
>>>> alessandro.gagliardi at glassdoor.com>:
>>>>
>>>>>  I used IPython-2.0.0-dev extensively in making slides these past few
>>>>> months. (I used 2.0 because I had better luck with getting speaker notes to
>>>>> render, though it is still inconsistent and I don?t know why.)
>>>>>
>>>>>  I think the notebook you linked to is no longer relevant though.
>>>>> These days, to make my slides, I just run
>>>>> ipython nbconvert my_notebook.ipynb --to slides
>>>>> from the command line and it works great.
>>>>> reveal.js does need to be in that directory.
>>>>>
>>>>>  I definitely have a wish list of things I?d like to see developed
>>>>> with the slide conversion (for example, I?ve found styling the slides to be
>>>>> impossibly difficult.) I think it?s also confusing because this is such a
>>>>> new feature and has changed so many times since it was first introduced
>>>>> that it?s easy to find things like the link below that are no longer needed
>>>>> (and probably don?t work anymore). I suppose that?s the price of working on
>>>>> the bleeding edge.
>>>>>
>>>>>  -Alessandro
>>>>>
>>>>>   Date: Wed, 9 Apr 2014 16:38:50 +0100
>>>>>  From: Phil Elson <pelson.pub at gmail.com>
>>>>> Subject: [IPython-dev] Slideshow mode for IPython 2.0
>>>>>
>>>>>  Just wondering if anybody has taken the slideshow mode and made it
>>>>> work
>>>>> with IPython notebook 2.0.0 yet? I did try the notebook at
>>>>>
>>>>> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynbbut
>>>>> I suspect the internals have changed sufficiently between v1.x and
>>>>> v2.x
>>>>> to prevent it working with the latest version.
>>>>>
>>>>>  Looks like the repo hasn't been updated in a while, so wondered if
>>>>> anybody
>>>>> was working on this?
>>>>>
>>>>>  Cheers,
>>>>>
>>>>>  Phil
>>>>>
>>>>> _______________________________________________
>>>>> IPython-dev mailing list
>>>>> IPython-dev at scipy.org
>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Dami?n Avila
>>>> Scientific Python Developer
>>>> Quantitative Finance Analyst
>>>> Statistics, Biostatistics and Econometrics Consultant
>>>> Biochemist
>>>>
>>>> _______________________________________________
>>>> 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
>>
>>
>
>
> --
> Dami?n Avila
> Scientific Python Developer
> Quantitative Finance Analyst
> Statistics, Biostatistics and Econometrics Consultant
> Biochemist
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>


-- 

Mr. John Griffiths, MSc

PhD Candidate

Centre for Speech, Language, and the Brain

Department of Experimental Psychology

University of Cambridge, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140409/ed1f2253/attachment.html>

From zhangmarvin95 at gmail.com  Wed Apr  9 18:07:25 2014
From: zhangmarvin95 at gmail.com (zhangmarvin)
Date: Wed, 9 Apr 2014 15:07:25 -0700 (PDT)
Subject: [IPython-dev] Specifying known_hosts file for Client
Message-ID: <1397081245554-5053069.post@n6.nabble.com>

Hi,

I've written a script to start an IPython cluster over Google Compute Engine
(GCE), and I've run into a bit of an unfortunate circumstance.

Since I'm working over many instances, I'm using SSH to allow the instances
to communicate to the master node, and vice versa. However, there seems to
be no way, in the IPython.parallel.Client class constructor, to specify
which known_hosts file to use. This causes some problems over GCE.

In GCE, the SSH commands default to 'UserKnownHostsFile=/dev/null', since
GCE recycles IP addresses so writing the instance IP's to the known_hosts
file can cause problems very quickly (e.g. man-in-the-middle attack
warnings). However, IPython.parallel.Client can't seem to deal with that,
and so I've had to alter the ssh command to write to the known_hosts file,
and then afterward do some cleanup to erase those IP's from known_hosts.

I was wondering if anyone can give me some insight as to how to deal with
this, and if there's a better way to handle this issue.

Thank you!

Marvin



--
View this message in context: http://python.6.x6.nabble.com/Specifying-known-hosts-file-for-Client-tp5053069.html
Sent from the IPython - Development mailing list archive at Nabble.com.


From nelle.varoquaux at gmail.com  Thu Apr 10 02:04:44 2014
From: nelle.varoquaux at gmail.com (Nelle Varoquaux)
Date: Thu, 10 Apr 2014 08:04:44 +0200
Subject: [IPython-dev] EuroScipy Reminder: call for abstracts closes in 4
	days
Message-ID: <CAE-UAvR2qHTtdw11uQubvdy4XM3DRGTNXCoOF4uNNx5vkVk68g@mail.gmail.com>

Hello everyone,

Just a quick reminder that the EuroScipy call for abstracts closes on the
14th: don't forget to submit your talk proposal! It is in four days only!

In short, EuroScipy is a cross-disciplinary gathering focused on the use
and development of the Python language in scientific research. This event
strives to bring together both users and developers of scientific tools, as
well as academic research and state of the art industry.

EuroSciPy 2014, the Seventh Annual Conference on Python in Science, takes
place in *Cambridge, UK on 27 - 30 August 2014*. The conference features
two days of tutorials followed by two days of scientific talks. The day
after the main conference, developer sprints will be organized on projects
of interest to attendees.

The topics presented at EuroSciPy are very diverse, with a focus on
advanced software engineering and original uses of Python and its
scientific libraries, either in theoretical or experimental research, from
both academia and the industry. The program includes keynotes, contributed
talks and posters.

Submissions for talks and posters are welcome on our website (
http://www.euroscipy.org/2014/). In your abstract, please provide details
on what Python tools are being employed, and how. The deadline for
submission is 14 April 2014.

Also until 14 April 2014, you can apply for a sprint session on 31 August
2014. See https://www.euroscipy.org/2014/calls/sprints/ for details.

Thanks,

N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140410/2582d170/attachment.html>

From pelson.pub at gmail.com  Thu Apr 10 04:18:16 2014
From: pelson.pub at gmail.com (Phil Elson)
Date: Thu, 10 Apr 2014 09:18:16 +0100
Subject: [IPython-dev] Slideshow mode for IPython 2.0
In-Reply-To: <CACcz1g0dAO3HYiG0nJpz6ScVtHKGT2Cu9L1cTsU_f36qK02VmQ@mail.gmail.com>
References: <mailman.1.1397062801.17860.ipython-dev@scipy.org>
	<CF6ACC94.9371%alessandro.gagliardi@glassdoor.com>
	<CAH+mRR2N95aiz2hXRVR+DN8CJofQBZ0NFCWJhWaUkqzHJuZCOQ@mail.gmail.com>
	<CAJXewOk-vo4P6htFB3_+yfE2ZEEB3BURxB_ju3v8+X3zzdDtng@mail.gmail.com>
	<CAHNn8BWnQgb+M3GeTp2-HWP5bTF6YN+btNhxNM1PZKb5++XXjg@mail.gmail.com>
	<CAH+mRR3RNmKhEPGYibzReMOKTRFYs3MMVu_CrMFF474icCFKbA@mail.gmail.com>
	<CACcz1g0dAO3HYiG0nJpz6ScVtHKGT2Cu9L1cTsU_f36qK02VmQ@mail.gmail.com>
Message-ID: <CA+L60sBLpx=ezxxx9f=1-e9ZCshS5fZxEKx16UrqzUyPVDPJNw@mail.gmail.com>

To confirm, I was referring to Matthias' live IPython slide mode extension,
not the static slides nor the live reveal.js extension. I haven't played
with the live reveal.js, but will be interested to see the results in v2.x
Damian.



On 9 April 2014 19:49, John Griffiths <j.davidgriffiths at gmail.com> wrote:

> phew!
>
>
> On 9 April 2014 19:45, Dami?n Avila <damianavila at gmail.com> wrote:
>
>> >I am not making the adjustment to use it in IPython 2.0:
>>
>> Typo: I *****am***** making the adjustment to Live_Reveal to work with
>> IPython 2.0
>>
>>
>> 2014-04-09 15:37 GMT-03:00 MinRK <benjaminrk at gmail.com>:
>>
>>
>>>
>>>
>>> On Wed, Apr 9, 2014 at 11:20 AM, Nathan Goldbaum <nathan12343 at gmail.com>wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Wed, Apr 9, 2014 at 10:52 AM, Dami?n Avila <damianavila at gmail.com>wrote:
>>>>
>>>>> People, you are mistaken two things... three in fact...
>>>>>
>>>>> 1) IPython slides, generated from IPython.nbconvert using reveal.js,
>>>>> static presentations. About the customization, you can check some of my
>>>>> blog post about it:
>>>>> http://www.damian.oquanta.info/categories/slideshow.html. There are a
>>>>> lot of things to improve, and it will be discussed soon here and in proper
>>>>> issues.
>>>>>
>>>>> 2) Slideshow mode: This is a js hack from Mathias, which let you see
>>>>> the IPython notebook as a slideshow, but it is live, I mean you can run
>>>>> code in the slideshow itself... and the installation step are described
>>>>> here (possibly outdated, and I don't know if it is IPython 2.0 compatible,
>>>>> I did not check it yet):
>>>>> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynb
>>>>>
>>>>> 3) Live_Reveal IPython extension, which gives you an slideshow powered
>>>>> by reveal.js, but not static as IPython slides, instead they are lives, I
>>>>> mean you can execute code as with the slidemode. This is still in
>>>>> development and working in IPython 1.x... I am not making the adjustment to
>>>>> use it in IPython 2.0: https://github.com/damianavila/live_reveal
>>>>>
>>>>>
>>>> Are there plans to incorporate a live slideshow mode into IPython
>>>> proper or is that beyond the scope of the project?
>>>>
>>>
>>> I think it's appropriate for an IPython *extension*, but probably not in
>>> IPython itself.
>>>
>>>
>>>>
>>>> I've used static reveal.js presentations in the past but it's really
>>>> cool to do a live calculation when you want to demonstrate that a piece of
>>>> code really is as fast as you're saying it is.
>>>>
>>>>
>>>>> Hope it is more clear right now...
>>>>>
>>>>>
>>>>>
>>>>> 2014-04-09 14:16 GMT-03:00 Alessandro Gagliardi <
>>>>> alessandro.gagliardi at glassdoor.com>:
>>>>>
>>>>>>  I used IPython-2.0.0-dev extensively in making slides these past
>>>>>> few months. (I used 2.0 because I had better luck with getting speaker
>>>>>> notes to render, though it is still inconsistent and I don?t know why.)
>>>>>>
>>>>>>  I think the notebook you linked to is no longer relevant though.
>>>>>> These days, to make my slides, I just run
>>>>>> ipython nbconvert my_notebook.ipynb --to slides
>>>>>> from the command line and it works great.
>>>>>> reveal.js does need to be in that directory.
>>>>>>
>>>>>>  I definitely have a wish list of things I?d like to see developed
>>>>>> with the slide conversion (for example, I?ve found styling the slides to be
>>>>>> impossibly difficult.) I think it?s also confusing because this is such a
>>>>>> new feature and has changed so many times since it was first introduced
>>>>>> that it?s easy to find things like the link below that are no longer needed
>>>>>> (and probably don?t work anymore). I suppose that?s the price of working on
>>>>>> the bleeding edge.
>>>>>>
>>>>>>  -Alessandro
>>>>>>
>>>>>>   Date: Wed, 9 Apr 2014 16:38:50 +0100
>>>>>>  From: Phil Elson <pelson.pub at gmail.com>
>>>>>> Subject: [IPython-dev] Slideshow mode for IPython 2.0
>>>>>>
>>>>>>  Just wondering if anybody has taken the slideshow mode and made it
>>>>>> work
>>>>>> with IPython notebook 2.0.0 yet? I did try the notebook at
>>>>>>
>>>>>> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynbbut
>>>>>> I suspect the internals have changed sufficiently between v1.x and
>>>>>> v2.x
>>>>>> to prevent it working with the latest version.
>>>>>>
>>>>>>  Looks like the repo hasn't been updated in a while, so wondered if
>>>>>> anybody
>>>>>> was working on this?
>>>>>>
>>>>>>  Cheers,
>>>>>>
>>>>>>  Phil
>>>>>>
>>>>>> _______________________________________________
>>>>>> IPython-dev mailing list
>>>>>> IPython-dev at scipy.org
>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Dami?n Avila
>>>>> Scientific Python Developer
>>>>> Quantitative Finance Analyst
>>>>> Statistics, Biostatistics and Econometrics Consultant
>>>>> Biochemist
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>>
>>
>>
>> --
>> Dami?n Avila
>> Scientific Python Developer
>> Quantitative Finance Analyst
>> Statistics, Biostatistics and Econometrics Consultant
>> Biochemist
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
>
>
> --
>
> Mr. John Griffiths, MSc
>
> PhD Candidate
>
> Centre for Speech, Language, and the Brain
>
> Department of Experimental Psychology
>
> University of Cambridge, UK
>
> _______________________________________________
> 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/20140410/83df2e03/attachment.html>

From bussonniermatthias at gmail.com  Thu Apr 10 12:00:59 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Thu, 10 Apr 2014 12:00:59 -0400
Subject: [IPython-dev] Slideshow mode for IPython 2.0
In-Reply-To: <CA+L60sBLpx=ezxxx9f=1-e9ZCshS5fZxEKx16UrqzUyPVDPJNw@mail.gmail.com>
References: <mailman.1.1397062801.17860.ipython-dev@scipy.org>
	<CF6ACC94.9371%alessandro.gagliardi@glassdoor.com>
	<CAH+mRR2N95aiz2hXRVR+DN8CJofQBZ0NFCWJhWaUkqzHJuZCOQ@mail.gmail.com>
	<CAJXewOk-vo4P6htFB3_+yfE2ZEEB3BURxB_ju3v8+X3zzdDtng@mail.gmail.com>
	<CAHNn8BWnQgb+M3GeTp2-HWP5bTF6YN+btNhxNM1PZKb5++XXjg@mail.gmail.com>
	<CAH+mRR3RNmKhEPGYibzReMOKTRFYs3MMVu_CrMFF474icCFKbA@mail.gmail.com>
	<CACcz1g0dAO3HYiG0nJpz6ScVtHKGT2Cu9L1cTsU_f36qK02VmQ@mail.gmail.com>
	<CA+L60sBLpx=ezxxx9f=1-e9ZCshS5fZxEKx16UrqzUyPVDPJNw@mail.gmail.com>
Message-ID: <0A2A4CAB-D04E-4043-8571-08968C062CB0@gmail.com>


Le 10 avr. 2014 ? 04:18, Phil Elson a ?crit :

> To confirm, I was referring to Matthias' live IPython slide mode extension, not the static slides nor the live reveal.js extension. I haven't played with the live reveal.js, but will be interested to see the results in v2.x Damian.

I'll try to fix it for saturday, Fernando want to use it for his keynote. 
--
M

> 
> 
> 
> On 9 April 2014 19:49, John Griffiths <j.davidgriffiths at gmail.com> wrote:
> phew!
> 
> 
> On 9 April 2014 19:45, Dami?n Avila <damianavila at gmail.com> wrote:
> >I am not making the adjustment to use it in IPython 2.0:
> 
> Typo: I *****am***** making the adjustment to Live_Reveal to work with IPython 2.0
> 
> 
> 2014-04-09 15:37 GMT-03:00 MinRK <benjaminrk at gmail.com>:
> 
> 
> 
> 
> On Wed, Apr 9, 2014 at 11:20 AM, Nathan Goldbaum <nathan12343 at gmail.com> wrote:
> 
> 
> 
> On Wed, Apr 9, 2014 at 10:52 AM, Dami?n Avila <damianavila at gmail.com> wrote:
> People, you are mistaken two things... three in fact...
> 
> 1) IPython slides, generated from IPython.nbconvert using reveal.js, static presentations. About the customization, you can check some of my blog post about it: http://www.damian.oquanta.info/categories/slideshow.html. There are a lot of things to improve, and it will be discussed soon here and in proper issues.
> 
> 2) Slideshow mode: This is a js hack from Mathias, which let you see the IPython notebook as a slideshow, but it is live, I mean you can run code in the slideshow itself... and the installation step are described here (possibly outdated, and I don't know if it is IPython 2.0 compatible, I did not check it yet): http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynb
> 
> 3) Live_Reveal IPython extension, which gives you an slideshow powered by reveal.js, but not static as IPython slides, instead they are lives, I mean you can execute code as with the slidemode. This is still in development and working in IPython 1.x... I am not making the adjustment to use it in IPython 2.0: https://github.com/damianavila/live_reveal
> 
> 
> Are there plans to incorporate a live slideshow mode into IPython proper or is that beyond the scope of the project?
> 
> I think it's appropriate for an IPython *extension*, but probably not in IPython itself.
>  
> 
> I've used static reveal.js presentations in the past but it's really cool to do a live calculation when you want to demonstrate that a piece of code really is as fast as you're saying it is.
>  
> Hope it is more clear right now...
> 
> 
> 
> 2014-04-09 14:16 GMT-03:00 Alessandro Gagliardi <alessandro.gagliardi at glassdoor.com>:
> I used IPython-2.0.0-dev extensively in making slides these past few months. (I used 2.0 because I had better luck with getting speaker notes to render, though it is still inconsistent and I don?t know why.)
> 
> I think the notebook you linked to is no longer relevant though. These days, to make my slides, I just run
> ipython nbconvert my_notebook.ipynb --to slides
> from the command line and it works great.
> reveal.js does need to be in that directory.
> 
> I definitely have a wish list of things I?d like to see developed with the slide conversion (for example, I?ve found styling the slides to be impossibly difficult.) I think it?s also confusing because this is such a new feature and has changed so many times since it was first introduced that it?s easy to find things like the link below that are no longer needed (and probably don?t work anymore). I suppose that?s the price of working on the bleeding edge.
> 
> -Alessandro
> 
> Date: Wed, 9 Apr 2014 16:38:50 +0100
> From: Phil Elson <pelson.pub at gmail.com>
> Subject: [IPython-dev] Slideshow mode for IPython 2.0
> 
> Just wondering if anybody has taken the slideshow mode and made it work
> with IPython notebook 2.0.0 yet? I did try the notebook at
> http://nbviewer.ipython.org/github/fperez/nb-slideshow-template/blob/master/install-support.ipynbbut
> I suspect the internals have changed sufficiently between v1.x and
> v2.x
> to prevent it working with the latest version.
> 
> Looks like the repo hasn't been updated in a while, so wondered if anybody
> was working on this?
> 
> Cheers,
> 
> Phil
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> 
> 
> 
> 
> -- 
> Dami?n Avila
> Scientific Python Developer
> Quantitative Finance Analyst
> Statistics, Biostatistics and Econometrics Consultant
> Biochemist
> 
> _______________________________________________
> 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
> 
> 
> 
> 
> -- 
> Dami?n Avila
> Scientific Python Developer
> Quantitative Finance Analyst
> Statistics, Biostatistics and Econometrics Consultant
> Biochemist
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> 
> 
> 
> 
> -- 
> Mr. John Griffiths, MSc
> 
> PhD Candidate
> 
> Centre for Speech, Language, and the Brain
> 
> Department of Experimental Psychology
> 
> University of Cambridge, UK
> 
> 
> _______________________________________________
> 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 nick.bollweg at gmail.com  Fri Apr 11 08:22:11 2014
From: nick.bollweg at gmail.com (Nicholas Bollweg)
Date: Fri, 11 Apr 2014 08:22:11 -0400
Subject: [IPython-dev] javascript linting in the notebook
Message-ID: <CACejjWwsZzLAZzAtB9Shh71rAGD8FAMEGjqwfvff5pSHOToBOw@mail.gmail.com>

tl; dr: linting, dark theme, 2 space indent. snippet here:

    https://gist.github.com/bollwyvl/10440652

or hot-load it:

    %%javascript
    require(["http://goo.gl/5OdkGb"], Object);

i love the new notebook features! great job on 2.0, everyone! one
observation is that the notebook really is the best place, from a workflow
point of view, to prototype widgets FOR the notebook, so i end up writing a
lot of javascript there.

however,  the environment is pretty unforgiving. the "syntax error
someplace, go look at the log" error is not great, especially when it gets
swallowed by the comms layer.

also, as anticipated in the ipep, it is somewhat confusing to be
context-switching back and forth between python and javascript.

finally, given that you *start* at pretty deep callback nesting (`require`,
`extend(`, `update`), and libraries like d3 make nesting even more
inevitable, I wanted less whitespace.

here is a little script I have been dinking around with to get a more
supportive javascript editing environment for hacking on widgets:

https://gist.github.com/bollwyvl/10440652

feedback welcome!

features
- per-keystroke linting (async and throttled, though, so it doesn't seem to
cause any issues)
- different theme
- indent (2 spaces)

limitations:
- it isn't smart enough to switch the options back if you change out of
javascript mode, but switching to, say, markdown mode and back to code
takes care of it.
- it "leaves no trace" which means it can't tell if it has already been
installed.. so running it multiple times is probably bad (but codemirror is
pretty good about it)

next steps
gui:
- a toggle button to enable this mode
- switches for jshint options: semicolons, strict mode, etc.
- theme switch

autocomplete:
looking through the codemirror demos, the `tern` stuff is also interesting:
  http://codemirror.net/demo/tern.html
but i didn't want to wade into more keyboard mapping issues just yet.
however, maybe even the baseline javascript hinter that looks at the
running environment would be pretty great.

hinting:
`jshint` is great for the basics: broken syntax, missing semicolons, strict
enforcement, etc, but it kind of does what it does. `eslint` looks very
nice: perhaps the "widget best practices" could be codified into some
design rules like
  "warn on change of `this.model` in `update`"
i don't know if it's 1:1 compatible with codemirror's jshint plugin,
though, so it make take some rework.

cheers,
nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140411/b4a3c8d1/attachment.html>

From aron at ahmadia.net  Fri Apr 11 17:09:23 2014
From: aron at ahmadia.net (Aron Ahmadia)
Date: Fri, 11 Apr 2014 17:09:23 -0400
Subject: [IPython-dev] Installation-level profiles?
Message-ID: <CAPhiW4iiEzEopNeFvNznP001eKnuPTo9cJK3r1x60TjZwnS=wg@mail.gmail.com>

I know how to install an IPython profile in $HOME/.ipython/profile_xxx

Is there an equivalent location for installing in the system?

It seems like I'd need to manually patch IPython to check for the file, but
it makes sense to me to provide this in say:

$BASE/etc/ipython/

This would allow virtualenvs and package managers such as Anaconda, Canopy,
and HashDist to install profiles for users as part of their installation
process to simplify access to customized CSS and Javascript.

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

From ellisonbg at gmail.com  Fri Apr 11 17:10:46 2014
From: ellisonbg at gmail.com (Brian Granger)
Date: Fri, 11 Apr 2014 14:10:46 -0700
Subject: [IPython-dev] Installation-level profiles?
In-Reply-To: <CAPhiW4iiEzEopNeFvNznP001eKnuPTo9cJK3r1x60TjZwnS=wg@mail.gmail.com>
References: <CAPhiW4iiEzEopNeFvNznP001eKnuPTo9cJK3r1x60TjZwnS=wg@mail.gmail.com>
Message-ID: <CAH4pYpT75=fZYf-ZS8D9JFePmRAp=naFyGiTyL9XcdiKAgaH=g@mail.gmail.com>

There is not yet a system level place to load profiles/config from. We
do plan on adding this as part of the work on the multiuser notebook
that will start soon.

On Fri, Apr 11, 2014 at 2:09 PM, Aron Ahmadia <aron at ahmadia.net> wrote:
> I know how to install an IPython profile in $HOME/.ipython/profile_xxx
>
> Is there an equivalent location for installing in the system?
>
> It seems like I'd need to manually patch IPython to check for the file, but
> it makes sense to me to provide this in say:
>
> $BASE/etc/ipython/
>
> This would allow virtualenvs and package managers such as Anaconda, Canopy,
> and HashDist to install profiles for users as part of their installation
> process to simplify access to customized CSS and Javascript.
>
> A
>
> _______________________________________________
> 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 aron at ahmadia.net  Fri Apr 11 17:15:14 2014
From: aron at ahmadia.net (Aron Ahmadia)
Date: Fri, 11 Apr 2014 17:15:14 -0400
Subject: [IPython-dev] Installation-level profiles?
In-Reply-To: <CAH4pYpT75=fZYf-ZS8D9JFePmRAp=naFyGiTyL9XcdiKAgaH=g@mail.gmail.com>
References: <CAPhiW4iiEzEopNeFvNznP001eKnuPTo9cJK3r1x60TjZwnS=wg@mail.gmail.com>
	<CAH4pYpT75=fZYf-ZS8D9JFePmRAp=naFyGiTyL9XcdiKAgaH=g@mail.gmail.com>
Message-ID: <CAPhiW4iHJuPoZvnqvd3PAKpFLEK4-AErnHDbtk75YYquaZQxGQ@mail.gmail.com>

Pull Request welcome? :)


On Fri, Apr 11, 2014 at 5:10 PM, Brian Granger <ellisonbg at gmail.com> wrote:

> There is not yet a system level place to load profiles/config from. We
> do plan on adding this as part of the work on the multiuser notebook
> that will start soon.
>
> On Fri, Apr 11, 2014 at 2:09 PM, Aron Ahmadia <aron at ahmadia.net> wrote:
> > I know how to install an IPython profile in $HOME/.ipython/profile_xxx
> >
> > Is there an equivalent location for installing in the system?
> >
> > It seems like I'd need to manually patch IPython to check for the file,
> but
> > it makes sense to me to provide this in say:
> >
> > $BASE/etc/ipython/
> >
> > This would allow virtualenvs and package managers such as Anaconda,
> Canopy,
> > and HashDist to install profiles for users as part of their installation
> > process to simplify access to customized CSS and Javascript.
> >
> > A
> >
> > _______________________________________________
> > 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/20140411/afdf517d/attachment.html>

From benjaminrk at gmail.com  Fri Apr 11 18:13:52 2014
From: benjaminrk at gmail.com (MinRK)
Date: Fri, 11 Apr 2014 15:13:52 -0700
Subject: [IPython-dev] Installation-level profiles?
In-Reply-To: <CAPhiW4iHJuPoZvnqvd3PAKpFLEK4-AErnHDbtk75YYquaZQxGQ@mail.gmail.com>
References: <CAPhiW4iiEzEopNeFvNznP001eKnuPTo9cJK3r1x60TjZwnS=wg@mail.gmail.com>
	<CAH4pYpT75=fZYf-ZS8D9JFePmRAp=naFyGiTyL9XcdiKAgaH=g@mail.gmail.com>
	<CAPhiW4iHJuPoZvnqvd3PAKpFLEK4-AErnHDbtk75YYquaZQxGQ@mail.gmail.com>
Message-ID: <CAHNn8BUH4Jd1MRo9ybyEetfrUc+ZgXCa5CyO6=85j8MSU_9B+g@mail.gmail.com>

We need to think somewhat carefully about that, because profiles also house
runtime things, like security files. Those must always be in the user's own
profile, and thus profile directories must always be user-writable.  To
have a 'system profile' we would need a notion of something like a 'parent'
to a profile, which can only house config files.

-MinRK


On Fri, Apr 11, 2014 at 2:15 PM, Aron Ahmadia <aron at ahmadia.net> wrote:

> Pull Request welcome? :)
>
>
> On Fri, Apr 11, 2014 at 5:10 PM, Brian Granger <ellisonbg at gmail.com>wrote:
>
>> There is not yet a system level place to load profiles/config from. We
>> do plan on adding this as part of the work on the multiuser notebook
>> that will start soon.
>>
>> On Fri, Apr 11, 2014 at 2:09 PM, Aron Ahmadia <aron at ahmadia.net> wrote:
>> > I know how to install an IPython profile in $HOME/.ipython/profile_xxx
>> >
>> > Is there an equivalent location for installing in the system?
>> >
>> > It seems like I'd need to manually patch IPython to check for the file,
>> but
>> > it makes sense to me to provide this in say:
>> >
>> > $BASE/etc/ipython/
>> >
>> > This would allow virtualenvs and package managers such as Anaconda,
>> Canopy,
>> > and HashDist to install profiles for users as part of their installation
>> > process to simplify access to customized CSS and Javascript.
>> >
>> > A
>> >
>> > _______________________________________________
>> > 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/20140411/3748e4da/attachment.html>

From dimitry.kloper at gmail.com  Tue Apr 15 10:18:40 2014
From: dimitry.kloper at gmail.com (Dimitry Kloper)
Date: Tue, 15 Apr 2014 17:18:40 +0300
Subject: [IPython-dev] screenshots of the pycon 2014 sprint board
Message-ID: <CAJ1nYBAo7Hb=YkNP1XOy9AGNOR5QwUSznZAADW9wGHZn6HoBsg@mail.gmail.com>

https://plus.google.com/photos/116248277338940534422/albums/6002520871994558033

--
 Dimitry Kloper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140415/13fccb54/attachment.html>

From ralf.gommers at gmail.com  Tue Apr 15 15:03:17 2014
From: ralf.gommers at gmail.com (Ralf Gommers)
Date: Tue, 15 Apr 2014 21:03:17 +0200
Subject: [IPython-dev] EuroSciPy 2014 abstract submission deadline extended
Message-ID: <CABL7CQjncRVX-8NrKjpg753DOL1YLrim27zJo4GvjZPanE1P2g@mail.gmail.com>

Hi,

In response to a number of requests, the organizing committee of the
EuroSciPy 2014 conference has extended the deadline for abstract submission
by 12 days, to Sunday April 27th 2014, 23:59:59 UTC. Up to then, new
abstracts may be submitted on https://www.euroscipy.org/2014/ . We are very
much looking forward to your submissions to the conference.

EuroSciPy 2014 is the annual European conference for scientists using
Python. It will be held August 27-30 2014 in Cambridge, UK. This year
promises to be an exciting event again. The number of abstract submissions
is already above the level of the 2013 edition, and the first keynote has
been announced:

    Steven G. Johnson (MIT), Crossing Language Barriers with Julia, Scipy,
and IPython

Questions regarding abstract submission may be addressed to euroscipy
-org at python.org

Best regards,
Ralf Gommers (Program Chair)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140415/a2198e7f/attachment.html>

From sychan at lbl.gov  Tue Apr 15 19:50:02 2014
From: sychan at lbl.gov (Stephen Chan)
Date: Tue, 15 Apr 2014 16:50:02 -0700
Subject: [IPython-dev] Odd problem with dynamically generated function in
	IPython notebook
Message-ID: <CA+n9Yfr8HS38-o4NJWLAV_WjMP56FNFw4yFPjnU1ySq2MXYZDg@mail.gmail.com>

Hello,
   I'm generating some helper functions dynamically and setting the
docstrings via assignment to the __doc__ attribute of the helper function.
In the command line, the interpreter seems to recognize the docstring
properly and displays it, but in the notebook, the docstring is not being
returned by the UI, even though you can see it when you check the attribute
directly.

   Any ideas?

   Steve
[image: Inline image 1]

[image: Inline image 2]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140415/81358406/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-04-15 at 4.46.03 PM.png
Type: image/png
Size: 21053 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140415/81358406/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-04-15 at 4.49.37 PM.png
Type: image/png
Size: 18801 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140415/81358406/attachment-0001.png>

From nathan.faggian at gmail.com  Tue Apr 15 21:51:40 2014
From: nathan.faggian at gmail.com (Nathan Faggian)
Date: Wed, 16 Apr 2014 11:51:40 +1000
Subject: [IPython-dev]  IPython parallel client
Message-ID: <CAN1J6jWQw2fEKGwCTX_pPC7+qndsjMyOuNFpx+KOe8tscJCDaw@mail.gmail.com>

Hi,

I am interested in building an ipengine status tool for IPython using Qt. I
was wondering if I could get some direction on querying the HUB to get a
list of jobs, I have read the "iopubwatcher" example from MinRk, which
seems like a good starting point.

Though, I am not sure if I should be using the interface provided by the
client for this task because it seems like two clients don't share metadata
- one client doesn't know what the other has submitted (I may easily be
wrong here).

Hope my question isn't too vague -- I am interested in being able to point
and click on jobs and perform some simple things like kill/re-submit them -
it would be really useful!

Thanks in advance for any advice,

Nathan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140416/93e2a1dd/attachment.html>

From benjaminrk at gmail.com  Tue Apr 15 22:01:23 2014
From: benjaminrk at gmail.com (MinRK)
Date: Tue, 15 Apr 2014 19:01:23 -0700
Subject: [IPython-dev] IPython parallel client
In-Reply-To: <CAN1J6jWQw2fEKGwCTX_pPC7+qndsjMyOuNFpx+KOe8tscJCDaw@mail.gmail.com>
References: <CAN1J6jWQw2fEKGwCTX_pPC7+qndsjMyOuNFpx+KOe8tscJCDaw@mail.gmail.com>
Message-ID: <CAHNn8BW-gnYoYCYeJDVt=K3Zdo0rsixAy=5fH3tAtGwTWCF72Q@mail.gmail.com>

The method you are probably interested in is
`Client.queue_status(verbose=True)`, which lets you see at what jobs are
queued, running, etc. and where. If you want to resubmit a job, you would
use the `resubmit` method, or abort a queued job with `abort`. Do note that
killing isn't supported yet in IPython, though you can probably set this up
fairly easily (trivially, if all your engines are local), as described here:

http://mail.scipy.org/pipermail/ipython-dev/2014-March/013426.html



On Tue, Apr 15, 2014 at 6:51 PM, Nathan Faggian <nathan.faggian at gmail.com>wrote:

> Hi,
>
> I am interested in building an ipengine status tool for IPython using Qt.
> I was wondering if I could get some direction on querying the HUB to get a
> list of jobs, I have read the "iopubwatcher" example from MinRk, which
> seems like a good starting point.
>
> Though, I am not sure if I should be using the interface provided by the
> client for this task because it seems like two clients don't share metadata
> - one client doesn't know what the other has submitted (I may easily be
> wrong here).
>
> Hope my question isn't too vague -- I am interested in being able to point
> and click on jobs and perform some simple things like kill/re-submit them -
> it would be really useful!
>
> Thanks in advance for any advice,
>
> Nathan.
>
>
> _______________________________________________
> 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/20140415/03076d7a/attachment.html>

From nathan.faggian at gmail.com  Tue Apr 15 22:18:42 2014
From: nathan.faggian at gmail.com (Nathan Faggian)
Date: Wed, 16 Apr 2014 12:18:42 +1000
Subject: [IPython-dev] IPython parallel client
In-Reply-To: <CAHNn8BW-gnYoYCYeJDVt=K3Zdo0rsixAy=5fH3tAtGwTWCF72Q@mail.gmail.com>
References: <CAN1J6jWQw2fEKGwCTX_pPC7+qndsjMyOuNFpx+KOe8tscJCDaw@mail.gmail.com>
	<CAHNn8BW-gnYoYCYeJDVt=K3Zdo0rsixAy=5fH3tAtGwTWCF72Q@mail.gmail.com>
Message-ID: <CAN1J6jWJr9MWCAR7U=VyANn_iwJVPFnE=tx8v0HzxKt_psDZpw@mail.gmail.com>

Hi MinRk,

Thanks for the quick response, that is going to be a great help!

Cheers,

Nathan.

On 16 April 2014 12:01, MinRK <benjaminrk at gmail.com> wrote:

> The method you are probably interested in is
> `Client.queue_status(verbose=True)`, which lets you see at what jobs are
> queued, running, etc. and where. If you want to resubmit a job, you would
> use the `resubmit` method, or abort a queued job with `abort`. Do note that
> killing isn't supported yet in IPython, though you can probably set this up
> fairly easily (trivially, if all your engines are local), as described here:
>
> http://mail.scipy.org/pipermail/ipython-dev/2014-March/013426.html
>
>
>
> On Tue, Apr 15, 2014 at 6:51 PM, Nathan Faggian <nathan.faggian at gmail.com>wrote:
>
>> Hi,
>>
>> I am interested in building an ipengine status tool for IPython using Qt.
>> I was wondering if I could get some direction on querying the HUB to get a
>> list of jobs, I have read the "iopubwatcher" example from MinRk, which
>> seems like a good starting point.
>>
>> Though, I am not sure if I should be using the interface provided by the
>> client for this task because it seems like two clients don't share metadata
>> - one client doesn't know what the other has submitted (I may easily be
>> wrong here).
>>
>> Hope my question isn't too vague -- I am interested in being able to
>> point and click on jobs and perform some simple things like kill/re-submit
>> them - it would be really useful!
>>
>> Thanks in advance for any advice,
>>
>> Nathan.
>>
>>
>> _______________________________________________
>> 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/20140416/fa3abccc/attachment.html>

From pelson.pub at gmail.com  Wed Apr 16 03:00:29 2014
From: pelson.pub at gmail.com (Phil Elson)
Date: Wed, 16 Apr 2014 08:00:29 +0100
Subject: [IPython-dev] Updating saved cell content with widgets
Message-ID: <CA+L60sB_2N0rfaWtNAiHr0CtgtAK8Wu1ciq0Dns7DhkXxF9-Yw@mail.gmail.com>

I've been playing with the slider widget and have defined a callback along
the lines of:


from IPython.html import widgets
slider = widgets.IntSliderWidget(min=-20, max=20, value=10)

def on_value_change(name, value):
    from IPython.core.display import clear_output
    clear_output(wait=True)
    print 'Current value:', value
slider.on_trait_change(on_value_change, 'value')


The problem with this though is that when I save the notebook, neither the
slider nor the printed value are stored in the notebook file on save. Is
there a way to update the content of the stored cell either from within the
callback, or via an alternative hook?

The answer might be identical, but I'm also working on my own widget which
I would like to save a static representation of inside the notebook file
(as HTML). Is there an "on-save" hook I can attach a callback to to convert
my dynamic widget into a static on at save time?

Cheers!

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

From vasco+python at tenner.nl  Wed Apr 16 04:21:35 2014
From: vasco+python at tenner.nl (Vasco Tenner)
Date: Wed, 16 Apr 2014 10:21:35 +0200
Subject: [IPython-dev] documentation interact/widgets
Message-ID: <534E3D8F.1030001@tenner.nl>

Dear all,
the new widget/interact functionality is very powerfull in exploring 
data. Some example notebooks can be found. However, the docstring 
documentation is very minimal:

?interact
Docstring:
interact(f, **kwargs)

Interact with a function using widgets.

Can this be extended to something that explains the interact function? 
Or at least include an example?

The same holds for the documentation of the widgets.


Here [1] I can find the widget tutorial. In cell 2 it displays a list of 
all widgets. Can this list be extended with an example of all widgets? 
So one can see directly how they all look like?

[1] 
http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Interactive%20Widgets/Widget%20Basics.ipynb

Kind regards,
Vasco


From bussonniermatthias at gmail.com  Wed Apr 16 10:32:47 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Wed, 16 Apr 2014 10:32:47 -0400
Subject: [IPython-dev] documentation interact/widgets
In-Reply-To: <534E3D8F.1030001@tenner.nl>
References: <534E3D8F.1030001@tenner.nl>
Message-ID: <C06A640B-F851-40FD-BF25-11AC04B8078B@gmail.com>


Le 16 avr. 2014 ? 04:21, Vasco Tenner a ?crit :

> Dear all,
> the new widget/interact functionality is very powerfull in exploring 
> data. Some example notebooks can be found. However, the docstring 
> documentation is very minimal:
> 
> ?interact
> Docstring:
> interact(f, **kwargs)
> 
> Interact with a function using widgets.
> 
> Can this be extended to something that explains the interact function? 
> Or at least include an example?

I've created an issue for that :

https://github.com/ipython/ipython/issues/5637

we will try to do it during pylon sprint 
-- 
M
> 
> The same holds for the documentation of the widgets.
> 
> 
> Here [1] I can find the widget tutorial. In cell 2 it displays a list of 
> all widgets. Can this list be extended with an example of all widgets? 
> So one can see directly how they all look like?
> 
> [1] 
> http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Interactive%20Widgets/Widget%20Basics.ipynb
> 
> Kind regards,
> Vasco
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From robbie.lynch at outlook.com  Wed Apr 16 11:09:44 2014
From: robbie.lynch at outlook.com (Robbie Lynch)
Date: Wed, 16 Apr 2014 16:09:44 +0100
Subject: [IPython-dev] Fwd: Interactive Erlang Notebook for IPython
In-Reply-To: <CAEr3mqk8OKu2oDjRLQnM1sT=DwDVJMbHKLR4XZ445--n6zPUNw@mail.gmail.com>
References: <CAEr3mqk8OKu2oDjRLQnM1sT=DwDVJMbHKLR4XZ445--n6zPUNw@mail.gmail.com>
Message-ID: <CAEr3mq=NEd2Bfj20jb1X6cmkuT9UJcm3qbLen25mQxr5FGhJRw@mail.gmail.com>

Happy Wednesday!

I?m here to announce the first release of IErlang Notebook (Alpha version).

IErlang (an erlang language kernel for IPython) allows users to code,
execute and/or compile erlang expressions and modules in the web browser.
It allows users to render HTML and markdown on the same page as the erlang
code (Using IPython's front-end). The notebook can even interact with the
OS like any terminal and it also gives the ability for users to embed
Youtube videos, Spotify playlists and even other websites.
A mix of erlang and HTML in one webpage.

Feedback

Any feedback you may have about IErlang will be very helpful, and greatly
appreciated.
Send Feedback Here <http://robbie.lynch at outlook.com>
Download

It is available at <http://github.com/robbielynch/ierlang>
http://github.com/robbielynch/ierlang
What is it?

IErlang is a language kernel for IPython. This means that IPython uses an
erlang backend which allows users to:

   - Code and execute erlang expressions
   - Create erlang modules
   - Compile erlang modules
   - Execute and spawn module functions
   - Interact with the terminal

What else?

Best of all, these can be achieved within the web browser. On top of all
ofIPython?s front-end features such as:

   - Markdown rendering
   - HTML rendering
   - Prompt counters
   - Save notebooks for later use
   - Use version control on notebooks
   - Share notebooks with anyone using IPython?s
Nbviewer<http://nbviewer.ipython.org>

DEMO

You can view a sample IErlang Notebook
HERE<http://nbviewer.ipython.org/gist/anonymous/10775415>
Download

It is available at <http://github.com/robbielynch/ierlang>
http://github.com/robbielynch/ierlang


Best Regards,

Robbie Lynch

robbie.lynch at outlook.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140416/c314aa88/attachment.html>

From takowl at gmail.com  Wed Apr 16 12:55:06 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Wed, 16 Apr 2014 09:55:06 -0700
Subject: [IPython-dev] Fwd: Interactive Erlang Notebook for IPython
In-Reply-To: <CAEr3mq=NEd2Bfj20jb1X6cmkuT9UJcm3qbLen25mQxr5FGhJRw@mail.gmail.com>
References: <CAEr3mqk8OKu2oDjRLQnM1sT=DwDVJMbHKLR4XZ445--n6zPUNw@mail.gmail.com>
	<CAEr3mq=NEd2Bfj20jb1X6cmkuT9UJcm3qbLen25mQxr5FGhJRw@mail.gmail.com>
Message-ID: <CAOvn4qhptUP4nnevEvm6NMXurFkoUqwogCMc7UdUjABWYsQ0yw@mail.gmail.com>

Hi Robbie,

Thanks for this, it's great to see another compatible backend!

There are some changes to the message spec afoot, and we're asking for
input from the maintainers of other kernels. If you'd like to weigh in,
have a look at the discussion here:
https://github.com/ipython/ipython/pull/4536

Keep up the good work!

Thomas


On 16 April 2014 08:09, Robbie Lynch <robbie.lynch at outlook.com> wrote:

> Happy Wednesday!
>
> I?m here to announce the first release of IErlang Notebook (Alpha version).
>
> IErlang (an erlang language kernel for IPython) allows users to code,
> execute and/or compile erlang expressions and modules in the web browser.
> It allows users to render HTML and markdown on the same page as the erlang
> code (Using IPython's front-end). The notebook can even interact with the
> OS like any terminal and it also gives the ability for users to embed
> Youtube videos, Spotify playlists and even other websites.
> A mix of erlang and HTML in one webpage.
>
> Feedback
>
> Any feedback you may have about IErlang will be very helpful, and greatly
> appreciated.
> Send Feedback Here <http://robbie.lynch at outlook.com>
> Download
>
> It is available at <http://github.com/robbielynch/ierlang>
> http://github.com/robbielynch/ierlang
> What is it?
>
> IErlang is a language kernel for IPython. This means that IPython uses an
> erlang backend which allows users to:
>
>    - Code and execute erlang expressions
>    - Create erlang modules
>    - Compile erlang modules
>    - Execute and spawn module functions
>    - Interact with the terminal
>
> What else?
>
> Best of all, these can be achieved within the web browser. On top of all
> ofIPython?s front-end features such as:
>
>    - Markdown rendering
>    - HTML rendering
>    - Prompt counters
>    - Save notebooks for later use
>    - Use version control on notebooks
>    - Share notebooks with anyone using IPython?s Nbviewer<http://nbviewer.ipython.org>
>
> DEMO
>
> You can view a sample IErlang Notebook HERE<http://nbviewer.ipython.org/gist/anonymous/10775415>
> Download
>
> It is available at <http://github.com/robbielynch/ierlang>
> http://github.com/robbielynch/ierlang
>
>
> Best Regards,
>
> Robbie Lynch
>
> robbie.lynch at outlook.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/20140416/1876f4a0/attachment.html>

From benjaminrk at gmail.com  Wed Apr 16 15:04:30 2014
From: benjaminrk at gmail.com (MinRK)
Date: Wed, 16 Apr 2014 12:04:30 -0700
Subject: [IPython-dev] Message specification updates
Message-ID: <CAHNn8BVbFx6M30tnM9Bdip8k_QMDpKxh1N5JemtHi2HRRUAwnA@mail.gmail.com>

To all current and aspiring IPython kernel developers,

We are working on updating the message specification to clean up some of
the Python or IPython-specific bits, especially in completion and
introspection messages.

The IPEPs describing the proposed changes:

- [IPEP 13: msg spec updates](
https://github.com/ipython/ipython/wiki/IPEP-13%3A-Updating-the-Message-Spec
)
- [IPEP 24: completion and object_info](
https://github.com/ipython/ipython/wiki/IPEP-24%3A-completion-and-object_info
)
- The [Pull Request](https://github.com/ipython/ipython/pull/4536)
implementing the changes, where discussion should take place.

Now is the time to bring up problems that the message spec doesn't address
for you.

I will write a translator shim, so that kernels don't all need to update
right away, but that will come after the discussion on the proposed changes
has settled.

-MinRK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140416/681b75f9/attachment.html>

From tshead at sandia.gov  Wed Apr 16 16:22:22 2014
From: tshead at sandia.gov (Shead, Timothy)
Date: Wed, 16 Apr 2014 20:22:22 +0000
Subject: [IPython-dev] A fresh approach for plotting?
Message-ID: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>

Gang:

I am very new to IPython, but it?s had a profound impact on how I do my work, in a very short time.  Lately, I?ve been generating lots of animated plots using Matplotlib, and JSAnimation to embed them in my notebooks.  This works great, but the way JSAnimation does it (it embeds each frame of the matplotlib animation as a base64-encoded image into the HTML)  leads to excessively large notebooks - my animations typically weigh in around 40MB with this approach.  BTW, this is not a dig at Jake Vanderplas, who wrote JSAnimation - when I realized how he had integrated it into the IPython rich display, I was blown away by the possibilities :-)

So anyway, I?ve started working on a toy plotting library that generates SVG plots with animation, and integrates well with notebooks.  You can see and play-back a live demo at http://nbviewer.ipython.org/gist/anonymous/b7a626c3f6cac6d2be3b 

Even though it?s in the very early stages, I think that letting-go of bitmaps and targeting browser + SVG as the primary backend is an interesting new direction for a plotting library.  The results are lightweight, gorgeous on a retina display, and introduce new possibilities for interaction.  I?ll admit, it?s also a guilty pleasure to design my own API and get rid of the Matplotlib cruft ;-)  I?d be curious to get some opinions on whether this idea could have traction.  Is anyone else taking this approach? 

Many thanks,
Tim

Timothy M. Shead
Sandia National Laboratories
1461, Scalable Analysis and Visualization

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3216 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140416/6aa2f452/attachment.bin>

From jakevdp at cs.washington.edu  Wed Apr 16 16:49:47 2014
From: jakevdp at cs.washington.edu (Jacob Vanderplas)
Date: Wed, 16 Apr 2014 13:49:47 -0700
Subject: [IPython-dev] A fresh approach for plotting?
In-Reply-To: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
Message-ID: <CACpqBg0Bya+xpiA1eVSdqY9nYSdUty=CFNm7o9-Wh1SDCMuGaQ@mail.gmail.com>

Hi Tim,
This looks very cool! I've been thinking about animations using an approach
somewhat along these lines, and it's great to see a working prototype.
Do you have the tplot code anywhere public?
  Jake

 Jake VanderPlas
 Director of Research ? Physical Sciences
 eScience Institute, University of Washington
 http://www.vanderplas.com


On Wed, Apr 16, 2014 at 1:22 PM, Shead, Timothy <tshead at sandia.gov> wrote:

> Gang:
>
> I am very new to IPython, but it?s had a profound impact on how I do my
> work, in a very short time.  Lately, I?ve been generating lots of animated
> plots using Matplotlib, and JSAnimation to embed them in my notebooks.
>  This works great, but the way JSAnimation does it (it embeds each frame of
> the matplotlib animation as a base64-encoded image into the HTML)  leads to
> excessively large notebooks - my animations typically weigh in around 40MB
> with this approach.  BTW, this is not a dig at Jake Vanderplas, who wrote
> JSAnimation - when I realized how he had integrated it into the IPython
> rich display, I was blown away by the possibilities :-)
>
> So anyway, I?ve started working on a toy plotting library that generates
> SVG plots with animation, and integrates well with notebooks.  You can see
> and play-back a live demo at
> http://nbviewer.ipython.org/gist/anonymous/b7a626c3f6cac6d2be3b
>
> Even though it?s in the very early stages, I think that letting-go of
> bitmaps and targeting browser + SVG as the primary backend is an
> interesting new direction for a plotting library.  The results are
> lightweight, gorgeous on a retina display, and introduce new possibilities
> for interaction.  I?ll admit, it?s also a guilty pleasure to design my own
> API and get rid of the Matplotlib cruft ;-)  I?d be curious to get some
> opinions on whether this idea could have traction.  Is anyone else taking
> this approach?
>
> Many thanks,
> Tim
>
> Timothy M. Shead
> Sandia National Laboratories
> 1461, Scalable Analysis and Visualization
>
>
> _______________________________________________
> 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/20140416/c54a743c/attachment.html>

From bussonniermatthias at gmail.com  Wed Apr 16 16:52:11 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Wed, 16 Apr 2014 16:52:11 -0400
Subject: [IPython-dev] A fresh approach for plotting?
In-Reply-To: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
Message-ID: <9868D299-C9ED-4F03-B2F6-AFD9E634FF07@gmail.com>

Hi Tim !

This is really nice. 

Have you seen mpld3 from Jake Van der Plas, and spoke with the people from plot.ly ? 
They might be interested in sharing somme common codebase. 

We are also working on having persistent data for widget in future release of IPython, 
your use case will be interesting for us ! 

-- 
Matthias


Le 16 avr. 2014 ? 16:22, Shead, Timothy a ?crit :

> Gang:
> 
> I am very new to IPython, but it?s had a profound impact on how I do my work, in a very short time.  Lately, I?ve been generating lots of animated plots using Matplotlib, and JSAnimation to embed them in my notebooks.  This works great, but the way JSAnimation does it (it embeds each frame of the matplotlib animation as a base64-encoded image into the HTML)  leads to excessively large notebooks - my animations typically weigh in around 40MB with this approach.  BTW, this is not a dig at Jake Vanderplas, who wrote JSAnimation - when I realized how he had integrated it into the IPython rich display, I was blown away by the possibilities :-)
> 
> So anyway, I?ve started working on a toy plotting library that generates SVG plots with animation, and integrates well with notebooks.  You can see and play-back a live demo at http://nbviewer.ipython.org/gist/anonymous/b7a626c3f6cac6d2be3b 
> 
> Even though it?s in the very early stages, I think that letting-go of bitmaps and targeting browser + SVG as the primary backend is an interesting new direction for a plotting library.  The results are lightweight, gorgeous on a retina display, and introduce new possibilities for interaction.  I?ll admit, it?s also a guilty pleasure to design my own API and get rid of the Matplotlib cruft ;-)  I?d be curious to get some opinions on whether this idea could have traction.  Is anyone else taking this approach? 
> 
> Many thanks,
> Tim
> 
> Timothy M. Shead
> Sandia National Laboratories
> 1461, Scalable Analysis and Visualization
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From tshead at sandia.gov  Wed Apr 16 16:56:11 2014
From: tshead at sandia.gov (Shead, Timothy)
Date: Wed, 16 Apr 2014 20:56:11 +0000
Subject: [IPython-dev] [EXTERNAL] Re:  A fresh approach for plotting?
In-Reply-To: <CACpqBg0Bya+xpiA1eVSdqY9nYSdUty=CFNm7o9-Wh1SDCMuGaQ@mail.gmail.com>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
	<CACpqBg0Bya+xpiA1eVSdqY9nYSdUty=CFNm7o9-Wh1SDCMuGaQ@mail.gmail.com>
Message-ID: <1A7F6C79-8260-47AF-95BB-5B46B52D9376@sandia.gov>

Jake:

Unfortunately, I have to get permission to release the source - I wanted to judge the level of interest before taking the plunge.

Cheers,
Tim  

On Apr 16, 2014, at 2:49 PM, Jacob Vanderplas <jakevdp at cs.washington.edu> wrote:

> Hi Tim,
> This looks very cool! I've been thinking about animations using an approach somewhat along these lines, and it's great to see a working prototype.
> Do you have the tplot code anywhere public?
>   Jake
> 
>  Jake VanderPlas
>  Director of Research ? Physical Sciences
>  eScience Institute, University of Washington
>  http://www.vanderplas.com
> 
> 
> On Wed, Apr 16, 2014 at 1:22 PM, Shead, Timothy <tshead at sandia.gov> wrote:
> Gang:
> 
> I am very new to IPython, but it?s had a profound impact on how I do my work, in a very short time.  Lately, I?ve been generating lots of animated plots using Matplotlib, and JSAnimation to embed them in my notebooks.  This works great, but the way JSAnimation does it (it embeds each frame of the matplotlib animation as a base64-encoded image into the HTML)  leads to excessively large notebooks - my animations typically weigh in around 40MB with this approach.  BTW, this is not a dig at Jake Vanderplas, who wrote JSAnimation - when I realized how he had integrated it into the IPython rich display, I was blown away by the possibilities :-)
> 
> So anyway, I?ve started working on a toy plotting library that generates SVG plots with animation, and integrates well with notebooks.  You can see and play-back a live demo at http://nbviewer.ipython.org/gist/anonymous/b7a626c3f6cac6d2be3b
> 
> Even though it?s in the very early stages, I think that letting-go of bitmaps and targeting browser + SVG as the primary backend is an interesting new direction for a plotting library.  The results are lightweight, gorgeous on a retina display, and introduce new possibilities for interaction.  I?ll admit, it?s also a guilty pleasure to design my own API and get rid of the Matplotlib cruft ;-)  I?d be curious to get some opinions on whether this idea could have traction.  Is anyone else taking this approach?
> 
> Many thanks,
> Tim
> 
> Timothy M. Shead
> Sandia National Laboratories
> 1461, Scalable Analysis and Visualization
> 
> 
> _______________________________________________
> 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

Timothy M. Shead
Sandia National Laboratories
1461, Scalable Analysis and Visualization

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140416/849c7f5f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3216 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140416/849c7f5f/attachment.bin>

From tshead at sandia.gov  Wed Apr 16 16:58:51 2014
From: tshead at sandia.gov (Shead, Timothy)
Date: Wed, 16 Apr 2014 20:58:51 +0000
Subject: [IPython-dev] [EXTERNAL] Re:  A fresh approach for plotting?
In-Reply-To: <9868D299-C9ED-4F03-B2F6-AFD9E634FF07@gmail.com>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
	<9868D299-C9ED-4F03-B2F6-AFD9E634FF07@gmail.com>
Message-ID: <0DDCE823-D252-4610-8BE6-68485CBDB628@sandia.gov>

Matthias:

I will definitely check these out.  I?m also going to ping the matplotlib folks to see if they?ve considered an SVG backend.  If they did, I probably wouldn?t fight it :)

Cheers,
Tim

On Apr 16, 2014, at 2:52 PM, Matthias BUSSONNIER <bussonniermatthias at gmail.com> wrote:

> Hi Tim !
> 
> This is really nice. 
> 
> Have you seen mpld3 from Jake Van der Plas, and spoke with the people from plot.ly ? 
> They might be interested in sharing somme common codebase. 
> 
> We are also working on having persistent data for widget in future release of IPython, 
> your use case will be interesting for us ! 
> 
> -- 
> Matthias
> 
> 
> Le 16 avr. 2014 ? 16:22, Shead, Timothy a ?crit :
> 
>> Gang:
>> 
>> I am very new to IPython, but it?s had a profound impact on how I do my work, in a very short time.  Lately, I?ve been generating lots of animated plots using Matplotlib, and JSAnimation to embed them in my notebooks.  This works great, but the way JSAnimation does it (it embeds each frame of the matplotlib animation as a base64-encoded image into the HTML)  leads to excessively large notebooks - my animations typically weigh in around 40MB with this approach.  BTW, this is not a dig at Jake Vanderplas, who wrote JSAnimation - when I realized how he had integrated it into the IPython rich display, I was blown away by the possibilities :-)
>> 
>> So anyway, I?ve started working on a toy plotting library that generates SVG plots with animation, and integrates well with notebooks.  You can see and play-back a live demo at http://nbviewer.ipython.org/gist/anonymous/b7a626c3f6cac6d2be3b 
>> 
>> Even though it?s in the very early stages, I think that letting-go of bitmaps and targeting browser + SVG as the primary backend is an interesting new direction for a plotting library.  The results are lightweight, gorgeous on a retina display, and introduce new possibilities for interaction.  I?ll admit, it?s also a guilty pleasure to design my own API and get rid of the Matplotlib cruft ;-)  I?d be curious to get some opinions on whether this idea could have traction.  Is anyone else taking this approach? 
>> 
>> Many thanks,
>> Tim
>> 
>> Timothy M. Shead
>> Sandia National Laboratories
>> 1461, Scalable Analysis and Visualization
>> 
>> _______________________________________________
>> 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

Timothy M. Shead
Sandia National Laboratories
1461, Scalable Analysis and Visualization

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3216 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140416/e14cd4f9/attachment.bin>

From pi at berkeley.edu  Wed Apr 16 17:41:02 2014
From: pi at berkeley.edu (Paul Ivanov)
Date: Wed, 16 Apr 2014 14:41:02 -0700
Subject: [IPython-dev] [EXTERNAL] Re:  A fresh approach for plotting?
In-Reply-To: <0DDCE823-D252-4610-8BE6-68485CBDB628@sandia.gov>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
	<9868D299-C9ED-4F03-B2F6-AFD9E634FF07@gmail.com>
	<0DDCE823-D252-4610-8BE6-68485CBDB628@sandia.gov>
Message-ID: <20140416214102.GB15703@HbI-OTOH.berkeley.edu>

Shead, Timothy, on 2014-04-16 20:58,  wrote:
> I will definitely check these out.  I?m also going to ping the
> matplotlib folks to see if they?ve considered an SVG backend.
> If they did, I probably wouldn?t fight it :)

matplotlib has an SVG backend, here's how you use it in the
notebook:

    %matplotlib inline 
    import matplotlib.pyplot as plt
    import numpy as np
    from IPython.display import set_matplotlib_formats
    set_matplotlib_formats('svg')
    x,y,z,c = np.random.randn(4, 20)
    plt.scatter(x,y, s=np.abs(z)*100, c=c)

http://nbviewer.ipython.org/gist/ivanov/10935754

best,
-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org


From tshead at sandia.gov  Wed Apr 16 18:22:30 2014
From: tshead at sandia.gov (Shead, Timothy)
Date: Wed, 16 Apr 2014 22:22:30 +0000
Subject: [IPython-dev] [EXTERNAL] Re:  A fresh approach for plotting?
In-Reply-To: <20140416214102.GB15703@HbI-OTOH.berkeley.edu>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
	<9868D299-C9ED-4F03-B2F6-AFD9E634FF07@gmail.com>
	<0DDCE823-D252-4610-8BE6-68485CBDB628@sandia.gov>
	<20140416214102.GB15703@HbI-OTOH.berkeley.edu>
Message-ID: <FA1F1690-B2AE-44F4-B47D-1E6ACE16CDD8@sandia.gov>

Paul:

Many thanks for this, I was just trying (unsuccessfully) to get the matplotlib SVG backend working in a notebook.  Now that I know it?s there, I plan to fight it ;-)

All kidding aside, this really highlights / clarifies what is & isn?t different about my approach: what I?m doing is building an API than can capture an explicit, abstract representation of what?s changing in the plot from one animation frame to the next.  It?s like a video codec that only stores the pixels that change from frame-to-frame, except I?m storing a compact representation of API calls instead of pixels.  With that information, I can generate a sequence of bitmap images which is nothing new, or a video which is also nothing new, or (this is new part) one SVG plus JavaScript to manipulate it during playback.

Matthias:

I?m not sure whether I grok plot.ly, but it seems to require sending my data to someone else?s server, which is a complete nonstarter for me.

Cheers,
Tim

On Apr 16, 2014, at 3:41 PM, Paul Ivanov <pi at berkeley.edu> wrote:

> Shead, Timothy, on 2014-04-16 20:58,  wrote:
>> I will definitely check these out.  I?m also going to ping the
>> matplotlib folks to see if they?ve considered an SVG backend.
>> If they did, I probably wouldn?t fight it :)
> 
> matplotlib has an SVG backend, here's how you use it in the
> notebook:
> 
>    %matplotlib inline 
>    import matplotlib.pyplot as plt
>    import numpy as np
>    from IPython.display import set_matplotlib_formats
>    set_matplotlib_formats('svg')
>    x,y,z,c = np.random.randn(4, 20)
>    plt.scatter(x,y, s=np.abs(z)*100, c=c)
> 
> http://nbviewer.ipython.org/gist/ivanov/10935754
> 
> 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

Timothy M. Shead
Sandia National Laboratories
1461, Scalable Analysis and Visualization

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3216 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140416/4ee8b611/attachment.bin>

From pi at berkeley.edu  Wed Apr 16 18:49:30 2014
From: pi at berkeley.edu (Paul Ivanov)
Date: Wed, 16 Apr 2014 15:49:30 -0700
Subject: [IPython-dev] [EXTERNAL] Re:  A fresh approach for plotting?
In-Reply-To: <FA1F1690-B2AE-44F4-B47D-1E6ACE16CDD8@sandia.gov>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
	<9868D299-C9ED-4F03-B2F6-AFD9E634FF07@gmail.com>
	<0DDCE823-D252-4610-8BE6-68485CBDB628@sandia.gov>
	<20140416214102.GB15703@HbI-OTOH.berkeley.edu>
	<FA1F1690-B2AE-44F4-B47D-1E6ACE16CDD8@sandia.gov>
Message-ID: <20140416224930.GE15703@HbI-OTOH.berkeley.edu>

Shead, Timothy, on 2014-04-16 22:22,  wrote:
> Many thanks for this, I was just trying (unsuccessfully) to get
> the matplotlib SVG backend working in a notebook.  Now that I
> know it?s there, I plan to fight it ;-)

We few, we happy few, we band of brothers.

In case these weren't on your radar, you should also be aware of 
the animation API in matplotlib  as well as the newer WebAgg
backend. 
http://matplotlib.org/1.3.1/users/whats_new.html#animation
http://matplotlib.org/1.3.1/users/whats_new.html#webagg-backend

I encourage you to start a thread on the matplotlib list about
what you've got so far and what you're thinking of.

best,
-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org


From jon.freder at gmail.com  Wed Apr 16 20:44:00 2014
From: jon.freder at gmail.com (Jonathan Frederic)
Date: Wed, 16 Apr 2014 17:44:00 -0700
Subject: [IPython-dev] Updating saved cell content with widgets
In-Reply-To: <CA+L60sB_2N0rfaWtNAiHr0CtgtAK8Wu1ciq0Dns7DhkXxF9-Yw@mail.gmail.com>
References: <CA+L60sB_2N0rfaWtNAiHr0CtgtAK8Wu1ciq0Dns7DhkXxF9-Yw@mail.gmail.com>
Message-ID: <CAAoBLw0vq+mYXehpvsD11-FkJJkWvS3NW4FS7VGtHKtQtyhmdA@mail.gmail.com>

Hi Phil,

Static widgets are on the roadmap for IPython 3.0; however, the print value
(stdout) should be saved in the notebook and visible upon export via
nbconvert (or download as).  After changing your slider, did you explicitly
save by clicking Ctrl+S or File>Save and Checkpoint... ?  If the stdout is
still not being stored, we will need to file an issue on Github.

Cheers,
Jon


On Wed, Apr 16, 2014 at 12:00 AM, Phil Elson <pelson.pub at gmail.com> wrote:

> I've been playing with the slider widget and have defined a callback along
> the lines of:
>
>
> from IPython.html import widgets
> slider = widgets.IntSliderWidget(min=-20, max=20, value=10)
>
> def on_value_change(name, value):
>     from IPython.core.display import clear_output
>     clear_output(wait=True)
>     print 'Current value:', value
> slider.on_trait_change(on_value_change, 'value')
>
>
> The problem with this though is that when I save the notebook, neither the
> slider nor the printed value are stored in the notebook file on save. Is
> there a way to update the content of the stored cell either from within the
> callback, or via an alternative hook?
>
> The answer might be identical, but I'm also working on my own widget which
> I would like to save a static representation of inside the notebook file
> (as HTML). Is there an "on-save" hook I can attach a callback to to convert
> my dynamic widget into a static on at save time?
>
> Cheers!
>
> Phil
>
> _______________________________________________
> 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/20140416/b03d02f5/attachment.html>

From Susan.tan.fleckerl at gmail.com  Wed Apr 16 21:46:35 2014
From: Susan.tan.fleckerl at gmail.com (Susan Tan)
Date: Wed, 16 Apr 2014 21:46:35 -0400
Subject: [IPython-dev] Questions on submitting a new IPEP?
Message-ID: <CAEZxbwgKmK_d_k52tMn5GhJ7uMNQmCFJSLbZScKXfxagO7ySkA@mail.gmail.com>

Hello IPython Core Devs,

I have a question about writing a new IPEP, because an issue related to
keyboard shortcuts has popped up here:
https://github.com/ipython/ipython/pull/5634

I'm not quite sure how to write a good IPEP, because I've only been around
this project for a short time and don't really know the context behind the
consequences of doing a refactor and what parts of the code base this may
affect. If there's consensus here that a new IPEP is appropriate to address
the above github issue, would anyone here be willing to co-write one with
me?

-- 
Susan Tan
Software Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140416/447324c0/attachment.html>

From pelson.pub at gmail.com  Thu Apr 17 05:33:14 2014
From: pelson.pub at gmail.com (Phil Elson)
Date: Thu, 17 Apr 2014 10:33:14 +0100
Subject: [IPython-dev] Updating saved cell content with widgets
In-Reply-To: <CAAoBLw0vq+mYXehpvsD11-FkJJkWvS3NW4FS7VGtHKtQtyhmdA@mail.gmail.com>
References: <CA+L60sB_2N0rfaWtNAiHr0CtgtAK8Wu1ciq0Dns7DhkXxF9-Yw@mail.gmail.com>
	<CAAoBLw0vq+mYXehpvsD11-FkJJkWvS3NW4FS7VGtHKtQtyhmdA@mail.gmail.com>
Message-ID: <CA+L60sCyGq9er+rVQD4Ch2BE6Ts-4f9zdPDDHXG+XMmpf6pz7A@mail.gmail.com>

Thanks Jon,

You're right - it does save the output. For anybody who finds this email in
the future, the event I was looking for to hook into was
'notebook_saving.Notebook'.

I think I have all the pieces now.

Cheers,


On 17 April 2014 01:44, Jonathan Frederic <jon.freder at gmail.com> wrote:

> Hi Phil,
>
> Static widgets are on the roadmap for IPython 3.0; however, the print
> value (stdout) should be saved in the notebook and visible upon export via
> nbconvert (or download as).  After changing your slider, did you explicitly
> save by clicking Ctrl+S or File>Save and Checkpoint... ?  If the stdout is
> still not being stored, we will need to file an issue on Github.
>
> Cheers,
> Jon
>
>
> On Wed, Apr 16, 2014 at 12:00 AM, Phil Elson <pelson.pub at gmail.com> wrote:
>
>> I've been playing with the slider widget and have defined a callback
>> along the lines of:
>>
>>
>> from IPython.html import widgets
>> slider = widgets.IntSliderWidget(min=-20, max=20, value=10)
>>
>> def on_value_change(name, value):
>>     from IPython.core.display import clear_output
>>     clear_output(wait=True)
>>     print 'Current value:', value
>> slider.on_trait_change(on_value_change, 'value')
>>
>>
>> The problem with this though is that when I save the notebook, neither
>> the slider nor the printed value are stored in the notebook file on save.
>> Is there a way to update the content of the stored cell either from within
>> the callback, or via an alternative hook?
>>
>> The answer might be identical, but I'm also working on my own widget
>> which I would like to save a static representation of inside the notebook
>> file (as HTML). Is there an "on-save" hook I can attach a callback to to
>> convert my dynamic widget into a static on at save time?
>>
>> Cheers!
>>
>> Phil
>>
>> _______________________________________________
>> 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/20140417/4f838ec6/attachment.html>

From pelson.pub at gmail.com  Thu Apr 17 06:42:56 2014
From: pelson.pub at gmail.com (Phil Elson)
Date: Thu, 17 Apr 2014 11:42:56 +0100
Subject: [IPython-dev] Updating saved cell content with widgets
In-Reply-To: <CA+L60sCyGq9er+rVQD4Ch2BE6Ts-4f9zdPDDHXG+XMmpf6pz7A@mail.gmail.com>
References: <CA+L60sB_2N0rfaWtNAiHr0CtgtAK8Wu1ciq0Dns7DhkXxF9-Yw@mail.gmail.com>
	<CAAoBLw0vq+mYXehpvsD11-FkJJkWvS3NW4FS7VGtHKtQtyhmdA@mail.gmail.com>
	<CA+L60sCyGq9er+rVQD4Ch2BE6Ts-4f9zdPDDHXG+XMmpf6pz7A@mail.gmail.com>
Message-ID: <CA+L60sDBvDT=jf5hWF=RLSqR-oUWSdagsYcf_5rigCO6yxms=g@mail.gmail.com>

Ah, I spoke too soon. It seems the "notebook_saving.Notebook" event occurs
*after* notebook serialisation (but before the data is actually sent to the
server). The code is
https://github.com/ipython/ipython/blob/master/IPython/html/static/notebook/js/notebook.js#L1759
.

Is this a bug? Shouldn't the event be triggered before the JSON-ification
takes place on 1739?



On 17 April 2014 10:33, Phil Elson <pelson.pub at gmail.com> wrote:

> Thanks Jon,
>
> You're right - it does save the output. For anybody who finds this email
> in the future, the event I was looking for to hook into was
> 'notebook_saving.Notebook'.
>
> I think I have all the pieces now.
>
> Cheers,
>
>
> On 17 April 2014 01:44, Jonathan Frederic <jon.freder at gmail.com> wrote:
>
>> Hi Phil,
>>
>> Static widgets are on the roadmap for IPython 3.0; however, the print
>> value (stdout) should be saved in the notebook and visible upon export via
>> nbconvert (or download as).  After changing your slider, did you explicitly
>> save by clicking Ctrl+S or File>Save and Checkpoint... ?  If the stdout is
>> still not being stored, we will need to file an issue on Github.
>>
>> Cheers,
>> Jon
>>
>>
>> On Wed, Apr 16, 2014 at 12:00 AM, Phil Elson <pelson.pub at gmail.com>wrote:
>>
>>> I've been playing with the slider widget and have defined a callback
>>> along the lines of:
>>>
>>>
>>> from IPython.html import widgets
>>> slider = widgets.IntSliderWidget(min=-20, max=20, value=10)
>>>
>>> def on_value_change(name, value):
>>>     from IPython.core.display import clear_output
>>>     clear_output(wait=True)
>>>     print 'Current value:', value
>>> slider.on_trait_change(on_value_change, 'value')
>>>
>>>
>>> The problem with this though is that when I save the notebook, neither
>>> the slider nor the printed value are stored in the notebook file on save.
>>> Is there a way to update the content of the stored cell either from within
>>> the callback, or via an alternative hook?
>>>
>>> The answer might be identical, but I'm also working on my own widget
>>> which I would like to save a static representation of inside the notebook
>>> file (as HTML). Is there an "on-save" hook I can attach a callback to to
>>> convert my dynamic widget into a static on at save time?
>>>
>>> Cheers!
>>>
>>> Phil
>>>
>>> _______________________________________________
>>> 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/20140417/9928f38a/attachment.html>

From fperez.net at gmail.com  Thu Apr 17 12:24:30 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Thu, 17 Apr 2014 09:24:30 -0700
Subject: [IPython-dev] Fwd: Interactive Erlang Notebook for IPython
In-Reply-To: <CAEr3mq=NEd2Bfj20jb1X6cmkuT9UJcm3qbLen25mQxr5FGhJRw@mail.gmail.com>
References: <CAEr3mqk8OKu2oDjRLQnM1sT=DwDVJMbHKLR4XZ445--n6zPUNw@mail.gmail.com>
	<CAEr3mq=NEd2Bfj20jb1X6cmkuT9UJcm3qbLen25mQxr5FGhJRw@mail.gmail.com>
Message-ID: <CAHAreOrcR6h_2nJUxP4Ex0WjP9Webr2Yn32V24en5eoNHSZyqA@mail.gmail.com>

Hi Robbie,



On Wed, Apr 16, 2014 at 8:09 AM, Robbie Lynch <robbie.lynch at outlook.com>wrote:

> Happy Wednesday!
>
> I?m here to announce the first release of IErlang Notebook (Alpha version).
>

I just wanted to thank you for your work on this! We're thrilled to see
further progress on new language kernels. By all means pitch in on the
discussion regarding the formalization of a kernel spec, so 3.0 can provide
really good support to all non-python kernels.

Cheers,

f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140417/2bd987f0/attachment.html>

From fperez.net at gmail.com  Thu Apr 17 12:38:34 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Thu, 17 Apr 2014 09:38:34 -0700
Subject: [IPython-dev] A fresh approach for plotting?
In-Reply-To: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
Message-ID: <CAHAreOpNrqv5wmDwkRVUkVXVoVndvh4ZW6Hyar7WtRLiu3ZADA@mail.gmail.com>

On Wed, Apr 16, 2014 at 1:22 PM, Shead, Timothy <tshead at sandia.gov> wrote:

> So anyway, I?ve started working on a toy plotting library that generates
> SVG plots with animation, and integrates well with notebooks.  You can see
> and play-back a live demo at
> http://nbviewer.ipython.org/gist/anonymous/b7a626c3f6cac6d2be3b
>

That is very, very cool, thanks for sharing.

I'd suggest you run with it to see how it evolves, but do keep a dialog
open with the various other viz projects going around.

We seem to be in a phase of inflationary explosion right now regarding viz
tools that target smart backends coupled to web frontends (whether through
ipython or via custom servers).  It's pretty much impossible to predict
what's going to gain traction once the dust settles in a few years, so I'd
be the last to try to favor any one project right now. It's going to take a
complex combination of api design, robustness, performance, quality, ease
of use, project management and dumb luck for one or a few of these options
to become widely accepted.

>From IPython's perspective, what we mostly want to learn is where we may
have created inadvertently limitations or hassles for tools like these to
be built. If that's the case, we fix it. Otherwise, we just want to let all
the players try things out, and see what happens!

Do keep in mind that, as has been mentioned already, we do have concrete
plans for static widgets that would not be stored in the notebook file
itself.  But that work is still on the future horizon.

Cheers

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

From takowl at gmail.com  Thu Apr 17 15:16:01 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Thu, 17 Apr 2014 12:16:01 -0700
Subject: [IPython-dev] Kernel authors: new kernel registry spec for comment
Message-ID: <CAOvn4qg3xVKt=7j51B_bfmsx8cFgSvZoq+BPheR6AVg738dxmQ@mail.gmail.com>

Hi all,

For IPython 3, we plan to have a registry of installed kernels, so you can
launch different kernels directly from the notebook UI, rather than having
to specify the kernel for the entire server at the command line. We've
started defining how this will work in IPEP 25, and we'd like to invite
feedback from the authors of other kernels.

IPEP 25:
https://github.com/ipython/ipython/wiki/IPEP-25:-Registry-of-installed-kernels
Discussion: https://github.com/ipython/ipython/issues/5656

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140417/24cefc52/attachment.html>

From tritemio at gmail.com  Fri Apr 18 01:57:56 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Thu, 17 Apr 2014 22:57:56 -0700
Subject: [IPython-dev] Text output from matplotlib event not shown
Message-ID: <CANn2QUxYt1gRGu_zQwwfTUYg1Vbz=m0XeAdtDUsy1xk_N9oAaQ@mail.gmail.com>

Hi,

in IPython Notebook 1.x I built some QT matplotlib plots that allow to
select a range (with the mouse) and print to the range boundaries, or
related information.

To do that I connect a callback to the standard matplotlib events. The
callback draws a range highlight and prints the range info.

In IPython 2.0 I can't get the print output anymore, although the range is
drawn and therefore I'm sure the callback is called. I thought that the
issue can be related to:

https://github.com/ipython/ipython/issues/5408

If this is the same issue, are they any workaround I can use to get the
output back?

For completeness I attach the main class I use for the interactive range
selection:

class GuiSelection(object):
    """Abstract class for range selection.

    Methods on_press_draw(), on_motion_draw() and on_release_print() must
    be overloaded by children classes.
    """
    def __init__(self, fig, ax, debug=False):
        self.ax = ax
        self.fig = fig
        self.pressed = False
        self.debug = debug
        self.id_press = fig.canvas.mpl_connect('button_press_event',
                                                self.on_press)
        if self.debug:
            print 'Figure:', fig, '\nAxis:', ax
    def on_press(self, event):
        if event.inaxes != self.ax: return
        self.pressed = True
        self.xs, self.ys = event.xdata, event.ydata
        if self.debug:
            pprint('PRESS button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n' % (
                event.button, event.x, event.y, event.xdata, event.ydata))
        self.on_press_draw()
        self.fig.canvas.draw()
        self.id_motion = self.fig.canvas.mpl_connect('motion_notify_event',
                                                     self.on_motion)
        self.fig.canvas.mpl_connect('button_release_event',
                                             self.on_release)

    def on_motion(self, event):
        if event.inaxes != self.ax: return
        if self.debug:
            pprint('MOTION x=%d, y=%d, xdata=%f, ydata=%f\n' % (
                event.x, event.y, event.xdata, event.ydata))
        self.xe, self.ye = event.xdata, event.ydata
        self.on_motion_draw()
        self.fig.canvas.draw()

    def on_release(self, event):
        if not self.pressed: return
        self.pressed = False
        if self.debug:
            pprint('RELEASE button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n' % (
                event.button, event.x, event.y, event.xdata, event.ydata))
        self.fig.canvas.mpl_disconnect(self.id_motion)
        self.on_release_print()

    def on_press_draw(self):
        pass

    def on_motion_draw(self):
        pass

    def on_release_print(self):
        pass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140417/473ce656/attachment.html>

From tritemio at gmail.com  Fri Apr 18 02:56:54 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Thu, 17 Apr 2014 23:56:54 -0700
Subject: [IPython-dev] Text output from matplotlib event not shown
In-Reply-To: <CANn2QUxYt1gRGu_zQwwfTUYg1Vbz=m0XeAdtDUsy1xk_N9oAaQ@mail.gmail.com>
References: <CANn2QUxYt1gRGu_zQwwfTUYg1Vbz=m0XeAdtDUsy1xk_N9oAaQ@mail.gmail.com>
Message-ID: <CANn2QUwLf0xfXy=ZTQ=EcMEPzdmVD9Css8V_9GcXXvHqdOw7qw@mail.gmail.com>

For the record, I tried running the plot from a qtconsole and the text
output is correctly printed. So it is a notebook specific issue.

Antonio


On Thu, Apr 17, 2014 at 10:57 PM, Antonino Ingargiola <tritemio at gmail.com>wrote:

> Hi,
>
> in IPython Notebook 1.x I built some QT matplotlib plots that allow to
> select a range (with the mouse) and print to the range boundaries, or
> related information.
>
> To do that I connect a callback to the standard matplotlib events. The
> callback draws a range highlight and prints the range info.
>
> In IPython 2.0 I can't get the print output anymore, although the range is
> drawn and therefore I'm sure the callback is called. I thought that the
> issue can be related to:
>
> https://github.com/ipython/ipython/issues/5408
>
> If this is the same issue, are they any workaround I can use to get the
> output back?
>
> For completeness I attach the main class I use for the interactive range
> selection:
>
> class GuiSelection(object):
>     """Abstract class for range selection.
>
>     Methods on_press_draw(), on_motion_draw() and on_release_print() must
>     be overloaded by children classes.
>     """
>     def __init__(self, fig, ax, debug=False):
>         self.ax = ax
>         self.fig = fig
>         self.pressed = False
>         self.debug = debug
>         self.id_press = fig.canvas.mpl_connect('button_press_event',
>                                                 self.on_press)
>         if self.debug:
>             print 'Figure:', fig, '\nAxis:', ax
>     def on_press(self, event):
>         if event.inaxes != self.ax: return
>         self.pressed = True
>         self.xs, self.ys = event.xdata, event.ydata
>         if self.debug:
>             pprint('PRESS button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n' % (
>                 event.button, event.x, event.y, event.xdata, event.ydata))
>         self.on_press_draw()
>         self.fig.canvas.draw()
>         self.id_motion = self.fig.canvas.mpl_connect('motion_notify_event',
>                                                      self.on_motion)
>         self.fig.canvas.mpl_connect('button_release_event',
>                                              self.on_release)
>
>     def on_motion(self, event):
>         if event.inaxes != self.ax: return
>         if self.debug:
>             pprint('MOTION x=%d, y=%d, xdata=%f, ydata=%f\n' % (
>                 event.x, event.y, event.xdata, event.ydata))
>         self.xe, self.ye = event.xdata, event.ydata
>         self.on_motion_draw()
>         self.fig.canvas.draw()
>
>     def on_release(self, event):
>         if not self.pressed: return
>         self.pressed = False
>         if self.debug:
>             pprint('RELEASE button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n' %
> (
>                 event.button, event.x, event.y, event.xdata, event.ydata))
>         self.fig.canvas.mpl_disconnect(self.id_motion)
>         self.on_release_print()
>
>     def on_press_draw(self):
>         pass
>
>     def on_motion_draw(self):
>         pass
>
>     def on_release_print(self):
>         pass
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140417/b9597822/attachment.html>

From benjaminrk at gmail.com  Fri Apr 18 13:32:04 2014
From: benjaminrk at gmail.com (MinRK)
Date: Fri, 18 Apr 2014 10:32:04 -0700
Subject: [IPython-dev] Text output from matplotlib event not shown
In-Reply-To: <CANn2QUwLf0xfXy=ZTQ=EcMEPzdmVD9Css8V_9GcXXvHqdOw7qw@mail.gmail.com>
References: <CANn2QUxYt1gRGu_zQwwfTUYg1Vbz=m0XeAdtDUsy1xk_N9oAaQ@mail.gmail.com>
	<CANn2QUwLf0xfXy=ZTQ=EcMEPzdmVD9Css8V_9GcXXvHqdOw7qw@mail.gmail.com>
Message-ID: <CAHNn8BXSWR8Yi=SNBV0uHLP2zaK0D15=3+Rbbf+D+4VKydmrVA@mail.gmail.com>

This is open as a GitHub Issue<https://github.com/ipython/ipython/issues/5407>.
As a result of cleaning up data structures when we think we are done, async
output is lost.

-MinRK


On Thu, Apr 17, 2014 at 11:56 PM, Antonino Ingargiola <tritemio at gmail.com>wrote:

> For the record, I tried running the plot from a qtconsole and the text
> output is correctly printed. So it is a notebook specific issue.
>
> Antonio
>
>
> On Thu, Apr 17, 2014 at 10:57 PM, Antonino Ingargiola <tritemio at gmail.com>wrote:
>
>> Hi,
>>
>> in IPython Notebook 1.x I built some QT matplotlib plots that allow to
>> select a range (with the mouse) and print to the range boundaries, or
>> related information.
>>
>>  To do that I connect a callback to the standard matplotlib events. The
>> callback draws a range highlight and prints the range info.
>>
>> In IPython 2.0 I can't get the print output anymore, although the range
>> is drawn and therefore I'm sure the callback is called. I thought that the
>> issue can be related to:
>>
>> https://github.com/ipython/ipython/issues/5408
>>
>> If this is the same issue, are they any workaround I can use to get the
>> output back?
>>
>> For completeness I attach the main class I use for the interactive range
>> selection:
>>
>> class GuiSelection(object):
>>     """Abstract class for range selection.
>>
>>     Methods on_press_draw(), on_motion_draw() and on_release_print() must
>>     be overloaded by children classes.
>>     """
>>     def __init__(self, fig, ax, debug=False):
>>         self.ax = ax
>>         self.fig = fig
>>         self.pressed = False
>>         self.debug = debug
>>         self.id_press = fig.canvas.mpl_connect('button_press_event',
>>                                                 self.on_press)
>>         if self.debug:
>>             print 'Figure:', fig, '\nAxis:', ax
>>     def on_press(self, event):
>>         if event.inaxes != self.ax: return
>>         self.pressed = True
>>         self.xs, self.ys = event.xdata, event.ydata
>>         if self.debug:
>>             pprint('PRESS button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n' % (
>>                 event.button, event.x, event.y, event.xdata, event.ydata))
>>         self.on_press_draw()
>>         self.fig.canvas.draw()
>>         self.id_motion =
>> self.fig.canvas.mpl_connect('motion_notify_event',
>>                                                      self.on_motion)
>>         self.fig.canvas.mpl_connect('button_release_event',
>>                                              self.on_release)
>>
>>     def on_motion(self, event):
>>         if event.inaxes != self.ax: return
>>         if self.debug:
>>             pprint('MOTION x=%d, y=%d, xdata=%f, ydata=%f\n' % (
>>                 event.x, event.y, event.xdata, event.ydata))
>>         self.xe, self.ye = event.xdata, event.ydata
>>         self.on_motion_draw()
>>         self.fig.canvas.draw()
>>
>>     def on_release(self, event):
>>         if not self.pressed: return
>>         self.pressed = False
>>         if self.debug:
>>             pprint('RELEASE button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n'
>> % (
>>                 event.button, event.x, event.y, event.xdata, event.ydata))
>>         self.fig.canvas.mpl_disconnect(self.id_motion)
>>         self.on_release_print()
>>
>>     def on_press_draw(self):
>>         pass
>>
>>     def on_motion_draw(self):
>>         pass
>>
>>     def on_release_print(self):
>>         pass
>>
>>
>
> _______________________________________________
> 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/20140418/218bc45b/attachment.html>

From tritemio at gmail.com  Fri Apr 18 14:22:46 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Fri, 18 Apr 2014 11:22:46 -0700
Subject: [IPython-dev] Text output from matplotlib event not shown
In-Reply-To: <CAHNn8BXSWR8Yi=SNBV0uHLP2zaK0D15=3+Rbbf+D+4VKydmrVA@mail.gmail.com>
References: <CANn2QUxYt1gRGu_zQwwfTUYg1Vbz=m0XeAdtDUsy1xk_N9oAaQ@mail.gmail.com>
	<CANn2QUwLf0xfXy=ZTQ=EcMEPzdmVD9Css8V_9GcXXvHqdOw7qw@mail.gmail.com>
	<CAHNn8BXSWR8Yi=SNBV0uHLP2zaK0D15=3+Rbbf+D+4VKydmrVA@mail.gmail.com>
Message-ID: <CANn2QUxaOvO9_3QJdyFo7XNRsgEOQhSrk+oQKh==-hEVe3cL-g@mail.gmail.com>

Unfortunately I have distributed several notebooks that, due to this
regression, don't work anymore once the user upgrade to 2.0.

Any hope this can be fixed in a 2.x release?

Or, is there is any workaround that does not involve modifying the notebook
code? The plot function is loaded from a python file, I can change this but
I would rather not change the notebook? In principle I could adding
something like get_range() in the notebook for each range selection, but
this would spoil the purpose of an interactive range selection.

Thanks,
Antonio


On Fri, Apr 18, 2014 at 10:32 AM, MinRK <benjaminrk at gmail.com> wrote:

> This is open as a GitHub Issue<https://github.com/ipython/ipython/issues/5407>.
> As a result of cleaning up data structures when we think we are done, async
> output is lost.
>
> -MinRK
>
>
> On Thu, Apr 17, 2014 at 11:56 PM, Antonino Ingargiola <tritemio at gmail.com>wrote:
>
>> For the record, I tried running the plot from a qtconsole and the text
>> output is correctly printed. So it is a notebook specific issue.
>>
>> Antonio
>>
>>
>> On Thu, Apr 17, 2014 at 10:57 PM, Antonino Ingargiola <tritemio at gmail.com
>> > wrote:
>>
>>> Hi,
>>>
>>> in IPython Notebook 1.x I built some QT matplotlib plots that allow to
>>> select a range (with the mouse) and print to the range boundaries, or
>>> related information.
>>>
>>>  To do that I connect a callback to the standard matplotlib events. The
>>> callback draws a range highlight and prints the range info.
>>>
>>> In IPython 2.0 I can't get the print output anymore, although the range
>>> is drawn and therefore I'm sure the callback is called. I thought that the
>>> issue can be related to:
>>>
>>> https://github.com/ipython/ipython/issues/5408
>>>
>>> If this is the same issue, are they any workaround I can use to get the
>>> output back?
>>>
>>> For completeness I attach the main class I use for the interactive range
>>> selection:
>>>
>>> class GuiSelection(object):
>>>     """Abstract class for range selection.
>>>
>>>     Methods on_press_draw(), on_motion_draw() and on_release_print() must
>>>     be overloaded by children classes.
>>>     """
>>>     def __init__(self, fig, ax, debug=False):
>>>         self.ax = ax
>>>         self.fig = fig
>>>         self.pressed = False
>>>         self.debug = debug
>>>         self.id_press = fig.canvas.mpl_connect('button_press_event',
>>>                                                 self.on_press)
>>>         if self.debug:
>>>             print 'Figure:', fig, '\nAxis:', ax
>>>     def on_press(self, event):
>>>         if event.inaxes != self.ax: return
>>>         self.pressed = True
>>>         self.xs, self.ys = event.xdata, event.ydata
>>>         if self.debug:
>>>             pprint('PRESS button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n' %
>>> (
>>>                 event.button, event.x, event.y, event.xdata,
>>> event.ydata))
>>>         self.on_press_draw()
>>>         self.fig.canvas.draw()
>>>         self.id_motion =
>>> self.fig.canvas.mpl_connect('motion_notify_event',
>>>                                                      self.on_motion)
>>>         self.fig.canvas.mpl_connect('button_release_event',
>>>                                              self.on_release)
>>>
>>>     def on_motion(self, event):
>>>         if event.inaxes != self.ax: return
>>>         if self.debug:
>>>             pprint('MOTION x=%d, y=%d, xdata=%f, ydata=%f\n' % (
>>>                 event.x, event.y, event.xdata, event.ydata))
>>>         self.xe, self.ye = event.xdata, event.ydata
>>>         self.on_motion_draw()
>>>         self.fig.canvas.draw()
>>>
>>>     def on_release(self, event):
>>>         if not self.pressed: return
>>>         self.pressed = False
>>>         if self.debug:
>>>             pprint('RELEASE button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n'
>>> % (
>>>                 event.button, event.x, event.y, event.xdata,
>>> event.ydata))
>>>         self.fig.canvas.mpl_disconnect(self.id_motion)
>>>         self.on_release_print()
>>>
>>>     def on_press_draw(self):
>>>         pass
>>>
>>>     def on_motion_draw(self):
>>>         pass
>>>
>>>     def on_release_print(self):
>>>         pass
>>>
>>>
>>
>> _______________________________________________
>> 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/20140418/b8005e1b/attachment.html>

From benjaminrk at gmail.com  Fri Apr 18 14:34:53 2014
From: benjaminrk at gmail.com (MinRK)
Date: Fri, 18 Apr 2014 11:34:53 -0700
Subject: [IPython-dev] Text output from matplotlib event not shown
In-Reply-To: <CANn2QUxaOvO9_3QJdyFo7XNRsgEOQhSrk+oQKh==-hEVe3cL-g@mail.gmail.com>
References: <CANn2QUxYt1gRGu_zQwwfTUYg1Vbz=m0XeAdtDUsy1xk_N9oAaQ@mail.gmail.com>
	<CANn2QUwLf0xfXy=ZTQ=EcMEPzdmVD9Css8V_9GcXXvHqdOw7qw@mail.gmail.com>
	<CAHNn8BXSWR8Yi=SNBV0uHLP2zaK0D15=3+Rbbf+D+4VKydmrVA@mail.gmail.com>
	<CANn2QUxaOvO9_3QJdyFo7XNRsgEOQhSrk+oQKh==-hEVe3cL-g@mail.gmail.com>
Message-ID: <CAHNn8BW-z33Nc6kqSPtydo67zH7TrcpacX4FROB68MGvsPTZvw@mail.gmail.com>

There's definitely a chance for fixing this in 2.x. I'll try to work on it
this week.


On Fri, Apr 18, 2014 at 11:22 AM, Antonino Ingargiola <tritemio at gmail.com>wrote:

> Unfortunately I have distributed several notebooks that, due to this
> regression, don't work anymore once the user upgrade to 2.0.
>
> Any hope this can be fixed in a 2.x release?
>
> Or, is there is any workaround that does not involve modifying the
> notebook code? The plot function is loaded from a python file, I can change
> this but I would rather not change the notebook? In principle I could
> adding something like get_range() in the notebook for each range selection,
> but this would spoil the purpose of an interactive range selection.
>
> Thanks,
> Antonio
>
>
> On Fri, Apr 18, 2014 at 10:32 AM, MinRK <benjaminrk at gmail.com> wrote:
>
>> This is open as a GitHub Issue<https://github.com/ipython/ipython/issues/5407>.
>> As a result of cleaning up data structures when we think we are done, async
>> output is lost.
>>
>> -MinRK
>>
>>
>> On Thu, Apr 17, 2014 at 11:56 PM, Antonino Ingargiola <tritemio at gmail.com
>> > wrote:
>>
>>> For the record, I tried running the plot from a qtconsole and the text
>>> output is correctly printed. So it is a notebook specific issue.
>>>
>>> Antonio
>>>
>>>
>>> On Thu, Apr 17, 2014 at 10:57 PM, Antonino Ingargiola <
>>> tritemio at gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> in IPython Notebook 1.x I built some QT matplotlib plots that allow to
>>>> select a range (with the mouse) and print to the range boundaries, or
>>>> related information.
>>>>
>>>>  To do that I connect a callback to the standard matplotlib events. The
>>>> callback draws a range highlight and prints the range info.
>>>>
>>>> In IPython 2.0 I can't get the print output anymore, although the range
>>>> is drawn and therefore I'm sure the callback is called. I thought that the
>>>> issue can be related to:
>>>>
>>>> https://github.com/ipython/ipython/issues/5408
>>>>
>>>> If this is the same issue, are they any workaround I can use to get the
>>>> output back?
>>>>
>>>> For completeness I attach the main class I use for the interactive
>>>> range selection:
>>>>
>>>> class GuiSelection(object):
>>>>     """Abstract class for range selection.
>>>>
>>>>     Methods on_press_draw(), on_motion_draw() and on_release_print()
>>>> must
>>>>     be overloaded by children classes.
>>>>     """
>>>>     def __init__(self, fig, ax, debug=False):
>>>>         self.ax = ax
>>>>         self.fig = fig
>>>>         self.pressed = False
>>>>         self.debug = debug
>>>>         self.id_press = fig.canvas.mpl_connect('button_press_event',
>>>>                                                 self.on_press)
>>>>         if self.debug:
>>>>             print 'Figure:', fig, '\nAxis:', ax
>>>>     def on_press(self, event):
>>>>         if event.inaxes != self.ax: return
>>>>         self.pressed = True
>>>>         self.xs, self.ys = event.xdata, event.ydata
>>>>         if self.debug:
>>>>             pprint('PRESS button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n'
>>>> % (
>>>>                 event.button, event.x, event.y, event.xdata,
>>>> event.ydata))
>>>>         self.on_press_draw()
>>>>         self.fig.canvas.draw()
>>>>         self.id_motion =
>>>> self.fig.canvas.mpl_connect('motion_notify_event',
>>>>                                                      self.on_motion)
>>>>         self.fig.canvas.mpl_connect('button_release_event',
>>>>                                              self.on_release)
>>>>
>>>>     def on_motion(self, event):
>>>>         if event.inaxes != self.ax: return
>>>>         if self.debug:
>>>>             pprint('MOTION x=%d, y=%d, xdata=%f, ydata=%f\n' % (
>>>>                 event.x, event.y, event.xdata, event.ydata))
>>>>         self.xe, self.ye = event.xdata, event.ydata
>>>>         self.on_motion_draw()
>>>>         self.fig.canvas.draw()
>>>>
>>>>     def on_release(self, event):
>>>>         if not self.pressed: return
>>>>         self.pressed = False
>>>>         if self.debug:
>>>>             pprint('RELEASE button=%d, x=%d, y=%d, xdata=%f,
>>>> ydata=%f\n' % (
>>>>                 event.button, event.x, event.y, event.xdata,
>>>> event.ydata))
>>>>         self.fig.canvas.mpl_disconnect(self.id_motion)
>>>>         self.on_release_print()
>>>>
>>>>     def on_press_draw(self):
>>>>         pass
>>>>
>>>>     def on_motion_draw(self):
>>>>         pass
>>>>
>>>>     def on_release_print(self):
>>>>         pass
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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/20140418/8a4bdb96/attachment.html>

From tritemio at gmail.com  Fri Apr 18 14:55:13 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Fri, 18 Apr 2014 11:55:13 -0700
Subject: [IPython-dev] Text output from matplotlib event not shown
In-Reply-To: <CAHNn8BW-z33Nc6kqSPtydo67zH7TrcpacX4FROB68MGvsPTZvw@mail.gmail.com>
References: <CANn2QUxYt1gRGu_zQwwfTUYg1Vbz=m0XeAdtDUsy1xk_N9oAaQ@mail.gmail.com>
	<CANn2QUwLf0xfXy=ZTQ=EcMEPzdmVD9Css8V_9GcXXvHqdOw7qw@mail.gmail.com>
	<CAHNn8BXSWR8Yi=SNBV0uHLP2zaK0D15=3+Rbbf+D+4VKydmrVA@mail.gmail.com>
	<CANn2QUxaOvO9_3QJdyFo7XNRsgEOQhSrk+oQKh==-hEVe3cL-g@mail.gmail.com>
	<CAHNn8BW-z33Nc6kqSPtydo67zH7TrcpacX4FROB68MGvsPTZvw@mail.gmail.com>
Message-ID: <CANn2QUzNr8_aoz_F8tPGDGm7fQ_QnbZq9Zjc5CJ2tvjjTVmjXQ@mail.gmail.com>

Thanks!

Antonio


On Fri, Apr 18, 2014 at 11:34 AM, MinRK <benjaminrk at gmail.com> wrote:

> There's definitely a chance for fixing this in 2.x. I'll try to work on it
> this week.
>
>
> On Fri, Apr 18, 2014 at 11:22 AM, Antonino Ingargiola <tritemio at gmail.com>wrote:
>
>> Unfortunately I have distributed several notebooks that, due to this
>> regression, don't work anymore once the user upgrade to 2.0.
>>
>> Any hope this can be fixed in a 2.x release?
>>
>> Or, is there is any workaround that does not involve modifying the
>> notebook code? The plot function is loaded from a python file, I can change
>> this but I would rather not change the notebook? In principle I could
>> adding something like get_range() in the notebook for each range selection,
>> but this would spoil the purpose of an interactive range selection.
>>
>> Thanks,
>> Antonio
>>
>>
>> On Fri, Apr 18, 2014 at 10:32 AM, MinRK <benjaminrk at gmail.com> wrote:
>>
>>> This is open as a GitHub Issue<https://github.com/ipython/ipython/issues/5407>.
>>> As a result of cleaning up data structures when we think we are done, async
>>> output is lost.
>>>
>>> -MinRK
>>>
>>>
>>> On Thu, Apr 17, 2014 at 11:56 PM, Antonino Ingargiola <
>>> tritemio at gmail.com> wrote:
>>>
>>>> For the record, I tried running the plot from a qtconsole and the text
>>>> output is correctly printed. So it is a notebook specific issue.
>>>>
>>>> Antonio
>>>>
>>>>
>>>> On Thu, Apr 17, 2014 at 10:57 PM, Antonino Ingargiola <
>>>> tritemio at gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> in IPython Notebook 1.x I built some QT matplotlib plots that allow to
>>>>> select a range (with the mouse) and print to the range boundaries, or
>>>>> related information.
>>>>>
>>>>>  To do that I connect a callback to the standard matplotlib events.
>>>>> The callback draws a range highlight and prints the range info.
>>>>>
>>>>> In IPython 2.0 I can't get the print output anymore, although the
>>>>> range is drawn and therefore I'm sure the callback is called. I thought
>>>>> that the issue can be related to:
>>>>>
>>>>> https://github.com/ipython/ipython/issues/5408
>>>>>
>>>>> If this is the same issue, are they any workaround I can use to get
>>>>> the output back?
>>>>>
>>>>> For completeness I attach the main class I use for the interactive
>>>>> range selection:
>>>>>
>>>>> class GuiSelection(object):
>>>>>     """Abstract class for range selection.
>>>>>
>>>>>     Methods on_press_draw(), on_motion_draw() and on_release_print()
>>>>> must
>>>>>     be overloaded by children classes.
>>>>>     """
>>>>>     def __init__(self, fig, ax, debug=False):
>>>>>         self.ax = ax
>>>>>         self.fig = fig
>>>>>         self.pressed = False
>>>>>         self.debug = debug
>>>>>         self.id_press = fig.canvas.mpl_connect('button_press_event',
>>>>>                                                 self.on_press)
>>>>>         if self.debug:
>>>>>             print 'Figure:', fig, '\nAxis:', ax
>>>>>     def on_press(self, event):
>>>>>         if event.inaxes != self.ax: return
>>>>>         self.pressed = True
>>>>>         self.xs, self.ys = event.xdata, event.ydata
>>>>>         if self.debug:
>>>>>             pprint('PRESS button=%d, x=%d, y=%d, xdata=%f, ydata=%f\n'
>>>>> % (
>>>>>                 event.button, event.x, event.y, event.xdata,
>>>>> event.ydata))
>>>>>         self.on_press_draw()
>>>>>         self.fig.canvas.draw()
>>>>>         self.id_motion =
>>>>> self.fig.canvas.mpl_connect('motion_notify_event',
>>>>>                                                      self.on_motion)
>>>>>         self.fig.canvas.mpl_connect('button_release_event',
>>>>>                                              self.on_release)
>>>>>
>>>>>     def on_motion(self, event):
>>>>>         if event.inaxes != self.ax: return
>>>>>         if self.debug:
>>>>>             pprint('MOTION x=%d, y=%d, xdata=%f, ydata=%f\n' % (
>>>>>                 event.x, event.y, event.xdata, event.ydata))
>>>>>         self.xe, self.ye = event.xdata, event.ydata
>>>>>         self.on_motion_draw()
>>>>>         self.fig.canvas.draw()
>>>>>
>>>>>     def on_release(self, event):
>>>>>         if not self.pressed: return
>>>>>         self.pressed = False
>>>>>         if self.debug:
>>>>>             pprint('RELEASE button=%d, x=%d, y=%d, xdata=%f,
>>>>> ydata=%f\n' % (
>>>>>                 event.button, event.x, event.y, event.xdata,
>>>>> event.ydata))
>>>>>         self.fig.canvas.mpl_disconnect(self.id_motion)
>>>>>         self.on_release_print()
>>>>>
>>>>>     def on_press_draw(self):
>>>>>         pass
>>>>>
>>>>>     def on_motion_draw(self):
>>>>>         pass
>>>>>
>>>>>     def on_release_print(self):
>>>>>         pass
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> 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/20140418/62e6374a/attachment.html>

From gvwilson at third-bit.com  Fri Apr 18 15:00:35 2014
From: gvwilson at third-bit.com (Greg Wilson)
Date: Fri, 18 Apr 2014 15:00:35 -0400
Subject: [IPython-dev] tracking nbconvert-generated images in version control
Message-ID: <53517653.8040208@third-bit.com>

The answer to this question may well be, "You shouldn't be trying to do 
that," but here goes anyway:

1. The websites for Software Carpentry bootcamps are hosted on GitHub, 
which generates them automatically by running a tool called Jekyll 
whenever content is committed to a repository's gh-pages branch.

2. Jekyll knows how to convert compile Markdown and HTML, but doesn't 
understand IPython Notebooks, so if people have notebooks in their 
bootcamp repository, they have to run nbconvert on their own machine and 
add the generated .md file to the repository.  (Yes, we could do 
something clever with post-commit hooks and continuous integration 
systems, but this seems simpler for our users.)

3. When nbconvert runs, it creates image files on disk for the plots and 
other code-generated visuals in the notebook.  These image files have 
auto-generated names like 01-numpy_76_0.png, and the Markdown/HTML 
generated by nbconvert links to them.

4. We can easily add those images to the version control repository as 
well - but if we move cells around in the notebook, nbconvert will give 
them different names the next time it runs.  We can add *those* images 
to version control too, but what do we do about cleaning out the old 
ones?  One suggestion is to 'git rm' all the generated images before 
re-running nbconvert and trust git to detect the new image and infer 
that we meant to 'git mv', but that feels dangerous.

Is there a cleaner solution?  One that we can explain and justify to 
people who are relatively new to both the notebook and version control, 
and is unlikely to go horribly, horribly wrong (which 'git rm' with 
wildcards well could)?

Thanks,
Greg


From nathan12343 at gmail.com  Fri Apr 18 15:06:31 2014
From: nathan12343 at gmail.com (Nathan Goldbaum)
Date: Fri, 18 Apr 2014 12:06:31 -0700
Subject: [IPython-dev] tracking nbconvert-generated images in version
	control
In-Reply-To: <53517653.8040208@third-bit.com>
References: <53517653.8040208@third-bit.com>
Message-ID: <CAJXewOkS__CpBPPUFK8tX8Lg35VNAw0xw2mee2MSb7dozY88cA@mail.gmail.com>

Hi Greg,

A while back I came up with this:

https://github.com/ngoldbaum/RunNotebook

RunNotebook consists of two sphinx extensions that take an unevaluated
notebook and convert it into a form suitable for inclusion in sphinx HTML
documentation.  That way we get small notebooks that contain only text
added to our documentation version control but also full evaluated
notebooks in the documentation we publish online.  As a bonus, this is an
additional level of testing for our project since code is evaluated every
time the docs are built.

The real work is being done by runipy (https://github.com/paulgb/runipy/)
which allows you to run notebooks without going into the notebook web
interface.

You could modify Jekyll to do this operation.  You wouldn't need to worry
about converting the notebook to HTML, I think, so your job would be a bit
simpler than what RunNotebook does.

-Nathan


On Fri, Apr 18, 2014 at 12:00 PM, Greg Wilson <gvwilson at third-bit.com>wrote:

> The answer to this question may well be, "You shouldn't be trying to do
> that," but here goes anyway:
>
> 1. The websites for Software Carpentry bootcamps are hosted on GitHub,
> which generates them automatically by running a tool called Jekyll
> whenever content is committed to a repository's gh-pages branch.
>
> 2. Jekyll knows how to convert compile Markdown and HTML, but doesn't
> understand IPython Notebooks, so if people have notebooks in their
> bootcamp repository, they have to run nbconvert on their own machine and
> add the generated .md file to the repository.  (Yes, we could do
> something clever with post-commit hooks and continuous integration
> systems, but this seems simpler for our users.)
>
> 3. When nbconvert runs, it creates image files on disk for the plots and
> other code-generated visuals in the notebook.  These image files have
> auto-generated names like 01-numpy_76_0.png, and the Markdown/HTML
> generated by nbconvert links to them.
>
> 4. We can easily add those images to the version control repository as
> well - but if we move cells around in the notebook, nbconvert will give
> them different names the next time it runs.  We can add *those* images
> to version control too, but what do we do about cleaning out the old
> ones?  One suggestion is to 'git rm' all the generated images before
> re-running nbconvert and trust git to detect the new image and infer
> that we meant to 'git mv', but that feels dangerous.
>
> Is there a cleaner solution?  One that we can explain and justify to
> people who are relatively new to both the notebook and version control,
> and is unlikely to go horribly, horribly wrong (which 'git rm' with
> wildcards well could)?
>
> Thanks,
> Greg
> _______________________________________________
> 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/20140418/9687e944/attachment.html>

From andrew.m.ray at btinternet.com  Fri Apr 18 20:47:01 2014
From: andrew.m.ray at btinternet.com (Andy Ray)
Date: Sat, 19 Apr 2014 01:47:01 +0100
Subject: [IPython-dev] IOCaml
Message-ID: <CAHYOizF9ut9nD2Cy1NNj-57wcq8TB4SchngjC6oqGw=ZTsAGEg@mail.gmail.com>

Hi Folks,

I've been hacking away at an OCaml version of the IPython notebook.

IOCaml provides kernels for the standard OCaml REPL and also OCaml
compiled into javascript and run fully in the browser (based on
minrks' profile_kerneljs example).  There's also an OCaml based
webserver.  Everything is installable through the OCaml package
manager opam (http://opam.ocaml.org).

Gotta say a big thanks to the IPython devs for the utterly inspiring
notebook interface!

Cheers,
Andy


From takowl at gmail.com  Fri Apr 18 20:56:20 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Fri, 18 Apr 2014 17:56:20 -0700
Subject: [IPython-dev] IOCaml
In-Reply-To: <CAHYOizF9ut9nD2Cy1NNj-57wcq8TB4SchngjC6oqGw=ZTsAGEg@mail.gmail.com>
References: <CAHYOizF9ut9nD2Cy1NNj-57wcq8TB4SchngjC6oqGw=ZTsAGEg@mail.gmail.com>
Message-ID: <CAOvn4qjgHhQTNWUE9zp+fwQ5YkxAkerPpRpKKonuXFFQtv-Ufg@mail.gmail.com>

Cool, thanks for building this.

For others' reference, here's the code:
https://github.com/andrewray/iocaml

Thomas


On 18 April 2014 17:47, Andy Ray <andrew.m.ray at btinternet.com> wrote:

> Hi Folks,
>
> I've been hacking away at an OCaml version of the IPython notebook.
>
> IOCaml provides kernels for the standard OCaml REPL and also OCaml
> compiled into javascript and run fully in the browser (based on
> minrks' profile_kerneljs example).  There's also an OCaml based
> webserver.  Everything is installable through the OCaml package
> manager opam (http://opam.ocaml.org).
>
> Gotta say a big thanks to the IPython devs for the utterly inspiring
> notebook interface!
>
> Cheers,
> Andy
> _______________________________________________
> 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/20140418/a8b86465/attachment.html>

From takowl at gmail.com  Fri Apr 18 20:58:49 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Fri, 18 Apr 2014 17:58:49 -0700
Subject: [IPython-dev] IOCaml
In-Reply-To: <CAOvn4qjgHhQTNWUE9zp+fwQ5YkxAkerPpRpKKonuXFFQtv-Ufg@mail.gmail.com>
References: <CAHYOizF9ut9nD2Cy1NNj-57wcq8TB4SchngjC6oqGw=ZTsAGEg@mail.gmail.com>
	<CAOvn4qjgHhQTNWUE9zp+fwQ5YkxAkerPpRpKKonuXFFQtv-Ufg@mail.gmail.com>
Message-ID: <CAOvn4qj7=PqehB_EUQtJ0swsT8_r+scS7AfaU+7Zr501gNB7=g@mail.gmail.com>

I've added this to the list of kernels that's maintained here:
https://github.com/ipython/ipython/wiki/Projects-using-IPython#list-of-some-ipython-compatible-kernels


On 18 April 2014 17:56, Thomas Kluyver <takowl at gmail.com> wrote:

> Cool, thanks for building this.
>
> For others' reference, here's the code:
> https://github.com/andrewray/iocaml
>
> Thomas
>
>
> On 18 April 2014 17:47, Andy Ray <andrew.m.ray at btinternet.com> wrote:
>
>> Hi Folks,
>>
>> I've been hacking away at an OCaml version of the IPython notebook.
>>
>> IOCaml provides kernels for the standard OCaml REPL and also OCaml
>> compiled into javascript and run fully in the browser (based on
>> minrks' profile_kerneljs example).  There's also an OCaml based
>> webserver.  Everything is installable through the OCaml package
>> manager opam (http://opam.ocaml.org).
>>
>> Gotta say a big thanks to the IPython devs for the utterly inspiring
>> notebook interface!
>>
>> Cheers,
>> Andy
>> _______________________________________________
>> 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/20140418/575c1823/attachment.html>

From andrew.m.ray at btinternet.com  Fri Apr 18 21:13:45 2014
From: andrew.m.ray at btinternet.com (Andy Ray)
Date: Sat, 19 Apr 2014 02:13:45 +0100
Subject: [IPython-dev] IOCaml
In-Reply-To: <CAOvn4qj7=PqehB_EUQtJ0swsT8_r+scS7AfaU+7Zr501gNB7=g@mail.gmail.com>
References: <CAHYOizF9ut9nD2Cy1NNj-57wcq8TB4SchngjC6oqGw=ZTsAGEg@mail.gmail.com>
	<CAOvn4qjgHhQTNWUE9zp+fwQ5YkxAkerPpRpKKonuXFFQtv-Ufg@mail.gmail.com>
	<CAOvn4qj7=PqehB_EUQtJ0swsT8_r+scS7AfaU+7Zr501gNB7=g@mail.gmail.com>
Message-ID: <CAHYOizHX3HNWUuprdaFg6rErK8rqkz5G4ucbvPhSicDSwjnngQ@mail.gmail.com>

Thanks Thomas.  I should have put the source code links up.  There are
actually 3 projects

https://github.com/andrewray/iocaml
https://github.com/andrewray/iocamljs
https://github.com/andrewray/iocamlserver

For fun there's some (hacky) online versions here;

http://andrewray.github.io/iocamljs/



On Sat, Apr 19, 2014 at 1:58 AM, Thomas Kluyver <takowl at gmail.com> wrote:
> I've added this to the list of kernels that's maintained here:
> https://github.com/ipython/ipython/wiki/Projects-using-IPython#list-of-some-ipython-compatible-kernels
>
>
> On 18 April 2014 17:56, Thomas Kluyver <takowl at gmail.com> wrote:
>>
>> Cool, thanks for building this.
>>
>> For others' reference, here's the code:
>> https://github.com/andrewray/iocaml
>>
>> Thomas
>>
>>
>> On 18 April 2014 17:47, Andy Ray <andrew.m.ray at btinternet.com> wrote:
>>>
>>> Hi Folks,
>>>
>>> I've been hacking away at an OCaml version of the IPython notebook.
>>>
>>> IOCaml provides kernels for the standard OCaml REPL and also OCaml
>>> compiled into javascript and run fully in the browser (based on
>>> minrks' profile_kerneljs example).  There's also an OCaml based
>>> webserver.  Everything is installable through the OCaml package
>>> manager opam (http://opam.ocaml.org).
>>>
>>> Gotta say a big thanks to the IPython devs for the utterly inspiring
>>> notebook interface!
>>>
>>> Cheers,
>>> Andy
>>> _______________________________________________
>>> 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 doug.blank at gmail.com  Sat Apr 19 06:08:27 2014
From: doug.blank at gmail.com (Doug Blank)
Date: Sat, 19 Apr 2014 06:08:27 -0400
Subject: [IPython-dev] SiteMap and Indexes for nbviewer
Message-ID: <CAAusYCg5NkwRPT6Y=3OS0+wjj1vwbdDxwsKbMtGtQTHCdgYJyA@mail.gmail.com>

nbviewer is a great utility for showing notebooks. However, when you start
to get a collection of notebooks, it can be difficult to use nbviewer
usefully. To solve this issue, we wrote a couple of Python programs to
create Index.ipynb files for directories, and SiteMap.ipynb to index all of
the notebooks. (We hope that this is in the spirit of what nbviewer was
intended).

Features:

* If you have a README.md in a directory, it will be added as a cell in the
Index.ipynb
* Each Index creates links to subfolders with Index.ipynbfiles  and to
notebooks in the folder
* Allows you to add a header to each page

The code is quite basic at this point, but we'll revise and incorporate new
features and better structure as we develop it.

Here is our SiteMap and toplevel Index:

http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/SiteMap.ipynb

http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/Index.ipynb

The code is here:

https://bitbucket.org/ipre/calico/src/master/notebooks/make.py
https://bitbucket.org/ipre/calico/src/master/notebooks/code2notebook.py

Limitations: currently no links back to top; you have to update the cached
nbviewer version (using url + "?create=1") outside of this code.

Ideas/suggestions welcomed; hope this can be of use,

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

From bussonniermatthias at gmail.com  Sat Apr 19 08:15:02 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Sat, 19 Apr 2014 14:15:02 +0200
Subject: [IPython-dev] SiteMap and Indexes for nbviewer
In-Reply-To: <CAAusYCg5NkwRPT6Y=3OS0+wjj1vwbdDxwsKbMtGtQTHCdgYJyA@mail.gmail.com>
References: <CAAusYCg5NkwRPT6Y=3OS0+wjj1vwbdDxwsKbMtGtQTHCdgYJyA@mail.gmail.com>
Message-ID: <93A3A034-0D1B-4439-82A1-EC5709A71556@gmail.com>

Hi Doug, 

nbviewer is gihutb enabled and allow you to browse folder : 

http://nbviewer.ipython.org/github/ipython/ipython/tree/master/examples/

One could had the same for bitbucket i suppose

-- 
Matthias






Le 19 avr. 2014 ? 12:08, Doug Blank a ?crit :

> nbviewer is a great utility for showing notebooks. However, when you start to get a collection of notebooks, it can be difficult to use nbviewer usefully. To solve this issue, we wrote a couple of Python programs to create Index.ipynb files for directories, and SiteMap.ipynb to index all of the notebooks. (We hope that this is in the spirit of what nbviewer was intended).
> 
> Features:
> 
> * If you have a README.md in a directory, it will be added as a cell in the Index.ipynb
> * Each Index creates links to subfolders with Index.ipynbfiles  and to notebooks in the folder
> * Allows you to add a header to each page
> 
> The code is quite basic at this point, but we'll revise and incorporate new features and better structure as we develop it.
> 
> Here is our SiteMap and toplevel Index:   
> 
> http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/SiteMap.ipynb
> 
> http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/Index.ipynb
> 
> The code is here:
> 
> https://bitbucket.org/ipre/calico/src/master/notebooks/make.py
> https://bitbucket.org/ipre/calico/src/master/notebooks/code2notebook.py
> 
> Limitations: currently no links back to top; you have to update the cached nbviewer version (using url + "?create=1") outside of this code.
> 
> Ideas/suggestions welcomed; hope this can be of use,
> 
> -Doug
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From doug.blank at gmail.com  Sat Apr 19 08:30:54 2014
From: doug.blank at gmail.com (Doug Blank)
Date: Sat, 19 Apr 2014 08:30:54 -0400
Subject: [IPython-dev] SiteMap and Indexes for nbviewer
In-Reply-To: <93A3A034-0D1B-4439-82A1-EC5709A71556@gmail.com>
References: <CAAusYCg5NkwRPT6Y=3OS0+wjj1vwbdDxwsKbMtGtQTHCdgYJyA@mail.gmail.com>
	<93A3A034-0D1B-4439-82A1-EC5709A71556@gmail.com>
Message-ID: <CAAusYCiiUia2L7CFe=YMXqtT_ahcnFLdozg=gCy00NLRQjyn5g@mail.gmail.com>

On Sat, Apr 19, 2014 at 8:15 AM, Matthias BUSSONNIER <
bussonniermatthias at gmail.com> wrote:

> Hi Doug,
>
> nbviewer is gihutb enabled and allow you to browse folder :
>
> http://nbviewer.ipython.org/github/ipython/ipython/tree/master/examples/
>
> One could had the same for bitbucket i suppose
>

Thanks, I did not know that! Yes, so it looks like that interface does
similar things (I like the breadcrumbs running across the top). Our code
will still be useful if you want a "site map" listing all notebooks, if one
wanted to customize the indexes (ignore certain items from showing), or if
you aren't in github.

-Doug


>
> --
> Matthias
>
>
>
>
>
>
> Le 19 avr. 2014 ? 12:08, Doug Blank a ?crit :
>
> > nbviewer is a great utility for showing notebooks. However, when you
> start to get a collection of notebooks, it can be difficult to use nbviewer
> usefully. To solve this issue, we wrote a couple of Python programs to
> create Index.ipynb files for directories, and SiteMap.ipynb to index all of
> the notebooks. (We hope that this is in the spirit of what nbviewer was
> intended).
> >
> > Features:
> >
> > * If you have a README.md in a directory, it will be added as a cell in
> the Index.ipynb
> > * Each Index creates links to subfolders with Index.ipynbfiles  and to
> notebooks in the folder
> > * Allows you to add a header to each page
> >
> > The code is quite basic at this point, but we'll revise and incorporate
> new features and better structure as we develop it.
> >
> > Here is our SiteMap and toplevel Index:
> >
> >
> http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/SiteMap.ipynb
> >
> >
> http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/Index.ipynb
> >
> > The code is here:
> >
> > https://bitbucket.org/ipre/calico/src/master/notebooks/make.py
> > https://bitbucket.org/ipre/calico/src/master/notebooks/code2notebook.py
> >
> > Limitations: currently no links back to top; you have to update the
> cached nbviewer version (using url + "?create=1") outside of this code.
> >
> > Ideas/suggestions welcomed; hope this can be of use,
> >
> > -Doug
> > _______________________________________________
> > 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/20140419/dda9e39e/attachment.html>

From gvwilson at third-bit.com  Sat Apr 19 10:59:22 2014
From: gvwilson at third-bit.com (Greg Wilson)
Date: Sat, 19 Apr 2014 10:59:22 -0400
Subject: [IPython-dev] tracking nbconvert-generated images in version
 control
In-Reply-To: <CAJXewOkS__CpBPPUFK8tX8Lg35VNAw0xw2mee2MSb7dozY88cA@mail.gmail.com>
References: <53517653.8040208@third-bit.com>
	<CAJXewOkS__CpBPPUFK8tX8Lg35VNAw0xw2mee2MSb7dozY88cA@mail.gmail.com>
Message-ID: <53528F4A.8010903@third-bit.com>

Hi Nathan,
> You could modify Jekyll to do this operation.  You wouldn't need to 
> worry about converting the notebook to HTML, I think, so your job 
> would be a bit simpler than what RunNotebook does.
Unfortunately, GitHub won't run install or run any hacks we make to Jekyll.
Thx,
G


From bussonniermatthias at gmail.com  Sat Apr 19 11:07:28 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Sat, 19 Apr 2014 17:07:28 +0200
Subject: [IPython-dev] tracking nbconvert-generated images in version
	control
In-Reply-To: <53528F4A.8010903@third-bit.com>
References: <53517653.8040208@third-bit.com>
	<CAJXewOkS__CpBPPUFK8tX8Lg35VNAw0xw2mee2MSb7dozY88cA@mail.gmail.com>
	<53528F4A.8010903@third-bit.com>
Message-ID: <1408AC88-5891-48C7-BA4B-A632EE9039DA@gmail.com>


Le 19 avr. 2014 ? 16:59, Greg Wilson a ?crit :

> Hi Nathan,
>> You could modify Jekyll to do this operation.  You wouldn't need to 
>> worry about converting the notebook to HTML, I think, so your job 
>> would be a bit simpler than what RunNotebook does.
> Unfortunately, GitHub won't run install or run any hacks we make to Jekyll.

I can try to hack nbconvert to name the figure by their hash.
Hence same figure would have same hash across conversions.
(supposing the generated figures are identical of course)

What do you think ? 
-- 
M

> Thx,
> G
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From wking at tremily.us  Sat Apr 19 12:04:21 2014
From: wking at tremily.us (W. Trevor King)
Date: Sat, 19 Apr 2014 09:04:21 -0700
Subject: [IPython-dev] tracking nbconvert-generated images in version
 control
In-Reply-To: <1408AC88-5891-48C7-BA4B-A632EE9039DA@gmail.com>
	<CAJXewOkS__CpBPPUFK8tX8Lg35VNAw0xw2mee2MSb7dozY88cA@mail.gmail.com>
	<53517653.8040208@third-bit.com>
Message-ID: <20140419160421.GK9243@odin.tremily.us>

On Sat, Apr 19, 2014 at 05:07:28PM +0200, Matthias BUSSONNIER wrote:
> I can try to hack nbconvert to name the figure by their hash.
> Hence same figure would have same hash across conversions.
> (supposing the generated figures are identical of course)

I don't think it's file name changes themselves that are a problem,
it's distinguishing auto-generated files (which can be safely removed)
from manually-generated files (which we don't want to remove, or even
clobber).

On Fri, Apr 18, 2014 at 03:00:35PM -0400, Greg Wilson wrote:
> 3. When nbconvert runs, it creates image files on disk for the plots
> and other code-generated visuals in the notebook.  These image files
> have auto-generated names like 01-numpy_76_0.png, and the
> Markdown/HTML generated by nbconvert links to them.
> 
> 4. We can easily add those images to the version control repository
> as well - but if we move cells around in the notebook, nbconvert
> will give them different names the next time it runs.  We can add
> *those* images to version control too, but what do we do about
> cleaning out the old ones?

If someone edited the notebook by only reordering cells (or making
other tweaks that don't change the generated images), then hashed
names would work.  However, if the generated files change (which could
happen if one builder just has a different version of matplotlib),
we're still going to have the ?cleanup old files and add the new
files? problem.

I think a better solution would be to shift the the auto-generated
files into a location that cannot be confused with manually-generated
files.  There is already work in this direction with 8ec29ff (Move
extracted files into their own subdir, 2013-07-22, landed in 1.0.0),
which started saving images (for example) in:

  01-numpy_files/76-0.png

However, the output files are still going to depend (obviously) on
which IPython version (etc.) the builder is using.  Maybe Greg is
still using something from before 1.0.0?

Interestingly, my 1.2.1 seems to have an issue with nesting:

  $ make novice/python/01-numpy.md
  ipython nbconvert --template=_templates/ipynb.tpl --to=markdown --output="novice/python/01-numpy" "novice/python/01-numpy.ipynb"
  [NbConvertApp] Using existing profile dir: u'/home/wking/.config/ipython/profile_default'
  [NbConvertApp] Converting notebook novice/python/01-numpy.ipynb to markdown
  [NbConvertApp] Support files will be in novice/python/01-numpy_files/
  [NbConvertApp] Loaded template _templates/ipynb.tpl
  [NbConvertApp] Making directory novice/python/01-numpy_files/novice/python
  [NbConvertApp] Writing 24888 bytes to novice/python/01-numpy.md
  $ ls novice/python/01-numpy_files/novice/python/
  ?
  01-numpy_76_0.png
  ?

Anyhow, it should be safe to 'git rm -r novice/python/01-numpy_files'
and just have manually-generated files live in the same directory as
the notebook (novice/python/my-manual-image.png).

On Fri, Apr 18, 2014 at 12:06:31PM -0700, Nathan Goldbaum wrote:
> RunNotebook consists of two sphinx extensions that take an
> unevaluated notebook and convert it into a form suitable for
> inclusion in sphinx HTML documentation.  That way we get small
> notebooks that contain only text added to our documentation version
> control but also full evaluated notebooks in the documentation we
> publish online.

I like this approach best ;).  Instead of guessing which parts of the
source tree are autogenrated and which are not, just keep all the
source in one branch, and put all the auto-generated stuff in another
(? la Git's git-htmldocs and git-manpages repositories [1]).

Cheers,
Trevor

[1]: http://git-blame.blogspot.com/p/git-public-repositories.html

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140419/b8c610cb/attachment.sig>

From wking at tremily.us  Sat Apr 19 14:51:11 2014
From: wking at tremily.us (W. Trevor King)
Date: Sat, 19 Apr 2014 11:51:11 -0700
Subject: [IPython-dev] tracking nbconvert-generated images in version
 control
In-Reply-To: <20140419184520.GD30202@buriti.rgaiacs.com>
	<20140419160421.GK9243@odin.tremily.us>
Message-ID: <20140419185111.GO9243@odin.tremily.us>

Raniere points out that the nesting issue I mentioned tangentially has
already been reported:

On Sat, Apr 19, 2014 at 03:45:21PM -0300, Raniere Silva wrote:
> > Interestingly, my 1.2.1 seems to have an issue with nesting:
> > ?
> 
> I already have notice the issue with nesting and when try a workaround [1] it
> won't work?
> ?
> [1] https://github.com/ipython/ipython/issues/5529

So don't let that distract you from the main issue here (tracking
nbconvert-generated files in version control).

Cheers,
Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140419/3be40ffd/attachment.sig>

From bussonniermatthias at gmail.com  Sat Apr 19 14:58:06 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Sat, 19 Apr 2014 20:58:06 +0200
Subject: [IPython-dev] IOCaml
In-Reply-To: <CAHYOizHX3HNWUuprdaFg6rErK8rqkz5G4ucbvPhSicDSwjnngQ@mail.gmail.com>
References: <CAHYOizF9ut9nD2Cy1NNj-57wcq8TB4SchngjC6oqGw=ZTsAGEg@mail.gmail.com>
	<CAOvn4qjgHhQTNWUE9zp+fwQ5YkxAkerPpRpKKonuXFFQtv-Ufg@mail.gmail.com>
	<CAOvn4qj7=PqehB_EUQtJ0swsT8_r+scS7AfaU+7Zr501gNB7=g@mail.gmail.com>
	<CAHYOizHX3HNWUuprdaFg6rErK8rqkz5G4ucbvPhSicDSwjnngQ@mail.gmail.com>
Message-ID: <EBC3C1D1-094D-4925-900C-2AC79CE398C6@gmail.com>


Le 19 avr. 2014 ? 03:13, Andy Ray a ?crit :

> Thanks Thomas.  I should have put the source code links up.  There are
> actually 3 projects

Awesome ! 


> https://github.com/andrewray/iocaml
> https://github.com/andrewray/iocamljs
> https://github.com/andrewray/iocamlserver
> 
> For fun there's some (hacky) online versions here;
> 
> http://andrewray.github.io/iocamljs/


Have you hopped on the last discussion about updating the message spec ? 

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

and kernel registry ? 

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

Cheers, 
-- 
Matthias

From gvwilson at third-bit.com  Sat Apr 19 16:12:59 2014
From: gvwilson at third-bit.com (Greg Wilson)
Date: Sat, 19 Apr 2014 16:12:59 -0400
Subject: [IPython-dev] tracking nbconvert-generated images in version
 control
In-Reply-To: <1408AC88-5891-48C7-BA4B-A632EE9039DA@gmail.com>
References: <53517653.8040208@third-bit.com>	<CAJXewOkS__CpBPPUFK8tX8Lg35VNAw0xw2mee2MSb7dozY88cA@mail.gmail.com>	<53528F4A.8010903@third-bit.com>
	<1408AC88-5891-48C7-BA4B-A632EE9039DA@gmail.com>
Message-ID: <5352D8CB.5050704@third-bit.com>

On 2014-04-19 11:07 AM, Matthias BUSSONNIER wrote:
> Le 19 avr. 2014 ? 16:59, Greg Wilson a ?crit :
>
>> Hi Nathan,
>>> You could modify Jekyll to do this operation.  You wouldn't need to
>>> worry about converting the notebook to HTML, I think, so your job
>>> would be a bit simpler than what RunNotebook does.
>> Unfortunately, GitHub won't run install or run any hacks we make to Jekyll.
> I can try to hack nbconvert to name the figure by their hash.
> Hence same figure would have same hash across conversions.
> (supposing the generated figures are identical of course)
>
> What do you think ?
What about allowing users to attach names to plots (or to the code that 
generates them), then using that name for the persisted file? Names 
could go in cell metadata, and could then also serve as anchors for linking?

Thx,
G


From wking at tremily.us  Sat Apr 19 16:23:58 2014
From: wking at tremily.us (W. Trevor King)
Date: Sat, 19 Apr 2014 13:23:58 -0700
Subject: [IPython-dev] tracking nbconvert-generated images in version
 control
In-Reply-To: <5352D8CB.5050704@third-bit.com>
Message-ID: <20140419202358.GU9243@odin.tremily.us>


On Sat, Apr 19, 2014 at 04:12:59PM -0400, Greg Wilson wrote:
> What about allowing users to attach names to plots (or to the code
> that generates them), then using that name for the persisted file?
> Names could go in cell metadata, and could then also serve as
> anchors for linking?

I don't think that addresses the ?what to remove?? question:

On Fri, Apr 18, 2014 at 03:00:35PM -0400, Greg Wilson wrote:
> 4. We can easily add those images to the version control repository
> as well - but if we move cells around in the notebook, nbconvert
> will give them different names the next time it runs.  We can add
> *those* images to version control too, but what do we do about
> cleaning out the old ones?

Unless you want folks to manually 'git rm' images when they remove its
source cell.

Cheers,
Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140419/a4674aba/attachment.sig>

From nathan.faggian at gmail.com  Sat Apr 19 23:46:41 2014
From: nathan.faggian at gmail.com (Nathan Faggian)
Date: Sun, 20 Apr 2014 13:46:41 +1000
Subject: [IPython-dev] IPython parallel client
In-Reply-To: <CAN1J6jWJr9MWCAR7U=VyANn_iwJVPFnE=tx8v0HzxKt_psDZpw@mail.gmail.com>
References: <CAN1J6jWQw2fEKGwCTX_pPC7+qndsjMyOuNFpx+KOe8tscJCDaw@mail.gmail.com>
	<CAHNn8BW-gnYoYCYeJDVt=K3Zdo0rsixAy=5fH3tAtGwTWCF72Q@mail.gmail.com>
	<CAN1J6jWJr9MWCAR7U=VyANn_iwJVPFnE=tx8v0HzxKt_psDZpw@mail.gmail.com>
Message-ID: <CAN1J6jUQxJFd+LoHm9ftExYA7t1OSVcvxA4qBk7HwaJXTD5VeQ@mail.gmail.com>

Hi,

I have started a small (spare time) project called "ipcluster_tools", which
is available here:
         https://github.com/nfaggian/ipcluster_tools

Using the client connection it is pretty easy to poll the state of the
cluster thanks to the advice from MinRk. Using this knowledge I built a
*very* basic tool to visualise the state of jobs but I would really like to
try and write some tests now.

Any pointers would be great -- so far I have just used a notebook to inject
jobs and used the graphical interface to spin up workers. Since I prefer
pytest I would like to try and make something like a "funcarg" that spins
up a server (prefer function scope) but the setup and tear-down may be
expensive:

     http://pytest.org/latest/funcargs.html

When I get the tests going to a reasonable level I will change the way that
the watcher works. The goal is to (if there is a backend that stores
information) be able to introspect metadata also.

If anyone is keen to help out please fork the repository!

Cheers,

Nathan

On 16 April 2014 12:18, Nathan Faggian <nathan.faggian at gmail.com> wrote:

> Hi MinRk,
>
> Thanks for the quick response, that is going to be a great help!
>
> Cheers,
>
> Nathan.
>
> On 16 April 2014 12:01, MinRK <benjaminrk at gmail.com> wrote:
>
>> The method you are probably interested in is
>> `Client.queue_status(verbose=True)`, which lets you see at what jobs are
>> queued, running, etc. and where. If you want to resubmit a job, you would
>> use the `resubmit` method, or abort a queued job with `abort`. Do note that
>> killing isn't supported yet in IPython, though you can probably set this up
>> fairly easily (trivially, if all your engines are local), as described here:
>>
>> http://mail.scipy.org/pipermail/ipython-dev/2014-March/013426.html
>>
>>
>>
>> On Tue, Apr 15, 2014 at 6:51 PM, Nathan Faggian <nathan.faggian at gmail.com
>> > wrote:
>>
>>> Hi,
>>>
>>> I am interested in building an ipengine status tool for IPython using
>>> Qt. I was wondering if I could get some direction on querying the HUB to
>>> get a list of jobs, I have read the "iopubwatcher" example from MinRk,
>>> which seems like a good starting point.
>>>
>>> Though, I am not sure if I should be using the interface provided by the
>>> client for this task because it seems like two clients don't share metadata
>>> - one client doesn't know what the other has submitted (I may easily be
>>> wrong here).
>>>
>>> Hope my question isn't too vague -- I am interested in being able to
>>> point and click on jobs and perform some simple things like kill/re-submit
>>> them - it would be really useful!
>>>
>>> Thanks in advance for any advice,
>>>
>>> Nathan.
>>>
>>>
>>> _______________________________________________
>>> 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/20140420/93635fc1/attachment.html>

From maximilian.albert at gmail.com  Sun Apr 20 13:09:22 2014
From: maximilian.albert at gmail.com (Maximilian Albert)
Date: Sun, 20 Apr 2014 18:09:22 +0100
Subject: [IPython-dev] Shortcut to convert cell between code and markdown
 while remaining in edit mode?
Message-ID: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>

Hi all,

First of all a big word of thanks to the entire team for all the great and
hard work! I'm using IPython for pretty much all of my work and it gets
better and better by the day and is a joy to use. :)

I have a small remark/request about the new modal interface for the
notebook. I really like it in most ways, but it would be great if there was
a way to convert a cell from code to markdown (and vice versa) *without
having to leave edit mode*.

Background: I frequently find myself in a situation where I just executed a
code cell and now want to enter a few descriptive sentences for the next
piece of code. So I start typing, but since I just executed a code cell the
current cell is also a code cell. I realise this after a few words and then
have to execute three key strokes:

   Esc  -> go into command mode
   m  -> convert cell to markdown
   Enter  -> enter edit mode

Since all of these keys are at different positions on the keyboard, it
makes this process a bit cumbersome, especially because I always lose half
a second or so between each key stroke to check whether it actually did
what I expected it to do. It's not a major problem, but it is annoying
enough to get in my way because it interrupts the mental flow while I'm
focusing on how to write a (possibly non-trivial) explanation for the next
bit of code.

So it would be great if there was a way to simply convert a cell from code
to markdown with a single keyboard shortcut, while *remaining in edit mode*.

Suggestions:

- Currently, the shortcuts "Ctrl-m" and "Esc" have the same meaning in edit
mode (viz., "enter command mode"). Why not change the meaning of "Ctrl-m"
to: "convert current cell to markdown and remain in edit mode"? This plays
nicely with the fact that "m" on its own (without Ctrl) converts a cell to
markdown when in command mode.

- It would be nice to have a similar shortcut for the "reverse" operation
"convert current cell to code cell and remain in edit mode". I would have
suggested "Ctrl-y" for this (due to the same mnemonic reason, since "y"
alone has the same meaning in command mode). But this is already used for
"redo". But I'd be happy with any other shortcut, too.

Apologies for this long email for such a simple request. Thanks for
reading, and thanks for considering it!

Best wishes,
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140420/05c48b0d/attachment.html>

From benjaminrk at gmail.com  Sun Apr 20 14:03:14 2014
From: benjaminrk at gmail.com (MinRK)
Date: Sun, 20 Apr 2014 11:03:14 -0700
Subject: [IPython-dev] Shortcut to convert cell between code and
 markdown while remaining in edit mode?
In-Reply-To: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>
References: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>
Message-ID: <CAHNn8BX=gLYQfqhoH1ZGX7F_nez1My_PwBN-oLrByKQ7nB--Jw@mail.gmail.com>

We probably won?t add this to the default shortcuts, but this is the reason
shortcuts are customizable now. You can add a shortcut to do this in
custom.js, with:

IPython.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-y', {
    help : 'toggle markdown/code',
    handler : function (event) {
        var cell = IPython.notebook.get_selected_cell();
        if (cell.cell_type == 'code') {
            IPython.notebook.to_markdown();
            IPython.notebook.edit_mode();
        } else if (cell.cell_type == 'markdown') {
            IPython.notebook.to_code();
            IPython.notebook.edit_mode();
        }
        return false;
    }
});

in your custom.js

-MinRK


On Sun, Apr 20, 2014 at 10:09 AM, Maximilian Albert <
maximilian.albert at gmail.com> wrote:

> Hi all,
>
> First of all a big word of thanks to the entire team for all the great and
> hard work! I'm using IPython for pretty much all of my work and it gets
> better and better by the day and is a joy to use. :)
>
> I have a small remark/request about the new modal interface for the
> notebook. I really like it in most ways, but it would be great if there was
> a way to convert a cell from code to markdown (and vice versa) *without
> having to leave edit mode*.
>
> Background: I frequently find myself in a situation where I just executed
> a code cell and now want to enter a few descriptive sentences for the next
> piece of code. So I start typing, but since I just executed a code cell the
> current cell is also a code cell. I realise this after a few words and then
> have to execute three key strokes:
>
>    Esc  -> go into command mode
>    m  -> convert cell to markdown
>    Enter  -> enter edit mode
>
> Since all of these keys are at different positions on the keyboard, it
> makes this process a bit cumbersome, especially because I always lose half
> a second or so between each key stroke to check whether it actually did
> what I expected it to do. It's not a major problem, but it is annoying
> enough to get in my way because it interrupts the mental flow while I'm
> focusing on how to write a (possibly non-trivial) explanation for the next
> bit of code.
>
> So it would be great if there was a way to simply convert a cell from code
> to markdown with a single keyboard shortcut, while *remaining in edit mode*.
>
> Suggestions:
>
> - Currently, the shortcuts "Ctrl-m" and "Esc" have the same meaning in
> edit mode (viz., "enter command mode"). Why not change the meaning of
> "Ctrl-m" to: "convert current cell to markdown and remain in edit mode"?
> This plays nicely with the fact that "m" on its own (without Ctrl) converts
> a cell to markdown when in command mode.
>
> - It would be nice to have a similar shortcut for the "reverse" operation
> "convert current cell to code cell and remain in edit mode". I would have
> suggested "Ctrl-y" for this (due to the same mnemonic reason, since "y"
> alone has the same meaning in command mode). But this is already used for
> "redo". But I'd be happy with any other shortcut, too.
>
> Apologies for this long email for such a simple request. Thanks for
> reading, and thanks for considering it!
>
> Best wishes,
> Max
>
> _______________________________________________
> 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/20140420/2d1ea17d/attachment.html>

From jabooth at gmail.com  Sun Apr 20 16:24:10 2014
From: jabooth at gmail.com (James Booth)
Date: Sun, 20 Apr 2014 21:24:10 +0100
Subject: [IPython-dev] Shortcut to convert cell between code and
	markdown while remaining in edit mode?
In-Reply-To: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>
References: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>
Message-ID: <E1F51E52-DA73-4042-956D-53749299E1C1@gmail.com>

I would second this as a bit of a usability pain point, but for a slightly different reason. I don't mind '<esc> <m> <enter>' to quickly switch to markdown and get back to editing  (maybe being a Vim user helps!) but this resets the cursor back to the start of the cell. If the cursor was back where I left it I could realise my error, hit the keystrokes instinctively and get straight back to typing - instead I have to reposition the cursor which does break flow. (Granted, Ctrl-E is usually enough but it's not always the case that my cursor is at the end when I realise my error!)

Would it be an easy fix to remember cursor position between cell type changes? Is there any reason why it goes back to the start every time?

Personally I think this would be a usability improvement regardless of whether there was an option to perform the switch whilst remaining in edit mode as Max is suggesting or not. 

Best,
James

P.S. I've been threatening to get into IPython front end development for ages, if it's not too difficult and people would like this behaviour I'm more than happy to prepare a PR, just aim me in the right general direction!

> On 20 Apr 2014, at 18:09, Maximilian Albert <maximilian.albert at gmail.com> wrote:
> 
> Hi all,
> 
> First of all a big word of thanks to the entire team for all the great and hard work! I'm using IPython for pretty much all of my work and it gets better and better by the day and is a joy to use. :)
> 
> I have a small remark/request about the new modal interface for the notebook. I really like it in most ways, but it would be great if there was a way to convert a cell from code to markdown (and vice versa) *without having to leave edit mode*.
> 
> Background: I frequently find myself in a situation where I just executed a code cell and now want to enter a few descriptive sentences for the next piece of code. So I start typing, but since I just executed a code cell the current cell is also a code cell. I realise this after a few words and then have to execute three key strokes:
> 
>    Esc  -> go into command mode
>    m  -> convert cell to markdown
>    Enter  -> enter edit mode
> 
> Since all of these keys are at different positions on the keyboard, it makes this process a bit cumbersome, especially because I always lose half a second or so between each key stroke to check whether it actually did what I expected it to do. It's not a major problem, but it is annoying enough to get in my way because it interrupts the mental flow while I'm focusing on how to write a (possibly non-trivial) explanation for the next bit of code.
> 
> So it would be great if there was a way to simply convert a cell from code to markdown with a single keyboard shortcut, while *remaining in edit mode*.
> 
> Suggestions:
> 
> - Currently, the shortcuts "Ctrl-m" and "Esc" have the same meaning in edit mode (viz., "enter command mode"). Why not change the meaning of "Ctrl-m" to: "convert current cell to markdown and remain in edit mode"? This plays nicely with the fact that "m" on its own (without Ctrl) converts a cell to markdown when in command mode.
> 
> - It would be nice to have a similar shortcut for the "reverse" operation "convert current cell to code cell and remain in edit mode". I would have suggested "Ctrl-y" for this (due to the same mnemonic reason, since "y" alone has the same meaning in command mode). But this is already used for "redo". But I'd be happy with any other shortcut, too.
> 
> Apologies for this long email for such a simple request. Thanks for reading, and thanks for considering it!
> 
> Best wishes,
> Max
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev


From maximilian.albert at gmail.com  Sun Apr 20 19:01:32 2014
From: maximilian.albert at gmail.com (Maximilian Albert)
Date: Mon, 21 Apr 2014 00:01:32 +0100
Subject: [IPython-dev] Shortcut to convert cell between code and
 markdown while remaining in edit mode?
In-Reply-To: <CAHNn8BX=gLYQfqhoH1ZGX7F_nez1My_PwBN-oLrByKQ7nB--Jw@mail.gmail.com>
References: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>
	<CAHNn8BX=gLYQfqhoH1ZGX7F_nez1My_PwBN-oLrByKQ7nB--Jw@mail.gmail.com>
Message-ID: <CAGA_dmjOUGoZFjFsdKNimhpsbR9z8oafico7_SP0BGK=5Q8N7Q@mail.gmail.com>

Hi Min,

many thanks for the quick reply. I was aware that keyboard shortcut
customization was on the agenda, but hadn't realised that it had hit master
(or even a released version) yet. That's great news! :)

Unfortunately, adding the code you posted to the file
.ipython/profile_nbserver/static/custom/custom.js didn't make any
difference - it seems like the code is simply ignored (I am starting the
notebook using --profile=nbserver, so it should be the correct file,
right?).

However, I can paste the snippet into a running notebook using the
%%javascript magic. If I do this then the keyboard shortcut is indeed
defined and I can use it. But the behaviour is slightly strange in that
once I press Ctrl-y I seem to be "stuck" in the cell I'm editing and can't
leave it using Shift+Enter alone (I have to click with the mouse in a
different cell to get out). However, the following works as expected (not
the additional lines "IPython.notebook.command_mode();"):

==>
IPython.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-y', {
    help : 'toggle markdown/code',
    handler : function (event) {
        var cell = IPython.notebook.get_selected_cell();
        if (cell.cell_type == 'code') {
            IPython.notebook.command_mode();
            IPython.notebook.to_markdown();
            IPython.notebook.edit_mode();
        } else if (cell.cell_type == 'markdown') {
            IPython.notebook.command_mode();
            IPython.notebook.to_code();
            IPython.notebook.edit_mode();
        }
        return false;
    }
});
<==

The only minor drawback is that this also resets the cursor back to the
beginning of the cell (as James noticed in his other email). I guess
whatever the fix is would work in both cases?

Many thanks again!
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140421/7c1fbcfe/attachment.html>

From bussonniermatthias at gmail.com  Sun Apr 20 21:58:04 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Mon, 21 Apr 2014 03:58:04 +0200
Subject: [IPython-dev] --pylab is no more -- Notebook server with --pylab
	now deprecated
Message-ID: <F12439BA-F435-486D-9D6A-8245970F1CAE@gmail.com>

Hi List, 

Sorry for the (slightly) exaggerated title.

TL;DR; 
---------------------

Starting a few hours ago on master

Notebook server will **not** start anymore with the --pylab flag. 

cf https://github.com/ipython/ipython/pull/5593
pylab mode does still exist, --pylab flag for other frontends still exist. (for now)
We recommend using %matplotlib magics, and explicit import. 


---------------------
Longer version. 

As you all know, IPython is constantly moving forward, and we are already 
preparing 3.0 that targets to integrate other non-python kernels deeper into 
the architecture.

To do so we to remove all python-ism that have leaked into the main architecture, 
and one of them is the forwarding of flags from the notebook server to the difference
kernels it starts.

One of the side effect of the following is that the --pylab flag (that does not make
sense for non-IPython kernels) would not have any effect. As we are aware that
despite our (my [3]) rant against the  --pylab flag, lots of you are still using it, and that
seeing warning on the command line might be difficult, hence we know have
prevented the notebook server to start if the pylab flag is passed to it:

$ ipython notebook --pylab
[NotebookApp] ERROR | Support for specifying --pylab on the command line has been removed.
[NotebookApp] ERROR | Please use `%pylab` or `%matplotlib` in the notebook itself.
$

This does not mean of course that you cannot use the pylab mode in other way. 
But if you haven't take the habit, now is a good time to learn the preferred way[1]

%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt

(and the right time to switch to Python 3 too)

Thanks, 
-- 
Matthias, 4am, insomnia post-pycon 

PS:
News post-pycon soon, in the meantime you can have some nice recap here: [2]


[1]: http://mail.scipy.org/pipermail/ipython-dev/2014-March/013411.html
[2]: www.jesshamrick.com/2014/04/18/how-i-learned-to-stop-worrying-and-love-pycon/
[3]: https://carreau.github.io/posts/10-No-PyLab-Thanks.ipynb.html



From zvoros at gmail.com  Mon Apr 21 03:27:57 2014
From: zvoros at gmail.com (=?ISO-8859-1?Q?Zolt=E1n_V=F6r=F6s?=)
Date: Mon, 21 Apr 2014 09:27:57 +0200
Subject: [IPython-dev] Shortcut to convert cell between code and
 markdown while remaining in edit mode?
In-Reply-To: <CAGA_dmjOUGoZFjFsdKNimhpsbR9z8oafico7_SP0BGK=5Q8N7Q@mail.gmail.com>
References: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>	<CAHNn8BX=gLYQfqhoH1ZGX7F_nez1My_PwBN-oLrByKQ7nB--Jw@mail.gmail.com>
	<CAGA_dmjOUGoZFjFsdKNimhpsbR9z8oafico7_SP0BGK=5Q8N7Q@mail.gmail.com>
Message-ID: <5354C87D.2030603@gmail.com>

Max,

On 21/04/14 01:01, Maximilian Albert wrote:
>
> Unfortunately, adding the code you posted to the file 
> .ipython/profile_nbserver/static/custom/custom.js didn't make any 
> difference - it seems like the code is simply ignored (I am starting 
> the notebook using --profile=nbserver, so it should be the correct 
> file, right?).

It is not ignored, but the old js is probably still in the cache of your 
browser. You should clear the cache, whenever you change custom.js.


>
> The only minor drawback is that this also resets the cursor back to 
> the beginning of the cell (as James noticed in his other email). I 
> guess whatever the fix is would work in both cases?
It is possible to read out the cursor's position, and set it. You could 
check the code that is called when you split a cell, and see how it is 
done there.

I hope this helps,

Zolt?n

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

From python at elbonia.de  Mon Apr 21 04:08:33 2014
From: python at elbonia.de (Juergen Hasch)
Date: Mon, 21 Apr 2014 10:08:33 +0200
Subject: [IPython-dev] Shortcut to convert cell between code and
 markdown while remaining in edit mode?
In-Reply-To: <CAGA_dmjOUGoZFjFsdKNimhpsbR9z8oafico7_SP0BGK=5Q8N7Q@mail.gmail.com>
References: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>	<CAHNn8BX=gLYQfqhoH1ZGX7F_nez1My_PwBN-oLrByKQ7nB--Jw@mail.gmail.com>
	<CAGA_dmjOUGoZFjFsdKNimhpsbR9z8oafico7_SP0BGK=5Q8N7Q@mail.gmail.com>
Message-ID: <5354D201.60106@elbonia.de>


The reason you see this behavior is because
a) custom.js gets executed before there is an IPython.keyboard_manager
b) switching between code and markdown cells actually creates a new cell

This should do:

$([IPython.events]).on('app_initialized.NotebookApp', function(){

    IPython.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-y', {
        help : 'toggle markdown/code',
        handler : function (event) {
            var cell = IPython.notebook.get_selected_cell();
            if (cell.cell_type == 'code') {
                var cur = cell.code_mirror.getCursor();
                IPython.notebook.command_mode();
                IPython.notebook.to_markdown();
                IPython.notebook.edit_mode();
                cell = IPython.notebook.get_selected_cell();
                cell.code_mirror.setCursor(cur);
            } else if (cell.cell_type == 'markdown') {
                var cur = cell.code_mirror.getCursor();
                IPython.notebook.command_mode();
                IPython.notebook.to_code();
                IPython.notebook.edit_mode();
                cell = IPython.notebook.get_selected_cell();
                cell.code_mirror.setCursor(cur);
            }
            return false;
        }
    });

});


Am 21.04.2014 01:01, schrieb Maximilian Albert:
> Hi Min,
> 
> many thanks for the quick reply. I was aware that keyboard shortcut customization was on the agenda, but hadn't realised
> that it had hit master (or even a released version) yet. That's great news! :)
> 
> Unfortunately, adding the code you posted to the file .ipython/profile_nbserver/static/custom/custom.js didn't make any
> difference - it seems like the code is simply ignored (I am starting the notebook using --profile=nbserver, so it should
> be the correct file, right?).
> 
> However, I can paste the snippet into a running notebook using the %%javascript magic. If I do this then the keyboard
> shortcut is indeed defined and I can use it. But the behaviour is slightly strange in that once I press Ctrl-y I seem to
> be "stuck" in the cell I'm editing and can't leave it using Shift+Enter alone (I have to click with the mouse in a
> different cell to get out). However, the following works as expected (not the additional lines
> "IPython.notebook.command_mode();"):
> 
> ==>
> IPython.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-y', {
>     help : 'toggle markdown/code',
>     handler : function (event) {
>         var cell = IPython.notebook.get_selected_cell();
>         if (cell.cell_type == 'code') {
>             IPython.notebook.command_mode();
>             IPython.notebook.to_markdown();
>             IPython.notebook.edit_mode();
>         } else if (cell.cell_type == 'markdown') {
>             IPython.notebook.command_mode();
>             IPython.notebook.to_code();
>             IPython.notebook.edit_mode();
>         }
>         return false;
>     }
> });
> <==
> 
> The only minor drawback is that this also resets the cursor back to the beginning of the cell (as James noticed in his
> other email). I guess whatever the fix is would work in both cases?
> 
> Many thanks again!
> Max
> 
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> 



From maximilian.albert at gmail.com  Mon Apr 21 06:06:11 2014
From: maximilian.albert at gmail.com (Maximilian Albert)
Date: Mon, 21 Apr 2014 11:06:11 +0100
Subject: [IPython-dev] Shortcut to convert cell between code and
 markdown while remaining in edit mode?
In-Reply-To: <5354D201.60106@elbonia.de>
References: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>
	<CAHNn8BX=gLYQfqhoH1ZGX7F_nez1My_PwBN-oLrByKQ7nB--Jw@mail.gmail.com>
	<CAGA_dmjOUGoZFjFsdKNimhpsbR9z8oafico7_SP0BGK=5Q8N7Q@mail.gmail.com>
	<5354D201.60106@elbonia.de>
Message-ID: <CAGA_dmgMuhERc86TT2vGZDdCMb9yuONn9YGqC0CMua5F5qVFbw@mail.gmail.com>

Briliant! This works prefectly, and together with Zolt?n's suggestion of
clearing the cache (which I must admit I could have thought of...)
completely solves my problem. Thanks a lot to everybody for the quick and
very helpful replies! :)

Best wishes,
Max


2014-04-21 9:08 GMT+01:00 Juergen Hasch <python at elbonia.de>:

>
> The reason you see this behavior is because
> a) custom.js gets executed before there is an IPython.keyboard_manager
> b) switching between code and markdown cells actually creates a new cell
>
> This should do:
>
> $([IPython.events]).on('app_initialized.NotebookApp', function(){
>
>     IPython.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-y', {
>         help : 'toggle markdown/code',
>         handler : function (event) {
>             var cell = IPython.notebook.get_selected_cell();
>             if (cell.cell_type == 'code') {
>                 var cur = cell.code_mirror.getCursor();
>                 IPython.notebook.command_mode();
>                 IPython.notebook.to_markdown();
>                 IPython.notebook.edit_mode();
>                 cell = IPython.notebook.get_selected_cell();
>                 cell.code_mirror.setCursor(cur);
>             } else if (cell.cell_type == 'markdown') {
>                 var cur = cell.code_mirror.getCursor();
>                 IPython.notebook.command_mode();
>                 IPython.notebook.to_code();
>                 IPython.notebook.edit_mode();
>                 cell = IPython.notebook.get_selected_cell();
>                 cell.code_mirror.setCursor(cur);
>             }
>             return false;
>         }
>     });
>
> });
>
>
> Am 21.04.2014 01:01, schrieb Maximilian Albert:
> > Hi Min,
> >
> > many thanks for the quick reply. I was aware that keyboard shortcut
> customization was on the agenda, but hadn't realised
> > that it had hit master (or even a released version) yet. That's great
> news! :)
> >
> > Unfortunately, adding the code you posted to the file
> .ipython/profile_nbserver/static/custom/custom.js didn't make any
> > difference - it seems like the code is simply ignored (I am starting the
> notebook using --profile=nbserver, so it should
> > be the correct file, right?).
> >
> > However, I can paste the snippet into a running notebook using the
> %%javascript magic. If I do this then the keyboard
> > shortcut is indeed defined and I can use it. But the behaviour is
> slightly strange in that once I press Ctrl-y I seem to
> > be "stuck" in the cell I'm editing and can't leave it using Shift+Enter
> alone (I have to click with the mouse in a
> > different cell to get out). However, the following works as expected
> (not the additional lines
> > "IPython.notebook.command_mode();"):
> >
> > ==>
> > IPython.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-y', {
> >     help : 'toggle markdown/code',
> >     handler : function (event) {
> >         var cell = IPython.notebook.get_selected_cell();
> >         if (cell.cell_type == 'code') {
> >             IPython.notebook.command_mode();
> >             IPython.notebook.to_markdown();
> >             IPython.notebook.edit_mode();
> >         } else if (cell.cell_type == 'markdown') {
> >             IPython.notebook.command_mode();
> >             IPython.notebook.to_code();
> >             IPython.notebook.edit_mode();
> >         }
> >         return false;
> >     }
> > });
> > <==
> >
> > The only minor drawback is that this also resets the cursor back to the
> beginning of the cell (as James noticed in his
> > other email). I guess whatever the fix is would work in both cases?
> >
> > Many thanks again!
> > Max
> >
> >
> > _______________________________________________
> > 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/20140421/05d54a61/attachment.html>

From doug.blank at gmail.com  Mon Apr 21 08:33:46 2014
From: doug.blank at gmail.com (Doug Blank)
Date: Mon, 21 Apr 2014 08:33:46 -0400
Subject: [IPython-dev] IPython parallel client
In-Reply-To: <CAN1J6jUQxJFd+LoHm9ftExYA7t1OSVcvxA4qBk7HwaJXTD5VeQ@mail.gmail.com>
References: <CAN1J6jWQw2fEKGwCTX_pPC7+qndsjMyOuNFpx+KOe8tscJCDaw@mail.gmail.com>
	<CAHNn8BW-gnYoYCYeJDVt=K3Zdo0rsixAy=5fH3tAtGwTWCF72Q@mail.gmail.com>
	<CAN1J6jWJr9MWCAR7U=VyANn_iwJVPFnE=tx8v0HzxKt_psDZpw@mail.gmail.com>
	<CAN1J6jUQxJFd+LoHm9ftExYA7t1OSVcvxA4qBk7HwaJXTD5VeQ@mail.gmail.com>
Message-ID: <CAAusYCiGXQzgLrb6A7Gwu2oWt=0Wa2x-acefB0bXafuWjWHLfQ@mail.gmail.com>

Nathan, thanks for making this, and sharing!

Would it be possible to make this type of code run in a notebook itself? I
know the GUI allows listing, selection of items, and possibly selection of
items for additional detail/control. But it might be a nice use-case to see
if you make the new widgets do what you want, and if not, what is missing.

I'm looking forward to trying this out (and perhaps helping), especially
once we get our 3rd party kernel working with the parallel/distributed
interface.

-Doug


On Sat, Apr 19, 2014 at 11:46 PM, Nathan Faggian
<nathan.faggian at gmail.com>wrote:

> Hi,
>
> I have started a small (spare time) project called "ipcluster_tools",
> which is available here:
>          https://github.com/nfaggian/ipcluster_tools
>
> Using the client connection it is pretty easy to poll the state of the
> cluster thanks to the advice from MinRk. Using this knowledge I built a
> *very* basic tool to visualise the state of jobs but I would really like to
> try and write some tests now.
>
> Any pointers would be great -- so far I have just used a notebook to
> inject jobs and used the graphical interface to spin up workers. Since I
> prefer pytest I would like to try and make something like a "funcarg" that
> spins up a server (prefer function scope) but the setup and tear-down may
> be expensive:
>
>      http://pytest.org/latest/funcargs.html
>
> When I get the tests going to a reasonable level I will change the way
> that the watcher works. The goal is to (if there is a backend that stores
> information) be able to introspect metadata also.
>
> If anyone is keen to help out please fork the repository!
>
> Cheers,
>
> Nathan
>
> On 16 April 2014 12:18, Nathan Faggian <nathan.faggian at gmail.com> wrote:
>
>> Hi MinRk,
>>
>> Thanks for the quick response, that is going to be a great help!
>>
>> Cheers,
>>
>> Nathan.
>>
>> On 16 April 2014 12:01, MinRK <benjaminrk at gmail.com> wrote:
>>
>>> The method you are probably interested in is
>>> `Client.queue_status(verbose=True)`, which lets you see at what jobs are
>>> queued, running, etc. and where. If you want to resubmit a job, you would
>>> use the `resubmit` method, or abort a queued job with `abort`. Do note that
>>> killing isn't supported yet in IPython, though you can probably set this up
>>> fairly easily (trivially, if all your engines are local), as described here:
>>>
>>> http://mail.scipy.org/pipermail/ipython-dev/2014-March/013426.html
>>>
>>>
>>>
>>> On Tue, Apr 15, 2014 at 6:51 PM, Nathan Faggian <
>>> nathan.faggian at gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am interested in building an ipengine status tool for IPython using
>>>> Qt. I was wondering if I could get some direction on querying the HUB to
>>>> get a list of jobs, I have read the "iopubwatcher" example from MinRk,
>>>> which seems like a good starting point.
>>>>
>>>> Though, I am not sure if I should be using the interface provided by
>>>> the client for this task because it seems like two clients don't share
>>>> metadata - one client doesn't know what the other has submitted (I may
>>>> easily be wrong here).
>>>>
>>>> Hope my question isn't too vague -- I am interested in being able to
>>>> point and click on jobs and perform some simple things like kill/re-submit
>>>> them - it would be really useful!
>>>>
>>>> Thanks in advance for any advice,
>>>>
>>>> Nathan.
>>>>
>>>>
>>>> _______________________________________________
>>>> 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/20140421/45e12e54/attachment.html>

From takowl at gmail.com  Mon Apr 21 12:30:45 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Mon, 21 Apr 2014 09:30:45 -0700
Subject: [IPython-dev] Pandawash: extension to conveniently & transparently
	clean up data
Message-ID: <CAOvn4qh+bWcKxz4nUy22Dvtm7RHF5Ciz0s3vH531vtKQ4Lu7dA@mail.gmail.com>

The result of a quick bit of hacking yesterday, pandawash is an IPython
extension to help clean up messy data in pandas dataframes.

The key feature is that it generates plain Python code which you modify to
do the data cleanup. For instance, you can use it to check that the values
in a numeric column are within a specified range. If any values are outside
that, it will create a new cell with the necessary code to replace them;
you just set the replacement values and run the cell. This is more
convenient than finding those values and writing the code yourself, but it
leaves you with full control and a clear record of the changes, unlike more
automatic data cleaning.

Demo:
http://nbviewer.ipython.org/github/takluyver/pandawash/blob/master/Pandawash%20Demo.ipynb

Source code:
https://github.com/takluyver/pandawash

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140421/d3575402/attachment.html>

From aschneider21 at gmail.com  Mon Apr 21 14:06:03 2014
From: aschneider21 at gmail.com (Angelika Schneider)
Date: Mon, 21 Apr 2014 11:06:03 -0700 (PDT)
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <533DB756.2020601@ucsf.edu>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<533C6CD4.9030309@ucsf.edu>
	<CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>
	<533C73BD.3080605@ucsf.edu> <533D166F.9050302@tenner.nl>
	<533D78BE.2080309@ucsf.edu>
	<CAOvn4qgNSD32MmBa5yLmcUZiGwOUzKZMJwLbmZy+maW+5Qsa8Q@mail.gmail.com>
	<533DB756.2020601@ucsf.edu>
Message-ID: <1398103563681-5054329.post@n6.nabble.com>

I have the same problem with Firefox (on Mac, Redhat 5.8 and CentOS 6.5) and
IPython 2.0:

* "ipython notebook" launches the dashboard in Firefox as expected
* "New notebook" creates a new notebook and opens a tab for it, but the page
is blank and the notebook does not show up as "running"
* Opening an existing notebook also yields only a blank page, and the
notebook does not show up as "running"
* No error messages in the terminal window, but the Web Console reports "
SecurityError: The operation is insecure"
* Launching Firefox in safe mode (with all add-ons disabled) does not fix
the problem, creating a new profile does.

After some debugging, I found that the problem is caused by changing  the
cookie preference "Keep until:" " they expire"  to "ask me every time" (in
Preferences->Privacy->History). As soon as I switch  to "they expire" or "I
close Firefox" and reload the page with my notebook, it renders as expected
and the notebook is shown as running. Creating new notebooks works also
correctly.








--
View this message in context: http://python.6.x6.nabble.com/ANNOUNCE-IPython-2-0-0-tp5052387p5054329.html
Sent from the IPython - Development mailing list archive at Nabble.com.


From jon.freder at gmail.com  Mon Apr 21 14:16:27 2014
From: jon.freder at gmail.com (Jonathan Frederic)
Date: Mon, 21 Apr 2014 11:16:27 -0700
Subject: [IPython-dev] Shortcut to convert cell between code and
 markdown while remaining in edit mode?
In-Reply-To: <CAGA_dmgMuhERc86TT2vGZDdCMb9yuONn9YGqC0CMua5F5qVFbw@mail.gmail.com>
References: <CAGA_dmgKNUAX3GEOFCzeY0uumfz7Z-8xA6yOYPtpW310M86x8Q@mail.gmail.com>
	<CAHNn8BX=gLYQfqhoH1ZGX7F_nez1My_PwBN-oLrByKQ7nB--Jw@mail.gmail.com>
	<CAGA_dmjOUGoZFjFsdKNimhpsbR9z8oafico7_SP0BGK=5Q8N7Q@mail.gmail.com>
	<5354D201.60106@elbonia.de>
	<CAGA_dmgMuhERc86TT2vGZDdCMb9yuONn9YGqC0CMua5F5qVFbw@mail.gmail.com>
Message-ID: <CAAoBLw1hFkhZO+CLVNBDQ-d-vbbWqT3OBAfvd=rqQYVVPZO0Mg@mail.gmail.com>

I think the loss of cursor position when hitting `esc`+`m`+`enter` is a
bug.  I'm able to reproduce it and I've opened an issue for it here:
https://github.com/ipython/ipython/issues/5688 .

Cheers,
Jon


On Mon, Apr 21, 2014 at 3:06 AM, Maximilian Albert <
maximilian.albert at gmail.com> wrote:

> Briliant! This works prefectly, and together with Zolt?n's suggestion of
> clearing the cache (which I must admit I could have thought of...)
> completely solves my problem. Thanks a lot to everybody for the quick and
> very helpful replies! :)
>
> Best wishes,
> Max
>
>
> 2014-04-21 9:08 GMT+01:00 Juergen Hasch <python at elbonia.de>:
>
>
>> The reason you see this behavior is because
>> a) custom.js gets executed before there is an IPython.keyboard_manager
>> b) switching between code and markdown cells actually creates a new cell
>>
>> This should do:
>>
>> $([IPython.events]).on('app_initialized.NotebookApp', function(){
>>
>>     IPython.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-y', {
>>         help : 'toggle markdown/code',
>>         handler : function (event) {
>>             var cell = IPython.notebook.get_selected_cell();
>>             if (cell.cell_type == 'code') {
>>                 var cur = cell.code_mirror.getCursor();
>>                 IPython.notebook.command_mode();
>>                 IPython.notebook.to_markdown();
>>                 IPython.notebook.edit_mode();
>>                 cell = IPython.notebook.get_selected_cell();
>>                 cell.code_mirror.setCursor(cur);
>>             } else if (cell.cell_type == 'markdown') {
>>                 var cur = cell.code_mirror.getCursor();
>>                 IPython.notebook.command_mode();
>>                 IPython.notebook.to_code();
>>                 IPython.notebook.edit_mode();
>>                 cell = IPython.notebook.get_selected_cell();
>>                 cell.code_mirror.setCursor(cur);
>>             }
>>             return false;
>>         }
>>     });
>>
>> });
>>
>>
>> Am 21.04.2014 01:01, schrieb Maximilian Albert:
>> > Hi Min,
>> >
>> > many thanks for the quick reply. I was aware that keyboard shortcut
>> customization was on the agenda, but hadn't realised
>> > that it had hit master (or even a released version) yet. That's great
>> news! :)
>> >
>> > Unfortunately, adding the code you posted to the file
>> .ipython/profile_nbserver/static/custom/custom.js didn't make any
>> > difference - it seems like the code is simply ignored (I am starting
>> the notebook using --profile=nbserver, so it should
>> > be the correct file, right?).
>> >
>> > However, I can paste the snippet into a running notebook using the
>> %%javascript magic. If I do this then the keyboard
>> > shortcut is indeed defined and I can use it. But the behaviour is
>> slightly strange in that once I press Ctrl-y I seem to
>> > be "stuck" in the cell I'm editing and can't leave it using Shift+Enter
>> alone (I have to click with the mouse in a
>> > different cell to get out). However, the following works as expected
>> (not the additional lines
>> > "IPython.notebook.command_mode();"):
>> >
>> > ==>
>> > IPython.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-y', {
>> >     help : 'toggle markdown/code',
>> >     handler : function (event) {
>> >         var cell = IPython.notebook.get_selected_cell();
>> >         if (cell.cell_type == 'code') {
>> >             IPython.notebook.command_mode();
>> >             IPython.notebook.to_markdown();
>> >             IPython.notebook.edit_mode();
>> >         } else if (cell.cell_type == 'markdown') {
>> >             IPython.notebook.command_mode();
>> >             IPython.notebook.to_code();
>> >             IPython.notebook.edit_mode();
>> >         }
>> >         return false;
>> >     }
>> > });
>> > <==
>> >
>> > The only minor drawback is that this also resets the cursor back to the
>> beginning of the cell (as James noticed in his
>> > other email). I guess whatever the fix is would work in both cases?
>> >
>> > Many thanks again!
>> > Max
>> >
>> >
>> > _______________________________________________
>> > 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/20140421/7c03167a/attachment.html>

From nathan.faggian at gmail.com  Mon Apr 21 17:58:55 2014
From: nathan.faggian at gmail.com (Nathan Faggian)
Date: Tue, 22 Apr 2014 07:58:55 +1000
Subject: [IPython-dev] IPython parallel client
In-Reply-To: <CAAusYCiGXQzgLrb6A7Gwu2oWt=0Wa2x-acefB0bXafuWjWHLfQ@mail.gmail.com>
References: <CAN1J6jWQw2fEKGwCTX_pPC7+qndsjMyOuNFpx+KOe8tscJCDaw@mail.gmail.com>
	<CAHNn8BW-gnYoYCYeJDVt=K3Zdo0rsixAy=5fH3tAtGwTWCF72Q@mail.gmail.com>
	<CAN1J6jWJr9MWCAR7U=VyANn_iwJVPFnE=tx8v0HzxKt_psDZpw@mail.gmail.com>
	<CAN1J6jUQxJFd+LoHm9ftExYA7t1OSVcvxA4qBk7HwaJXTD5VeQ@mail.gmail.com>
	<CAAusYCiGXQzgLrb6A7Gwu2oWt=0Wa2x-acefB0bXafuWjWHLfQ@mail.gmail.com>
Message-ID: <CAN1J6jUxPMiowMnXyoJqQqy_T0T2jCOqn6=vcomNM+T4fuycfA@mail.gmail.com>

Hi Doug,

Nice idea! I initially thought a notebook or perhaps an additional tab in
the notebook would be a good way for these features to be introduced. Maybe
that could be down the line with some support.  For now I am focused on
some basic command line tools.

I think once I get a good test framework going it will be easy enough to
prototype a few additional ideas and notebooks are a good way of doing
that.

I think the next step for me is to write a layer of indirection over the
client code so that I can have a common base for GUI and command line
interfaces (keen to make ipcluster_cli).

At the moment the watcher tool is *very* basic but that will improve as I
have time. I would appreciate any help, I think the IPython parallel
framework is excellent!

Cheers,

Nathan.

On 21 April 2014 22:33, Doug Blank <doug.blank at gmail.com> wrote:

> Nathan, thanks for making this, and sharing!
>
> Would it be possible to make this type of code run in a notebook itself? I
> know the GUI allows listing, selection of items, and possibly selection of
> items for additional detail/control. But it might be a nice use-case to see
> if you make the new widgets do what you want, and if not, what is missing.
>
> I'm looking forward to trying this out (and perhaps helping), especially
> once we get our 3rd party kernel working with the parallel/distributed
> interface.
>
> -Doug
>
>
> On Sat, Apr 19, 2014 at 11:46 PM, Nathan Faggian <nathan.faggian at gmail.com
> > wrote:
>
>> Hi,
>>
>> I have started a small (spare time) project called "ipcluster_tools",
>> which is available here:
>>          https://github.com/nfaggian/ipcluster_tools
>>
>> Using the client connection it is pretty easy to poll the state of the
>> cluster thanks to the advice from MinRk. Using this knowledge I built a
>> *very* basic tool to visualise the state of jobs but I would really like to
>> try and write some tests now.
>>
>> Any pointers would be great -- so far I have just used a notebook to
>> inject jobs and used the graphical interface to spin up workers. Since I
>> prefer pytest I would like to try and make something like a "funcarg" that
>> spins up a server (prefer function scope) but the setup and tear-down may
>> be expensive:
>>
>>      http://pytest.org/latest/funcargs.html
>>
>> When I get the tests going to a reasonable level I will change the way
>> that the watcher works. The goal is to (if there is a backend that stores
>> information) be able to introspect metadata also.
>>
>> If anyone is keen to help out please fork the repository!
>>
>> Cheers,
>>
>> Nathan
>>
>> On 16 April 2014 12:18, Nathan Faggian <nathan.faggian at gmail.com> wrote:
>>
>>> Hi MinRk,
>>>
>>> Thanks for the quick response, that is going to be a great help!
>>>
>>> Cheers,
>>>
>>> Nathan.
>>>
>>> On 16 April 2014 12:01, MinRK <benjaminrk at gmail.com> wrote:
>>>
>>>> The method you are probably interested in is
>>>> `Client.queue_status(verbose=True)`, which lets you see at what jobs are
>>>> queued, running, etc. and where. If you want to resubmit a job, you would
>>>> use the `resubmit` method, or abort a queued job with `abort`. Do note that
>>>> killing isn't supported yet in IPython, though you can probably set this up
>>>> fairly easily (trivially, if all your engines are local), as described here:
>>>>
>>>> http://mail.scipy.org/pipermail/ipython-dev/2014-March/013426.html
>>>>
>>>>
>>>>
>>>> On Tue, Apr 15, 2014 at 6:51 PM, Nathan Faggian <
>>>> nathan.faggian at gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am interested in building an ipengine status tool for IPython using
>>>>> Qt. I was wondering if I could get some direction on querying the HUB to
>>>>> get a list of jobs, I have read the "iopubwatcher" example from MinRk,
>>>>> which seems like a good starting point.
>>>>>
>>>>> Though, I am not sure if I should be using the interface provided by
>>>>> the client for this task because it seems like two clients don't share
>>>>> metadata - one client doesn't know what the other has submitted (I may
>>>>> easily be wrong here).
>>>>>
>>>>> Hope my question isn't too vague -- I am interested in being able to
>>>>> point and click on jobs and perform some simple things like kill/re-submit
>>>>> them - it would be really useful!
>>>>>
>>>>> Thanks in advance for any advice,
>>>>>
>>>>> Nathan.
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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/20140422/219b30e1/attachment.html>

From pierre.villeneuve at gmail.com  Mon Apr 21 18:32:26 2014
From: pierre.villeneuve at gmail.com (Pierre Villeneuve)
Date: Mon, 21 Apr 2014 15:32:26 -0700
Subject: [IPython-dev] Sharing Custom Widgets
Message-ID: <CANL3p1KodSvSm29vzYKLd+rM0XqswGMOfwjV=TCvqzoMkRYFEA@mail.gmail.com>

I am working on a Notebook project where I want to build an HTML view of my
analysis results, potentially including a good bit of JavaScript.
 Initially I had decided my display would not need to communicate with
anything in Python land and would simply be an isolated interactive
display.  It's not done yet, and I am still struggling with the JavaScript
parts.  Currently I display my HTML and run my JavaScript via IPython's
rich display functions.

I really like the new Widget system and I am considering switching over as
I have new ideas for possible interaction with my display.  I have looked
through a number of examples for custom widget's, but it's not clear how
one might share a custom widget for use by other users.  I see that I can
define everything in a couple of Notebook cells, and then require the user
to step through and execute them.  Or I could require the user to place
files inside their .profile's  static/custom folder, but that seems awkward.

Does there exist a prescription for how I might package a custom widget for
simple installation by a remote users?  From my simple investigation so
far, it looks like RequireJS looks for JavaScript modules in two places:
the default ipython/html folder, or under the user's profile static folder.
 It would be nice if there was a mechanism to specify an additional folder,
e.g. a static folder I define as part of my package that gets installed by
the user.

Thanks for any advice.

*Pierre Villeneuve*
pierre.villeneuve at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140421/3a8b903f/attachment.html>

From jon.freder at gmail.com  Mon Apr 21 19:26:10 2014
From: jon.freder at gmail.com (Jonathan Frederic)
Date: Mon, 21 Apr 2014 16:26:10 -0700
Subject: [IPython-dev] Sharing Custom Widgets
In-Reply-To: <CANL3p1KodSvSm29vzYKLd+rM0XqswGMOfwjV=TCvqzoMkRYFEA@mail.gmail.com>
References: <CANL3p1KodSvSm29vzYKLd+rM0XqswGMOfwjV=TCvqzoMkRYFEA@mail.gmail.com>
Message-ID: <CAAoBLw0hy0krgpvU6NGf-w6cTeJuYQ903OYYtY6S93Df=5-R6w@mail.gmail.com>

Hi Pierre,

My responses are inline below,

Cheers,
Jon


On Mon, Apr 21, 2014 at 3:32 PM, Pierre Villeneuve <
pierre.villeneuve at gmail.com> wrote:

> I am working on a Notebook project where I want to build an HTML view of
> my analysis results, potentially including a good bit of JavaScript.
>  Initially I had decided my display would not need to communicate with
> anything in Python land and would simply be an isolated interactive
> display.  It's not done yet, and I am still struggling with the JavaScript
> parts.  Currently I display my HTML and run my JavaScript via IPython's
> rich display functions.
>
> I really like the new Widget system and I am considering switching over as
> I have new ideas for possible interaction with my display.  I have looked
> through a number of examples for custom widget's, but it's not clear how
> one might share a custom widget for use by other users.  I see that I can
> define everything in a couple of Notebook cells, and then require the user
> to step through and execute them.  Or I could require the user to place
> files inside their .profile's  static/custom folder, but that seems awkward.
>
>
AFAIK the later is the "official" way to redistribute custom JS/CSS.
 Personally, I prefer to include the JS in the same directory is my
notebooks, I think it's easier for the user that way.  It's kind of a hack,
but you can see how I do it in https://github.com/jdfreder/ipython-d3 .
 The idea is to include a .py and .js file next to the notebook.  The .py
file has a function that pushes the .js to the page using the display
framework.  For the user, this means all they have to do is create a
notebook in the same directory and do something like `import custompython;
custompython.publishjs()`.


> Does there exist a prescription for how I might package a custom widget
> for simple installation by a remote users?  From my simple investigation so
> far, it looks like RequireJS looks for JavaScript modules in two places:
> the default ipython/html folder, or under the user's profile static folder.
>  It would be nice if there was a mechanism to specify an additional folder,
> e.g. a static folder I define as part of my package that gets installed by
> the user.
>

We don't have a nice way to package IPython notebook extensions yet...


>
> Thanks for any advice.
>
> *Pierre Villeneuve*
> pierre.villeneuve 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/20140421/755b3643/attachment.html>

From pierre.villeneuve at gmail.com  Mon Apr 21 23:24:06 2014
From: pierre.villeneuve at gmail.com (Pierre Villeneuve)
Date: Mon, 21 Apr 2014 20:24:06 -0700
Subject: [IPython-dev] Sharing Custom Widgets
In-Reply-To: <CAAoBLw0hy0krgpvU6NGf-w6cTeJuYQ903OYYtY6S93Df=5-R6w@mail.gmail.com>
References: <CANL3p1KodSvSm29vzYKLd+rM0XqswGMOfwjV=TCvqzoMkRYFEA@mail.gmail.com>
	<CAAoBLw0hy0krgpvU6NGf-w6cTeJuYQ903OYYtY6S93Df=5-R6w@mail.gmail.com>
Message-ID: <CANL3p1LGQkbD5Ocg+-t1mi1bPOx97Dt5r1hVG4RGO=c3_PrCrA@mail.gmail.com>

Jon,

Thanks for the feedback.  One of my goals is to distribute a package that
contains a class able to "display" my HTML and JS content when others use
it from within their own notebooks.  It looks like I should be able to use
a variant of your method to make this work.

Thanks again.

Pierre V. Villeneuve
pierre.villeneuve at gmail.com
On Apr 21, 2014 4:26 PM, "Jonathan Frederic" <jon.freder at gmail.com> wrote:

> Hi Pierre,
>
> My responses are inline below,
>
> Cheers,
> Jon
>
>
> On Mon, Apr 21, 2014 at 3:32 PM, Pierre Villeneuve <
> pierre.villeneuve at gmail.com> wrote:
>
>> I am working on a Notebook project where I want to build an HTML view of
>> my analysis results, potentially including a good bit of JavaScript.
>>  Initially I had decided my display would not need to communicate with
>> anything in Python land and would simply be an isolated interactive
>> display.  It's not done yet, and I am still struggling with the JavaScript
>> parts.  Currently I display my HTML and run my JavaScript via IPython's
>> rich display functions.
>>
>> I really like the new Widget system and I am considering switching over
>> as I have new ideas for possible interaction with my display.  I have
>> looked through a number of examples for custom widget's, but it's not clear
>> how one might share a custom widget for use by other users.  I see that I
>> can define everything in a couple of Notebook cells, and then require the
>> user to step through and execute them.  Or I could require the user to
>> place files inside their .profile's  static/custom folder, but that seems
>> awkward.
>>
>>
> AFAIK the later is the "official" way to redistribute custom JS/CSS.
>  Personally, I prefer to include the JS in the same directory is my
> notebooks, I think it's easier for the user that way.  It's kind of a hack,
> but you can see how I do it in https://github.com/jdfreder/ipython-d3 .
>  The idea is to include a .py and .js file next to the notebook.  The .py
> file has a function that pushes the .js to the page using the display
> framework.  For the user, this means all they have to do is create a
> notebook in the same directory and do something like `import custompython;
> custompython.publishjs()`.
>
>
>> Does there exist a prescription for how I might package a custom widget
>> for simple installation by a remote users?  From my simple investigation so
>> far, it looks like RequireJS looks for JavaScript modules in two places:
>> the default ipython/html folder, or under the user's profile static folder.
>>  It would be nice if there was a mechanism to specify an additional folder,
>> e.g. a static folder I define as part of my package that gets installed by
>> the user.
>>
>
> We don't have a nice way to package IPython notebook extensions yet...
>
>
>>
>> Thanks for any advice.
>>
>> *Pierre Villeneuve*
>> pierre.villeneuve 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/20140421/723ebc04/attachment.html>

From fperez.net at gmail.com  Tue Apr 22 02:54:19 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Mon, 21 Apr 2014 23:54:19 -0700
Subject: [IPython-dev] Did something go bonkers in master?
Message-ID: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>

Hey guys,

I don't have time to look at this now, but I just pulled and can't start
the nb. Anyone else seeing this?

f

alpamayo[~]> ipynb
Traceback (most recent call last):
  File "/home/fperez/usr/bin/ipython", line 4, in <module>
    start_ipython()
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/__init__.py",
line 120, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/config/application.py",
line 547, in launch_instance
    app.initialize(argv)
  File "<string>", line 2, in initialize
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/config/application.py",
line 74, in catch_config_error
    return method(app, *args, **kwargs)
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/terminal/ipapp.py",
line 321, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "<string>", line 2, in initialize
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/config/application.py",
line 74, in catch_config_error
    return method(app, *args, **kwargs)
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/core/application.py",
line 381, in initialize
    self.parse_command_line(argv)
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/terminal/ipapp.py",
line 316, in parse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
  File "<string>", line 2, in parse_command_line
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/config/application.py",
line 74, in catch_config_error
    return method(app, *args, **kwargs)
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/config/application.py",
line 459, in parse_command_line
    return self.initialize_subcommand(subc, subargv)
  File "<string>", line 2, in initialize_subcommand
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/config/application.py",
line 74, in catch_config_error
    return method(app, *args, **kwargs)
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/config/application.py",
line 390, in initialize_subcommand
    subapp = import_item(subapp)
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/utils/importstring.py",
line 42, in import_item
    module = __import__(package, fromlist=[obj])
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/html/notebookapp.py",
line 58, in <module>
    from .services.clusters.clustermanager import ClusterManager
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/html/services/clusters/clustermanager.py",
line 24, in <module>
    from IPython.parallel.apps.ipclusterapp import IPClusterStart
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/parallel/__init__.py",
line 33, in <module>
    from .client.client import Client
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/parallel/client/client.py",
line 51, in <module>
    from IPython.parallel import util
  File
"/home/fperez/usr/lib/python2.7/site-packages/IPython/parallel/util.py",
line 3
SyntaxError: Non-ASCII character '\xe2' in file
/home/fperez/usr/lib/python2.7/site-packages/IPython/parallel/util.py on
line 3, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details




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

From bussonniermatthias at gmail.com  Tue Apr 22 03:15:02 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Tue, 22 Apr 2014 09:15:02 +0200
Subject: [IPython-dev] Did something go bonkers in master?
In-Reply-To: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>
References: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>
Message-ID: <61AF4637-8BBE-456B-9671-61AC17ACCFEA@gmail.com>


Le 22 avr. 2014 ? 08:54, Fernando Perez a ?crit :

> Hey guys,
> 
> I don't have time to look at this now, but I just pulled and can't start the nb. Anyone else seeing this?
> 
>   File "/home/fperez/usr/lib/python2.7/site-packages/IPython/parallel/client/client.py", line 51, in <module>
>     from IPython.parallel import util
>   File "/home/fperez/usr/lib/python2.7/site-packages/IPython/parallel/util.py", line 3
> SyntaxError: Non-ASCII character '\xe2' in file /home/fperez/usr/lib/python2.7/site-packages/IPython/parallel/util.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details


Nop, nothing. 

Copyright was updated on the first of april though, but only ASCII.

What are you doing up so late ? 
--
M

> 
> 
> 
> 
> -- 
> 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/20140422/c2a3737d/attachment.html>

From bussonniermatthias at gmail.com  Tue Apr 22 03:43:46 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Tue, 22 Apr 2014 09:43:46 +0200
Subject: [IPython-dev] [EXTERNAL] Re:  A fresh approach for plotting?
In-Reply-To: <FA1F1690-B2AE-44F4-B47D-1E6ACE16CDD8@sandia.gov>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
	<9868D299-C9ED-4F03-B2F6-AFD9E634FF07@gmail.com>
	<0DDCE823-D252-4610-8BE6-68485CBDB628@sandia.gov>
	<20140416214102.GB15703@HbI-OTOH.berkeley.edu>
	<FA1F1690-B2AE-44F4-B47D-1E6ACE16CDD8@sandia.gov>
Message-ID: <877B360F-32A4-45C1-83CB-7EFD3DA64F09@gmail.com>


Hi Tim, 

Sorry for the time to respond and not having been clear.

Le 17 avr. 2014 ? 00:22, Shead, Timothy a ?crit :
> Matthias:
> 
> I?m not sure whether I grok plot.ly, but it seems to require sending my data to someone else?s server, which is a complete nonstarter for me.

Actually, mpld3 and plot.ly both share an common framework which is open-source and don't require sending data to plot.ly server :

https://github.com/mpld3/mplexporter

I was suggesting getting in contact with jake and the plotly team to merge your effort on this project. 
-- 
M


> 
> Cheers,
> Tim
> 
> On Apr 16, 2014, at 3:41 PM, Paul Ivanov <pi at berkeley.edu> wrote:
> 
>> Shead, Timothy, on 2014-04-16 20:58,  wrote:
>>> I will definitely check these out.  I?m also going to ping the
>>> matplotlib folks to see if they?ve considered an SVG backend.
>>> If they did, I probably wouldn?t fight it :)
>> 
>> matplotlib has an SVG backend, here's how you use it in the
>> notebook:
>> 
>>   %matplotlib inline 
>>   import matplotlib.pyplot as plt
>>   import numpy as np
>>   from IPython.display import set_matplotlib_formats
>>   set_matplotlib_formats('svg')
>>   x,y,z,c = np.random.randn(4, 20)
>>   plt.scatter(x,y, s=np.abs(z)*100, c=c)
>> 
>> http://nbviewer.ipython.org/gist/ivanov/10935754
>> 
>> 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
> 
> Timothy M. Shead
> Sandia National Laboratories
> 1461, Scalable Analysis and Visualization
> 
> _______________________________________________
> 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/20140422/db649e42/attachment.html>

From bussonniermatthias at gmail.com  Tue Apr 22 05:16:24 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Tue, 22 Apr 2014 11:16:24 +0200
Subject: [IPython-dev] tracking nbconvert-generated images in version
	control
In-Reply-To: <5352D8CB.5050704@third-bit.com>
References: <53517653.8040208@third-bit.com>	<CAJXewOkS__CpBPPUFK8tX8Lg35VNAw0xw2mee2MSb7dozY88cA@mail.gmail.com>	<53528F4A.8010903@third-bit.com>
	<1408AC88-5891-48C7-BA4B-A632EE9039DA@gmail.com>
	<5352D8CB.5050704@third-bit.com>
Message-ID: <26A6847D-0591-415A-B90D-10E3EDBE693D@gmail.com>


Le 19 avr. 2014 ? 22:12, Greg Wilson a ?crit :

> On 2014-04-19 11:07 AM, Matthias BUSSONNIER wrote:
>> Le 19 avr. 2014 ? 16:59, Greg Wilson a ?crit :
>> 
>>> Hi Nathan,
>>>> You could modify Jekyll to do this operation.  You wouldn't need to
>>>> worry about converting the notebook to HTML, I think, so your job
>>>> would be a bit simpler than what RunNotebook does.
>>> Unfortunately, GitHub won't run install or run any hacks we make to Jekyll.
>> I can try to hack nbconvert to name the figure by their hash.
>> Hence same figure would have same hash across conversions.
>> (supposing the generated figures are identical of course)
>> 
>> What do you think ?
> What about allowing users to attach names to plots (or to the code that 
> generates them), then using that name for the persisted file? Names 
> could go in cell metadata, and could then also serve as anchors for linking?

yes, that's probably doable.
It can also probably go into plot metadata, on the output level. 

We can probably have something on python side that does it and hook into display protocol.

-- 
M

> 
> Thx,
> G
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From jakevdp at cs.washington.edu  Tue Apr 22 09:55:38 2014
From: jakevdp at cs.washington.edu (Jacob Vanderplas)
Date: Tue, 22 Apr 2014 06:55:38 -0700
Subject: [IPython-dev] [EXTERNAL] Re: A fresh approach for plotting?
In-Reply-To: <877B360F-32A4-45C1-83CB-7EFD3DA64F09@gmail.com>
References: <16759AA8-B511-401C-BAD8-10C62B06798B@sandia.gov>
	<9868D299-C9ED-4F03-B2F6-AFD9E634FF07@gmail.com>
	<0DDCE823-D252-4610-8BE6-68485CBDB628@sandia.gov>
	<20140416214102.GB15703@HbI-OTOH.berkeley.edu>
	<FA1F1690-B2AE-44F4-B47D-1E6ACE16CDD8@sandia.gov>
	<877B360F-32A4-45C1-83CB-7EFD3DA64F09@gmail.com>
Message-ID: <CACpqBg2Q-B7KSqPMRGVVrz+8HPzkkF98N4w9twX9Zv6sfEW+gQ@mail.gmail.com>

On Tue, Apr 22, 2014 at 12:43 AM, Matthias BUSSONNIER <
bussonniermatthias at gmail.com> wrote:
>
>
> Actually, mpld3 and plot.ly both share an common framework which is
> open-source and don't require sending data to plot.ly server :
>

This is not precisely true: the mplexporter framework is an open sourced
means of extracting data from a matplotlib plot. Both mpld3 and plotly have
hooks to use this, but that's where the similarities between plotly and
mpld3 end.

mpld3 is entirely open source, and creates a client-side view of the plot
which uses HTML/D3js.  Plotly's core plotting code is closed-source, and
once you call the plotly API it does in fact move your data to their server
in order to call proprietary code to generate your plot.

You can use mpld3 without being connected to the internet; you can't use
plotly without a web connection.

You can view the mpld3 python and javascript source on github; there is no
way that I know of to examine the source code that generates plotly plots.

I hope that clarifies things,
   Jake



>
> https://github.com/mpld3/mplexporter
>
> I was suggesting getting in contact with jake and the plotly team to merge
> your effort on this project.
> --
> M
>
>
>
> Cheers,
> Tim
>
> On Apr 16, 2014, at 3:41 PM, Paul Ivanov <pi at berkeley.edu> wrote:
>
> Shead, Timothy, on 2014-04-16 20:58,  wrote:
>
> I will definitely check these out.  I?m also going to ping the
>
> matplotlib folks to see if they?ve considered an SVG backend.
>
> If they did, I probably wouldn?t fight it :)
>
>
> matplotlib has an SVG backend, here's how you use it in the
>
> notebook:
>
>
>   %matplotlib inline
>
>   import matplotlib.pyplot as plt
>
>   import numpy as np
>
>   from IPython.display import set_matplotlib_formats
>
>   set_matplotlib_formats('svg')
>
>   x,y,z,c = np.random.randn(4, 20)
>
>   plt.scatter(x,y, s=np.abs(z)*100, c=c)
>
>
> http://nbviewer.ipython.org/gist/ivanov/10935754
>
>
> 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
>
>
> Timothy M. Shead
> Sandia National Laboratories
> 1461, Scalable Analysis and Visualization
>
> _______________________________________________
> 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/20140422/8c9a04c1/attachment.html>

From takowl at gmail.com  Tue Apr 22 12:35:57 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Tue, 22 Apr 2014 09:35:57 -0700
Subject: [IPython-dev] Did something go bonkers in master?
In-Reply-To: <61AF4637-8BBE-456B-9671-61AC17ACCFEA@gmail.com>
References: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>
	<61AF4637-8BBE-456B-9671-61AC17ACCFEA@gmail.com>
Message-ID: <CAOvn4qgJAMMKQL4pVbcn27ttBLGTxx=_x1urZdOG7BaeKOOfrg@mail.gmail.com>

On 22 April 2014 00:15, Matthias BUSSONNIER <bussonniermatthias at gmail.com>wrote:

> Nop, nothing.
>
> Copyright was updated on the first of april though, but only ASCII.
>

I could reproduce it this morning - the problematic character was en space,
\u2002. Unfortunately, that looks identical to a regular space in fixed
width fonts. I've pushed a fix straight to master, though Philip Cloud had
a PR with probably the same fix.

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

From abhishek.vit at gmail.com  Tue Apr 22 15:11:36 2014
From: abhishek.vit at gmail.com (Abhishek Pratap)
Date: Tue, 22 Apr 2014 12:11:36 -0700
Subject: [IPython-dev] notebook friendly blogging sites
Message-ID: <CAJbA1KBYkRVBwH8=vTrkN+ttipSNkHXgb3w0y=LWm7WKpkn2qw@mail.gmail.com>

Hey Guys

Looking for blogging sites where I can easily integrate ipython
notebooks and may be actually write the whole blog within the
notebook.

Any recommendations ?

Thanks!
-Abhi


From aron at ahmadia.net  Tue Apr 22 15:23:03 2014
From: aron at ahmadia.net (Aron Ahmadia)
Date: Tue, 22 Apr 2014 15:23:03 -0400
Subject: [IPython-dev] notebook friendly blogging sites
In-Reply-To: <CAJbA1KBYkRVBwH8=vTrkN+ttipSNkHXgb3w0y=LWm7WKpkn2qw@mail.gmail.com>
References: <CAJbA1KBYkRVBwH8=vTrkN+ttipSNkHXgb3w0y=LWm7WKpkn2qw@mail.gmail.com>
Message-ID: <CAPhiW4gQ47d1i0BJpNW34DXDWpkkAGbTSZTKMDi3FHHDS0cjEQ@mail.gmail.com>

Hi Abhishek,

While I was visiting Continuum, I wrote several IPython Notebook/blogs
that we hosted on Wakari.  Here's an example
https://www.wakari.io/nb/aron/Accelerating_Python_Libraries_with_Numba___Part_1

I think Wakari would be your quickest route to getting started
blogging with the IPython Notebook.  You can author and share public
notebooks for free.  The nice thing about Wakari notebooks is that
they are executable.

I think a lot of the other IPython bloggers are using custom setups
and hosting their own.  Here's Jake Vanderplas's post about migrating
to the Pelican templating engine (he's hosting on GitHub):
https://jakevdp.github.io/blog/2013/05/07/migrating-from-octopress-to-pelican/

You can also just upload a notebook to GitHub or similar and use
nbconvert to render them.  That's how Software Carpentry hosts their
"live" lessons:
http://nbviewer.ipython.org/github/swcarpentry/bc/blob/master/novice/python/01-numpy.ipynb
 The notebooks can be converted to HTML before uploading as well:
http://software-carpentry.org/v5/novice/python/01-numpy.html  This
method is probably the most popular, as you can upload the notebooks
as well.

Be sure to submit a link to the IPython subreddit when you blog:
http://www.reddit.com/r/ipython

Good luck!

-Aron

On Tue, Apr 22, 2014 at 3:11 PM, Abhishek Pratap <abhishek.vit at gmail.com> wrote:
> Hey Guys
>
> Looking for blogging sites where I can easily integrate ipython
> notebooks and may be actually write the whole blog within the
> notebook.
>
> Any recommendations ?
>
> Thanks!
> -Abhi
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev


From moboyle79 at yahoo.com  Tue Apr 22 15:29:05 2014
From: moboyle79 at yahoo.com (Mike Boyle)
Date: Tue, 22 Apr 2014 12:29:05 -0700 (PDT)
Subject: [IPython-dev] Keyboard shortcuts for slide types in ipython notebook
Message-ID: <1398194945.29366.YahooMailNeo@web160605.mail.bf1.yahoo.com>

I'm preparing my first real slideshow with the notebook, and was just wondering if there's an easy way for javascript to manipulate the slide type. ?I've added the appropriate code to my custom.js -- almost. ?Here's what I've tried so far (for the particular case of changing the slide type to a Fragment):

? ? ? ? 'alt-f' : {
? ? ? ? ? ? help : 'Slide Type: Fragment',
? ? ? ? ? ? help_index : 'sd',
? ? ? ? ? ? handler : function (event) {
? ? ? ? ? ? ? ? var cell = IPython.notebook.get_selected_cell();
? ? ? ? ? ? ? ? if (cell.metadata.slideshow == undefined) {cell.metadata.slideshow = {}}
? ? ? ? ? ? ? ? cell.metadata.slideshow.slide_type = 'fragment';
? ? ? ? ? ? ? ? return false;
? ? ? ? ? ? }
? ? ? ? },

This does seem to change the metadata successfully, but obviously it doesn't change the value in that `select` element. ?But I can't figure out how to get that select element and change its value directly (because I'm terrible at javascript). ?Anyone more clever than me who knows how to do it?

Thanks very much!

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140422/5577dd1e/attachment.html>

From abhishek.vit at gmail.com  Tue Apr 22 15:51:33 2014
From: abhishek.vit at gmail.com (Abhishek Pratap)
Date: Tue, 22 Apr 2014 12:51:33 -0700
Subject: [IPython-dev] notebook friendly blogging sites
In-Reply-To: <CAPhiW4gQ47d1i0BJpNW34DXDWpkkAGbTSZTKMDi3FHHDS0cjEQ@mail.gmail.com>
References: <CAJbA1KBYkRVBwH8=vTrkN+ttipSNkHXgb3w0y=LWm7WKpkn2qw@mail.gmail.com>
	<CAPhiW4gQ47d1i0BJpNW34DXDWpkkAGbTSZTKMDi3FHHDS0cjEQ@mail.gmail.com>
Message-ID: <CAJbA1KCwfAxGfs=Yc0LLu4rv-jgV49Qd4y-CipYQsQ7ygysCVA@mail.gmail.com>

Thanks Aron. I was also looking at using github.io for hosting my
blog/notebooks but not sure which templating engine I should be using.
Certainly dont want to invest any significant time in learning a new
engine.

-Abhi

On Tue, Apr 22, 2014 at 12:23 PM, Aron Ahmadia <aron at ahmadia.net> wrote:
> Hi Abhishek,
>
> While I was visiting Continuum, I wrote several IPython Notebook/blogs
> that we hosted on Wakari.  Here's an example
> https://www.wakari.io/nb/aron/Accelerating_Python_Libraries_with_Numba___Part_1
>
> I think Wakari would be your quickest route to getting started
> blogging with the IPython Notebook.  You can author and share public
> notebooks for free.  The nice thing about Wakari notebooks is that
> they are executable.
>
> I think a lot of the other IPython bloggers are using custom setups
> and hosting their own.  Here's Jake Vanderplas's post about migrating
> to the Pelican templating engine (he's hosting on GitHub):
> https://jakevdp.github.io/blog/2013/05/07/migrating-from-octopress-to-pelican/
>
> You can also just upload a notebook to GitHub or similar and use
> nbconvert to render them.  That's how Software Carpentry hosts their
> "live" lessons:
> http://nbviewer.ipython.org/github/swcarpentry/bc/blob/master/novice/python/01-numpy.ipynb
>  The notebooks can be converted to HTML before uploading as well:
> http://software-carpentry.org/v5/novice/python/01-numpy.html  This
> method is probably the most popular, as you can upload the notebooks
> as well.
>
> Be sure to submit a link to the IPython subreddit when you blog:
> http://www.reddit.com/r/ipython
>
> Good luck!
>
> -Aron
>
> On Tue, Apr 22, 2014 at 3:11 PM, Abhishek Pratap <abhishek.vit at gmail.com> wrote:
>> Hey Guys
>>
>> Looking for blogging sites where I can easily integrate ipython
>> notebooks and may be actually write the whole blog within the
>> notebook.
>>
>> Any recommendations ?
>>
>> Thanks!
>> -Abhi
>> _______________________________________________
>> 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 bussonniermatthias at gmail.com  Tue Apr 22 16:41:02 2014
From: bussonniermatthias at gmail.com (Matthias Bussonnier)
Date: Tue, 22 Apr 2014 22:41:02 +0200
Subject: [IPython-dev] notebook friendly blogging sites
In-Reply-To: <CAJbA1KCwfAxGfs=Yc0LLu4rv-jgV49Qd4y-CipYQsQ7ygysCVA@mail.gmail.com>
References: <CAJbA1KBYkRVBwH8=vTrkN+ttipSNkHXgb3w0y=LWm7WKpkn2qw@mail.gmail.com>
	<CAPhiW4gQ47d1i0BJpNW34DXDWpkkAGbTSZTKMDi3FHHDS0cjEQ@mail.gmail.com>
	<CAJbA1KCwfAxGfs=Yc0LLu4rv-jgV49Qd4y-CipYQsQ7ygysCVA@mail.gmail.com>
Message-ID: <CE86AF48-C5EA-491C-81D1-2BD362C23B8C@gmail.com>

Hi, 

As Aaron pointed out, pelican support ipynb with liquid tags plugin, 
and Damian Avila have also developed a Nikolas plugin for IPython 
with a 1 click deploy to github.io. 

http://www.damian.oquanta.info/posts/deploy-your-nikola-powered-blog-content-from-the-ipython-notebook.html

Cheers, 
-- 
Matthias

Le 22 avr. 2014 ? 21:51, Abhishek Pratap a ?crit :

> Thanks Aron. I was also looking at using github.io for hosting my
> blog/notebooks but not sure which templating engine I should be using.
> Certainly dont want to invest any significant time in learning a new
> engine.
> 
> -Abhi
> 
> On Tue, Apr 22, 2014 at 12:23 PM, Aron Ahmadia <aron at ahmadia.net> wrote:
>> Hi Abhishek,
>> 
>> While I was visiting Continuum, I wrote several IPython Notebook/blogs
>> that we hosted on Wakari.  Here's an example
>> https://www.wakari.io/nb/aron/Accelerating_Python_Libraries_with_Numba___Part_1
>> 
>> I think Wakari would be your quickest route to getting started
>> blogging with the IPython Notebook.  You can author and share public
>> notebooks for free.  The nice thing about Wakari notebooks is that
>> they are executable.
>> 
>> I think a lot of the other IPython bloggers are using custom setups
>> and hosting their own.  Here's Jake Vanderplas's post about migrating
>> to the Pelican templating engine (he's hosting on GitHub):
>> https://jakevdp.github.io/blog/2013/05/07/migrating-from-octopress-to-pelican/
>> 
>> You can also just upload a notebook to GitHub or similar and use
>> nbconvert to render them.  That's how Software Carpentry hosts their
>> "live" lessons:
>> http://nbviewer.ipython.org/github/swcarpentry/bc/blob/master/novice/python/01-numpy.ipynb
>> The notebooks can be converted to HTML before uploading as well:
>> http://software-carpentry.org/v5/novice/python/01-numpy.html  This
>> method is probably the most popular, as you can upload the notebooks
>> as well.
>> 
>> Be sure to submit a link to the IPython subreddit when you blog:
>> http://www.reddit.com/r/ipython
>> 
>> Good luck!
>> 
>> -Aron
>> 
>> On Tue, Apr 22, 2014 at 3:11 PM, Abhishek Pratap <abhishek.vit at gmail.com> wrote:
>>> Hey Guys
>>> 
>>> Looking for blogging sites where I can easily integrate ipython
>>> notebooks and may be actually write the whole blog within the
>>> notebook.
>>> 
>>> Any recommendations ?
>>> 
>>> Thanks!
>>> -Abhi
>>> _______________________________________________
>>> 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 scott.s.burns at vanderbilt.edu  Tue Apr 22 16:52:52 2014
From: scott.s.burns at vanderbilt.edu (Scott Burns)
Date: Tue, 22 Apr 2014 15:52:52 -0500
Subject: [IPython-dev] Altering interact controls at run-time
Message-ID: <21321AD6-DF79-45B6-83E2-12D7F49FF41A@vanderbilt.edu>

I published a little [toy MR 
viewer](https://github.com/sburns/mrinteract) built on the new interact 
infrastructure. It's amazing how  much work that little function is 
doing.

One thing I couldn't figure was whether it's possible to alter the range 
of sliders based on the values of other controls? For example, a slider 
should go between 0 and 10 when a dropdown is 'a', but between 0-5 when 
the dropdown is set to 'b'.

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

From takowl at gmail.com  Tue Apr 22 17:41:17 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Tue, 22 Apr 2014 14:41:17 -0700
Subject: [IPython-dev] Project 'performance report'
Message-ID: <CAOvn4qjG8ad9z20kymbmggzcWaBXYZ2JDgtGNGACYjdYrSk+Hw@mail.gmail.com>

I found this page at some point - it analyses Github data to produce an
automated performance report, showing things like how long pull requests
stay open for and the percentage of commits coming from the community (not
clear how that's defined):

http://ghtorrent.org/pullreq-perf/ipython-ipython/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140422/341e3281/attachment.html>

From damianavila at gmail.com  Tue Apr 22 17:50:58 2014
From: damianavila at gmail.com (=?UTF-8?Q?Dami=C3=A1n_Avila?=)
Date: Tue, 22 Apr 2014 18:50:58 -0300
Subject: [IPython-dev] notebook friendly blogging sites
In-Reply-To: <CE86AF48-C5EA-491C-81D1-2BD362C23B8C@gmail.com>
References: <CAJbA1KBYkRVBwH8=vTrkN+ttipSNkHXgb3w0y=LWm7WKpkn2qw@mail.gmail.com>
	<CAPhiW4gQ47d1i0BJpNW34DXDWpkkAGbTSZTKMDi3FHHDS0cjEQ@mail.gmail.com>
	<CAJbA1KCwfAxGfs=Yc0LLu4rv-jgV49Qd4y-CipYQsQ7ygysCVA@mail.gmail.com>
	<CE86AF48-C5EA-491C-81D1-2BD362C23B8C@gmail.com>
Message-ID: <CAH+mRR1EZCShJLDXKLaxTm0_XjpKH8j66wrS0DPKAqiy6YK0Ng@mail.gmail.com>

In fact, the "ipynb" plugin is part of the Nikola's core at this moment
(not only a plugin) ;-)


2014-04-22 17:41 GMT-03:00 Matthias Bussonnier <bussonniermatthias at gmail.com
>:

> Hi,
>
> As Aaron pointed out, pelican support ipynb with liquid tags plugin,
> and Damian Avila have also developed a Nikolas plugin for IPython
> with a 1 click deploy to github.io.
>
>
> http://www.damian.oquanta.info/posts/deploy-your-nikola-powered-blog-content-from-the-ipython-notebook.html
>
> Cheers,
> --
> Matthias
>
> Le 22 avr. 2014 ? 21:51, Abhishek Pratap a ?crit :
>
> > Thanks Aron. I was also looking at using github.io for hosting my
> > blog/notebooks but not sure which templating engine I should be using.
> > Certainly dont want to invest any significant time in learning a new
> > engine.
> >
> > -Abhi
> >
> > On Tue, Apr 22, 2014 at 12:23 PM, Aron Ahmadia <aron at ahmadia.net> wrote:
> >> Hi Abhishek,
> >>
> >> While I was visiting Continuum, I wrote several IPython Notebook/blogs
> >> that we hosted on Wakari.  Here's an example
> >>
> https://www.wakari.io/nb/aron/Accelerating_Python_Libraries_with_Numba___Part_1
> >>
> >> I think Wakari would be your quickest route to getting started
> >> blogging with the IPython Notebook.  You can author and share public
> >> notebooks for free.  The nice thing about Wakari notebooks is that
> >> they are executable.
> >>
> >> I think a lot of the other IPython bloggers are using custom setups
> >> and hosting their own.  Here's Jake Vanderplas's post about migrating
> >> to the Pelican templating engine (he's hosting on GitHub):
> >>
> https://jakevdp.github.io/blog/2013/05/07/migrating-from-octopress-to-pelican/
> >>
> >> You can also just upload a notebook to GitHub or similar and use
> >> nbconvert to render them.  That's how Software Carpentry hosts their
> >> "live" lessons:
> >>
> http://nbviewer.ipython.org/github/swcarpentry/bc/blob/master/novice/python/01-numpy.ipynb
> >> The notebooks can be converted to HTML before uploading as well:
> >> http://software-carpentry.org/v5/novice/python/01-numpy.html  This
> >> method is probably the most popular, as you can upload the notebooks
> >> as well.
> >>
> >> Be sure to submit a link to the IPython subreddit when you blog:
> >> http://www.reddit.com/r/ipython
> >>
> >> Good luck!
> >>
> >> -Aron
> >>
> >> On Tue, Apr 22, 2014 at 3:11 PM, Abhishek Pratap <
> abhishek.vit at gmail.com> wrote:
> >>> Hey Guys
> >>>
> >>> Looking for blogging sites where I can easily integrate ipython
> >>> notebooks and may be actually write the whole blog within the
> >>> notebook.
> >>>
> >>> Any recommendations ?
> >>>
> >>> Thanks!
> >>> -Abhi
> >>> _______________________________________________
> >>> 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
>



-- 
*Dami?n*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140422/0093666e/attachment.html>

From jon.freder at gmail.com  Tue Apr 22 18:13:39 2014
From: jon.freder at gmail.com (Jonathan Frederic)
Date: Tue, 22 Apr 2014 15:13:39 -0700
Subject: [IPython-dev] Altering interact controls at run-time
In-Reply-To: <21321AD6-DF79-45B6-83E2-12D7F49FF41A@vanderbilt.edu>
References: <21321AD6-DF79-45B6-83E2-12D7F49FF41A@vanderbilt.edu>
Message-ID: <CAAoBLw2SqfPHz5_dOjfWmKhKdMEgbguWet7SGR+xS_9tZOYPOg@mail.gmail.com>

Hi Scott,

There are a few of ways to do this.

The easiest is to create the widget instance yourself and pass it into
interact.  See input 4 of this notebook
http://nbviewer.ipython.org/github/ipython/ipython/blob/2.x/examples/Interactive%20Widgets/Using%20Interact.ipynb,
a is assigned to a custom FloatSliderWidget.  You could do the same
thing, but construct the slider before the interact call.  This would give
you a handle to the slider that you could use in your function.

Another method is to use the version of interact that returns handles to
the widget instances.

Lastly, you can always create and manage the widgets yourself, without
interact.  See the other widget example notebooks for more information.

Cheers,
Jon


On Tue, Apr 22, 2014 at 1:52 PM, Scott Burns
<scott.s.burns at vanderbilt.edu>wrote:

> I published a little toy MR viewer <https://github.com/sburns/mrinteract>built on the new interact infrastructure. It's amazing how much work that
> little function is doing.
>
> One thing I couldn't figure was whether it's possible to alter the range
> of sliders based on the values of other controls? For example, a slider
> should go between 0 and 10 when a dropdown is 'a', but between 0-5 when the
> dropdown is set to 'b'.
>
> --Scott
>
> _______________________________________________
> 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/20140422/3cb42877/attachment.html>

From ocefpaf at gmail.com  Tue Apr 22 18:19:14 2014
From: ocefpaf at gmail.com (Filipe Pires Alvarenga Fernandes)
Date: Tue, 22 Apr 2014 19:19:14 -0300
Subject: [IPython-dev] notebook friendly blogging sites
In-Reply-To: <CAH+mRR1EZCShJLDXKLaxTm0_XjpKH8j66wrS0DPKAqiy6YK0Ng@mail.gmail.com>
References: <CAJbA1KBYkRVBwH8=vTrkN+ttipSNkHXgb3w0y=LWm7WKpkn2qw@mail.gmail.com>
	<CAPhiW4gQ47d1i0BJpNW34DXDWpkkAGbTSZTKMDi3FHHDS0cjEQ@mail.gmail.com>
	<CAJbA1KCwfAxGfs=Yc0LLu4rv-jgV49Qd4y-CipYQsQ7ygysCVA@mail.gmail.com>
	<CE86AF48-C5EA-491C-81D1-2BD362C23B8C@gmail.com>
	<CAH+mRR1EZCShJLDXKLaxTm0_XjpKH8j66wrS0DPKAqiy6YK0Ng@mail.gmail.com>
Message-ID: <CAH2VmmCNh5_pvgx=j2zSi7tAvrn46KCHbS4tMAAHHrS6+za5Ug@mail.gmail.com>

Hi Abhishek,

I use Jake's liquid tag approach and wrote a small tutorial to build a blog
hosted at github.ioL

http://ocefpaf.github.io/python4oceanographers/blog/2013/12/23/blog/

Let me know if that is useful for you or how can I improve the tutoria;.

-Filipe


On Tue, Apr 22, 2014 at 6:50 PM, Dami?n Avila <damianavila at gmail.com> wrote:

> In fact, the "ipynb" plugin is part of the Nikola's core at this moment
> (not only a plugin) ;-)
>
>
> 2014-04-22 17:41 GMT-03:00 Matthias Bussonnier <
> bussonniermatthias at gmail.com>:
>
> Hi,
>>
>> As Aaron pointed out, pelican support ipynb with liquid tags plugin,
>> and Damian Avila have also developed a Nikolas plugin for IPython
>> with a 1 click deploy to github.io.
>>
>>
>> http://www.damian.oquanta.info/posts/deploy-your-nikola-powered-blog-content-from-the-ipython-notebook.html
>>
>> Cheers,
>> --
>> Matthias
>>
>> Le 22 avr. 2014 ? 21:51, Abhishek Pratap a ?crit :
>>
>> > Thanks Aron. I was also looking at using github.io for hosting my
>> > blog/notebooks but not sure which templating engine I should be using.
>> > Certainly dont want to invest any significant time in learning a new
>> > engine.
>> >
>> > -Abhi
>> >
>> > On Tue, Apr 22, 2014 at 12:23 PM, Aron Ahmadia <aron at ahmadia.net>
>> wrote:
>> >> Hi Abhishek,
>> >>
>> >> While I was visiting Continuum, I wrote several IPython Notebook/blogs
>> >> that we hosted on Wakari.  Here's an example
>> >>
>> https://www.wakari.io/nb/aron/Accelerating_Python_Libraries_with_Numba___Part_1
>> >>
>> >> I think Wakari would be your quickest route to getting started
>> >> blogging with the IPython Notebook.  You can author and share public
>> >> notebooks for free.  The nice thing about Wakari notebooks is that
>> >> they are executable.
>> >>
>> >> I think a lot of the other IPython bloggers are using custom setups
>> >> and hosting their own.  Here's Jake Vanderplas's post about migrating
>> >> to the Pelican templating engine (he's hosting on GitHub):
>> >>
>> https://jakevdp.github.io/blog/2013/05/07/migrating-from-octopress-to-pelican/
>> >>
>> >> You can also just upload a notebook to GitHub or similar and use
>> >> nbconvert to render them.  That's how Software Carpentry hosts their
>> >> "live" lessons:
>> >>
>> http://nbviewer.ipython.org/github/swcarpentry/bc/blob/master/novice/python/01-numpy.ipynb
>> >> The notebooks can be converted to HTML before uploading as well:
>> >> http://software-carpentry.org/v5/novice/python/01-numpy.html  This
>> >> method is probably the most popular, as you can upload the notebooks
>> >> as well.
>> >>
>> >> Be sure to submit a link to the IPython subreddit when you blog:
>> >> http://www.reddit.com/r/ipython
>> >>
>> >> Good luck!
>> >>
>> >> -Aron
>> >>
>> >> On Tue, Apr 22, 2014 at 3:11 PM, Abhishek Pratap <
>> abhishek.vit at gmail.com> wrote:
>> >>> Hey Guys
>> >>>
>> >>> Looking for blogging sites where I can easily integrate ipython
>> >>> notebooks and may be actually write the whole blog within the
>> >>> notebook.
>> >>>
>> >>> Any recommendations ?
>> >>>
>> >>> Thanks!
>> >>> -Abhi
>> >>> _______________________________________________
>> >>> 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
>>
>
>
>
> --
> *Dami?n*
>
> _______________________________________________
> 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/20140422/09b74f4a/attachment.html>

From fperez.net at gmail.com  Tue Apr 22 18:39:06 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Tue, 22 Apr 2014 15:39:06 -0700
Subject: [IPython-dev] Did something go bonkers in master?
In-Reply-To: <CAOvn4qgJAMMKQL4pVbcn27ttBLGTxx=_x1urZdOG7BaeKOOfrg@mail.gmail.com>
References: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>
	<61AF4637-8BBE-456B-9671-61AC17ACCFEA@gmail.com>
	<CAOvn4qgJAMMKQL4pVbcn27ttBLGTxx=_x1urZdOG7BaeKOOfrg@mail.gmail.com>
Message-ID: <CAHAreOp3YGPT3DcCF8kCaGBapH7_sn0qJUinXtDWv9GXymsg3Q@mail.gmail.com>

On Tue, Apr 22, 2014 at 9:35 AM, Thomas Kluyver <takowl at gmail.com> wrote:

> I could reproduce it this morning - the problematic character was en
> space, \u2002. Unfortunately, that looks identical to a regular space in
> fixed width fonts. I've pushed a fix straight to master, though Philip
> Cloud had a PR with probably the same fix.
>

How the hell did that get past the CI machinery? Thanks for fixing it, but
it worries me that something that made IPython not even *start* would make
it past Travis...

Do you guys understand? Is it an issue of locales or filesystem encoding
differences on the Travis servers?

Cheers

f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140422/1b255534/attachment.html>

From takowl at gmail.com  Tue Apr 22 18:44:11 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Tue, 22 Apr 2014 15:44:11 -0700
Subject: [IPython-dev] Did something go bonkers in master?
In-Reply-To: <CAHAreOp3YGPT3DcCF8kCaGBapH7_sn0qJUinXtDWv9GXymsg3Q@mail.gmail.com>
References: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>
	<61AF4637-8BBE-456B-9671-61AC17ACCFEA@gmail.com>
	<CAOvn4qgJAMMKQL4pVbcn27ttBLGTxx=_x1urZdOG7BaeKOOfrg@mail.gmail.com>
	<CAHAreOp3YGPT3DcCF8kCaGBapH7_sn0qJUinXtDWv9GXymsg3Q@mail.gmail.com>
Message-ID: <CAOvn4qi5kAzQhVwY-m5P9b01b-SO=SRgLs2=YuMLNZLVV90a=g@mail.gmail.com>

On 22 April 2014 15:39, Fernando Perez <fperez.net at gmail.com> wrote:

> How the hell did that get past the CI machinery? Thanks for fixing it, but
> it worries me that something that made IPython not even *start* would make
> it past Travis...


It was in IPython.parallel, which isn't tested on Travis. ShiningPanda
failed - although bizarrely, all the tests passed (I'm not sure how), and
it actually failed writing the HTML coverage report. I'm not quite sure why
it didn't trigger a real test failure on SP - I'll stick some non-ascii
back in and try to reproduce it.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140422/6c6a5cd2/attachment.html>

From fperez.net at gmail.com  Tue Apr 22 18:46:52 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Tue, 22 Apr 2014 15:46:52 -0700
Subject: [IPython-dev] Project 'performance report'
In-Reply-To: <CAOvn4qjG8ad9z20kymbmggzcWaBXYZ2JDgtGNGACYjdYrSk+Hw@mail.gmail.com>
References: <CAOvn4qjG8ad9z20kymbmggzcWaBXYZ2JDgtGNGACYjdYrSk+Hw@mail.gmail.com>
Message-ID: <CAHAreOp=BN_FnbgS+0LRW69zHDBe88uRCj9MPuaZNqU=sQR+Lw@mail.gmail.com>

On Tue, Apr 22, 2014 at 2:41 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> I found this page at some point - it analyses Github data to produce an
> automated performance report, showing things like how long pull requests
> stay open for and the percentage of commits coming from the community (not
> clear how that's defined):
>
> http://ghtorrent.org/pullreq-perf/ipython-ipython/
>

aaand, they're using R :)

It's kind of neat, though not actually as informative as it might appear at
first blush.  Still, the PR lifetime plot was indeed useful.

Cheers

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

From fperez.net at gmail.com  Tue Apr 22 18:47:35 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Tue, 22 Apr 2014 15:47:35 -0700
Subject: [IPython-dev] Did something go bonkers in master?
In-Reply-To: <CAOvn4qi5kAzQhVwY-m5P9b01b-SO=SRgLs2=YuMLNZLVV90a=g@mail.gmail.com>
References: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>
	<61AF4637-8BBE-456B-9671-61AC17ACCFEA@gmail.com>
	<CAOvn4qgJAMMKQL4pVbcn27ttBLGTxx=_x1urZdOG7BaeKOOfrg@mail.gmail.com>
	<CAHAreOp3YGPT3DcCF8kCaGBapH7_sn0qJUinXtDWv9GXymsg3Q@mail.gmail.com>
	<CAOvn4qi5kAzQhVwY-m5P9b01b-SO=SRgLs2=YuMLNZLVV90a=g@mail.gmail.com>
Message-ID: <CAHAreOpJC27mwKUNcNT0JEV9HCDUY1ZimmPNyD2M=Oxf-fkwEg@mail.gmail.com>

Ah, got it...

Probably not worth burning cycles on SP, given it's going away soon...


On Tue, Apr 22, 2014 at 3:44 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> On 22 April 2014 15:39, Fernando Perez <fperez.net at gmail.com> wrote:
>
>> How the hell did that get past the CI machinery? Thanks for fixing it,
>> but it worries me that something that made IPython not even *start* would
>> make it past Travis...
>
>
> It was in IPython.parallel, which isn't tested on Travis. ShiningPanda
> failed - although bizarrely, all the tests passed (I'm not sure how), and
> it actually failed writing the HTML coverage report. I'm not quite sure why
> it didn't trigger a real test failure on SP - I'll stick some non-ascii
> back in and try to reproduce it.
>
> Thomas
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140422/c5c942fa/attachment.html>

From takowl at gmail.com  Tue Apr 22 18:51:43 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Tue, 22 Apr 2014 15:51:43 -0700
Subject: [IPython-dev] Did something go bonkers in master?
In-Reply-To: <CAHAreOpJC27mwKUNcNT0JEV9HCDUY1ZimmPNyD2M=Oxf-fkwEg@mail.gmail.com>
References: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>
	<61AF4637-8BBE-456B-9671-61AC17ACCFEA@gmail.com>
	<CAOvn4qgJAMMKQL4pVbcn27ttBLGTxx=_x1urZdOG7BaeKOOfrg@mail.gmail.com>
	<CAHAreOp3YGPT3DcCF8kCaGBapH7_sn0qJUinXtDWv9GXymsg3Q@mail.gmail.com>
	<CAOvn4qi5kAzQhVwY-m5P9b01b-SO=SRgLs2=YuMLNZLVV90a=g@mail.gmail.com>
	<CAHAreOpJC27mwKUNcNT0JEV9HCDUY1ZimmPNyD2M=Oxf-fkwEg@mail.gmail.com>
Message-ID: <CAOvn4qgJwwVG5r70pOe1as9kWwU=VwsEB-3cE4ijJMPR77e+Pg@mail.gmail.com>

On 22 April 2014 15:47, Fernando Perez <fperez.net at gmail.com> wrote:

> Probably not worth burning cycles on SP, given it's going away soon...


Working out why tests don't fail when they should is worthwhile, however.
But when I try to reproduce it locally, the parallel test suite fails
immediately. So I'm leaving it at that.

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

From fperez.net at gmail.com  Tue Apr 22 18:56:02 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Tue, 22 Apr 2014 15:56:02 -0700
Subject: [IPython-dev] Did something go bonkers in master?
In-Reply-To: <CAOvn4qgJwwVG5r70pOe1as9kWwU=VwsEB-3cE4ijJMPR77e+Pg@mail.gmail.com>
References: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>
	<61AF4637-8BBE-456B-9671-61AC17ACCFEA@gmail.com>
	<CAOvn4qgJAMMKQL4pVbcn27ttBLGTxx=_x1urZdOG7BaeKOOfrg@mail.gmail.com>
	<CAHAreOp3YGPT3DcCF8kCaGBapH7_sn0qJUinXtDWv9GXymsg3Q@mail.gmail.com>
	<CAOvn4qi5kAzQhVwY-m5P9b01b-SO=SRgLs2=YuMLNZLVV90a=g@mail.gmail.com>
	<CAHAreOpJC27mwKUNcNT0JEV9HCDUY1ZimmPNyD2M=Oxf-fkwEg@mail.gmail.com>
	<CAOvn4qgJwwVG5r70pOe1as9kWwU=VwsEB-3cE4ijJMPR77e+Pg@mail.gmail.com>
Message-ID: <CAHAreOpAK41Njw0WUwio67+ejSDmz32P8JMj-sQZO0GTVv9MAg@mail.gmail.com>

On Tue, Apr 22, 2014 at 3:51 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> Working out why tests don't fail when they should is worthwhile, however.
> But when I try to reproduce it locally, the parallel test suite fails
> immediately. So I'm leaving it at that.
>

Computers... Magical devices, who obey nobody but themselves...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140422/5af0cf88/attachment.html>

From takowl at gmail.com  Tue Apr 22 19:07:03 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Tue, 22 Apr 2014 16:07:03 -0700
Subject: [IPython-dev] Did something go bonkers in master?
In-Reply-To: <CAHAreOpAK41Njw0WUwio67+ejSDmz32P8JMj-sQZO0GTVv9MAg@mail.gmail.com>
References: <CAHAreOofMg894N5qCuB4hOaUN7nc5-A13xdY8rLfu=c7fwo8PA@mail.gmail.com>
	<61AF4637-8BBE-456B-9671-61AC17ACCFEA@gmail.com>
	<CAOvn4qgJAMMKQL4pVbcn27ttBLGTxx=_x1urZdOG7BaeKOOfrg@mail.gmail.com>
	<CAHAreOp3YGPT3DcCF8kCaGBapH7_sn0qJUinXtDWv9GXymsg3Q@mail.gmail.com>
	<CAOvn4qi5kAzQhVwY-m5P9b01b-SO=SRgLs2=YuMLNZLVV90a=g@mail.gmail.com>
	<CAHAreOpJC27mwKUNcNT0JEV9HCDUY1ZimmPNyD2M=Oxf-fkwEg@mail.gmail.com>
	<CAOvn4qgJwwVG5r70pOe1as9kWwU=VwsEB-3cE4ijJMPR77e+Pg@mail.gmail.com>
	<CAHAreOpAK41Njw0WUwio67+ejSDmz32P8JMj-sQZO0GTVv9MAg@mail.gmail.com>
Message-ID: <CAOvn4qjbqOf4KyThjTt0hcSf0+eW=_108y5EhvdKY5W4fycFdQ@mail.gmail.com>

On 22 April 2014 15:56, Fernando Perez <fperez.net at gmail.com> wrote:

> On Tue, Apr 22, 2014 at 3:51 PM, Thomas Kluyver <takowl at gmail.com> wrote:
>
>> Working out why tests don't fail when they should is worthwhile, however.
>> But when I try to reproduce it locally, the parallel test suite fails
>> immediately. So I'm leaving it at that.
>>
>
> Computers... Magical devices, who obey nobody but themselves...
>

Thinking about this some more, we think it should have failed on Travis too
- locally, it was failing to even start the notebook server, so the JS
tests should have failed on Travis. Still puzzled by this.

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

From jsseabold at gmail.com  Tue Apr 22 20:09:36 2014
From: jsseabold at gmail.com (Skipper Seabold)
Date: Tue, 22 Apr 2014 20:09:36 -0400
Subject: [IPython-dev] Security hash in notebooks and version control
Message-ID: <CAKF=Djv7bppa3h_DDD5OKz=uiRndvH9NoPH7LX1NQLETFnpZ2g@mail.gmail.com>

Hi,

Curious what people are doing about this short of writing a hook to
scrub the hash completely. Is there a way to turn this off? Do we have
to live with the hash change being part of each commit?

https://github.com/jseabold/statsmodels/commit/6d0847c4b906e3b8027b5080910cd84a25ab3422

Skipper


From darcamo at gmail.com  Tue Apr 22 21:07:59 2014
From: darcamo at gmail.com (darcamo at gmail.com)
Date: Tue, 22 Apr 2014 22:07:59 -0300
Subject: [IPython-dev] Change the "Ctrl+k" keyboard shortcut
Message-ID: <CAGjSdXq_Db49p8uMsF2LoLn_KngWayr0KMjSBS8AONf_v0V4Vw@mail.gmail.com>

IPython 2.0 is awesome and I started using it even before the official
release. However, there is one thing that keeps biting me: the "Ctrl+k"
keyboard shortcut.

For me this is a very important browser shortcut that I use often and I
start using it some years ago. In Firefox it puts the cursor in the
search bar, while in Chrome it puts the cursor in the address bar, but
preceded by a "?" character to indicate that a search will be made.

The problem is that this shortcut is set in the notebook to move the
cell up. I'm often working in a notebook and then I want to search for
something in the Internet. Due to muscle memory I type Ctrl+k and start
typing but since the notebook captured this shortcut then all kinds of
weird stuff can happen with my notebook (due to me "writing" what I
wanted to search). In the end I can lose a lot of time fixing any
possible problems.


How can I change this shortcut (maybe to Ctrl+K)? I could not find the
correct way in http://ipython.org/ipython-doc/stable/notebook/index.html


Does anyone else uses the "Ctrl+k" shortcut in the browser? Is changing
this particular shortcut in IPython (default configuration) a valid
option? I don't see any other shortcut in IPython that conflicts with an
important shortcut in the browser besides "Ctrl+k".

-- 
Darlan Cavalcante Moreira
darcamo at gmail.com


From pi at berkeley.edu  Tue Apr 22 21:36:26 2014
From: pi at berkeley.edu (Paul Ivanov)
Date: Tue, 22 Apr 2014 18:36:26 -0700
Subject: [IPython-dev] Change the "Ctrl+k" keyboard shortcut
In-Reply-To: <CAGjSdXq_Db49p8uMsF2LoLn_KngWayr0KMjSBS8AONf_v0V4Vw@mail.gmail.com>
References: <CAGjSdXq_Db49p8uMsF2LoLn_KngWayr0KMjSBS8AONf_v0V4Vw@mail.gmail.com>
Message-ID: <20140423013626.GN15703@HbI-OTOH.berkeley.edu>

darcamo at gmail.com, on 2014-04-22 22:07,  wrote:
> IPython 2.0 is awesome and I started using it even before the official
> release. However, there is one thing that keeps biting me: the "Ctrl+k"
> keyboard shortcut.
> 
> For me this is a very important browser shortcut that I use often and I
> start using it some years ago. In Firefox it puts the cursor in the
> search bar, while in Chrome it puts the cursor in the address bar, but
> preceded by a "?" character to indicate that a search will be made.
> 
> The problem is that this shortcut is set in the notebook to move the
> cell up. I'm often working in a notebook and then I want to search for
> something in the Internet. Due to muscle memory I type Ctrl+k and start
> typing but since the notebook captured this shortcut then all kinds of
> weird stuff can happen with my notebook (due to me "writing" what I
> wanted to search). In the end I can lose a lot of time fixing any
> possible problems.
> 
> 
> How can I change this shortcut (maybe to Ctrl+K)? I could not find the
> correct way in http://ipython.org/ipython-doc/stable/notebook/index.html

To remove the shortcut, add this to your custom.js:

    IPython.keyboard_manager.command_shortcuts.remove_shortcut('ctrl-k')

There's also a similar add_shortcut method which you can use to
put the functionality back. It occured to me that a very common
scenario is one of wanting to remap keyboard shortcuts from their
defaults to something else, and we currently do not make this
easy. I have opened https://github.com/ipython/ipython/issues/5702 
to help us keep track of this.

Note that even without this, ctrl-k works in the usual browser
manner when you are in edit mode - it's a ugly workaround, but if
you find yourself on someone else's machine, that little factoid
can help

(if you need help locating your custom.js, I covered that in this
post: http://pirsquared.org/blog/notebook-blink.html)

best,
-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org


From darcamo at gmail.com  Tue Apr 22 21:54:18 2014
From: darcamo at gmail.com (Darlan Cavalcante Moreira)
Date: Tue, 22 Apr 2014 22:54:18 -0300
Subject: [IPython-dev] Change the "Ctrl+k" keyboard shortcut
In-Reply-To: <20140423013626.GN15703@HbI-OTOH.berkeley.edu>
References: <CAGjSdXq_Db49p8uMsF2LoLn_KngWayr0KMjSBS8AONf_v0V4Vw@mail.gmail.com>
	<20140423013626.GN15703@HbI-OTOH.berkeley.edu>
Message-ID: <87vbu0stdh.fsf@gmail.com>


pi at berkeley.edu writes:

> darcamo at gmail.com, on 2014-04-22 22:07,  wrote:
>> IPython 2.0 is awesome and I started using it even before the official
>> release. However, there is one thing that keeps biting me: the "Ctrl+k"
>> keyboard shortcut.
>> 
>> For me this is a very important browser shortcut that I use often and I
>> start using it some years ago. In Firefox it puts the cursor in the
>> search bar, while in Chrome it puts the cursor in the address bar, but
>> preceded by a "?" character to indicate that a search will be made.
>> 
>> The problem is that this shortcut is set in the notebook to move the
>> cell up. I'm often working in a notebook and then I want to search for
>> something in the Internet. Due to muscle memory I type Ctrl+k and start
>> typing but since the notebook captured this shortcut then all kinds of
>> weird stuff can happen with my notebook (due to me "writing" what I
>> wanted to search). In the end I can lose a lot of time fixing any
>> possible problems.
>> 
>> 
>> How can I change this shortcut (maybe to Ctrl+K)? I could not find the
>> correct way in http://ipython.org/ipython-doc/stable/notebook/index.html
>
> To remove the shortcut, add this to your custom.js:
>
>     IPython.keyboard_manager.command_shortcuts.remove_shortcut('ctrl-k')
>
> There's also a similar add_shortcut method which you can use to
> put the functionality back. It occured to me that a very common
> scenario is one of wanting to remap keyboard shortcuts from their
> defaults to something else, and we currently do not make this
> easy. I have opened https://github.com/ipython/ipython/issues/5702 
> to help us keep track of this.
>
> Note that even without this, ctrl-k works in the usual browser
> manner when you are in edit mode - it's a ugly workaround, but if
> you find yourself on someone else's machine, that little factoid
> can help
>
> (if you need help locating your custom.js, I covered that in this
> post: http://pirsquared.org/blog/notebook-blink.html)
>
> best,

Thank you Paul, I'll remap the shortcut.

I actually kind of knew that Ctrl+k worked in edit mode and most of the
time I'm in edit mode. What I din't know before is that IPython uses the
"Ctrl+k" shortcut to move cells and only after having problems with
cells in wrong places is that I found out this shortcut in IPython.

-- 
Darlan Cavalcante Moreira
darcamo at gmail.com


From mark.voorhies at ucsf.edu  Wed Apr 23 01:23:06 2014
From: mark.voorhies at ucsf.edu (Mark Voorhies)
Date: Tue, 22 Apr 2014 22:23:06 -0700
Subject: [IPython-dev] IPython 2.0.0 -- Firefox issues
In-Reply-To: <1398103563681-5054329.post@n6.nabble.com>
References: <CAHNn8BX1R1rueVApbBzENT9b+n11+OHs+PQ6XD+PXcFr5GocbQ@mail.gmail.com>
	<533C6CD4.9030309@ucsf.edu>
	<CAOvn4qh7Kz2_CKCaCaSs=E4Z=+k=Sz8v+6C02fbLfhpOvZWe6Q@mail.gmail.com>
	<533C73BD.3080605@ucsf.edu> <533D166F.9050302@tenner.nl>
	<533D78BE.2080309@ucsf.edu>
	<CAOvn4qgNSD32MmBa5yLmcUZiGwOUzKZMJwLbmZy+maW+5Qsa8Q@mail.gmail.com>
	<533DB756.2020601@ucsf.edu> <1398103563681-5054329.post@n6.nabble.com>
Message-ID: <53574E3A.5080801@ucsf.edu>

On 04/21/2014 11:06 AM, Angelika Schneider wrote:
> I have the same problem with Firefox (on Mac, Redhat 5.8 and CentOS 6.5) and
> IPython 2.0:
>
> * "ipython notebook" launches the dashboard in Firefox as expected
> * "New notebook" creates a new notebook and opens a tab for it, but the page
> is blank and the notebook does not show up as "running"
> * Opening an existing notebook also yields only a blank page, and the
> notebook does not show up as "running"
> * No error messages in the terminal window, but the Web Console reports "
> SecurityError: The operation is insecure"
> * Launching Firefox in safe mode (with all add-ons disabled) does not fix
> the problem, creating a new profile does.
>
> After some debugging, I found that the problem is caused by changing  the
> cookie preference "Keep until:" " they expire"  to "ask me every time" (in
> Preferences->Privacy->History). As soon as I switch  to "they expire" or "I
> close Firefox" and reload the page with my notebook, it renders as expected
> and the notebook is shown as running. Creating new notebooks works also
> correctly.

Changing the cookie preference from "ask me every time" to "they expire" works
for me as well (Firefox 28.0+build2-0ubuntu0.12.04.1 on Ubuntu 12.04, c.f.
previous messages in thread).

A bit of pickaxing (git log -Scookie -p) finds commit 5d199385bf
This commit doesn't reproduce the behavior directly (notebook fails to start
due to an import error), but the following merge commit (dd39c908542ab8a24)
does, suggesting it's at least that old.

I opened an issue for this: https://github.com/ipython/ipython/issues/5703

Thanks, Angelika, for figuring this out.

--Mark



From bussonniermatthias at gmail.com  Wed Apr 23 02:29:28 2014
From: bussonniermatthias at gmail.com (Matthias Bussonnier)
Date: Wed, 23 Apr 2014 08:29:28 +0200
Subject: [IPython-dev] Security hash in notebooks and version control
In-Reply-To: <CAKF=Djv7bppa3h_DDD5OKz=uiRndvH9NoPH7LX1NQLETFnpZ2g@mail.gmail.com>
References: <CAKF=Djv7bppa3h_DDD5OKz=uiRndvH9NoPH7LX1NQLETFnpZ2g@mail.gmail.com>
Message-ID: <963C9029-FE35-4551-A9B5-DE2BD8BA9499@gmail.com>


Le 23 avr. 2014 ? 02:09, Skipper Seabold a ?crit :

> Hi,
> 
> Curious what people are doing about this short of writing a hook to
> scrub the hash completely. Is there a way to turn this off? Do we have
> to live with the hash change being part of each commit?
> 
> https://github.com/jseabold/statsmodels/commit/6d0847c4b906e3b8027b5080910cd84a25ab3422

You can make git clean (and smudge) filter that get rid of  the signature if you like. 

If you turn this off (by implementing your own NotebookNotary) when reloading your own notebook,
they will be crippled if you use html. 
-- 
M


> 
> Skipper
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From jgill at tokiomillennium.com  Wed Apr 23 13:45:11 2014
From: jgill at tokiomillennium.com (John Gill)
Date: Wed, 23 Apr 2014 17:45:11 +0000
Subject: [IPython-dev] ipython cluster with mixture of windows and linux
	engines
Message-ID: <CEA58BDE8F3913468BE4A3F1F32C370C2B05A924@TMREXMB02.tokiomillennium.com>

First of all, thanks to everyone for the awesomeness that is ipython, cannot thank you enough.

Now, I am using the ipython cluster tools to help parallelise my data analysis.

I am using the load balanced view to submit jobs to the controller.   Jobs have dependencies and having the controller deal with all that for me is a joy.

Now one problem I have is that some of these jobs use code that only runs on windows.   Many of the jobs, though, could run on linux.   I can envisage in the future having some jobs that would only run on linux.

I am thinking it would be neat to have a mixed architecture cluster and have tasks specify constraints (such as I must run on linux or I must run on windows).    More generally, I can imagine a situation with a non-homogeneous cluster where some tasks might require larger memory for example and the same mechanism could be used to ensure tasks that could only run on some engines are run on the right engine.

Has anyone already solved this problem?

If not any pointers where I should look to implement a solution.

John

This communication and any attachments contain information which is confidential and may also be legally privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying, printing or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to postmaster at tokiomillennium.com and then permanently delete the email and any attachments from your system.

E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. It is the recipient's responsibility to ensure that e-mail transmissions and any attachments are virus free. We do not accept liability for any damages or other consequences caused by information that is intercepted, corrupted, amended, lost, destroyed, arrives late or incomplete or contains viruses.
******************************************

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

From pelson.pub at gmail.com  Thu Apr 24 09:57:45 2014
From: pelson.pub at gmail.com (Phil Elson)
Date: Thu, 24 Apr 2014 14:57:45 +0100
Subject: [IPython-dev] Interactive matplotlib figures in the IPython notebook
Message-ID: <CA+L60sCPGLPez5SX3OcFx2rv_0C=yqHUgVeYHmb9q=9mJ_Ti1A@mail.gmail.com>

Cross posted to IPython-dev and mpl-dev.

Over the Easter holidays I had a chance to take a look at implementing a
new matplotlib backend which would allow interactive figures inline in the
IPython notebook. It's something that has been on the radar for a couple of
years now, with work needed from both projects to make the functionality
possible, so I'm pleased to have been able to submit a PR (
https://github.com/matplotlib/matplotlib/pull/3008) to matplotlib which
finally adds the nbagg backend - the final piece of the jigsaw.

It still needs a lot of polish, both at its core and superficially, but I
think it is at a stage which gives me confidence that the IPython Comm <->
mpl WebAgg approach is going to work to a reasonable degree, and is now at
a stage where it is readily usable by anybody running IPython >=2.0.

I really just wanted to draw your attention to the PR (early testers
welcome), and say thanks to everybody who has been involved in getting to
this stage, particularly Michael Droettboom, Jason Grout and everyone
involved in the IPython Comm interface.

Cheers,

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140424/7855bd25/attachment.html>

From gostal at foi.se  Thu Apr 24 11:13:16 2014
From: gostal at foi.se (=?ISO-8859-1?Q?G=F6sta_Ljungdahl?=)
Date: Thu, 24 Apr 2014 17:13:16 +0200
Subject: [IPython-dev] terminal syntax highlighting?
Message-ID: <53592A0C.5080708@foi.se>

New to this list.

System:

OpenSuse 12.2 (x86_64)

Python 2.7.6 |Anaconda 1.9.2 (64-bit)| (default, Jan 17 2014, 10:13:17)

IPython 1.1.0 -- An enhanced Interactive Python.

I installed anaconda a week or two ago intending to learn python in
general and numpy/matplotlib in particular. I seem to remember there was
syntax highlighting in the interactive console. I do

> ipython --pylab

in xterm to fire up the system. (I have uninstalled the distro IPython
so there is only one)

I then upgraded to IPython 2.0.0 and the syntax highlighting I expected
was no more. I thought perhaps it was due to the upgrade so chucked out
Anaconda and reinstalled it thus downgrading IPython. Still no syntax
highlighting in the interactive terminal. Syntax highlighting is present
in Anaconda's IDLE and also in the qtconsole. Ipython docs tells about
"bells and whistles" regarding colours but I can't seem to dig up any
info confirming or denying syntax highlighting in the interactive
terminal. Now, am I getting senile, or what? Was there never any syntax
highlighting in the interactive terminal?

Please set my mind straight and if there, indeed, was syntax
highlighting: why is it gone now?

G?sta




From gostal at foi.se  Thu Apr 24 11:21:44 2014
From: gostal at foi.se (=?ISO-8859-1?Q?G=F6sta_Ljungdahl?=)
Date: Thu, 24 Apr 2014 17:21:44 +0200
Subject: [IPython-dev] terminal syntax highlighting?
Message-ID: <53592C08.1090008@foi.se>

I am sorry for bugging you with a newbie question. I should have posted
on the user's list.

G?sta


From bussonniermatthias at gmail.com  Thu Apr 24 11:35:13 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Thu, 24 Apr 2014 17:35:13 +0200
Subject: [IPython-dev] terminal syntax highlighting?
In-Reply-To: <53592C08.1090008@foi.se>
References: <53592C08.1090008@foi.se>
Message-ID: <3EC48DB5-CE79-49BA-B429-83702F130A11@gmail.com>

Hi, G?sta

Le 24 avr. 2014 ? 17:21, G?sta Ljungdahl a ?crit :

> I am sorry for bugging you with a newbie question. I should have posted
> on the user's list.

No, this list is fine. 

> Was there never any syntax
> highlighting in the interactive terminal?
> 
> Please set my mind straight and if there, indeed, was syntax
> highlighting: why is it gone now?

there should be syntax hilight when you look at the source by using `??` like 
In[1]: object ??
? (source syntax hilight)

but it might need the "pygments" library.

As for the cod you are typing, no it is not syntax hilighted, and it is not possible because we 
use deadline to get  user input.

Though bpython [1] use curses which allow syntax hilight, 
and bipython [2] is a new project that use the best of both world if you are adventurous.

-- 
Matthias

[1] http://bpython-interpreter.org/
[2] http://bipython.org/


> 
> G?sta
> _______________________________________________
> 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/20140424/49afc8d6/attachment.html>

From takowl at gmail.com  Thu Apr 24 12:27:34 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Thu, 24 Apr 2014 09:27:34 -0700
Subject: [IPython-dev] terminal syntax highlighting?
In-Reply-To: <3EC48DB5-CE79-49BA-B429-83702F130A11@gmail.com>
References: <53592C08.1090008@foi.se>
	<3EC48DB5-CE79-49BA-B429-83702F130A11@gmail.com>
Message-ID: <CAOvn4qjzxYpXNuqzanJyc=UQ4PAm6J0Amq5wFE4dvnd5JmE+XA@mail.gmail.com>

A couple of clarifications:


On 24 April 2014 08:35, Matthias BUSSONNIER <bussonniermatthias at gmail.com>wrote:

> As for the cod you are typing, no it is not syntax hilighted, and it is
> not possible because we
> use deadline to get  user input.
>

readline, not deadline.


> Though bpython [1] use curses which allow syntax hilight,
> and bipython [2] is a new project that use the best of both world if you
> are adventurous.
>

I believe it uses urwid, not curses, but the overall effect is similar.

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

From bussonniermatthias at gmail.com  Thu Apr 24 13:38:35 2014
From: bussonniermatthias at gmail.com (Matthias Bussonnier)
Date: Thu, 24 Apr 2014 19:38:35 +0200
Subject: [IPython-dev] terminal syntax highlighting?
In-Reply-To: <CAOvn4qjzxYpXNuqzanJyc=UQ4PAm6J0Amq5wFE4dvnd5JmE+XA@mail.gmail.com>
References: <53592C08.1090008@foi.se>
	<3EC48DB5-CE79-49BA-B429-83702F130A11@gmail.com>
	<CAOvn4qjzxYpXNuqzanJyc=UQ4PAm6J0Amq5wFE4dvnd5JmE+XA@mail.gmail.com>
Message-ID: <CANJQusWLAAuYi+=SqL=Dj3cFVozzXwi4jANsWQi35G4fYM9F=A@mail.gmail.com>

Yeah, readline, stupid autocorrection.

Thanks Thomas.


On Thu, Apr 24, 2014 at 6:27 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> A couple of clarifications:
>
>
> On 24 April 2014 08:35, Matthias BUSSONNIER <bussonniermatthias at gmail.com>wrote:
>
>> As for the cod you are typing, no it is not syntax hilighted, and it is
>> not possible because we
>>  use deadline to get  user input.
>>
>
> readline, not deadline.
>
>
>> Though bpython [1] use curses which allow syntax hilight,
>> and bipython [2] is a new project that use the best of both world if you
>> are adventurous.
>>
>
> I believe it uses urwid, not curses, but the overall effect is similar.
>
> 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/20140424/abf1b658/attachment.html>

From takowl at gmail.com  Thu Apr 24 19:56:39 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Thu, 24 Apr 2014 16:56:39 -0700
Subject: [IPython-dev] PyData conference coming up - promo code for
	registration
Message-ID: <CAOvn4qhALH7=iFMcorqSANfQB3_YeG7NAtc6zVhNuLrw60D2qA@mail.gmail.com>

Hi all,

Several of the core IPython developers will be speaking at the PyData
Silicon Valley conference at the end of next week. Brian Granger and
Jonathan Frederic will be doing a tutorial on the widget infrastructure on
the first day, Paul Ivanov and myself are talking about different frontends
and kernels for IPython on the second day, and Min RK has a talk on new and
upcoming features on the final day.

We'll also be there throughout the conference to talk to people during the
breaks.

We've been given a promotion code to give out to anyone interested in
IPython: You can get 20% off your registration by entering *CU at PyData* on
this page:
http://www.eventbrite.com/e/pydata-2014-in-silicon-valley-tickets-10767063577?aff=eorg

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140424/d54052f4/attachment.html>

From fperez.net at gmail.com  Thu Apr 24 20:53:22 2014
From: fperez.net at gmail.com (Fernando Perez)
Date: Thu, 24 Apr 2014 17:53:22 -0700
Subject: [IPython-dev] Interactive matplotlib figures in the IPython
	notebook
In-Reply-To: <CA+L60sCPGLPez5SX3OcFx2rv_0C=yqHUgVeYHmb9q=9mJ_Ti1A@mail.gmail.com>
References: <CA+L60sCPGLPez5SX3OcFx2rv_0C=yqHUgVeYHmb9q=9mJ_Ti1A@mail.gmail.com>
Message-ID: <CAHAreOpp6O0W-CLcxNo5JUL2NG1gAumVespJyVRWgU15PRGx2A@mail.gmail.com>

Hi Phil,

On Thu, Apr 24, 2014 at 6:57 AM, Phil Elson <pelson.pub at gmail.com> wrote:

> Cross posted to IPython-dev and mpl-dev.
>
> Over the Easter holidays I had a chance to take a look at implementing a
> new matplotlib backend which would allow interactive figures inline in the
> IPython notebook. It's something that has been on the radar for a couple of
> years now, with work needed from both projects to make the functionality
> possible, so I'm pleased to have been able to submit a PR (
> https://github.com/matplotlib/matplotlib/pull/3008) to matplotlib which
> finally adds the nbagg backend - the final piece of the jigsaw.
>


this is great news, thanks for posting this! Most/all of us will be at
SciPy and staying for the sprints, so if there's remaining design work that
this uncovers that's needed for future improvements, please make note of it
and we can discuss it face to face.

Cheers

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

From vasco+python at tenner.nl  Fri Apr 25 04:04:28 2014
From: vasco+python at tenner.nl (Vasco Tenner)
Date: Fri, 25 Apr 2014 10:04:28 +0200
Subject: [IPython-dev] Paste images into the notebook
In-Reply-To: <52F65F86.8070105@elbonia.de>
References: <CCD2E91E44CCA449BA927E8424A283931F2E2A@MB02.mailcluster.haw-hamburg.de>	<3BC30423-3AFD-4473-86CA-3853B0920915@gmail.com>	<52F55476.4030406@elbonia.de>	<52F554C3.7050207@gmail.com>	<52F5568F.8080608@elbonia.de>	<F723135E32F9984ABC5B614F28BF2491019F5941@UWIT-MBX06.exchange.washington.edu>
	<52F65F86.8070105@elbonia.de>
Message-ID: <535A170C.2050206@tenner.nl>

I stumbled upon this usefull extension, however, displaying the image 
does not work on my system, with chromium 31 and ipython-master:

If I put this in a markdowncell, only the black outline of the image is 
displayed, but no image:

<img 
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAXCAYAAAD+4+QTAAACSUlEQVRIDcVVTWgTQRT+ZkmzbemPlI3FhgobLaaKyanBgyi0eNCTXtqbFAQP6kXtwXqJXkwuElB6y0ErKB40HqpCyirSiyRaDNjW1hChskjpFtJu6boRMu6m3W7CJm5qGh0YZud7P9+8N2/fEEVRKOo8mB37X47hw+ETmJ9TqzbdOUnVrk1F8pbvp50TL8F7dHAN2fGbSI+9gSIDpKsPnaN3cGDADUYcR+JUGNbze3Hw3XPsc5lOLV9xjWR2RqGKkqXL907TuG+Qzk5M05X0DBUfXKDCtlzX0ebiYzrF99FP09nNvY7ZTDNdagqL0Qzag/fBD/Si2e1Bx1AQvPcblp7OIW85XvWAo8HQlVJYl3NQR45hasQAN1fSpeWuhuEoteWw99kkDvWypXCNO+aX4YDzo8UpQU5KBlJxZbTrz+cqii0C805YP/af56GEL2I+lsCGKGI9IUC8dQVfU0U11eZGY6sM+VUKP1WNrEhk8b4FFO7EUcgOi5ZrT3CUu41MZBgf9YCcHJoC/ejmitLHBuC5cRafw8NIPtK92JcwEfhB2vP+IVxtW7R1WJj88SG015FAPzP5saTQPfUm2ZUurGYghqJYq1BxZFdIbO7RLGEbxVrE/4nkLx4luyj/SSQkrb0Lbr0hVvEo5YQQFsZeI/tFAoUTDb4z6A4GUbD/Qzgk7rtEj0zeRYfxr+jpOhlBa5luvBELQcwF4PJ50chKWI1ex4LgR4l9GTJHk5zEiqhqJEX9qYyiDjWfG0XPtkxrlFcv4/uLiK39b6+NBEsqRwf6AAAAAElFTkSuQmCC" 
style="height:10px; width:20px; border: 1px solid black;">bt

If I inspect the image element using the chrome element inspector, the 
src option is not visible. This gives the suspicion that markdown is 
removing this.

Is this due to a newer version of markdown?

Kind regards,
Vasco


From python at elbonia.de  Sat Apr 26 09:23:43 2014
From: python at elbonia.de (Juergen Hasch)
Date: Sat, 26 Apr 2014 15:23:43 +0200
Subject: [IPython-dev] Paste images into the notebook
In-Reply-To: <535A170C.2050206@tenner.nl>
References: <CCD2E91E44CCA449BA927E8424A283931F2E2A@MB02.mailcluster.haw-hamburg.de>	<3BC30423-3AFD-4473-86CA-3853B0920915@gmail.com>	<52F55476.4030406@elbonia.de>	<52F554C3.7050207@gmail.com>	<52F5568F.8080608@elbonia.de>	<F723135E32F9984ABC5B614F28BF2491019F5941@UWIT-MBX06.exchange.washington.edu>	<52F65F86.8070105@elbonia.de>
	<535A170C.2050206@tenner.nl>
Message-ID: <535BB35F.7050207@elbonia.de>

This is due to security issues, see here:
http://ipython.org/ipython-doc/dev/notebook/security.html

You can turn sanitizing off by adding this line to your local custom.js:
IPython.security.sanitize_html = function (html) { return html; };

  Juergen

Am 25.04.2014 10:04, schrieb Vasco Tenner:
> I stumbled upon this usefull extension, however, displaying the image 
> does not work on my system, with chromium 31 and ipython-master:
> 
> If I put this in a markdowncell, only the black outline of the image is 
> displayed, but no image:
> 
> <img 
> src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAXCAYAAAD+4+QTAAACSUlEQVRIDcVVTWgTQRT+ZkmzbemPlI3FhgobLaaKyanBgyi0eNCTXtqbFAQP6kXtwXqJXkwuElB6y0ErKB40HqpCyirSiyRaDNjW1hChskjpFtJu6boRMu6m3W7CJm5qGh0YZud7P9+8N2/fEEVRKOo8mB37X47hw+ETmJ9TqzbdOUnVrk1F8pbvp50TL8F7dHAN2fGbSI+9gSIDpKsPnaN3cGDADUYcR+JUGNbze3Hw3XPsc5lOLV9xjWR2RqGKkqXL907TuG+Qzk5M05X0DBUfXKDCtlzX0ebiYzrF99FP09nNvY7ZTDNdagqL0Qzag/fBD/Si2e1Bx1AQvPcblp7OIW85XvWAo8HQlVJYl3NQR45hasQAN1fSpeWuhuEoteWw99kkDvWypXCNO+aX4YDzo8UpQU5KBlJxZbTrz+cqii0C805YP/af56GEL2I+lsCGKGI9IUC8dQVfU0U11eZGY6sM+VUKP1WNrEhk8b4FFO7EUcgOi5ZrT3CUu41MZBgf9YCcHJoC/ejmitLHBuC5cRafw8NIPtK92JcwEfhB2vP+IVxtW7R1WJj88SG015FAPzP5saTQPfUm2ZUurGYghqJYq1BxZFdIbO7RLGEbxVrE/4nkLx4luyj/SSQkrb0Lbr0hVvEo5YQQFsZeI/tFAoUTDb4z6A4GUbD/Qzgk7rtEj0zeRYfxr+jpOhlBa5luvBELQcwF4PJ50chKWI1ex4LgR4l9GTJHk5zEiqhqJEX9qYyiDjWfG0XPtkxrlFcv4/uLiK39b6+NBEsqRwf6AAAAAElFTkSuQmCC" 
> style="height:10px; width:20px; border: 1px solid black;">bt
> 
> If I inspect the image element using the chrome element inspector, the 
> src option is not visible. This gives the suspicion that markdown is 
> removing this.
> 
> Is this due to a newer version of markdown?
> 
> Kind regards,
> Vasco
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> 



From bussonniermatthias at gmail.com  Sat Apr 26 09:46:37 2014
From: bussonniermatthias at gmail.com (Matthias Bussonnier)
Date: Sat, 26 Apr 2014 15:46:37 +0200
Subject: [IPython-dev] Paste images into the notebook
In-Reply-To: <535BB35F.7050207@elbonia.de>
References: <CCD2E91E44CCA449BA927E8424A283931F2E2A@MB02.mailcluster.haw-hamburg.de>	<3BC30423-3AFD-4473-86CA-3853B0920915@gmail.com>	<52F55476.4030406@elbonia.de>	<52F554C3.7050207@gmail.com>	<52F5568F.8080608@elbonia.de>	<F723135E32F9984ABC5B614F28BF2491019F5941@UWIT-MBX06.exchange.washington.edu>	<52F65F86.8070105@elbonia.de>
	<535A170C.2050206@tenner.nl> <535BB35F.7050207@elbonia.de>
Message-ID: <D6079579-9ED7-4231-8368-EB8DF7227507@gmail.com>

Hi all, 
Le 26 avr. 2014 ? 15:23, Juergen Hasch a ?crit :

> This is due to security issues, see here:
> http://ipython.org/ipython-doc/dev/notebook/security.html
> 
> You can turn sanitizing off by adding this line to your local custom.js:
> IPython.security.sanitize_html = function (html) { return html; };

This is a **really** **really** bad advice to give. 

1) This mean that the image will not work on other machines.

2) If we added security it is not without reasons, and not to annoy people.

Adding this to your custom JS mean that any notebook you **look at** will be 
able to execute code both **in the browser** and **in the kernel**. 

It means that the author of a downloaded notebook you **put your eyes on** 
potentially have now access to all your hard drive, uploaded your ssh keys,
just contaminated all the other notebook of your hard drive, stole
your credential if you are logged in, downgraded your version of open ssl to 1.0.1f

You have been warned, don't complain if all hell break loose. 
-- 
M


> 
>  Juergen
> 
> Am 25.04.2014 10:04, schrieb Vasco Tenner:
>> I stumbled upon this usefull extension, however, displaying the image 
>> does not work on my system, with chromium 31 and ipython-master:
>> 
>> If I put this in a markdowncell, only the black outline of the image is 
>> displayed, but no image:
>> 
>> <img 
>> src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAXCAYAAAD+4+QTAAACSUlEQVRIDcVVTWgTQRT+ZkmzbemPlI3FhgobLaaKyanBgyi0eNCTXtqbFAQP6kXtwXqJXkwuElB6y0ErKB40HqpCyirSiyRaDNjW1hChskjpFtJu6boRMu6m3W7CJm5qGh0YZud7P9+8N2/fEEVRKOo8mB37X47hw+ETmJ9TqzbdOUnVrk1F8pbvp50TL8F7dHAN2fGbSI+9gSIDpKsPnaN3cGDADUYcR+JUGNbze3Hw3XPsc5lOLV9xjWR2RqGKkqXL907TuG+Qzk5M05X0DBUfXKDCtlzX0ebiYzrF99FP09nNvY7ZTDNdagqL0Qzag/fBD/Si2e1Bx1AQvPcblp7OIW85XvWAo8HQlVJYl3NQR45hasQAN1fSpeWuhuEoteWw99kkDvWypXCNO+aX4YDzo8UpQU5KBlJxZbTrz+cqii0C805YP/af56GEL2I+lsCGKGI9IUC8dQVfU0U11eZGY6sM+VUKP1WNrEhk8b4FFO7EUcgOi5ZrT3CUu41MZBgf9YCcHJoC/ejmitLHBuC5cRafw8NIPtK92JcwEfhB2vP+IVxtW7R1WJj88SG015FAPzP5saTQPfUm2ZUurGYghqJYq1BxZFdIbO7RLGEbxVrE/4nkLx4luyj/SSQkrb0Lbr0hVvEo5YQQFsZeI/tFAoUTDb4z6A4GUbD/Qzgk7rtEj0zeRYfxr+jpOhlBa5luvBELQcwF4PJ50chKWI1ex4LgR4l9GTJHk5zEiqhqJEX9qYyiDjWfG0XPtkxrlFcv4/uLiK39b6+NBEsqRwf6AAAAAElFTkSuQmCC" 
>> style="height:10px; width:20px; border: 1px solid black;">bt
>> 
>> If I inspect the image element using the chrome element inspector, the 
>> src option is not visible. This gives the suspicion that markdown is 
>> removing this.
>> 
>> Is this due to a newer version of markdown?
>> 
>> Kind regards,
>> Vasco
>> _______________________________________________
>> 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 gostal at foi.se  Fri Apr 25 04:20:47 2014
From: gostal at foi.se (gostal)
Date: Fri, 25 Apr 2014 01:20:47 -0700 (PDT)
Subject: [IPython-dev] terminal syntax highlighting?
In-Reply-To: <CANJQusWLAAuYi+=SqL=Dj3cFVozzXwi4jANsWQi35G4fYM9F=A@mail.gmail.com>
References: <53592C08.1090008@foi.se>
	<3EC48DB5-CE79-49BA-B429-83702F130A11@gmail.com>
	<CAOvn4qjzxYpXNuqzanJyc=UQ4PAm6J0Amq5wFE4dvnd5JmE+XA@mail.gmail.com>
	<CANJQusWLAAuYi+=SqL=Dj3cFVozzXwi4jANsWQi35G4fYM9F=A@mail.gmail.com>
Message-ID: <1398414047935-5054766.post@n6.nabble.com>

Thanks, guys, for clearing this up for me!:-)

G?sta



--
View this message in context: http://python.6.x6.nabble.com/terminal-syntax-highlighting-tp5054685p5054766.html
Sent from the IPython - Development mailing list archive at Nabble.com.


From python at elbonia.de  Sat Apr 26 11:40:53 2014
From: python at elbonia.de (Juergen Hasch)
Date: Sat, 26 Apr 2014 17:40:53 +0200
Subject: [IPython-dev] Paste images into the notebook
In-Reply-To: <D6079579-9ED7-4231-8368-EB8DF7227507@gmail.com>
References: <CCD2E91E44CCA449BA927E8424A283931F2E2A@MB02.mailcluster.haw-hamburg.de>	<3BC30423-3AFD-4473-86CA-3853B0920915@gmail.com>	<52F55476.4030406@elbonia.de>	<52F554C3.7050207@gmail.com>	<52F5568F.8080608@elbonia.de>	<F723135E32F9984ABC5B614F28BF2491019F5941@UWIT-MBX06.exchange.washington.edu>	<52F65F86.8070105@elbonia.de>	<535A170C.2050206@tenner.nl>
	<535BB35F.7050207@elbonia.de>
	<D6079579-9ED7-4231-8368-EB8DF7227507@gmail.com>
Message-ID: <535BD385.7030906@elbonia.de>

I agree that it not a good idea to do so. This is why I linked to the IPython documentation page describing why
sanitation was introduced and also replaced the extension on IPython-contrib.

Now if you have some old notebooks with embedded images, you will want a way to open them again.
Creating new notebooks this way is not a good idea, agreed.


Am 26.04.2014 15:46, schrieb Matthias Bussonnier:
> Hi all, 
> Le 26 avr. 2014 ? 15:23, Juergen Hasch a ?crit :
> 
>> This is due to security issues, see here:
>> http://ipython.org/ipython-doc/dev/notebook/security.html
>>
>> You can turn sanitizing off by adding this line to your local custom.js:
>> IPython.security.sanitize_html = function (html) { return html; };
> 
> This is a **really** **really** bad advice to give. 
> 
> 1) This mean that the image will not work on other machines.
> 
> 2) If we added security it is not without reasons, and not to annoy people.
> 
> Adding this to your custom JS mean that any notebook you **look at** will be 
> able to execute code both **in the browser** and **in the kernel**. 
> 
> It means that the author of a downloaded notebook you **put your eyes on** 
> potentially have now access to all your hard drive, uploaded your ssh keys,
> just contaminated all the other notebook of your hard drive, stole
> your credential if you are logged in, downgraded your version of open ssl to 1.0.1f
> 
> You have been warned, don't complain if all hell break loose. 
> 



From wstein at gmail.com  Sun Apr 27 10:50:59 2014
From: wstein at gmail.com (William Stein)
Date: Sun, 27 Apr 2014 07:50:59 -0700
Subject: [IPython-dev] race condition when starting more than one IPython
	for the first time
Message-ID: <CACLE5GD+jkGYozdhL2CwnufkayqUKXef-fps=z_yV+yQJnWmSA@mail.gmail.com>

Hi,

I don't know if you consider this a bug, but I just started IPython
(via the Sage command line) for the first time as a given user thrice
at once (in tmux), and only of the three worked.  The other two failed
in this code:

File "/usr/local/sage/sage-6.2.rc0/local/lib/python2.7/site-packages/IPython/core/application.py",
line 222, in _ipython_dir_changed
    os.makedirs(new, mode=0o777)

This is a classical race-condition mistake -- checking if a directory
exists, then creating the directory if it doesn't, except by the time
you create it, it already exists.  It would be best to wrap the
creation in a try/except and if there is an error, check if the
directory already exists.   I've also attached a screenshot.

I'm in no hurry for this to be fixed, but if you guys fix it, then
it'll be fixed for Sage as well eventually, which would be nice.

 -- William

-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-04-27 at 7.39.25 AM.png
Type: image/png
Size: 315641 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140427/5dc81649/attachment.png>

From wes.turner at gmail.com  Mon Apr 28 03:36:47 2014
From: wes.turner at gmail.com (Wes Turner)
Date: Mon, 28 Apr 2014 02:36:47 -0500
Subject: [IPython-dev] %install_ext security and reproducibility
Message-ID: <CACfEFw8ZZbFk3VUPY3ytntZikg8d4Ee=apku5n9JwKzzvsnycg@mail.gmail.com>

Github Issue: https://github.com/ipython/ipython/issues/5742

Copied here:

This feature is a security / reproducibility risk:

**Security**

* https://pypi.python.org/pypi/backports.ssl_match_hostname
* `CWE-494: Download of Code Without Integrity Check`:
https://cwe.mitre.org/top25/#CWE-494
* `CWE-250: Execution with Unnecessary Privileges`
https://cwe.mitre.org/top25/#CWE-250
* https://twitter.com/westurner/status/460229226650554370

**Reproducibility**

* IPython will present an error message if script calls a magic command
that is not installed.
* Extensions can modify core functionality.
* One could grep for `%load_extension`, but that only gives the filenames


**One Solution**

Python packaging is designed to address this type of problem; with
checksums and dependency satisfaction.

Code installation that does not rely upon community-reviewed packaging
infrastructure is a risk.

This was rejected because it relies on setuptools:
https://github.com/ipython/ipython/pull/4673

...

Github Issue: https://github.com/ipython/ipython/issues/5742

-- 
Wes Turner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140428/ab057ccd/attachment.html>

From pi at berkeley.edu  Mon Apr 28 19:17:29 2014
From: pi at berkeley.edu (Paul Ivanov)
Date: Mon, 28 Apr 2014 16:17:29 -0700
Subject: [IPython-dev] multicell cut-copy-paste in the notebook (working
	prototype)
Message-ID: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>

Hey gang,

I wrote this up over the weekend, and now have confirmation from
a few other IPython developers that the installation instructions
are working, so pinging the list in case you've been wanting this
functionality and want to start playing with it.

https://github.com/ivanov/nb-cccp

>From the README:

> IPython Notebook Collective Cut-Copy-Paste
> 
> A working prototype for multi-cell cut-copy-paste in the
> notebook. This functionality will be in the next version of
> IPython, this is just the first stab at an implementation so we
> (and you!) can start playing with it.


You can install it as an extension and try it out without having
to run / update to IPython master (it works in IPython 2.0):

cd $(ipython locate)/nbextensions
git clone https://github.com/ivanov/nb-cccp
echo "require(['nbextensions/nb-cccp'], function (copy_paste) {
    copy_paste.load_ipython_extension();
    console.log('copy_paste extension loaded');
    });" >> $(ipython locate profile)/static/custom/custom.js

(I've tweeted this out, if you want to retweet to spread the
word: https://twitter.com/ivanov/status/460917106385506306)
-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org


From ellisonbg at gmail.com  Mon Apr 28 19:22:26 2014
From: ellisonbg at gmail.com (Brian Granger)
Date: Mon, 28 Apr 2014 16:22:26 -0700
Subject: [IPython-dev] multicell cut-copy-paste in the notebook (working
	prototype)
In-Reply-To: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>
References: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>
Message-ID: <CAH4pYpQXwYUtt5eAx4Nwk111FWxpWx0sxGvBTqx6LHSN3n4Zpw@mail.gmail.com>

Thanks for working on and sharing this Paul!

On Mon, Apr 28, 2014 at 4:17 PM, Paul Ivanov <pi at berkeley.edu> wrote:
> Hey gang,
>
> I wrote this up over the weekend, and now have confirmation from
> a few other IPython developers that the installation instructions
> are working, so pinging the list in case you've been wanting this
> functionality and want to start playing with it.
>
> https://github.com/ivanov/nb-cccp
>
> >From the README:
>
>> IPython Notebook Collective Cut-Copy-Paste
>>
>> A working prototype for multi-cell cut-copy-paste in the
>> notebook. This functionality will be in the next version of
>> IPython, this is just the first stab at an implementation so we
>> (and you!) can start playing with it.
>
>
> You can install it as an extension and try it out without having
> to run / update to IPython master (it works in IPython 2.0):
>
> cd $(ipython locate)/nbextensions
> git clone https://github.com/ivanov/nb-cccp
> echo "require(['nbextensions/nb-cccp'], function (copy_paste) {
>     copy_paste.load_ipython_extension();
>     console.log('copy_paste extension loaded');
>     });" >> $(ipython locate profile)/static/custom/custom.js
>
> (I've tweeted this out, if you want to retweet to spread the
> word: https://twitter.com/ivanov/status/460917106385506306)
> --
>                    _
>                   / \
>                 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



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu and ellisonbg at gmail.com


From tritemio at gmail.com  Mon Apr 28 19:54:19 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Mon, 28 Apr 2014 16:54:19 -0700
Subject: [IPython-dev] multicell cut-copy-paste in the notebook (working
	prototype)
In-Reply-To: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>
References: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>
Message-ID: <CANn2QUxuMW5xQN_hm-aK+pLY6r6-Y5T_3GrEzGjNUPZfw0dgcg@mail.gmail.com>

That's a very important feature, thanks!

Antonio


On Mon, Apr 28, 2014 at 4:17 PM, Paul Ivanov <pi at berkeley.edu> wrote:

> Hey gang,
>
> I wrote this up over the weekend, and now have confirmation from
> a few other IPython developers that the installation instructions
> are working, so pinging the list in case you've been wanting this
> functionality and want to start playing with it.
>
> https://github.com/ivanov/nb-cccp
>
> >From the README:
>
> > IPython Notebook Collective Cut-Copy-Paste
> >
> > A working prototype for multi-cell cut-copy-paste in the
> > notebook. This functionality will be in the next version of
> > IPython, this is just the first stab at an implementation so we
> > (and you!) can start playing with it.
>
>
> You can install it as an extension and try it out without having
> to run / update to IPython master (it works in IPython 2.0):
>
> cd $(ipython locate)/nbextensions
> git clone https://github.com/ivanov/nb-cccp
> echo "require(['nbextensions/nb-cccp'], function (copy_paste) {
>     copy_paste.load_ipython_extension();
>     console.log('copy_paste extension loaded');
>     });" >> $(ipython locate profile)/static/custom/custom.js
>
> (I've tweeted this out, if you want to retweet to spread the
> word: https://twitter.com/ivanov/status/460917106385506306)
> --
>                    _
>                   / \
>                 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140428/7809f229/attachment.html>

From tritemio at gmail.com  Mon Apr 28 20:09:09 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Mon, 28 Apr 2014 17:09:09 -0700
Subject: [IPython-dev] multicell cut-copy-paste in the notebook (working
	prototype)
In-Reply-To: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>
References: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>
Message-ID: <CANn2QUyayLkm3p0hHfg=xcqrANTCGx0xwwWhkPq2yEn=wuFrVw@mail.gmail.com>

Hi Paul,

I've tried running the nb-cccp extension on windows 7 an IPython 2.0 but I
don't get any new button and this messages in the javascript console:

Failed to load resource: the server responded with a status of 404 (Not
Found) http://127.0.0.1:8888/nbextensions/nb-cccp.js
 Uncaught Error: Script error for: nbextensions/nb-cccp
http://requirejs.org/docs/errors.html#scripterror
require.js?v=07d7db4d3fd6519996822665e4239282:141


Antonio

On Mon, Apr 28, 2014 at 4:17 PM, Paul Ivanov <pi at berkeley.edu> wrote:

> Hey gang,
>
> I wrote this up over the weekend, and now have confirmation from
> a few other IPython developers that the installation instructions
> are working, so pinging the list in case you've been wanting this
> functionality and want to start playing with it.
>
> https://github.com/ivanov/nb-cccp
>
> >From the README:
>
> > IPython Notebook Collective Cut-Copy-Paste
> >
> > A working prototype for multi-cell cut-copy-paste in the
> > notebook. This functionality will be in the next version of
> > IPython, this is just the first stab at an implementation so we
> > (and you!) can start playing with it.
>
>
> You can install it as an extension and try it out without having
> to run / update to IPython master (it works in IPython 2.0):
>
> cd $(ipython locate)/nbextensions
> git clone https://github.com/ivanov/nb-cccp
> echo "require(['nbextensions/nb-cccp'], function (copy_paste) {
>     copy_paste.load_ipython_extension();
>     console.log('copy_paste extension loaded');
>     });" >> $(ipython locate profile)/static/custom/custom.js
>
> (I've tweeted this out, if you want to retweet to spread the
> word: https://twitter.com/ivanov/status/460917106385506306)
> --
>                    _
>                   / \
>                 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140428/ae3fdb0c/attachment.html>

From colin.gerber at gmail.com  Mon Apr 28 21:46:34 2014
From: colin.gerber at gmail.com (Colin Gerber)
Date: Mon, 28 Apr 2014 18:46:34 -0700
Subject: [IPython-dev] multicell cut-copy-paste in the notebook (working
	prototype)
In-Reply-To: <CANn2QUyayLkm3p0hHfg=xcqrANTCGx0xwwWhkPq2yEn=wuFrVw@mail.gmail.com>
References: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>
	<CANn2QUyayLkm3p0hHfg=xcqrANTCGx0xwwWhkPq2yEn=wuFrVw@mail.gmail.com>
Message-ID: <CAKL3igREsBikBJ0m5pNwEh-orKZkEUPkp3Yv9N8d_PaxVNtk-w@mail.gmail.com>

Antonio, I got that as well.  I switiched it to:

    IPython.load_extensions('nb-cccp/copy-paste');

and it worked. It would probably also work if you just added "/copy-paste"
to the path of the existing code (I just switched it to be more consistent
with my other extensions)


On Mon, Apr 28, 2014 at 5:09 PM, Antonino Ingargiola <tritemio at gmail.com>wrote:

> Hi Paul,
>
> I've tried running the nb-cccp extension on windows 7 an IPython 2.0 but I
> don't get any new button and this messages in the javascript console:
>
> Failed to load resource: the server responded with a status of 404 (Not
> Found) http://127.0.0.1:8888/nbextensions/nb-cccp.js
>  Uncaught Error: Script error for: nbextensions/nb-cccp
> http://requirejs.org/docs/errors.html#scripterror
> require.js?v=07d7db4d3fd6519996822665e4239282:141
>
>
> Antonio
>
> On Mon, Apr 28, 2014 at 4:17 PM, Paul Ivanov <pi at berkeley.edu> wrote:
>
>> Hey gang,
>>
>> I wrote this up over the weekend, and now have confirmation from
>> a few other IPython developers that the installation instructions
>> are working, so pinging the list in case you've been wanting this
>> functionality and want to start playing with it.
>>
>> https://github.com/ivanov/nb-cccp
>>
>> >From the README:
>>
>> > IPython Notebook Collective Cut-Copy-Paste
>> >
>> > A working prototype for multi-cell cut-copy-paste in the
>> > notebook. This functionality will be in the next version of
>> > IPython, this is just the first stab at an implementation so we
>> > (and you!) can start playing with it.
>>
>>
>> You can install it as an extension and try it out without having
>> to run / update to IPython master (it works in IPython 2.0):
>>
>> cd $(ipython locate)/nbextensions
>> git clone https://github.com/ivanov/nb-cccp
>> echo "require(['nbextensions/nb-cccp'], function (copy_paste) {
>>     copy_paste.load_ipython_extension();
>>     console.log('copy_paste extension loaded');
>>     });" >> $(ipython locate profile)/static/custom/custom.js
>>
>> (I've tweeted this out, if you want to retweet to spread the
>> word: https://twitter.com/ivanov/status/460917106385506306)
>> --
>>                    _
>>                   / \
>>                 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
>
>


-- 
Thanks,
Colin Gerber
www.colingerber.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140428/a7ec6c96/attachment.html>

From tritemio at gmail.com  Tue Apr 29 00:32:59 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Mon, 28 Apr 2014 21:32:59 -0700
Subject: [IPython-dev] multicell cut-copy-paste in the notebook (working
	prototype)
In-Reply-To: <CAKL3igREsBikBJ0m5pNwEh-orKZkEUPkp3Yv9N8d_PaxVNtk-w@mail.gmail.com>
References: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>
	<CANn2QUyayLkm3p0hHfg=xcqrANTCGx0xwwWhkPq2yEn=wuFrVw@mail.gmail.com>
	<CAKL3igREsBikBJ0m5pNwEh-orKZkEUPkp3Yv9N8d_PaxVNtk-w@mail.gmail.com>
Message-ID: <CANn2QUxYZ2wOfVz7dNWnpU-B84L0zf-104-bP3==eijHOtMR-Q@mail.gmail.com>

On Mon, Apr 28, 2014 at 6:46 PM, Colin Gerber <colin.gerber at gmail.com>wrote:

> Antonio, I got that as well.  I switiched it to:
>
>     IPython.load_extensions('nb-cccp/copy-paste');
>
> and it worked.
>

Sorry, where should I put this line?

Antonio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140428/0658896d/attachment.html>

From tritemio at gmail.com  Tue Apr 29 00:40:37 2014
From: tritemio at gmail.com (Antonino Ingargiola)
Date: Mon, 28 Apr 2014 21:40:37 -0700
Subject: [IPython-dev] multicell cut-copy-paste in the notebook (working
	prototype)
In-Reply-To: <CANn2QUxYZ2wOfVz7dNWnpU-B84L0zf-104-bP3==eijHOtMR-Q@mail.gmail.com>
References: <20140428231729.GL14429@HbI-OTOH.berkeley.edu>
	<CANn2QUyayLkm3p0hHfg=xcqrANTCGx0xwwWhkPq2yEn=wuFrVw@mail.gmail.com>
	<CAKL3igREsBikBJ0m5pNwEh-orKZkEUPkp3Yv9N8d_PaxVNtk-w@mail.gmail.com>
	<CANn2QUxYZ2wOfVz7dNWnpU-B84L0zf-104-bP3==eijHOtMR-Q@mail.gmail.com>
Message-ID: <CANn2QUytZXoGHgwFQsZtKgfnV2GDedr7AJmZWDsxmpqO5OsC4g@mail.gmail.com>

On Mon, Apr 28, 2014 at 9:32 PM, Antonino Ingargiola <tritemio at gmail.com>wrote:

>
>
> On Mon, Apr 28, 2014 at 6:46 PM, Colin Gerber <colin.gerber at gmail.com>wrote:
>
>> Antonio, I got that as well.  I switiched it to:
>>
>>     IPython.load_extensions('nb-cccp/copy-paste');
>>
>> and it worked.
>>
>
> Sorry, where should I put this line?
>

Never mind, I put it in the the custom.js file, before Paul's code and now
the extension is loaded.

Thanks,

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

From a.h.jaffe at gmail.com  Tue Apr 29 03:50:11 2014
From: a.h.jaffe at gmail.com (Andrew Jaffe)
Date: Tue, 29 Apr 2014 08:50:11 +0100
Subject: [IPython-dev] highlight currently running cell?
Message-ID: <535F59B3.5010004@gmail.com>


Hi all,

Is there any way to highlight the currently running cell? I don't always 
run things in the order in which they appear, and so I often just see a 
bunch of In [*] cells, but I don't recall which one is up next.

Yours,

Andrew

p.s. in the new regime, should this sort of Q go here?


From a.h.jaffe at gmail.com  Tue Apr 29 03:57:28 2014
From: a.h.jaffe at gmail.com (Andrew Jaffe)
Date: Tue, 29 Apr 2014 08:57:28 +0100
Subject: [IPython-dev] Parallel programming dependencies
Message-ID: <535F5B68.4060004@gmail.com>


Hi all,

I posted a version of this to StackOverflow at 
http://stackoverflow.com/questions/23290086/ipython-parallel-programming-dependencies 
but there hasn't been a response, so I thought I'd try here. Apologies 
if this is inappropriate here.

I am using iPython for some relatively heavy numerical tasks, subsets of 
which are more or less embarrassingly parallel. The tasks have very 
simple dependencies, but I'm struggling to work out the best way to 
implement them. The basic problem is that the result of a previous 
computation must be used in the following one, and I would like to 
submit those tasks to the engines separately.

Basically I've got

     in0a = ....
     in0b = ....

     res1a = f1(in0a)   ## expensive, would like to run on engine 0
     res1b = f1(in0b)   ## expensive, would like to run on engine 1
     ### and same for c, d, ... on engines 2, 3, ... (mod the number of 
engines)

     res2a = f2(res1a)  ### depends on res1a = f1(in0a) being computed
     res2b = f2(res1b)  ### depends on res1b = f1(in0b) being computed

I could restructure things into some f_12() functions which call f1 and 
f2 in sequence, and return both outputs as a tuple (I'd like the main 
engine to have access to all the results) and just submit those 
asynchronously, or I could use a parallel map of f1 on [in0a, in0b, ...] 
but I would strongly prefer not to do either of those refactorings.

I could also add a `wait()` between the f1 and f2 calls, but this would 
wait on all of the f1 calls, even if they are different lengths, and so 
I could proceed with f2 calls as their dependencies become available.

So what I really want to know is how I can use view.apply_async() so 
that running res2a=f2(res1a) will only happen once res1a=f1(in0a) has 
run (and similarly for the b, c, d, ... tasks).

Basically, I want to use a blocking apply_async. With load-balancing it 
should be something like

     res1a = v.apply_async(f1, in0a)
     res1b = v.apply_async(f1, in0b)
     res2a = v.apply_async(f2, res1a.get())
     res2b = v.apply_async(f2, res1b.get())

But this blocks res2b from being calculated even if res1b becomes ready.

The same problems would seem to apply to a direct view manually sending 
the 'a' tasks to one engine, the 'b' to another, etc.

Alternately, I thought I could use lview.temp_flags() to set up the 
dependencies, but the necessary .get() in the apply_async still blocks.

What I think we ideally want is something which allows apply_async to 
take full AsyncResult objects and figure out the dependency graph from 
this automatically! But is there any workaround at this point? Given the 
requirement to send the actual result from one computation to the next 
-- through the "calling" iPython process -- I'm not sure there's any way 
to actually set this up.

Yours,

Andrew



From modi.konark at gmail.com  Tue Apr 29 04:09:45 2014
From: modi.konark at gmail.com (konark modi)
Date: Tue, 29 Apr 2014 13:39:45 +0530
Subject: [IPython-dev] Github repo mining for IPython project !
Message-ID: <CAPhs5j9E9h85NN+KU9WZmh386axTMX=1ZFZc2UASQUis6Fjbfg@mail.gmail.com>

Hi,

I was preparing an introduction IPython-notebook  for Pandas for a local
community conference(http://osdconf.in/).


Title of my talk was : Perfect recipe for data wrangling : IPython
Notebook+ Pandas + Visualizations ! (
http://osdconf.in/funnel/osdconf14/21-perfect-recipe-for-data-wrangling-ipython-notebook
)

For demo purpose I showcased how the IPython project has evolved via mining
the git logs for https://github.com/ipython/ipython.

Thought of sharing the demo with larger audience:
*http://nbviewer.ipython.org/github/konarkmodi/Presentations/blob/master/notebooks/IPython-git-repo-mining.ipynb?create=1
<http://nbviewer.ipython.org/github/konarkmodi/Presentations/blob/master/notebooks/IPython-git-repo-mining.ipynb?create=1>*


Would appreciate your feedback.


Regards
Konark Modi
@konarkmodi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140429/8745eb45/attachment.html>

From bussonniermatthias at gmail.com  Tue Apr 29 04:34:54 2014
From: bussonniermatthias at gmail.com (Matthias Bussonnier)
Date: Tue, 29 Apr 2014 10:34:54 +0200
Subject: [IPython-dev] Github repo mining for IPython project !
In-Reply-To: <CAPhs5j9E9h85NN+KU9WZmh386axTMX=1ZFZc2UASQUis6Fjbfg@mail.gmail.com>
References: <CAPhs5j9E9h85NN+KU9WZmh386axTMX=1ZFZc2UASQUis6Fjbfg@mail.gmail.com>
Message-ID: <54FE8D27-DA9D-4659-A377-AF8CC89D7E10@gmail.com>

Cool!

I would use the mailmap to deduplicate authors!
-- 
M

Envoy? de mon iPhone

> Le 29 avr. 2014 ? 10:09, konark modi <modi.konark at gmail.com> a ?crit :
> 
> Hi,
> 
> I was preparing an introduction IPython-notebook  for Pandas for a local community conference(http://osdconf.in/).
> 
> 
> Title of my talk was : Perfect recipe for data wrangling : IPython Notebook+ Pandas + Visualizations ! (http://osdconf.in/funnel/osdconf14/21-perfect-recipe-for-data-wrangling-ipython-notebook) 
> 
> For demo purpose I showcased how the IPython project has evolved via mining the git logs for https://github.com/ipython/ipython.
> 
> Thought of sharing the demo with larger audience:
> http://nbviewer.ipython.org/github/konarkmodi/Presentations/blob/master/notebooks/IPython-git-repo-mining.ipynb?create=1
> 
> 
> Would appreciate your feedback.
> 
> 
> Regards
> Konark Modi
> @konarkmodi
> _______________________________________________
> 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/20140429/ee743a0a/attachment.html>

From damianavila at gmail.com  Tue Apr 29 06:51:17 2014
From: damianavila at gmail.com (=?UTF-8?Q?Dami=C3=A1n_Avila?=)
Date: Tue, 29 Apr 2014 07:51:17 -0300
Subject: [IPython-dev] Github repo mining for IPython project !
In-Reply-To: <54FE8D27-DA9D-4659-A377-AF8CC89D7E10@gmail.com>
References: <CAPhs5j9E9h85NN+KU9WZmh386axTMX=1ZFZc2UASQUis6Fjbfg@mail.gmail.com>
	<54FE8D27-DA9D-4659-A377-AF8CC89D7E10@gmail.com>
Message-ID: <CAH+mRR3WnSWJo3Qkoddb9pVH8uQ=cF7akbo2j3XmkFWQJ7Td6w@mail.gmail.com>

I agree, you can get the mailmap from here:
https://github.com/ipython/ipython/blob/master/.mailmap

Cheers.


2014-04-29 5:34 GMT-03:00 Matthias Bussonnier <bussonniermatthias at gmail.com>
:

> Cool!
>
> I would use the mailmap to deduplicate authors!
> --
> M
>
> Envoy? de mon iPhone
>
> Le 29 avr. 2014 ? 10:09, konark modi <modi.konark at gmail.com> a ?crit :
>
> Hi,
>
> I was preparing an introduction IPython-notebook  for Pandas for a local
> community conference(http://osdconf.in/).
>
>
> Title of my talk was : Perfect recipe for data wrangling : IPython
> Notebook+ Pandas + Visualizations ! (
> http://osdconf.in/funnel/osdconf14/21-perfect-recipe-for-data-wrangling-ipython-notebook
> )
>
> For demo purpose I showcased how the IPython project has evolved via
> mining the git logs for https://github.com/ipython/ipython.
>
> Thought of sharing the demo with larger audience:
> *http://nbviewer.ipython.org/github/konarkmodi/Presentations/blob/master/notebooks/IPython-git-repo-mining.ipynb?create=1
> <http://nbviewer.ipython.org/github/konarkmodi/Presentations/blob/master/notebooks/IPython-git-repo-mining.ipynb?create=1>*
>
>
> Would appreciate your feedback.
>
>
> Regards
> Konark Modi
> @konarkmodi
>
> _______________________________________________
> 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
>
>


-- 
*Dami?n*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140429/0ad4bf29/attachment.html>

From ndbecker2 at gmail.com  Tue Apr 29 07:27:46 2014
From: ndbecker2 at gmail.com (Neal Becker)
Date: Tue, 29 Apr 2014 07:27:46 -0400
Subject: [IPython-dev] highlight currently running cell?
References: <535F59B3.5010004@gmail.com>
Message-ID: <ljo2bi$ehb$1@ger.gmane.org>

Andrew Jaffe wrote:

> 
> Hi all,
> 
> Is there any way to highlight the currently running cell? I don't always
> run things in the order in which they appear, and so I often just see a
> bunch of In [*] cells, but I don't recall which one is up next.
> 
> Yours,
> 
> Andrew
> 
> p.s. in the new regime, should this sort of Q go here?

+1 for making this by default (unless it's actually too difficult or costly to 
implement)



From jgill at tokiomillennium.com  Tue Apr 29 08:57:48 2014
From: jgill at tokiomillennium.com (John Gill)
Date: Tue, 29 Apr 2014 12:57:48 +0000
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <535F5B68.4060004@gmail.com>
References: <535F5B68.4060004@gmail.com>
Message-ID: <CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>

Hi,

I do something similar, submitting tasks for Directed, acyclic graphs:

http://ipython.org/ipython-doc/dev/parallel/dag_dependencies.html

I get round the problem of passing data from one task to subsequent task by persisting the results of each task to disk -- might that work for you?   Each task runs in its own folder, but all the tasks know where to find data from previous tasks -- so it is actually more powerful than just passing in the data for the direct dependencies, you can get at the data for any task further up the dependency graph.

John

-----Original Message-----
From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] On Behalf Of Andrew Jaffe
Sent: Tuesday, April 29, 2014 4:57 AM
To: ipython-dev at scipy.org
Subject: [IPython-dev] Parallel programming dependencies


Hi all,

I posted a version of this to StackOverflow at http://stackoverflow.com/questions/23290086/ipython-parallel-programming-dependencies
but there hasn't been a response, so I thought I'd try here. Apologies if this is inappropriate here.

I am using iPython for some relatively heavy numerical tasks, subsets of which are more or less embarrassingly parallel. The tasks have very simple dependencies, but I'm struggling to work out the best way to implement them. The basic problem is that the result of a previous computation must be used in the following one, and I would like to submit those tasks to the engines separately.

Basically I've got

     in0a = ....
     in0b = ....

     res1a = f1(in0a)   ## expensive, would like to run on engine 0
     res1b = f1(in0b)   ## expensive, would like to run on engine 1
     ### and same for c, d, ... on engines 2, 3, ... (mod the number of
engines)

     res2a = f2(res1a)  ### depends on res1a = f1(in0a) being computed
     res2b = f2(res1b)  ### depends on res1b = f1(in0b) being computed

I could restructure things into some f_12() functions which call f1 and
f2 in sequence, and return both outputs as a tuple (I'd like the main engine to have access to all the results) and just submit those asynchronously, or I could use a parallel map of f1 on [in0a, in0b, ...] but I would strongly prefer not to do either of those refactorings.

I could also add a `wait()` between the f1 and f2 calls, but this would wait on all of the f1 calls, even if they are different lengths, and so I could proceed with f2 calls as their dependencies become available.

So what I really want to know is how I can use view.apply_async() so that running res2a=f2(res1a) will only happen once res1a=f1(in0a) has run (and similarly for the b, c, d, ... tasks).

Basically, I want to use a blocking apply_async. With load-balancing it should be something like

     res1a = v.apply_async(f1, in0a)
     res1b = v.apply_async(f1, in0b)
     res2a = v.apply_async(f2, res1a.get())
     res2b = v.apply_async(f2, res1b.get())

But this blocks res2b from being calculated even if res1b becomes ready.

The same problems would seem to apply to a direct view manually sending the 'a' tasks to one engine, the 'b' to another, etc.

Alternately, I thought I could use lview.temp_flags() to set up the dependencies, but the necessary .get() in the apply_async still blocks.

What I think we ideally want is something which allows apply_async to take full AsyncResult objects and figure out the dependency graph from this automatically! But is there any workaround at this point? Given the requirement to send the actual result from one computation to the next
-- through the "calling" iPython process -- I'm not sure there's any way to actually set this up.

Yours,

Andrew

_______________________________________________
IPython-dev mailing list
IPython-dev at scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-dev

This communication and any attachments contain information which is confidential and may also be legally privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying, printing or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to postmaster at tokiomillennium.com and then permanently delete the email and any attachments from your system.

E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. It is the recipient's responsibility to ensure that e-mail transmissions and any attachments are virus free. We do not accept liability for any damages or other consequences caused by information that is intercepted, corrupted, amended, lost, destroyed, arrives late or incomplete or contains viruses.
******************************************



From a.h.jaffe at gmail.com  Tue Apr 29 11:29:13 2014
From: a.h.jaffe at gmail.com (Andrew Jaffe)
Date: Tue, 29 Apr 2014 16:29:13 +0100
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>
References: <535F5B68.4060004@gmail.com>
	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>
Message-ID: <ljoggn$130$1@ger.gmane.org>

Hi,

On 29/04/2014 13:57, John Gill wrote:
> Hi,
>
> I do something similar, submitting tasks for Directed, acyclic graphs:
>
> http://ipython.org/ipython-doc/dev/parallel/dag_dependencies.html
>
> I get round the problem of passing data from one task to subsequent task by persisting the results of each task to disk -- might that work for you?   Each task runs in its own folder, but all the tasks know where to find data from previous tasks -- so it is actually more powerful than just passing in the data for the direct dependencies, you can get at the data for any task further up the dependency graph.

Certainly something along these lines would work -- indeed there are 
many possible workarounds.

But it's still irksome that the parallel-apply model *can't* explicitly 
pass data forward to the following tasks. This seems like an obvious 
request...

Andrew




>
> John

>
> -----Original Message-----
> From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] On Behalf Of Andrew Jaffe
> Sent: Tuesday, April 29, 2014 4:57 AM
> To: ipython-dev at scipy.org
> Subject: [IPython-dev] Parallel programming dependencies
>
>
> Hi all,
>
> I posted a version of this to StackOverflow at http://stackoverflow.com/questions/23290086/ipython-parallel-programming-dependencies
> but there hasn't been a response, so I thought I'd try here. Apologies if this is inappropriate here.
>
> I am using iPython for some relatively heavy numerical tasks, subsets of which are more or less embarrassingly parallel. The tasks have very simple dependencies, but I'm struggling to work out the best way to implement them. The basic problem is that the result of a previous computation must be used in the following one, and I would like to submit those tasks to the engines separately.
>
> Basically I've got
>
>       in0a = ....
>       in0b = ....
>
>       res1a = f1(in0a)   ## expensive, would like to run on engine 0
>       res1b = f1(in0b)   ## expensive, would like to run on engine 1
>       ### and same for c, d, ... on engines 2, 3, ... (mod the number of
> engines)
>
>       res2a = f2(res1a)  ### depends on res1a = f1(in0a) being computed
>       res2b = f2(res1b)  ### depends on res1b = f1(in0b) being computed
>
> I could restructure things into some f_12() functions which call f1 and
> f2 in sequence, and return both outputs as a tuple (I'd like the main engine to have access to all the results) and just submit those asynchronously, or I could use a parallel map of f1 on [in0a, in0b, ...] but I would strongly prefer not to do either of those refactorings.
>
> I could also add a `wait()` between the f1 and f2 calls, but this would wait on all of the f1 calls, even if they are different lengths, and so I could proceed with f2 calls as their dependencies become available.
>
> So what I really want to know is how I can use view.apply_async() so that running res2a=f2(res1a) will only happen once res1a=f1(in0a) has run (and similarly for the b, c, d, ... tasks).
>
> Basically, I want to use a blocking apply_async. With load-balancing it should be something like
>
>       res1a = v.apply_async(f1, in0a)
>       res1b = v.apply_async(f1, in0b)
>       res2a = v.apply_async(f2, res1a.get())
>       res2b = v.apply_async(f2, res1b.get())
>
> But this blocks res2b from being calculated even if res1b becomes ready.
>
> The same problems would seem to apply to a direct view manually sending the 'a' tasks to one engine, the 'b' to another, etc.
>
> Alternately, I thought I could use lview.temp_flags() to set up the dependencies, but the necessary .get() in the apply_async still blocks.
>
> What I think we ideally want is something which allows apply_async to take full AsyncResult objects and figure out the dependency graph from this automatically! But is there any workaround at this point? Given the requirement to send the actual result from one computation to the next
> -- through the "calling" iPython process -- I'm not sure there's any way to actually set this up.
>
> Yours,
>
> Andrew
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
> This communication and any attachments contain information which is confidential and may also be legally privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying, printing or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to postmaster at tokiomillennium.com and then permanently delete the email and any attachments from your system.
>
> E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. It is the recipient's responsibility to ensure that e-mail transmissions and any attachments are virus free. We do not accept liability for any damages or other consequences caused by information that is intercepted, corrupted, amended, lost, destroyed, arrives late or incomplete or contains viruses.
> ******************************************
>




From pi at berkeley.edu  Tue Apr 29 12:19:47 2014
From: pi at berkeley.edu (Paul Ivanov)
Date: Tue, 29 Apr 2014 09:19:47 -0700
Subject: [IPython-dev] race condition when starting more than one
 IPython for the first time
In-Reply-To: <CACLE5GD+jkGYozdhL2CwnufkayqUKXef-fps=z_yV+yQJnWmSA@mail.gmail.com>
References: <CACLE5GD+jkGYozdhL2CwnufkayqUKXef-fps=z_yV+yQJnWmSA@mail.gmail.com>
Message-ID: <20140429161947.GP14429@HbI-OTOH.berkeley.edu>

William Stein, on 2014-04-27 07:50,  wrote:
> File "/usr/local/sage/sage-6.2.rc0/local/lib/python2.7/site-packages/IPython/core/application.py",
> line 222, in _ipython_dir_changed
>     os.makedirs(new, mode=0o777)
> 
> This is a classical race-condition mistake -- checking if a directory
> exists, then creating the directory if it doesn't, except by the time
> you create it, it already exists.  It would be best to wrap the
> creation in a try/except and if there is an error, check if the
> directory already exists.   I've also attached a screenshot.
> 
> I'm in no hurry for this to be fixed, but if you guys fix it, then
> it'll be fixed for Sage as well eventually, which would be nice.

Thanks for reporting, William, I've started working on a PR to
fix all instances of such race conditions in our codebase:

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

-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org


From wstein at gmail.com  Tue Apr 29 12:25:19 2014
From: wstein at gmail.com (William Stein)
Date: Tue, 29 Apr 2014 09:25:19 -0700
Subject: [IPython-dev] race condition when starting more than one
 IPython for the first time
In-Reply-To: <20140429161947.GP14429@HbI-OTOH.berkeley.edu>
References: <CACLE5GD+jkGYozdhL2CwnufkayqUKXef-fps=z_yV+yQJnWmSA@mail.gmail.com>
	<20140429161947.GP14429@HbI-OTOH.berkeley.edu>
Message-ID: <CACLE5GArrCOAJjrvadjU-79yuLcGU9sQSsB9bSps97Lidkbbnw@mail.gmail.com>

On Tue, Apr 29, 2014 at 9:19 AM, Paul Ivanov <pi at berkeley.edu> wrote:
> William Stein, on 2014-04-27 07:50,  wrote:
>> File "/usr/local/sage/sage-6.2.rc0/local/lib/python2.7/site-packages/IPython/core/application.py",
>> line 222, in _ipython_dir_changed
>>     os.makedirs(new, mode=0o777)
>>
>> This is a classical race-condition mistake -- checking if a directory
>> exists, then creating the directory if it doesn't, except by the time
>> you create it, it already exists.  It would be best to wrap the
>> creation in a try/except and if there is an error, check if the
>> directory already exists.   I've also attached a screenshot.
>>
>> I'm in no hurry for this to be fixed, but if you guys fix it, then
>> it'll be fixed for Sage as well eventually, which would be nice.
>
> Thanks for reporting, William, I've started working on a PR to
> fix all instances of such race conditions in our codebase:
>
> https://github.com/ipython/ipython/pull/5750

Awesome, thanks!

>
> --
>                    _
>                   / \
>                 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



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


From benjaminrk at gmail.com  Tue Apr 29 12:54:39 2014
From: benjaminrk at gmail.com (MinRK)
Date: Tue, 29 Apr 2014 09:54:39 -0700
Subject: [IPython-dev] highlight currently running cell?
In-Reply-To: <535F59B3.5010004@gmail.com>
References: <535F59B3.5010004@gmail.com>
Message-ID: <CAHNn8BVsa=vurfkLGZeu6sXKwRq-fW1TYJcjm4J_zzSCHW=4KQ@mail.gmail.com>

On Tue, Apr 29, 2014 at 12:50 AM, Andrew Jaffe <a.h.jaffe at gmail.com> wrote:

>
> Hi all,
>
> Is there any way to highlight the currently running cell? I don't always
> run things in the order in which they appear, and so I often just see a
> bunch of In [*] cells, but I don't recall which one is up next.
>

I don't think there is a mechanism to do this right now.


>
> Yours,
>
> Andrew
>
> p.s. in the new regime, should this sort of Q go here?
>

Yes, this is a fine place for this sort of question.

-MinRK


> _______________________________________________
> 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/20140429/fbcbe918/attachment.html>

From bussonniermatthias at gmail.com  Tue Apr 29 13:48:04 2014
From: bussonniermatthias at gmail.com (Matthias Bussonnier)
Date: Tue, 29 Apr 2014 19:48:04 +0200
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <ljoggn$130$1@ger.gmane.org>
References: <535F5B68.4060004@gmail.com>
	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>
	<ljoggn$130$1@ger.gmane.org>
Message-ID: <360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com>

Hi, 

Not a parallel user myself, 
but there is the following in ipython/exaple/parallel/dependencies.py

...
def getpid():
    import os
    return os.getpid()

pid0 = client[0].apply_sync(getpid)

# this will depend on the pid being that of target 0:
@depend(checkpid, pid0)
def getpid2():
    import os
    return os.getpid()
...

and lots of stuff that look *a lot* like what you are trying to do.

-- 
M

Le 29 avr. 2014 ? 17:29, Andrew Jaffe a ?crit :

> Hi,
> 
> On 29/04/2014 13:57, John Gill wrote:
>> Hi,
>> 
>> I do something similar, submitting tasks for Directed, acyclic graphs:
>> 
>> http://ipython.org/ipython-doc/dev/parallel/dag_dependencies.html
>> 
>> I get round the problem of passing data from one task to subsequent task by persisting the results of each task to disk -- might that work for you?   Each task runs in its own folder, but all the tasks know where to find data from previous tasks -- so it is actually more powerful than just passing in the data for the direct dependencies, you can get at the data for any task further up the dependency graph.
> 
> Certainly something along these lines would work -- indeed there are 
> many possible workarounds.
> 
> But it's still irksome that the parallel-apply model *can't* explicitly 
> pass data forward to the following tasks. This seems like an obvious 
> request...
> 
> Andrew
> 
> 
> 
> 
>> 
>> John
> 
>> 
>> -----Original Message-----
>> From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] On Behalf Of Andrew Jaffe
>> Sent: Tuesday, April 29, 2014 4:57 AM
>> To: ipython-dev at scipy.org
>> Subject: [IPython-dev] Parallel programming dependencies
>> 
>> 
>> Hi all,
>> 
>> I posted a version of this to StackOverflow at http://stackoverflow.com/questions/23290086/ipython-parallel-programming-dependencies
>> but there hasn't been a response, so I thought I'd try here. Apologies if this is inappropriate here.
>> 
>> I am using iPython for some relatively heavy numerical tasks, subsets of which are more or less embarrassingly parallel. The tasks have very simple dependencies, but I'm struggling to work out the best way to implement them. The basic problem is that the result of a previous computation must be used in the following one, and I would like to submit those tasks to the engines separately.
>> 
>> Basically I've got
>> 
>>      in0a = ....
>>      in0b = ....
>> 
>>      res1a = f1(in0a)   ## expensive, would like to run on engine 0
>>      res1b = f1(in0b)   ## expensive, would like to run on engine 1
>>      ### and same for c, d, ... on engines 2, 3, ... (mod the number of
>> engines)
>> 
>>      res2a = f2(res1a)  ### depends on res1a = f1(in0a) being computed
>>      res2b = f2(res1b)  ### depends on res1b = f1(in0b) being computed
>> 
>> I could restructure things into some f_12() functions which call f1 and
>> f2 in sequence, and return both outputs as a tuple (I'd like the main engine to have access to all the results) and just submit those asynchronously, or I could use a parallel map of f1 on [in0a, in0b, ...] but I would strongly prefer not to do either of those refactorings.
>> 
>> I could also add a `wait()` between the f1 and f2 calls, but this would wait on all of the f1 calls, even if they are different lengths, and so I could proceed with f2 calls as their dependencies become available.
>> 
>> So what I really want to know is how I can use view.apply_async() so that running res2a=f2(res1a) will only happen once res1a=f1(in0a) has run (and similarly for the b, c, d, ... tasks).
>> 
>> Basically, I want to use a blocking apply_async. With load-balancing it should be something like
>> 
>>      res1a = v.apply_async(f1, in0a)
>>      res1b = v.apply_async(f1, in0b)
>>      res2a = v.apply_async(f2, res1a.get())
>>      res2b = v.apply_async(f2, res1b.get())
>> 
>> But this blocks res2b from being calculated even if res1b becomes ready.
>> 
>> The same problems would seem to apply to a direct view manually sending the 'a' tasks to one engine, the 'b' to another, etc.
>> 
>> Alternately, I thought I could use lview.temp_flags() to set up the dependencies, but the necessary .get() in the apply_async still blocks.
>> 
>> What I think we ideally want is something which allows apply_async to take full AsyncResult objects and figure out the dependency graph from this automatically! But is there any workaround at this point? Given the requirement to send the actual result from one computation to the next
>> -- through the "calling" iPython process -- I'm not sure there's any way to actually set this up.
>> 
>> Yours,
>> 
>> Andrew
>> 
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>> 
>> This communication and any attachments contain information which is confidential and may also be legally privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying, printing or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to postmaster at tokiomillennium.com and then permanently delete the email and any attachments from your system.
>> 
>> E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. It is the recipient's responsibility to ensure that e-mail transmissions and any attachments are virus free. We do not accept liability for any damages or other consequences caused by information that is intercepted, corrupted, amended, lost, destroyed, arrives late or incomplete or contains viruses.
>> ******************************************
>> 
> 
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From bussonniermatthias at gmail.com  Tue Apr 29 13:48:04 2014
From: bussonniermatthias at gmail.com (Matthias Bussonnier)
Date: Tue, 29 Apr 2014 19:48:04 +0200
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <ljoggn$130$1@ger.gmane.org>
References: <535F5B68.4060004@gmail.com>
	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>
	<ljoggn$130$1@ger.gmane.org>
Message-ID: <360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com>

Hi, 

Not a parallel user myself, 
but there is the following in ipython/exaple/parallel/dependencies.py

...
def getpid():
    import os
    return os.getpid()

pid0 = client[0].apply_sync(getpid)

# this will depend on the pid being that of target 0:
@depend(checkpid, pid0)
def getpid2():
    import os
    return os.getpid()
...

and lots of stuff that look *a lot* like what you are trying to do.

-- 
M

Le 29 avr. 2014 ? 17:29, Andrew Jaffe a ?crit :

> Hi,
> 
> On 29/04/2014 13:57, John Gill wrote:
>> Hi,
>> 
>> I do something similar, submitting tasks for Directed, acyclic graphs:
>> 
>> http://ipython.org/ipython-doc/dev/parallel/dag_dependencies.html
>> 
>> I get round the problem of passing data from one task to subsequent task by persisting the results of each task to disk -- might that work for you?   Each task runs in its own folder, but all the tasks know where to find data from previous tasks -- so it is actually more powerful than just passing in the data for the direct dependencies, you can get at the data for any task further up the dependency graph.
> 
> Certainly something along these lines would work -- indeed there are 
> many possible workarounds.
> 
> But it's still irksome that the parallel-apply model *can't* explicitly 
> pass data forward to the following tasks. This seems like an obvious 
> request...
> 
> Andrew
> 
> 
> 
> 
>> 
>> John
> 
>> 
>> -----Original Message-----
>> From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] On Behalf Of Andrew Jaffe
>> Sent: Tuesday, April 29, 2014 4:57 AM
>> To: ipython-dev at scipy.org
>> Subject: [IPython-dev] Parallel programming dependencies
>> 
>> 
>> Hi all,
>> 
>> I posted a version of this to StackOverflow at http://stackoverflow.com/questions/23290086/ipython-parallel-programming-dependencies
>> but there hasn't been a response, so I thought I'd try here. Apologies if this is inappropriate here.
>> 
>> I am using iPython for some relatively heavy numerical tasks, subsets of which are more or less embarrassingly parallel. The tasks have very simple dependencies, but I'm struggling to work out the best way to implement them. The basic problem is that the result of a previous computation must be used in the following one, and I would like to submit those tasks to the engines separately.
>> 
>> Basically I've got
>> 
>>      in0a = ....
>>      in0b = ....
>> 
>>      res1a = f1(in0a)   ## expensive, would like to run on engine 0
>>      res1b = f1(in0b)   ## expensive, would like to run on engine 1
>>      ### and same for c, d, ... on engines 2, 3, ... (mod the number of
>> engines)
>> 
>>      res2a = f2(res1a)  ### depends on res1a = f1(in0a) being computed
>>      res2b = f2(res1b)  ### depends on res1b = f1(in0b) being computed
>> 
>> I could restructure things into some f_12() functions which call f1 and
>> f2 in sequence, and return both outputs as a tuple (I'd like the main engine to have access to all the results) and just submit those asynchronously, or I could use a parallel map of f1 on [in0a, in0b, ...] but I would strongly prefer not to do either of those refactorings.
>> 
>> I could also add a `wait()` between the f1 and f2 calls, but this would wait on all of the f1 calls, even if they are different lengths, and so I could proceed with f2 calls as their dependencies become available.
>> 
>> So what I really want to know is how I can use view.apply_async() so that running res2a=f2(res1a) will only happen once res1a=f1(in0a) has run (and similarly for the b, c, d, ... tasks).
>> 
>> Basically, I want to use a blocking apply_async. With load-balancing it should be something like
>> 
>>      res1a = v.apply_async(f1, in0a)
>>      res1b = v.apply_async(f1, in0b)
>>      res2a = v.apply_async(f2, res1a.get())
>>      res2b = v.apply_async(f2, res1b.get())
>> 
>> But this blocks res2b from being calculated even if res1b becomes ready.
>> 
>> The same problems would seem to apply to a direct view manually sending the 'a' tasks to one engine, the 'b' to another, etc.
>> 
>> Alternately, I thought I could use lview.temp_flags() to set up the dependencies, but the necessary .get() in the apply_async still blocks.
>> 
>> What I think we ideally want is something which allows apply_async to take full AsyncResult objects and figure out the dependency graph from this automatically! But is there any workaround at this point? Given the requirement to send the actual result from one computation to the next
>> -- through the "calling" iPython process -- I'm not sure there's any way to actually set this up.
>> 
>> Yours,
>> 
>> Andrew
>> 
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>> 
>> This communication and any attachments contain information which is confidential and may also be legally privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying, printing or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to postmaster at tokiomillennium.com and then permanently delete the email and any attachments from your system.
>> 
>> E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. It is the recipient's responsibility to ensure that e-mail transmissions and any attachments are virus free. We do not accept liability for any damages or other consequences caused by information that is intercepted, corrupted, amended, lost, destroyed, arrives late or incomplete or contains viruses.
>> ******************************************
>> 
> 
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



From a.h.jaffe at gmail.com  Tue Apr 29 18:56:12 2014
From: a.h.jaffe at gmail.com (Andrew Jaffe)
Date: Tue, 29 Apr 2014 23:56:12 +0100
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com>
References: <535F5B68.4060004@gmail.com>	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>	<ljoggn$130$1@ger.gmane.org>
	<360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com>
Message-ID: <ljpan6$s7b$1@ger.gmane.org>

Hi,

On 29/04/2014 18:48, Matthias Bussonnier wrote:
> Hi,
>
> Not a parallel user myself,
> but there is the following in ipython/exaple/parallel/dependencies.py
>
> ...
> def getpid():
>      import os
>      return os.getpid()
>
> pid0 = client[0].apply_sync(getpid)
>
> # this will depend on the pid being that of target 0:
> @depend(checkpid, pid0)
> def getpid2():
>      import os
>      return os.getpid()
> ...
>
> and lots of stuff that look *a lot* like what you are trying to do.
>

Alas, this stuff is NOT really like what I'm trying to do. In 
particular, the particular difference is passing the output of the 
earlier tasks to the later ones -- this is a use-case that is very 
specifically not addressed in those examples or the docs -- each of the 
view.apply calls there just use no arguments, where I want to use the 
value calculated by a previous view.apply.

Thanks anyway...

Andrew




From erik.m.bray at gmail.com  Tue Apr 29 19:11:23 2014
From: erik.m.bray at gmail.com (Erik Bray)
Date: Tue, 29 Apr 2014 19:11:23 -0400
Subject: [IPython-dev] Introducing IPython Turtle
In-Reply-To: <CAFGNs_AxuTC2eY6t=J6GBx761GFmN=20Lj+qpFyxp34pjfwkdw@mail.gmail.com>
References: <CAFGNs_AxuTC2eY6t=J6GBx761GFmN=20Lj+qpFyxp34pjfwkdw@mail.gmail.com>
Message-ID: <CAOTD34asGP9YXKSnaX7K=aRmaEp3E-Et_8Rxu7T-zt=obbqm=Q@mail.gmail.com>

On Mon, Apr 7, 2014 at 5:44 PM, Claudine Bull <bullclaudine at gmail.com> wrote:
> Hello,
>
> We are PACAttack, senior students at MacEwan University in Edmonton, AB.
> Cameron Macdonell and Greg Wilson are mentoring us this term on our Software
> Engineering project. The team members are Andrew Kind, Claudine Gladue, and
> Paul Schmermund.
>
> Our goal was to create a IPython Notebook application to mimic the built-in
> Python Turtle module. We attempted to include as many Turtle features as
> time permitted.
>
> We invite you to view and give our project a try:
> https://github.com/macewanCMPT395/PACattack
>
> The button with '"i" will give you more information on how to run the
> IPython Turtle. We look forward to any comments or suggestions you have.

(sorry for the old-thread reply; I'm just catching up on backlog)

Really great to see this happening though.  I had an exchange with
Greg about this quite some time ago and offered to give it a go.
Which I did--but at the machinery still just wasn't quite there for
integrating interactive widgets into the notebook and it proved an
uphill battle I just didn't have time to resolve all the issues with.

So this is very cool.  Keep up the good work (and same goes to the
other teams working on similar projects as well).

Erik


From zonca at sdsc.edu  Tue Apr 29 19:25:27 2014
From: zonca at sdsc.edu (Andrea Zonca)
Date: Tue, 29 Apr 2014 16:25:27 -0700
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <ljpan6$s7b$1@ger.gmane.org>
References: <535F5B68.4060004@gmail.com>
	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>
	<ljoggn$130$1@ger.gmane.org>
	<360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com>
	<ljpan6$s7b$1@ger.gmane.org>
Message-ID: <CADWjrkgU4b30eVC-hZDqeKE6sWjQRsj48zSyFNKOg=XoayE-OA@mail.gmail.com>

Hi,

On Tue, Apr 29, 2014 at 3:56 PM, Andrew Jaffe <a.h.jaffe at gmail.com> wrote:
> the particular difference is passing the output of the
> earlier tasks to the later ones -- this is a use-case that is very
> specifically not addressed in those examples or the docs -- each of the
> view.apply calls there just use no arguments, where I want to use the
> value calculated by a previous view.apply.

Not sure I understand your application,
but isn't it an option to write the results to a shared filesystem
from the early task and read it from the late task?
This would work for tasks running on different nodes.


From benjaminrk at gmail.com  Tue Apr 29 20:20:35 2014
From: benjaminrk at gmail.com (MinRK)
Date: Tue, 29 Apr 2014 17:20:35 -0700
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <CADWjrkgU4b30eVC-hZDqeKE6sWjQRsj48zSyFNKOg=XoayE-OA@mail.gmail.com>
References: <535F5B68.4060004@gmail.com>
	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>
	<ljoggn$130$1@ger.gmane.org>
	<360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com>
	<ljpan6$s7b$1@ger.gmane.org>
	<CADWjrkgU4b30eVC-hZDqeKE6sWjQRsj48zSyFNKOg=XoayE-OA@mail.gmail.com>
Message-ID: <CAHNn8BX3UhtcbO2qMKRMYfh5Uxsi5bmtqEWmhjs_oqf-sGa2kw@mail.gmail.com>

Passing output from one task to the input of another is not well supported.
As others have said, one approach is to persist the results to the
filesystem.
Another, assuming it?s okay to restrict dependent tasks to run on the same
engine as the dependency, is to persist the values in the engine?s
namespace and use parallel.Reference to get it as an argument to subsequent
tasks.

Here?s an example <http://nbviewer.ipython.org/gist/minrk/11415238> of
doing this.

-MinRK


On Tue, Apr 29, 2014 at 4:25 PM, Andrea Zonca <zonca at sdsc.edu> wrote:

> Hi,
>
> On Tue, Apr 29, 2014 at 3:56 PM, Andrew Jaffe <a.h.jaffe at gmail.com> wrote:
> > the particular difference is passing the output of the
> > earlier tasks to the later ones -- this is a use-case that is very
> > specifically not addressed in those examples or the docs -- each of the
> > view.apply calls there just use no arguments, where I want to use the
> > value calculated by a previous view.apply.
>
> Not sure I understand your application,
> but isn't it an option to write the results to a shared filesystem
> from the early task and read it from the late task?
> This would work for tasks running on different nodes.
> _______________________________________________
> 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/20140429/8a77635f/attachment.html>

From burkhard at ualberta.ca  Tue Apr 29 20:32:02 2014
From: burkhard at ualberta.ca (Burkhard Ritter)
Date: Tue, 29 Apr 2014 18:32:02 -0600
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <ljpan6$s7b$1@ger.gmane.org>
References: <535F5B68.4060004@gmail.com>
	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>
	<ljoggn$130$1@ger.gmane.org>
	<360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com>
	<ljpan6$s7b$1@ger.gmane.org>
Message-ID: <CACSBSE2CYToNLGQ5YbmkEoLcCxYykQjT4UfSscOfSKPW1ueN-w@mail.gmail.com>

On Tue, Apr 29, 2014 at 4:56 PM, Andrew Jaffe <a.h.jaffe at gmail.com> wrote:
> On 29/04/2014 18:48, Matthias Bussonnier wrote:
>> and lots of stuff that look *a lot* like what you are trying to do.
>>
> Alas, this stuff is NOT really like what I'm trying to do. In
> particular, the particular difference is passing the output of the
> earlier tasks to the later ones -- this is a use-case that is very
> specifically not addressed in those examples or the docs -- each of the
> view.apply calls there just use no arguments, where I want to use the
> value calculated by a previous view.apply.

Hi Andrew,

I am not sure if I am missing something, but wouldn't something like
this work: Keep a list of all submitted jobs, then in a loop check
which jobs are done, and for each job that is done retrieve its result
and submit the next dependent job with the previous job's result as an
argument. If the dependencies are simple that should be relative
straightforward to implement. I don't use and need dependencies
myself, but use a similar loop to store job results on my controller
node immediately when the jobs are done.

Cheers,
Burkhard


From wcdolphin at gmail.com  Tue Apr 29 20:32:28 2014
From: wcdolphin at gmail.com (Cory Dolphin)
Date: Tue, 29 Apr 2014 20:32:28 -0400
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <CAHNn8BX3UhtcbO2qMKRMYfh5Uxsi5bmtqEWmhjs_oqf-sGa2kw@mail.gmail.com>
References: <535F5B68.4060004@gmail.com>
	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>
	<ljoggn$130$1@ger.gmane.org>
	<360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com>
	<ljpan6$s7b$1@ger.gmane.org>
	<CADWjrkgU4b30eVC-hZDqeKE6sWjQRsj48zSyFNKOg=XoayE-OA@mail.gmail.com>
	<CAHNn8BX3UhtcbO2qMKRMYfh5Uxsi5bmtqEWmhjs_oqf-sGa2kw@mail.gmail.com>
Message-ID: <CAOwq=TtJ6g+62V5wSLj319UWtSF=jktQZEy_1jmE-JnUqXZBow@mail.gmail.com>

Andrea, one solution is to poll from the results of the two async
operations:

e.g.

f1_queue = [apply_async(f1, args) for args in ...]
f2_queue = []

while True:
    check if any of the f1 calls are done
       if so, apply_async f2, and add the result to f2 queue
    check if f2 queue is not empty, and if not empty, are any elements done?
       if so, process result
    check if f1 and f2 are both empty
       exit



Not to derail the conversation, but what would you imagine the 'best case'
scenario for support would look like?

What would you like to see IPython.parallel provide? I could imagine
AsyncResults having more support for future-like operations, e.g. chaining
function calls.

E.G.

combined_async_result = apply_async(f1,args).then(lambda res:
apply_async(f2,res))

I wonder if something like this is possible to implement?


On Tue, Apr 29, 2014 at 8:20 PM, MinRK <benjaminrk at gmail.com> wrote:

> Passing output from one task to the input of another is not well
> supported. As others have said, one approach is to persist the results to
> the filesystem.
> Another, assuming it?s okay to restrict dependent tasks to run on the same
> engine as the dependency, is to persist the values in the engine?s
> namespace and use parallel.Reference to get it as an argument to subsequent
> tasks.
>
> Here?s an example <http://nbviewer.ipython.org/gist/minrk/11415238> of
> doing this.
>
> -MinRK
>
>
> On Tue, Apr 29, 2014 at 4:25 PM, Andrea Zonca <zonca at sdsc.edu> wrote:
>
>> Hi,
>>
>> On Tue, Apr 29, 2014 at 3:56 PM, Andrew Jaffe <a.h.jaffe at gmail.com>
>> wrote:
>> > the particular difference is passing the output of the
>> > earlier tasks to the later ones -- this is a use-case that is very
>> > specifically not addressed in those examples or the docs -- each of the
>> > view.apply calls there just use no arguments, where I want to use the
>> > value calculated by a previous view.apply.
>>
>> Not sure I understand your application,
>> but isn't it an option to write the results to a shared filesystem
>> from the early task and read it from the late task?
>> This would work for tasks running on different nodes.
>> _______________________________________________
>> 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/20140429/0eaabc21/attachment.html>

From a.h.jaffe at gmail.com  Wed Apr 30 03:58:49 2014
From: a.h.jaffe at gmail.com (Andrew Jaffe)
Date: Wed, 30 Apr 2014 08:58:49 +0100
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <CAOwq=TtJ6g+62V5wSLj319UWtSF=jktQZEy_1jmE-JnUqXZBow@mail.gmail.com>
References: <535F5B68.4060004@gmail.com>	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>	<ljoggn$130$1@ger.gmane.org>	<360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com>	<ljpan6$s7b$1@ger.gmane.org>	<CADWjrkgU4b30eVC-hZDqeKE6sWjQRsj48zSyFNKOg=XoayE-OA@mail.gmail.com>	<CAHNn8BX3UhtcbO2qMKRMYfh5Uxsi5bmtqEWmhjs_oqf-sGa2kw@mail.gmail.com>
	<CAOwq=TtJ6g+62V5wSLj319UWtSF=jktQZEy_1jmE-JnUqXZBow@mail.gmail.com>
Message-ID: <ljqafr$idn$1@ger.gmane.org>

Dear all,

Thanks for the many workarounds! In fact I've got it working slightly 
less than perfectly efficiently by just using a wait between all the f1 
calls and all the f2 calls, etc. This works as long as the length of 
each task is the same (it is, for this application) and they divide the 
number of engines (not always true, but only a small waste).

On 30/04/2014 01:32, Cory Dolphin wrote:
> Andrea, one solution is to poll from the results of the two async operations:
>
> e.g.
> f1_queue = [apply_async(f1, args) for args in ...]
> f2_queue = []
>
> while True:
>      check if any of the f1 calls are done
>         if so, apply_async f2, and add the result to f2 queue
>      check if f2 queue is not empty, and if not empty, are any elements
> done?
>         if so, process result
>      check if f1 and f2 are both empty
>         exit
>
> Not to derail the conversation, but what would you imagine the 'best case' scenario for support would look like?
>
> What would you like to see IPython.parallel provide? I could imagine AsyncResults having more support for future-like operations, e.g.  chaining function calls.
>
> E.G.,
> combined_async_result = apply_async(f1,args).then(lambda res:
> apply_async(f2,res))
>
> I wonder if something like this is possible to implement?

This would be one possible implementation.

However, I think the best possible one would be a version of apply_async 
that allowed taking AsyncResult objects as parameters in exactly the 
place where the result.get() would go in the original apply.

      res1a = v.apply_async(f1,in0a)
      res1b = v.apply_async(f1,in0b)

      res2a = v.apply_async(f2,res1a)  ### depends on res1a
      res2b = v.apply_async(f2,res1b)  ### depends on res1b

You could then scan through the *args, look for any AsyncResults, and 
set up appropriate dependencies based on them. There is no clash with 
the current apply_async since AsyncResults *cannot* appear in the 
argument lists (since they are unpicklable I believe).

This would be ideal since it is exactly the calling sequence you would 
use in a non-parallel application (just change v.apply_async to python 
apply), which makes it easy to understand and also refactor for 
non-parallel applications.

Yours,

Andrew








> On Tue, Apr 29, 2014 at 8:20 PM, MinRK <benjaminrk at gmail.com
> <mailto:benjaminrk at gmail.com>> wrote:
>
>     Passing output from one task to the input of another is not well
>     supported. As others have said, one approach is to persist the
>     results to the filesystem.
>     Another, assuming it?s okay to restrict dependent tasks to run on
>     the same engine as the dependency, is to persist the values in the
>     engine?s namespace and use parallel.Reference to get it as an
>     argument to subsequent tasks.
>
>     Here?s an example <http://nbviewer.ipython.org/gist/minrk/11415238>
>     of doing this.
>
>     -MinRK
>
>
>
>     On Tue, Apr 29, 2014 at 4:25 PM, Andrea Zonca <zonca at sdsc.edu
>     <mailto:zonca at sdsc.edu>> wrote:
>
>         Hi,
>
>         On Tue, Apr 29, 2014 at 3:56 PM, Andrew Jaffe
>         <a.h.jaffe at gmail.com <mailto:a.h.jaffe at gmail.com>> wrote:
>          > the particular difference is passing the output of the
>          > earlier tasks to the later ones -- this is a use-case that is
>         very
>          > specifically not addressed in those examples or the docs --
>         each of the
>          > view.apply calls there just use no arguments, where I want to
>         use the
>          > value calculated by a previous view.apply.
>
>         Not sure I understand your application,
>         but isn't it an option to write the results to a shared filesystem
>         from the early task and read it from the late task?
>         This would work for tasks running on different nodes.
>




From bussonniermatthias at gmail.com  Wed Apr 30 05:10:36 2014
From: bussonniermatthias at gmail.com (Matthias BUSSONNIER)
Date: Wed, 30 Apr 2014 11:10:36 +0200
Subject: [IPython-dev] Introducing IPython Turtle
In-Reply-To: <CAOTD34asGP9YXKSnaX7K=aRmaEp3E-Et_8Rxu7T-zt=obbqm=Q@mail.gmail.com>
References: <CAFGNs_AxuTC2eY6t=J6GBx761GFmN=20Lj+qpFyxp34pjfwkdw@mail.gmail.com>
	<CAOTD34asGP9YXKSnaX7K=aRmaEp3E-Et_8Rxu7T-zt=obbqm=Q@mail.gmail.com>
Message-ID: <F35E76DF-1F4A-4AEA-A194-050842A32D74@gmail.com>

FYI, 

There was some work on that during pycon sprints :
cf https://ipython.hackpad.com/

-- 
M


Le 30 avr. 2014 ? 01:11, Erik Bray a ?crit :

> On Mon, Apr 7, 2014 at 5:44 PM, Claudine Bull <bullclaudine at gmail.com> wrote:
>> Hello,
>> 
>> We are PACAttack, senior students at MacEwan University in Edmonton, AB.
>> Cameron Macdonell and Greg Wilson are mentoring us this term on our Software
>> Engineering project. The team members are Andrew Kind, Claudine Gladue, and
>> Paul Schmermund.
>> 
>> Our goal was to create a IPython Notebook application to mimic the built-in
>> Python Turtle module. We attempted to include as many Turtle features as
>> time permitted.
>> 
>> We invite you to view and give our project a try:
>> https://github.com/macewanCMPT395/PACattack
>> 
>> The button with '"i" will give you more information on how to run the
>> IPython Turtle. We look forward to any comments or suggestions you have.
> 
> (sorry for the old-thread reply; I'm just catching up on backlog)
> 
> Really great to see this happening though.  I had an exchange with
> Greg about this quite some time ago and offered to give it a go.
> Which I did--but at the machinery still just wasn't quite there for
> integrating interactive widgets into the notebook and it proved an
> uphill battle I just didn't have time to resolve all the issues with.
> 
> So this is very cool.  Keep up the good work (and same goes to the
> other teams working on similar projects as well).
> 
> Erik
> _______________________________________________
> 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/20140430/9ffac28e/attachment.html>

From ian.h.bell at gmail.com  Wed Apr 30 10:58:30 2014
From: ian.h.bell at gmail.com (Ian Bell)
Date: Wed, 30 Apr 2014 16:58:30 +0200
Subject: [IPython-dev] Input encoding problem with > character and nbconvert
Message-ID: <CAJQnXJeKiSzCH42HhHkxirRBpwbNKmhG86bKsio+hsE9c166rg@mail.gmail.com>

I have put together a MWE that demonstrates the problem I have.

When you have a markdown cell with $>$ in it, it cannot be converted
properly to PDF using LaTeX.  I was able to work around by moving the
greater than symbol out of math mode, but this smells like a bug to me.

The file and the error I get are below.

Ian

The ipynb contents are
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "$A>B$"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}

and the error is :

C:\Users\Belli\Documents\Code\CoolProp\doc\notebooks>ipython nbconvert --to
latex --post PDF bad_gt.ipynb
[NbConvertApp] Using existing profile dir:
u'C:\\Users\\Belli\\.ipython\\profile_default'
[NbConvertApp] Converting notebook bad_gt.ipynb to latex
[NbConvertApp] Support files will be in bad_gt_files\
[NbConvertApp] Loaded template latex_article.tplx
[NbConvertApp] Writing 11619 bytes to bad_gt.tex
[NbConvertApp] Building PDF
[NbConvertApp] Running pdflatex 3 times: ['pdflatex', 'bad_gt.tex']
[NbConvertApp] CRITICAL | pdflatex failed: ['pdflatex', 'bad_gt.tex']
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)
entering extended mode
(C:\Users\Belli\Documents\Code\CoolProp\doc\notebooks\bad_gt.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans,
ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan,
coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish,
french, ga
lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian,
iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin,
latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek,
ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish,
swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian,
usengl
ishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"))))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\adjustbox.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\adjcalc.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\trimclip.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\collectbox\collectbox.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\tc-pdftex.def"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ifoddpage\ifoddpage.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ltxmisc\varwidth.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\color.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\color.cfg"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\enumerate.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\geometry\geometry.cfg"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"
For additional information on amsmath, use the `?' option.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amssymb.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\inputenc.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\utf8.def"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.dfu")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ot1enc.dfu")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\omsenc.dfu")))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\ucs.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\uni-global.def"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fancyvrb\fancyvrb.sty"
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline
fix
<2008/02/07> (tvz))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\grffile.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"))))
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
("C:\Program Files (x86)\MiKTeX
2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
("C:\Program Files (x86)\MiKTeX
2.9\tex\generic\oberdiek\hobsub-generic.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\url\url.sty"))

Package hyperref Message: Driver (autodetected): hpdftex.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hpdftex.def"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\longtable.sty")
No file bad_gt.aux.
("C:\Program Files (x86)\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
)
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex

Package geometry Warning: The marginal notes overrun the paper.
     Add 3.73001pt and more to the right margin.

*geometry* verbose mode - [ preamble ] result:
* driver: pdftex
* paper: <default>
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* modes:
* h-part:(L,W,R)=(72.26999pt, 469.75502pt, 72.26999pt)
* v-part:(T,H,B)=(72.26999pt, 650.43001pt, 72.26999pt)
* \paperwidth=614.295pt
* \paperheight=794.96999pt
* \textwidth=469.75502pt
* \textheight=650.43001pt
* \oddsidemargin=0.0pt
* \evensidemargin=0.0pt
* \topmargin=-37.0pt
* \headheight=12.0pt
* \headsep=25.0pt
* \topskip=10.0pt
* \footskip=30.0pt
* \marginparwidth=65.0pt
* \marginparsep=11.0pt
* \columnsep=10.0pt
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidefalse
* \@mparswitchfalse
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\ucsencs.def")

Package ucs Warning: ***************************
(ucs)                You seem to have loaded inputencoding utf8
(ucs)                (LaTeX kernel UTF-8) instead of utf8x (ucs.sty UTF-8).
(ucs)                Probably you are compiling a document written for a
(ucs)                pre-august-2004 ucs.sty.
(ucs)                ***************************
(ucs)                Please use \usepackage[utf8x]{inputenc} instead of
(ucs)                \usepackage[utf8]{inputenc}.
(ucs)                ***************************
(ucs)                If you should really want to use ucs.sty and kernel's
(ucs)                utf8.def together, use
\usepackage[utf8x,utf8]{inputenc}
(ucs)                to disable compatibility mode
(ucs)                ***************************
(ucs)                Activating compatibility mode.
(ucs)                ***************************
(ucs)                 on input line 218.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\utf8x.def")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
("C:\Program Files (x86)\MiKTeX
2.9\tex\generic\oberdiek\gettitlestring.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\umsb.fd")

LaTeX Warning: No \author given.

! Misplaced alignment tab character &.
l.226     $A&
             gt;B$
?
! Emergency stop.
l.226     $A&
             gt;B$
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on bad_gt.log.

[NbConvertApp] Removing temporary LaTeX files
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140430/e502aa15/attachment.html>

From bussonniermatthias at gmail.com  Wed Apr 30 12:26:05 2014
From: bussonniermatthias at gmail.com (Matthias Bussonnier)
Date: Wed, 30 Apr 2014 18:26:05 +0200
Subject: [IPython-dev] Input encoding problem with > character and
	nbconvert
In-Reply-To: <CAJQnXJeKiSzCH42HhHkxirRBpwbNKmhG86bKsio+hsE9c166rg@mail.gmail.com>
References: <CAJQnXJeKiSzCH42HhHkxirRBpwbNKmhG86bKsio+hsE9c166rg@mail.gmail.com>
Message-ID: <39354C5C-2558-47E7-B1D0-6BCF9F525005@gmail.com>

You can use \lt and \gt for lower and greater than in the meantime.
-- 
M

Envoy? de mon iPhone

> Le 30 avr. 2014 ? 16:58, Ian Bell <ian.h.bell at gmail.com> a ?crit :
> 
> I have put together a MWE that demonstrates the problem I have.
> 
> When you have a markdown cell with $>$ in it, it cannot be converted properly to PDF using LaTeX.  I was able to work around by moving the greater than symbol out of math mode, but this smells like a bug to me.
> 
> The file and the error I get are below.
> 
> Ian
> 
> The ipynb contents are 
> {
>  "metadata": {
>   "name": ""
>  },
>  "nbformat": 3,
>  "nbformat_minor": 0,
>  "worksheets": [
>   {
>    "cells": [
>     {
>      "cell_type": "markdown",
>      "metadata": {},
>      "source": [
>       "$A>B$"
>      ]
>     },
>     {
>      "cell_type": "code",
>      "collapsed": false,
>      "input": [],
>      "language": "python",
>      "metadata": {},
>      "outputs": []
>     }
>    ],
>    "metadata": {}
>   }
>  ]
> }
> 
> and the error is :
> 
> C:\Users\Belli\Documents\Code\CoolProp\doc\notebooks>ipython nbconvert --to latex --post PDF bad_gt.ipynb
> [NbConvertApp] Using existing profile dir: u'C:\\Users\\Belli\\.ipython\\profile_default'
> [NbConvertApp] Converting notebook bad_gt.ipynb to latex
> [NbConvertApp] Support files will be in bad_gt_files\
> [NbConvertApp] Loaded template latex_article.tplx
> [NbConvertApp] Writing 11619 bytes to bad_gt.tex
> [NbConvertApp] Building PDF
> [NbConvertApp] Running pdflatex 3 times: ['pdflatex', 'bad_gt.tex']
> [NbConvertApp] CRITICAL | pdflatex failed: ['pdflatex', 'bad_gt.tex']
> This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)
> entering extended mode
> (C:\Users\Belli\Documents\Code\CoolProp\doc\notebooks\bad_gt.tex
> LaTeX2e <2011/06/27>
> Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
> abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
> croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
> lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, iceland
> ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
>  lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
> german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
> ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
> an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
> ishmax, welsh, loaded.
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"))))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\adjustbox.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\adjcalc.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\trimclip.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\collectbox\collectbox.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\tc-pdftex.def"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ifoddpage\ifoddpage.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ltxmisc\varwidth.sty"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\color.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\color.cfg"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\enumerate.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\geometry\geometry.cfg"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"
> For additional information on amsmath, use the `?' option.
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amssymb.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\inputenc.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\utf8.def"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.dfu")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ot1enc.dfu")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\omsenc.dfu")))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\ucs.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\uni-global.def"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fancyvrb\fancyvrb.sty"
> Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
> <2008/02/07> (tvz))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\grffile.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"))))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\url\url.sty"))
> 
> Package hyperref Message: Driver (autodetected): hpdftex.
> 
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hpdftex.def"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\longtable.sty")
> No file bad_gt.aux.
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
> [Loading MPS to PDF converter (version 2006.09.02).]
> )
> *geometry* driver: auto-detecting
> *geometry* detected driver: pdftex
> 
> Package geometry Warning: The marginal notes overrun the paper.
>      Add 3.73001pt and more to the right margin.
> 
> *geometry* verbose mode - [ preamble ] result:
> * driver: pdftex
> * paper: <default>
> * layout: <same size as paper>
> * layoutoffset:(h,v)=(0.0pt,0.0pt)
> * modes:
> * h-part:(L,W,R)=(72.26999pt, 469.75502pt, 72.26999pt)
> * v-part:(T,H,B)=(72.26999pt, 650.43001pt, 72.26999pt)
> * \paperwidth=614.295pt
> * \paperheight=794.96999pt
> * \textwidth=469.75502pt
> * \textheight=650.43001pt
> * \oddsidemargin=0.0pt
> * \evensidemargin=0.0pt
> * \topmargin=-37.0pt
> * \headheight=12.0pt
> * \headsep=25.0pt
> * \topskip=10.0pt
> * \footskip=30.0pt
> * \marginparwidth=65.0pt
> * \marginparsep=11.0pt
> * \columnsep=10.0pt
> * \skip\footins=9.0pt plus 4.0pt minus 2.0pt
> * \hoffset=0.0pt
> * \voffset=0.0pt
> * \mag=1000
> * \@twocolumnfalse
> * \@twosidefalse
> * \@mparswitchfalse
> * \@reversemarginfalse
> * (1in=72.27pt=25.4mm, 1cm=28.453pt)
> 
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\ucsencs.def")
> 
> Package ucs Warning: ***************************
> (ucs)                You seem to have loaded inputencoding utf8
> (ucs)                (LaTeX kernel UTF-8) instead of utf8x (ucs.sty UTF-8).
> (ucs)                Probably you are compiling a document written for a
> (ucs)                pre-august-2004 ucs.sty.
> (ucs)                ***************************
> (ucs)                Please use \usepackage[utf8x]{inputenc} instead of
> (ucs)                \usepackage[utf8]{inputenc}.
> (ucs)                ***************************
> (ucs)                If you should really want to use ucs.sty and kernel's
> (ucs)                utf8.def together, use \usepackage[utf8x,utf8]{inputenc}
> (ucs)                to disable compatibility mode
> (ucs)                ***************************
> (ucs)                Activating compatibility mode.
> (ucs)                ***************************
> (ucs)                 on input line 218.
> 
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\utf8x.def")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"))
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd")
> ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\umsb.fd")
> 
> LaTeX Warning: No \author given.
> 
> ! Misplaced alignment tab character &.
> l.226     $A&
>              gt;B$
> ?
> ! Emergency stop.
> l.226     $A&
>              gt;B$
> !  ==> Fatal error occurred, no output PDF file produced!
> Transcript written on bad_gt.log.
> 
> [NbConvertApp] Removing temporary LaTeX files
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev


From ian.h.bell at gmail.com  Wed Apr 30 12:37:08 2014
From: ian.h.bell at gmail.com (Ian Bell)
Date: Wed, 30 Apr 2014 18:37:08 +0200
Subject: [IPython-dev] Input encoding problem with > character and
	nbconvert
In-Reply-To: <39354C5C-2558-47E7-B1D0-6BCF9F525005@gmail.com>
References: <CAJQnXJeKiSzCH42HhHkxirRBpwbNKmhG86bKsio+hsE9c166rg@mail.gmail.com>
	<39354C5C-2558-47E7-B1D0-6BCF9F525005@gmail.com>
Message-ID: <CAJQnXJfZNNxEeG4+YDi-2K-pYJnhQupk5jvnAfY4WbRBL8Wypw@mail.gmail.com>

Yeah I worked around it - should I file this as an issue on github?


On Wed, Apr 30, 2014 at 6:26 PM, Matthias Bussonnier <
bussonniermatthias at gmail.com> wrote:

> You can use \lt and \gt for lower and greater than in the meantime.
> --
> M
>
> Envoy? de mon iPhone
>
> > Le 30 avr. 2014 ? 16:58, Ian Bell <ian.h.bell at gmail.com> a ?crit :
> >
> > I have put together a MWE that demonstrates the problem I have.
> >
> > When you have a markdown cell with $>$ in it, it cannot be converted
> properly to PDF using LaTeX.  I was able to work around by moving the
> greater than symbol out of math mode, but this smells like a bug to me.
> >
> > The file and the error I get are below.
> >
> > Ian
> >
> > The ipynb contents are
> > {
> >  "metadata": {
> >   "name": ""
> >  },
> >  "nbformat": 3,
> >  "nbformat_minor": 0,
> >  "worksheets": [
> >   {
> >    "cells": [
> >     {
> >      "cell_type": "markdown",
> >      "metadata": {},
> >      "source": [
> >       "$A>B$"
> >      ]
> >     },
> >     {
> >      "cell_type": "code",
> >      "collapsed": false,
> >      "input": [],
> >      "language": "python",
> >      "metadata": {},
> >      "outputs": []
> >     }
> >    ],
> >    "metadata": {}
> >   }
> >  ]
> > }
> >
> > and the error is :
> >
> > C:\Users\Belli\Documents\Code\CoolProp\doc\notebooks>ipython nbconvert
> --to latex --post PDF bad_gt.ipynb
> > [NbConvertApp] Using existing profile dir:
> u'C:\\Users\\Belli\\.ipython\\profile_default'
> > [NbConvertApp] Converting notebook bad_gt.ipynb to latex
> > [NbConvertApp] Support files will be in bad_gt_files\
> > [NbConvertApp] Loaded template latex_article.tplx
> > [NbConvertApp] Writing 11619 bytes to bad_gt.tex
> > [NbConvertApp] Building PDF
> > [NbConvertApp] Running pdflatex 3 times: ['pdflatex', 'bad_gt.tex']
> > [NbConvertApp] CRITICAL | pdflatex failed: ['pdflatex', 'bad_gt.tex']
> > This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)
> > entering extended mode
> > (C:\Users\Belli\Documents\Code\CoolProp\doc\notebooks\bad_gt.tex
> > LaTeX2e <2011/06/27>
> > Babel <v3.8m> and hyphenation patterns for english, afrikaans,
> ancientgreek, ar
> > abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan,
> coptic,
> > croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish,
> french, ga
> > lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian,
> iceland
> > ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin,
> latvian,
> >  lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek,
> ngerman, n
> > german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish,
> portuguese, roman
> > ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish,
> swissgerm
> > an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian,
> usengl
> > ishmax, welsh, loaded.
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
> > Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"))))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\adjustbox.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\adjcalc.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\trimclip.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\collectbox\collectbox.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\adjustbox\tc-pdftex.def"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ifoddpage\ifoddpage.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ltxmisc\varwidth.sty"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\color.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\color.cfg"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\enumerate.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\geometry\geometry.cfg"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"
> > For additional information on amsmath, use the `?' option.
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amssymb.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\inputenc.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\utf8.def"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.dfu")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ot1enc.dfu")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\omsenc.dfu")))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\ucs.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\uni-global.def"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fancyvrb\fancyvrb.sty"
> > Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and
> firstline=lastline fix
> > <2008/02/07> (tvz))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\grffile.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
> > ("C:\Program Files (x86)\MiKTeX
> 2.9\tex\generic\oberdiek\ifluatex.sty"))))
> > ("C:\Program Files (x86)\MiKTeX
> 2.9\tex\generic\oberdiek\pdftexcmds.sty"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
> > ("C:\Program Files (x86)\MiKTeX
> 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
> > ("C:\Program Files (x86)\MiKTeX
> 2.9\tex\generic\oberdiek\hobsub-generic.sty"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\url\url.sty"))
> >
> > Package hyperref Message: Driver (autodetected): hpdftex.
> >
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hpdftex.def"
> > ("C:\Program Files (x86)\MiKTeX
> 2.9\tex\latex\oberdiek\rerunfilecheck.sty"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\longtable.sty")
> > No file bad_gt.aux.
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
> > [Loading MPS to PDF converter (version 2006.09.02).]
> > )
> > *geometry* driver: auto-detecting
> > *geometry* detected driver: pdftex
> >
> > Package geometry Warning: The marginal notes overrun the paper.
> >      Add 3.73001pt and more to the right margin.
> >
> > *geometry* verbose mode - [ preamble ] result:
> > * driver: pdftex
> > * paper: <default>
> > * layout: <same size as paper>
> > * layoutoffset:(h,v)=(0.0pt,0.0pt)
> > * modes:
> > * h-part:(L,W,R)=(72.26999pt, 469.75502pt, 72.26999pt)
> > * v-part:(T,H,B)=(72.26999pt, 650.43001pt, 72.26999pt)
> > * \paperwidth=614.295pt
> > * \paperheight=794.96999pt
> > * \textwidth=469.75502pt
> > * \textheight=650.43001pt
> > * \oddsidemargin=0.0pt
> > * \evensidemargin=0.0pt
> > * \topmargin=-37.0pt
> > * \headheight=12.0pt
> > * \headsep=25.0pt
> > * \topskip=10.0pt
> > * \footskip=30.0pt
> > * \marginparwidth=65.0pt
> > * \marginparsep=11.0pt
> > * \columnsep=10.0pt
> > * \skip\footins=9.0pt plus 4.0pt minus 2.0pt
> > * \hoffset=0.0pt
> > * \voffset=0.0pt
> > * \mag=1000
> > * \@twocolumnfalse
> > * \@twosidefalse
> > * \@mparswitchfalse
> > * \@reversemarginfalse
> > * (1in=72.27pt=25.4mm, 1cm=28.453pt)
> >
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\ucsencs.def")
> >
> > Package ucs Warning: ***************************
> > (ucs)                You seem to have loaded inputencoding utf8
> > (ucs)                (LaTeX kernel UTF-8) instead of utf8x (ucs.sty
> UTF-8).
> > (ucs)                Probably you are compiling a document written for a
> > (ucs)                pre-august-2004 ucs.sty.
> > (ucs)                ***************************
> > (ucs)                Please use \usepackage[utf8x]{inputenc} instead of
> > (ucs)                \usepackage[utf8]{inputenc}.
> > (ucs)                ***************************
> > (ucs)                If you should really want to use ucs.sty and
> kernel's
> > (ucs)                utf8.def together, use
> \usepackage[utf8x,utf8]{inputenc}
> > (ucs)                to disable compatibility mode
> > (ucs)                ***************************
> > (ucs)                Activating compatibility mode.
> > (ucs)                ***************************
> > (ucs)                 on input line 218.
> >
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ucs\utf8x.def")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
> > ("C:\Program Files (x86)\MiKTeX
> 2.9\tex\generic\oberdiek\gettitlestring.sty"))
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd")
> > ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\umsb.fd")
> >
> > LaTeX Warning: No \author given.
> >
> > ! Misplaced alignment tab character &.
> > l.226     $A&
> >              gt;B$
> > ?
> > ! Emergency stop.
> > l.226     $A&
> >              gt;B$
> > !  ==> Fatal error occurred, no output PDF file produced!
> > Transcript written on bad_gt.log.
> >
> > [NbConvertApp] Removing temporary LaTeX files
> >
> > _______________________________________________
> > 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/20140430/6d08a3cf/attachment.html>

From takowl at gmail.com  Wed Apr 30 13:32:30 2014
From: takowl at gmail.com (Thomas Kluyver)
Date: Wed, 30 Apr 2014 10:32:30 -0700
Subject: [IPython-dev] Live sync as a service
Message-ID: <CAOvn4qhLNyHbm1wYJbK+Mhps+BV738xJLGM=y7HGHB6ZR3zc_Q@mail.gmail.com>

I just saw that this company is offering live sync as part of their
platform, using operational transforms, which from what William Stein told
us is the harder but more powerful approach to the problem:

https://goinstant.com/blog/build-your-own-google-docs-with-goinstants-new-ot-api

I doubt that we want our live sync to rely on a third party service, but it
might be worth looking at their APIs for ideas.

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

From ellisonbg at gmail.com  Wed Apr 30 13:45:39 2014
From: ellisonbg at gmail.com (Brian Granger)
Date: Wed, 30 Apr 2014 10:45:39 -0700
Subject: [IPython-dev] Live sync as a service
In-Reply-To: <CAOvn4qhLNyHbm1wYJbK+Mhps+BV738xJLGM=y7HGHB6ZR3zc_Q@mail.gmail.com>
References: <CAOvn4qhLNyHbm1wYJbK+Mhps+BV738xJLGM=y7HGHB6ZR3zc_Q@mail.gmail.com>
Message-ID: <CAH4pYpSMjYxzAja22xiM9_b8uG5jMZPWUpDivNLCYJWMPbaopw@mail.gmail.com>

Great find. I do think we will have to use OT for live sync and I am
not looking forward to implementing it....

Brian

On Wed, Apr 30, 2014 at 10:32 AM, Thomas Kluyver <takowl at gmail.com> wrote:
> I just saw that this company is offering live sync as part of their
> platform, using operational transforms, which from what William Stein told
> us is the harder but more powerful approach to the problem:
>
> https://goinstant.com/blog/build-your-own-google-docs-with-goinstants-new-ot-api
>
> I doubt that we want our live sync to rely on a third party service, but it
> might be worth looking at their APIs for ideas.
>
> Thomas
>
> _______________________________________________
> 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 wstein at gmail.com  Wed Apr 30 14:17:31 2014
From: wstein at gmail.com (William Stein)
Date: Wed, 30 Apr 2014 11:17:31 -0700
Subject: [IPython-dev] Live sync as a service
In-Reply-To: <CAH4pYpSMjYxzAja22xiM9_b8uG5jMZPWUpDivNLCYJWMPbaopw@mail.gmail.com>
References: <CAOvn4qhLNyHbm1wYJbK+Mhps+BV738xJLGM=y7HGHB6ZR3zc_Q@mail.gmail.com>
	<CAH4pYpSMjYxzAja22xiM9_b8uG5jMZPWUpDivNLCYJWMPbaopw@mail.gmail.com>
Message-ID: <CACLE5GAHRGZ_grMEhRLw2eP3bss-QgXVVsAa4bfrC9FB9mSdVQ@mail.gmail.com>

On Wed, Apr 30, 2014 at 10:45 AM, Brian Granger <ellisonbg at gmail.com> wrote:
> Great find. I do think we will have to use OT for live sync and I am
> not looking forward to implementing it....

Why do you have to, given that I didn't implement OT for IPython sync
for SageMathCloud?

The requirement for the differential transforms approach is that you
have a way to compute diffs and apply patches, subject to some axioms.
 That's pretty much it.

Anyway, using differential transforms is more or less like using git
(with commits every second of activity), so conceptually it feels
familiar.  The difference is that instead of getting merge conflicts,
the patch application algorithm is by definition "best effort" -- you
apply as much of the patch as you can, and that's it. Things then
converge quickly.

When I looked at

   https://goinstant.com/blog/build-your-own-google-docs-with-goinstants-new-ot-api

earlier today I noticed it makes the possibly dubious claim that "OT
is the technology behind awesome products like Google Docs and
Etherpad".   When I was researching sync approaches last year, I came
to the conclusion that Etherpad (which is open source now, I think)
uses OT, but that Google Docs does not.  More precisely, Google Docs
and Google Wave *did* use the OT approach, but then Docs was switched
to differential sync (Docs was some non-Google product that Google
bought and rewrote over many years...).     That said, I wasn't able
to be 100% sure, since I didn't confirm this with anybody working on
Docs at Google, except that the main person (Neil Fraser) behind
Differential Sync works at Google.

I'm planning to do more work on simplifying/rewriting/streamlining my
sync code in the next few days, which will make fixing some bugs
easier, and also make it easier to make an open source single-project
version of SMC (which will still have IPython in it, of course).

 -- William

>
> Brian
>
> On Wed, Apr 30, 2014 at 10:32 AM, Thomas Kluyver <takowl at gmail.com> wrote:
>> I just saw that this company is offering live sync as part of their
>> platform, using operational transforms, which from what William Stein told
>> us is the harder but more powerful approach to the problem:
>>
>> https://goinstant.com/blog/build-your-own-google-docs-with-goinstants-new-ot-api
>>
>> I doubt that we want our live sync to rely on a third party service, but it
>> might be worth looking at their APIs for ideas.
>>
>> Thomas
>>
>> _______________________________________________
>> 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



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


From tavisharmstrong at gmail.com  Wed Apr 30 16:35:36 2014
From: tavisharmstrong at gmail.com (Tavish Armstrong)
Date: Wed, 30 Apr 2014 16:35:36 -0400
Subject: [IPython-dev] Github repo mining for IPython project !
In-Reply-To: <CAH+mRR3WnSWJo3Qkoddb9pVH8uQ=cF7akbo2j3XmkFWQJ7Td6w@mail.gmail.com>
References: <CAPhs5j9E9h85NN+KU9WZmh386axTMX=1ZFZc2UASQUis6Fjbfg@mail.gmail.com>
	<54FE8D27-DA9D-4659-A377-AF8CC89D7E10@gmail.com>
	<CAH+mRR3WnSWJo3Qkoddb9pVH8uQ=cF7akbo2j3XmkFWQJ7Td6w@mail.gmail.com>
Message-ID: <CALzA34Fvq0=dZMbwh-JLst2rBv=QesBC4-HytTt4icqb4CfHJw@mail.gmail.com>

Neat! I've played around with some of this data too:

http://nbviewer.ipython.org/github/tarmstrong/code-analysis/blob/master/IPythonReviewTime.ipynb

You might find the git2json module helpful for saving some effort in
the mining stage.

I'm trying to get more people interested in doing data analysis on
software projects using the notebook (see my pycon talk [1]). If you
have a moment, please consider cross-posting this to the "Two
Solitudes" mailing list:
https://groups.google.com/forum/#!forum/two-solitudes .

[1] http://pyvideo.org/video/2696/software-engineering-research-for-hackers-bridgi

- Tavish

On 29 April 2014 06:51, Dami?n Avila <damianavila at gmail.com> wrote:
> I agree, you can get the mailmap from here:
> https://github.com/ipython/ipython/blob/master/.mailmap
>
> Cheers.
>
>
> 2014-04-29 5:34 GMT-03:00 Matthias Bussonnier
> <bussonniermatthias at gmail.com>:
>
>> Cool!
>>
>> I would use the mailmap to deduplicate authors!
>> --
>> M
>>
>> Envoy? de mon iPhone
>>
>> Le 29 avr. 2014 ? 10:09, konark modi <modi.konark at gmail.com> a ?crit :
>>
>> Hi,
>>
>> I was preparing an introduction IPython-notebook  for Pandas for a local
>> community conference(http://osdconf.in/).
>>
>>
>> Title of my talk was : Perfect recipe for data wrangling : IPython
>> Notebook+ Pandas + Visualizations !
>> (http://osdconf.in/funnel/osdconf14/21-perfect-recipe-for-data-wrangling-ipython-notebook)
>>
>> For demo purpose I showcased how the IPython project has evolved via
>> mining the git logs for https://github.com/ipython/ipython.
>>
>> Thought of sharing the demo with larger audience:
>>
>> http://nbviewer.ipython.org/github/konarkmodi/Presentations/blob/master/notebooks/IPython-git-repo-mining.ipynb?create=1
>>
>>
>> Would appreciate your feedback.
>>
>>
>> Regards
>> Konark Modi
>> @konarkmodi
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Dami?n
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>


From jgill at tokiomillennium.com  Wed Apr 30 16:50:14 2014
From: jgill at tokiomillennium.com (John Gill)
Date: Wed, 30 Apr 2014 20:50:14 +0000
Subject: [IPython-dev] Parallel programming dependencies
In-Reply-To: <CAHNn8BX3UhtcbO2qMKRMYfh5Uxsi5bmtqEWmhjs_oqf-sGa2kw@mail.gmail.com>
References: <535F5B68.4060004@gmail.com> 
	<CEA58BDE8F3913468BE4A3F1F32C370C2B05C194@TMREXMB02.tokiomillennium.com>
	<ljoggn$130$1@ger.gmane.org> 
	<360373EE-06A7-41D5-9D6D-E8CCA24638F2@gmail.com> 
	<ljpan6$s7b$1@ger.gmane.org> 
	<CADWjrkgU4b30eVC-hZDqeKE6sWjQRsj48zSyFNKOg=XoayE-OA@mail.gmail.com> 
	<CAHNn8BX3UhtcbO2qMKRMYfh5Uxsi5bmtqEWmhjs_oqf-sGa2kw@mail.gmail.com>
Message-ID: <CEA58BDE8F3913468BE4A3F1F32C370C2B05C965@TMREXMB02.tokiomillennium.com>

Thanks for this.

I think the ?follow? temp flag might allow me to deal with the issue I raised the other day about having a non-homogeneous cluster (made up of engines on different OS?es) and have some tasks that can only run on a specific OS.   A similar use case would be having a non-homogeneous cluster and wanting some tasks to run on the engines with more memory or faster cpus.

So my plan is to run a task on each node to find out what OS it has and save the msg_ids into different sets based on the OS.

Now, when I have a task that has to run on a specific OS I can do something like:

with view.temp_flags(follow=linux, after=deps):

    msg_id = view.apply_async(task)

Will let you know how this works out ? be very cool if this just works.

John

From: ipython-dev-bounces at scipy.org [mailto:ipython-dev-bounces at scipy.org] On Behalf Of MinRK
Sent: Tuesday, April 29, 2014 9:21 PM
To: IPython developers list
Subject: Re: [IPython-dev] Parallel programming dependencies


Passing output from one task to the input of another is not well supported. As others have said, one approach is to persist the results to the filesystem.
Another, assuming it?s okay to restrict dependent tasks to run on the same engine as the dependency, is to persist the values in the engine?s namespace and use parallel.Reference to get it as an argument to subsequent tasks.

Here?s an example<http://nbviewer.ipython.org/gist/minrk/11415238> of doing this.

-MinRK

On Tue, Apr 29, 2014 at 4:25 PM, Andrea Zonca <zonca at sdsc.edu<mailto:zonca at sdsc.edu>> wrote:
Hi,

On Tue, Apr 29, 2014 at 3:56 PM, Andrew Jaffe <a.h.jaffe at gmail.com<mailto:a.h.jaffe at gmail.com>> wrote:
> the particular difference is passing the output of the
> earlier tasks to the later ones -- this is a use-case that is very
> specifically not addressed in those examples or the docs -- each of the
> view.apply calls there just use no arguments, where I want to use the
> value calculated by a previous view.apply.
Not sure I understand your application,
but isn't it an option to write the results to a shared filesystem
from the early task and read it from the late task?
This would work for tasks running on different nodes.
_______________________________________________
IPython-dev mailing list
IPython-dev at scipy.org<mailto:IPython-dev at scipy.org>
http://mail.scipy.org/mailman/listinfo/ipython-dev


This communication and any attachments contain information which is confidential and may also be legally privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying, printing or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to postmaster at tokiomillennium.com and then permanently delete the email and any attachments from your system.

E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. It is the recipient's responsibility to ensure that e-mail transmissions and any attachments are virus free. We do not accept liability for any damages or other consequences caused by information that is intercepted, corrupted, amended, lost, destroyed, arrives late or incomplete or contains viruses.
******************************************

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

From ellisonbg at gmail.com  Wed Apr 30 22:43:50 2014
From: ellisonbg at gmail.com (Brian Granger)
Date: Wed, 30 Apr 2014 19:43:50 -0700
Subject: [IPython-dev] Live sync as a service
In-Reply-To: <CACLE5GAHRGZ_grMEhRLw2eP3bss-QgXVVsAa4bfrC9FB9mSdVQ@mail.gmail.com>
References: <CAOvn4qhLNyHbm1wYJbK+Mhps+BV738xJLGM=y7HGHB6ZR3zc_Q@mail.gmail.com>
	<CAH4pYpSMjYxzAja22xiM9_b8uG5jMZPWUpDivNLCYJWMPbaopw@mail.gmail.com>
	<CACLE5GAHRGZ_grMEhRLw2eP3bss-QgXVVsAa4bfrC9FB9mSdVQ@mail.gmail.com>
Message-ID: <CAH4pYpQTkrxjqH1ObCtupMgDNk-E=g2fCch-0dwog_FRYWD68w@mail.gmail.com>

> Why do you have to, given that I didn't implement OT for IPython sync
> for SageMathCloud?

Ahh, I was under the impression that you did. Thanks for clarifying this point.

> The requirement for the differential transforms approach is that you
> have a way to compute diffs and apply patches, subject to some axioms.
>  That's pretty much it.
>
> Anyway, using differential transforms is more or less like using git
> (with commits every second of activity), so conceptually it feels
> familiar.  The difference is that instead of getting merge conflicts,
> the patch application algorithm is by definition "best effort" -- you
> apply as much of the patch as you can, and that's it. Things then
> converge quickly.

This sounds simpler than OT for sure. When we get to tackling for for
real in IPython (still a ways off) we will have to dig into this.

> When I looked at
>
>    https://goinstant.com/blog/build-your-own-google-docs-with-goinstants-new-ot-api
>
> earlier today I noticed it makes the possibly dubious claim that "OT
> is the technology behind awesome products like Google Docs and
> Etherpad".   When I was researching sync approaches last year, I came
> to the conclusion that Etherpad (which is open source now, I think)
> uses OT, but that Google Docs does not.  More precisely, Google Docs
> and Google Wave *did* use the OT approach, but then Docs was switched
> to differential sync (Docs was some non-Google product that Google
> bought and rewrote over many years...).     That said, I wasn't able
> to be 100% sure, since I didn't confirm this with anybody working on
> Docs at Google, except that the main person (Neil Fraser) behind
> Differential Sync works at Google.
>
> I'm planning to do more work on simplifying/rewriting/streamlining my
> sync code in the next few days, which will make fixing some bugs
> easier, and also make it easier to make an open source single-project
> version of SMC (which will still have IPython in it, of course).

It would be great if the real time sync parts of this evolve in a way
that can be reused elsewhere.

Thanks for the comments!

Cheers,

Brian

>  -- William
>
>>
>> Brian
>>
>> On Wed, Apr 30, 2014 at 10:32 AM, Thomas Kluyver <takowl at gmail.com> wrote:
>>> I just saw that this company is offering live sync as part of their
>>> platform, using operational transforms, which from what William Stein told
>>> us is the harder but more powerful approach to the problem:
>>>
>>> https://goinstant.com/blog/build-your-own-google-docs-with-goinstants-new-ot-api
>>>
>>> I doubt that we want our live sync to rely on a third party service, but it
>>> might be worth looking at their APIs for ideas.
>>>
>>> Thomas
>>>
>>> _______________________________________________
>>> 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
>
>
>
> --
> William Stein
> Professor of Mathematics
> University of Washington
> http://wstein.org
> _______________________________________________
> 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