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: 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_/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: 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: 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: 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: References: Message-ID: 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 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: 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: 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: References: 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: References: 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: References: Message-ID: Congrats everyone! On Tue, Apr 1, 2014 at 10:57 PM, MinRK 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: References: Message-ID: congrats everyone - fantastic work! cheers, satra On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger wrote: > Congrats everyone! > > On Tue, Apr 1, 2014 at 10:57 PM, MinRK 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: 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: References: Message-ID: Congrats All! On Wed, Apr 2, 2014 at 10:33 AM, Satrajit Ghosh wrote: > congrats everyone - fantastic work! > > cheers, > > satra > > On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger wrote: > >> Congrats everyone! >> >> On Tue, Apr 1, 2014 at 10:57 PM, MinRK 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: 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: References: Message-ID: The feature list is incredible. Congrats to all! On Wed, Apr 2, 2014 at 1:17 PM, Anthony Scopatz wrote: > Congrats All! > > > On Wed, Apr 2, 2014 at 10:33 AM, Satrajit Ghosh wrote: > >> congrats everyone - fantastic work! >> >> cheers, >> >> satra >> >> On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger wrote: >> >>> Congrats everyone! >>> >>> On Tue, Apr 1, 2014 at 10:57 PM, MinRK 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: 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: References: 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: <533C6CD4.9030309@ucsf.edu> Message-ID: On 2 April 2014 13:02, Mark Voorhies 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: 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: References: <533C6CD4.9030309@ucsf.edu> Message-ID: <533C73BD.3080605@ucsf.edu> On 04/02/2014 01:17 PM, Thomas Kluyver wrote: > On 2 April 2014 13:02, Mark Voorhies 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: <533C6CD4.9030309@ucsf.edu> <533C73BD.3080605@ucsf.edu> Message-ID: On 2 April 2014 13:31, Mark Voorhies 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: 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: References: Message-ID: Congrats everyone! On Wed, Apr 2, 2014 at 1:39 PM, Jonathan Rocher wrote: > The feature list is incredible. Congrats to all! > > > On Wed, Apr 2, 2014 at 1:17 PM, Anthony Scopatz wrote: > >> Congrats All! >> >> >> On Wed, Apr 2, 2014 at 10:33 AM, Satrajit Ghosh wrote: >> >>> congrats everyone - fantastic work! >>> >>> cheers, >>> >>> satra >>> >>> On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger wrote: >>> >>>> Congrats everyone! >>>> >>>> On Tue, Apr 1, 2014 at 10:57 PM, MinRK 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: 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: References: Message-ID: Congratulations to everyone! 2014-04-02 22:47 GMT-03:00 Kyle Kelley : > Congrats everyone! > > > On Wed, Apr 2, 2014 at 1:39 PM, Jonathan Rocher wrote: > >> The feature list is incredible. Congrats to all! >> >> >> On Wed, Apr 2, 2014 at 1:17 PM, Anthony Scopatz wrote: >> >>> Congrats All! >>> >>> >>> On Wed, Apr 2, 2014 at 10:33 AM, Satrajit Ghosh wrote: >>> >>>> congrats everyone - fantastic work! >>>> >>>> cheers, >>>> >>>> satra >>>> >>>> On Wed, Apr 2, 2014 at 12:15 PM, Brian Granger wrote: >>>> >>>>> Congrats everyone! >>>>> >>>>> On Tue, Apr 1, 2014 at 10:57 PM, MinRK 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: 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: <533C6CD4.9030309@ucsf.edu> <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 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: References: <533556E5.9060903@tenner.nl> <53397EF6.4060800@tenner.nl> 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 > 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: 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: 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 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: 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: References: Message-ID: 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 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: 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> <53397EF6.4060800@tenner.nl> <533D16D4.6010309@tenner.nl> Message-ID: On 3 April 2014 01:07, Vasco Tenner 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: 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: References: Message-ID: On 3 April 2014 04:15, PRAKHAR gaur 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 > 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: 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: References: 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 > 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 > > > > > _______________________________________________ > 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: <533C6CD4.9030309@ucsf.edu> <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 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: <533C6CD4.9030309@ucsf.edu> <533C73BD.3080605@ucsf.edu> <533D166F.9050302@tenner.nl> <533D78BE.2080309@ucsf.edu> Message-ID: On 3 April 2014 08:05, Mark Voorhies 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: 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: <533D8EED.1020106@creativetrax.com> Message-ID: 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 : > 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 > > 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 >> >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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: References: <533D8EED.1020106@creativetrax.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 : >> 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 >> > 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 >>> >>> >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://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: References: <533C6CD4.9030309@ucsf.edu> <533C73BD.3080605@ucsf.edu> <533D166F.9050302@tenner.nl> <533D78BE.2080309@ucsf.edu> Message-ID: <533DB756.2020601@ucsf.edu> On 04/03/2014 09:59 AM, Thomas Kluyver wrote: > On 3 April 2014 08:05, Mark Voorhies 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: <533D8EED.1020106@creativetrax.com> <533D9CAB.2060609@creativetrax.com> Message-ID: 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 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 : >>> 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 >>> > 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 >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://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: 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 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: 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: References: Message-ID: 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 > Subject: Re: [IPython-dev] Missing IPython module on Dev Branch > Installation > To: IPython developers list > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > On 3 April 2014 04:15, PRAKHAR gaur 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 > > 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: 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: 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: 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: References: <533DE2BA.9030701@third-bit.com> <20140404024603.GC23703@HbI-OTOH.berkeley.edu> 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 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: References: , Message-ID: 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 > Subject: Re: [IPython-dev] Missing IPython module on Dev Branch > Installation > To: IPython developers list > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > On 3 April 2014 04:15, PRAKHAR gaur 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 > > 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: 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: References: Message-ID: 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 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: 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: References: Message-ID: On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore 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: 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: 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: 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: References: Message-ID: 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 wrote: > > > > On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore 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: 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: References: Message-ID: 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 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 wrote: > >> >> >> >> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore 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: 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: References: Message-ID: 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 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 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 >> wrote: >>> >>> >>> >>> >>> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore 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: References: Message-ID: 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 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 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 > 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 > >> wrote: > >>> > >>> > >>> > >>> > >>> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore > 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: 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: References: Message-ID: 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 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 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 >> 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 >> 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 > > >> >> wrote: >> >>> >> >>> >> >>> >> >>> >> >>> On Fri, Apr 4, 2014 at 5:40 AM, Jason Moore >> 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: 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: References: Message-ID: On 4 April 2014 00:57, PRAKHAR gaur 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: 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: References: Message-ID: 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 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 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 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 >>> 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 >>> 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 >>> 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: 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: References: Message-ID: On Fri, Apr 4, 2014 at 2:45 PM, Richard Johns 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 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 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 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 >>>> 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 >>>> 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 >>>> 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: 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: References: Message-ID: 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 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: 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: References: 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 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: <6214C215-AB34-4E1F-8828-ACD9BBEC42E6@gmail.com> Message-ID: On 5 April 2014 12:26, Matthias BUSSONNIER 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: 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: References: <6214C215-AB34-4E1F-8828-ACD9BBEC42E6@gmail.com> Message-ID: On Sat, Apr 5, 2014 at 12:38 PM, Thomas Kluyver wrote: > On 5 April 2014 12:26, Matthias BUSSONNIER 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: 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: References: Message-ID: On Fri, Apr 4, 2014 at 9:01 AM, Jacob Biesinger 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: 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: References: Message-ID: 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 : > On Fri, Apr 4, 2014 at 9:01 AM, Jacob Biesinger > 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: References: Message-ID: 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" 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 : > > 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: 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: References: Message-ID: 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: 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: I have been attempting to create an interactive Google Map widget, following the directions on the custom widgetsnotebook. 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 : - referencing a javascript library in a