From cordial.emily at gmail.com Tue Jul 1 18:23:12 2014 From: cordial.emily at gmail.com (Emily Schleiner) Date: Tue, 1 Jul 2014 15:23:12 -0700 Subject: [IPython-dev] website Message-ID: Dear IPython developers, A couple of months ago I spoke with Thomas at an Openhatch event about the IPython website and it sounds like some design work might be welcome. (?) I've been lurking on your lists to get to know the group some and have now forked the site on Github with the aim of making it responsive. So far I don't plan on revamping the basic shape or colors, but I'm interested to hear any design preferences from the community... Best wishes, Emily -- __________________________________ Emily Schleiner cordial-emily.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Jul 1 21:22:46 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 1 Jul 2014 18:22:46 -0700 Subject: [IPython-dev] Making small kernels just got easier Message-ID: We just merged a PR that makes it much simpler to write wrapper kernels in Python for other languages. Simply subclass a class in IPython, and define a few methods and attributes, as described here: http://ipython.org/ipython-doc/dev/development/wrapperkernels.html For instance, I've just written a kernel for bash (no completion, but it can run commands): https://github.com/takluyver/bash_kernel To try this out, get the latest IPython development version, then pip install bash_kernel. Run ipython qtconsole --kernel bash to start it. Best wishes, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgadbois at gmail.com Tue Jul 1 22:01:56 2014 From: mgadbois at gmail.com (Martin Gadbois) Date: Tue, 1 Jul 2014 22:01:56 -0400 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: What I was waiting for... thanks! On Tue, Jul 1, 2014 at 9:22 PM, Thomas Kluyver wrote: > We just merged a PR that makes it much simpler to write wrapper kernels in > Python for other languages. Simply subclass a class in IPython, and define > a few methods and attributes, as described here: > http://ipython.org/ipython-doc/dev/development/wrapperkernels.html > > For instance, I've just written a kernel for bash (no completion, but it > can run commands): > https://github.com/takluyver/bash_kernel > > To try this out, get the latest IPython development version, then pip > install bash_kernel. Run ipython qtconsole --kernel bash to start it. > > Best wishes, > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Jul 1 23:05:35 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 1 Jul 2014 20:05:35 -0700 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: Cool, what will you be writing a kernel for? Let us know how it goes - there's still time to refine this api before IPython 3 is released. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From asmeurer at gmail.com Tue Jul 1 23:22:06 2014 From: asmeurer at gmail.com (Aaron Meurer) Date: Tue, 1 Jul 2014 22:22:06 -0500 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: Does the existing kernels subclass from Kernel? I in particular want to know if it's possible to do custom completion by using a subclass of the default kernel that overrides do_complete? Aaron Meurer On Tue, Jul 1, 2014 at 10:05 PM, Thomas Kluyver wrote: > Cool, what will you be writing a kernel for? Let us know how it goes - > there's still time to refine this api before IPython 3 is released. > > Thomas > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From takowl at gmail.com Wed Jul 2 01:43:18 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 1 Jul 2014 22:43:18 -0700 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: Yes, the standard IPython kernel is a subclass, and it should be possible to override do_complete. On 1 Jul 2014 20:22, "Aaron Meurer" wrote: > Does the existing kernels subclass from Kernel? I in particular want > to know if it's possible to do custom completion by using a subclass > of the default kernel that overrides do_complete? > > Aaron Meurer > > On Tue, Jul 1, 2014 at 10:05 PM, Thomas Kluyver wrote: > > Cool, what will you be writing a kernel for? Let us know how it goes - > > there's still time to refine this api before IPython 3 is released. > > > > Thomas > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://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 mgadbois at gmail.com Wed Jul 2 07:01:20 2014 From: mgadbois at gmail.com (Martin Gadbois) Date: Wed, 2 Jul 2014 07:01:20 -0400 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: I asked earlier... http://mail.scipy.org/pipermail/ipython-dev/2014-May/013940.html On Tue, Jul 1, 2014 at 11:05 PM, Thomas Kluyver wrote: > Cool, what will you be writing a kernel for? Let us know how it goes - > there's still time to refine this api before IPython 3 is released. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Wed Jul 2 08:15:11 2014 From: doug.blank at gmail.com (Doug Blank) Date: Wed, 2 Jul 2014 08:15:11 -0400 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: On Wed, Jul 2, 2014 at 7:01 AM, Martin Gadbois wrote: > I asked earlier... > > http://mail.scipy.org/pipermail/ipython-dev/2014-May/013940.html > One could just pass the contents of the cell to pysqlite, without even attempting to parse the SQL---is there anything to gain by parsing the SQL in Python, I wonder? I guess for completions, you will have to. It will be interesting to see how you handle selecting the database file; magic meta command? Does the base kernel handle any of the standard magic preprocessing? I have (and there are) a number of languages implemented in Python (Basic, LC3, BrainF*ck, Logo, Lua, ...) that could be turned into stand-alone kernels... will have to give this a try; thanks! -Doug > On Tue, Jul 1, 2014 at 11:05 PM, Thomas Kluyver wrote: > >> Cool, what will you be writing a kernel for? Let us know how it goes - >> there's still time to refine this api before IPython 3 is released. >> >> Thomas >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > Martin > > _______________________________________________ > 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 jsw at fnal.gov Wed Jul 2 12:43:13 2014 From: jsw at fnal.gov (Jon Wilson) Date: Wed, 2 Jul 2014 11:43:13 -0500 Subject: [IPython-dev] Including notebooks in a wiki Message-ID: <53B436A1.50607@fnal.gov> Hi all, Having gotten a nice anaconda setup working including pandoc, I've naturally been asked to document it on our wiki, both use and the procedure I went through to set it up. In order to showcase how it works and how it can be used to load and analyze CDMS data, I was thinking of including a notebook that I wrote that does exactly that. I know that people regularly include notebooks in blogs, (e.g. jakevdp.github.io (nice blog btw!)). Does anyone have experience including a notebook in a wiki? The wiki in question is dokuwiki, but I expect that a solution for one wiki syntax wouldn't be too difficult to translate to another wiki syntax. Regards, Jon From nick.bollweg at gmail.com Wed Jul 2 12:46:53 2014 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Wed, 2 Jul 2014 12:46:53 -0400 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: Sounds great! I'm not a core developer or anything, but have been lurking for a while as well. While I wouldn't see any kind of unification of these styles, as the needs of the "applications" are likely different from the needs of the marketing/documentation website, it might be good to make sure that we're kind of in the right neighborhood in terms of what tools are used across all of the ipython-branded websites. As you may have observed, a lot of the work on the "other websites" (nbviewer and the notebook) uses Bootstrap, FontAwesome and related tools, such as LESS and bower. It seems like there would be a natural win here for these to also be used for the generated .org site. To that end, it might be worth investigating sphinx-bootstrap-theme as a starting point for what might be possible. Good luck, I'm looking forward to what you come up with! On Tue, Jul 1, 2014 at 6:23 PM, Emily Schleiner wrote: > Dear IPython developers, > > A couple of months ago I spoke with Thomas at an Openhatch event about the > IPython website and it sounds like some design work might be welcome. (?) > I've been lurking on your lists to get to know the group some and have now > forked the site on Github with the aim of making it responsive. So far I > don't plan on revamping the basic shape or colors, but I'm interested to > hear any design preferences from the community... > > Best wishes, > Emily > > -- > __________________________________ > Emily Schleiner > cordial-emily.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 cordial.emily at gmail.com Wed Jul 2 13:04:52 2014 From: cordial.emily at gmail.com (Emily Schleiner) Date: Wed, 2 Jul 2014 10:04:52 -0700 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: All good points -- and I particularly like bootstrap in general. I'm just to the point of turning your basic format into a responsive format with media queries on images and divs. (I still have to work on the navigation menu and font sizing but you can see the progress here: https://github.com/cordial-emily/ipython-website.) I thought something simple might be a helpful first step. I'm looking forward to making more interesting changes, which I will create branches for soon... Thanks for the input! Emily On Wed, Jul 2, 2014 at 9:46 AM, Nicholas Bollweg wrote: > Sounds great! > > I'm not a core developer or anything, but have been lurking for a while as > well. > > While I wouldn't see any kind of unification of these styles, as the needs > of the "applications" are likely different from the needs of the > marketing/documentation website, it might be good to make sure that we're > kind of in the right neighborhood in terms of what tools are used across > all of the ipython-branded websites. > > As you may have observed, a lot of the work on the "other websites" > (nbviewer and the notebook) uses Bootstrap, FontAwesome and related tools, > such as LESS and bower. It seems like there would be a natural win here for > these to also be used for the generated .org site. To that end, it might be > worth investigating sphinx-bootstrap-theme > as a starting > point for what might be possible. > > Good luck, I'm looking forward to what you come up with! > > > On Tue, Jul 1, 2014 at 6:23 PM, Emily Schleiner > wrote: > >> Dear IPython developers, >> >> A couple of months ago I spoke with Thomas at an Openhatch event about >> the IPython website and it sounds like some design work might be welcome. >> (?) I've been lurking on your lists to get to know the group some and have >> now forked the site on Github with the aim of making it responsive. So far >> I don't plan on revamping the basic shape or colors, but I'm interested to >> hear any design preferences from the community... >> >> Best wishes, >> Emily >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.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 > > -- __________________________________ Emily Schleiner cordial-emily.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Wed Jul 2 13:28:35 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 2 Jul 2014 10:28:35 -0700 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: On 2 July 2014 04:01, Martin Gadbois wrote: > I asked earlier... > > http://mail.scipy.org/pipermail/ipython-dev/2014-May/013940.html > Sorry, I'd forgotten that. I look forward to seeing the sqlite kernel. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsw at fnal.gov Wed Jul 2 13:41:35 2014 From: jsw at fnal.gov (Jon Wilson) Date: Wed, 2 Jul 2014 12:41:35 -0500 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: <53B4444F.1040304@fnal.gov> Hi Emily, You might consider using github pages (https://pages.github.com/) to host your fork of the site. This will make it easier to see the progress/results. Regards, Jon On 07/02/2014 12:04 PM, Emily Schleiner wrote: > All good points -- and I particularly like bootstrap in general. I'm > just to the point of turning your basic format into a responsive > format with media queries on images and divs. (I still have to work > on the navigation menu and font sizing but you can see the progress > here: https://github.com/cordial-emily/ipython-website.) I thought > something simple might be a helpful first step. > > I'm looking forward to making more interesting changes, which I will > create branches for soon... > Thanks for the input! > > Emily > > > On Wed, Jul 2, 2014 at 9:46 AM, Nicholas Bollweg > > wrote: > > Sounds great! > > I'm not a core developer or anything, but have been lurking for a > while as well. > > While I wouldn't see any kind of unification of these styles, as > the needs of the "applications" are likely different from the > needs of the marketing/documentation website, it might be good to > make sure that we're kind of in the right neighborhood in terms of > what tools are used across all of the ipython-branded websites. > > As you may have observed, a lot of the work on the "other > websites" (nbviewer and the notebook) uses Bootstrap, FontAwesome > and related tools, such as LESS and bower. It seems like there > would be a natural win here for these to also be used for the > generated .org site. To that end, it might be worth investigating > sphinx-bootstrap-theme > as a > starting point for what might be possible. > > Good luck, I'm looking forward to what you come up with! > > > On Tue, Jul 1, 2014 at 6:23 PM, Emily Schleiner > > wrote: > > Dear IPython developers, > > A couple of months ago I spoke with Thomas at an Openhatch > event about the IPython website and it sounds like some design > work might be welcome. (?) I've been lurking on your lists to > get to know the group some and have now forked the site on > Github with the aim of making it responsive. So far I don't > plan on revamping the basic shape or colors, but I'm > interested to hear any design preferences from the community... > > Best wishes, > Emily > > -- > __________________________________ > Emily Schleiner > cordial-emily.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 > > > > > -- > __________________________________ > Emily Schleiner > cordial-emily.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 takowl at gmail.com Wed Jul 2 13:43:57 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 2 Jul 2014 10:43:57 -0700 Subject: [IPython-dev] Including notebooks in a wiki In-Reply-To: <53B436A1.50607@fnal.gov> References: <53B436A1.50607@fnal.gov> Message-ID: Hi Jon, One way would be to write a dokuwiki exporter for nbconvert. You could base it on the rst exporter: https://github.com/ipython/ipython/blob/master/IPython/nbconvert/exporters/rst.py https://github.com/ipython/ipython/blob/master/IPython/nbconvert/templates/rst.tpl However, pandoc doesn't appear to be able to convert markdown to dokuwiki, so you'd need to find another tool to do that. Alternatively, you could use a dokuwiki plugin to render pages from a format that notebooks can be exported to, e.g. markdown: https://www.dokuwiki.org/plugin:markdownextra Or, going one step further, you could write a dokuwiki plugin to handle notebook files directly. But yuck, PHP. Thomas On 2 July 2014 09:43, Jon Wilson wrote: > Hi all, > Having gotten a nice anaconda setup working including pandoc, I've > naturally been asked to document it on our wiki, both use and the > procedure I went through to set it up. In order to showcase how it > works and how it can be used to load and analyze CDMS data, I was > thinking of including a notebook that I wrote that does exactly that. > > I know that people regularly include notebooks in blogs, (e.g. > jakevdp.github.io (nice blog btw!)). Does anyone have experience > including a notebook in a wiki? The wiki in question is dokuwiki, but I > expect that a solution for one wiki syntax wouldn't be too difficult to > translate to another wiki syntax. > Regards, > Jon > _______________________________________________ > 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 jsw at fnal.gov Wed Jul 2 13:47:39 2014 From: jsw at fnal.gov (Jon Wilson) Date: Wed, 2 Jul 2014 12:47:39 -0500 Subject: [IPython-dev] Including notebooks in a wiki In-Reply-To: References: <53B436A1.50607@fnal.gov> Message-ID: <53B445BB.7020408@fnal.gov> Hi Thomas, Thanks for these suggestions. It has occurred to me that the simplest thing would probably be to simply attach an HTML file to the page and link to it. That will likely be my starting point, as I've spent too much of my time on software stuff in the last several days. Have to get some other stuff done before I do any more development, and my next development project is probably to get pandas to read CERN ROOT files directly... Regards, Jon On 07/02/2014 12:43 PM, Thomas Kluyver wrote: > Hi Jon, > > One way would be to write a dokuwiki exporter for nbconvert. You could > base it on the rst exporter: > https://github.com/ipython/ipython/blob/master/IPython/nbconvert/exporters/rst.py > https://github.com/ipython/ipython/blob/master/IPython/nbconvert/templates/rst.tpl > > However, pandoc doesn't appear to be able to convert markdown to > dokuwiki, so you'd need to find another tool to do that. > > Alternatively, you could use a dokuwiki plugin to render pages from a > format that notebooks can be exported to, e.g. markdown: > https://www.dokuwiki.org/plugin:markdownextra > > Or, going one step further, you could write a dokuwiki plugin to > handle notebook files directly. But yuck, PHP. > > Thomas > > > On 2 July 2014 09:43, Jon Wilson > > wrote: > > Hi all, > Having gotten a nice anaconda setup working including pandoc, I've > naturally been asked to document it on our wiki, both use and the > procedure I went through to set it up. In order to showcase how it > works and how it can be used to load and analyze CDMS data, I was > thinking of including a notebook that I wrote that does exactly that. > > I know that people regularly include notebooks in blogs, (e.g. > jakevdp.github.io (nice blog btw!)). > Does anyone have experience > including a notebook in a wiki? The wiki in question is dokuwiki, > but I > expect that a solution for one wiki syntax wouldn't be too > difficult to > translate to another wiki syntax. > Regards, > Jon > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://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 cordial.emily at gmail.com Wed Jul 2 13:50:14 2014 From: cordial.emily at gmail.com (Emily Schleiner) Date: Wed, 2 Jul 2014 10:50:14 -0700 Subject: [IPython-dev] website In-Reply-To: <53B4444F.1040304@fnal.gov> References: <53B4444F.1040304@fnal.gov> Message-ID: Have never seen this before -- great! On Wed, Jul 2, 2014 at 10:41 AM, Jon Wilson wrote: > Hi Emily, > You might consider using github pages (https://pages.github.com/) to host > your fork of the site. This will make it easier to see the > progress/results. > Regards, > Jon > > > On 07/02/2014 12:04 PM, Emily Schleiner wrote: > > All good points -- and I particularly like bootstrap in general. I'm > just to the point of turning your basic format into a responsive format > with media queries on images and divs. (I still have to work on the > navigation menu and font sizing but you can see the progress here: > https://github.com/cordial-emily/ipython-website.) I thought something > simple might be a helpful first step. > > I'm looking forward to making more interesting changes, which I will > create branches for soon... > > Thanks for the input! > > Emily > > > On Wed, Jul 2, 2014 at 9:46 AM, Nicholas Bollweg > wrote: > >> Sounds great! >> >> I'm not a core developer or anything, but have been lurking for a while >> as well. >> >> While I wouldn't see any kind of unification of these styles, as the >> needs of the "applications" are likely different from the needs of the >> marketing/documentation website, it might be good to make sure that we're >> kind of in the right neighborhood in terms of what tools are used across >> all of the ipython-branded websites. >> >> As you may have observed, a lot of the work on the "other websites" >> (nbviewer and the notebook) uses Bootstrap, FontAwesome and related tools, >> such as LESS and bower. It seems like there would be a natural win here for >> these to also be used for the generated .org site. To that end, it might be >> worth investigating sphinx-bootstrap-theme >> as a starting >> point for what might be possible. >> >> Good luck, I'm looking forward to what you come up with! >> >> >> On Tue, Jul 1, 2014 at 6:23 PM, Emily Schleiner > > wrote: >> >>> Dear IPython developers, >>> >>> A couple of months ago I spoke with Thomas at an Openhatch event about >>> the IPython website and it sounds like some design work might be welcome. >>> (?) I've been lurking on your lists to get to know the group some and have >>> now forked the site on Github with the aim of making it responsive. So far >>> I don't plan on revamping the basic shape or colors, but I'm interested to >>> hear any design preferences from the community... >>> >>> Best wishes, >>> Emily >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.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 >> >> > > > -- > __________________________________ > Emily Schleiner > cordial-emily.com > > > _______________________________________________ > IPython-dev mailing listIPython-dev at scipy.orghttp://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- __________________________________ Emily Schleiner cordial-emily.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gaitan at gmail.com Wed Jul 2 13:50:39 2014 From: gaitan at gmail.com (=?UTF-8?B?TWFydMOtbiBHYWl0w6Fu?=) Date: Wed, 2 Jul 2014 14:50:39 -0300 Subject: [IPython-dev] Including notebooks in a wiki In-Reply-To: References: <53B436A1.50607@fnal.gov> Message-ID: Maybe through markdown. it's supported in dokuwiki via plugins. https://www.dokuwiki.org/plugin:markdown and you can use nbconvert to export the notebook nbconvert --to markdown On Wed, Jul 2, 2014 at 2:43 PM, Thomas Kluyver wrote: > Hi Jon, > > One way would be to write a dokuwiki exporter for nbconvert. You could > base it on the rst exporter: > > https://github.com/ipython/ipython/blob/master/IPython/nbconvert/exporters/rst.py > > https://github.com/ipython/ipython/blob/master/IPython/nbconvert/templates/rst.tpl > > However, pandoc doesn't appear to be able to convert markdown to dokuwiki, > so you'd need to find another tool to do that. > > Alternatively, you could use a dokuwiki plugin to render pages from a > format that notebooks can be exported to, e.g. markdown: > https://www.dokuwiki.org/plugin:markdownextra > > Or, going one step further, you could write a dokuwiki plugin to handle > notebook files directly. But yuck, PHP. > > Thomas > > > On 2 July 2014 09:43, Jon Wilson wrote: > >> Hi all, >> Having gotten a nice anaconda setup working including pandoc, I've >> naturally been asked to document it on our wiki, both use and the >> procedure I went through to set it up. In order to showcase how it >> works and how it can be used to load and analyze CDMS data, I was >> thinking of including a notebook that I wrote that does exactly that. >> >> I know that people regularly include notebooks in blogs, (e.g. >> jakevdp.github.io (nice blog btw!)). Does anyone have experience >> including a notebook in a wiki? The wiki in question is dokuwiki, but I >> expect that a solution for one wiki syntax wouldn't be too difficult to >> translate to another wiki syntax. >> Regards, >> Jon >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- mgaitan.github.io textosypretextos.com.ar -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Wed Jul 2 13:58:03 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 2 Jul 2014 10:58:03 -0700 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: Hi Emily, Thanks, I'm flattered that you remembered our conversation. We're actually just working out the details of hiring a designer, someone who was already known to one of the core team. It will probably be a while before we have anything concrete to show from that, but I don't want you to spend a lot of time redesigning our website if we end up replacing it with a completely new site within a year. I'll discuss with the rest of the core team what's happening with the website, but don't get too far into changing it just yet. One possibility is that we could point you to another open source project that's interested in this kind of work. Next week we're at SciPy, a conference where the people behind lots of scientific Python projects get together, so we can ask people there about that. Best wishes, Thomas On 1 July 2014 15:23, Emily Schleiner wrote: > Dear IPython developers, > > A couple of months ago I spoke with Thomas at an Openhatch event about the > IPython website and it sounds like some design work might be welcome. (?) > I've been lurking on your lists to get to know the group some and have now > forked the site on Github with the aim of making it responsive. So far I > don't plan on revamping the basic shape or colors, but I'm interested to > hear any design preferences from the community... > > Best wishes, > Emily > > -- > __________________________________ > Emily Schleiner > cordial-emily.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 jsw at fnal.gov Wed Jul 2 14:05:36 2014 From: jsw at fnal.gov (Jon Wilson) Date: Wed, 2 Jul 2014 13:05:36 -0500 Subject: [IPython-dev] Including notebooks in a wiki In-Reply-To: References: <53B436A1.50607@fnal.gov> Message-ID: <53B449F0.3030605@fnal.gov> Thanks, Mart?n, I will give that a try. I don't know whether the plugin is already installed, so it might be a fight to get the admins to install it, we'll see. Thanks again, Jon On 07/02/2014 12:50 PM, Mart?n Gait?n wrote: > Maybe through markdown. it's supported in dokuwiki via plugins. > https://www.dokuwiki.org/plugin:markdown and you can use nbconvert to > export the notebook > nbconvert --to markdown > > > > > > On Wed, Jul 2, 2014 at 2:43 PM, Thomas Kluyver > wrote: > > Hi Jon, > > One way would be to write a dokuwiki exporter for nbconvert. You > could base it on the rst exporter: > https://github.com/ipython/ipython/blob/master/IPython/nbconvert/exporters/rst.py > https://github.com/ipython/ipython/blob/master/IPython/nbconvert/templates/rst.tpl > > However, pandoc doesn't appear to be able to convert markdown to > dokuwiki, so you'd need to find another tool to do that. > > Alternatively, you could use a dokuwiki plugin to render pages > from a format that notebooks can be exported to, e.g. markdown: > https://www.dokuwiki.org/plugin:markdownextra > > Or, going one step further, you could write a dokuwiki plugin to > handle notebook files directly. But yuck, PHP. > > Thomas > > > On 2 July 2014 09:43, Jon Wilson > wrote: > > Hi all, > Having gotten a nice anaconda setup working including pandoc, I've > naturally been asked to document it on our wiki, both use and the > procedure I went through to set it up. In order to showcase > how it > works and how it can be used to load and analyze CDMS data, I was > thinking of including a notebook that I wrote that does > exactly that. > > I know that people regularly include notebooks in blogs, (e.g. > jakevdp.github.io (nice blog > btw!)). Does anyone have experience > including a notebook in a wiki? The wiki in question is > dokuwiki, but I > expect that a solution for one wiki syntax wouldn't be too > difficult to > translate to another wiki syntax. > Regards, > Jon > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > -- > mgaitan.github.io > textosypretextos.com.ar > > > _______________________________________________ > 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 cordial.emily at gmail.com Wed Jul 2 14:25:16 2014 From: cordial.emily at gmail.com (Emily Schleiner) Date: Wed, 2 Jul 2014 11:25:16 -0700 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: Hi Thomas, I've already added some responsiveness to the theme you already use -- and in the mean time before you have a complete change this might be helpful to you. I'll just finish up the last couple of adjustments and call it good. Thanks for letting me know! Emily On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver wrote: > Hi Emily, > > Thanks, I'm flattered that you remembered our conversation. We're actually > just working out the details of hiring a designer, someone who was already > known to one of the core team. It will probably be a while before we have > anything concrete to show from that, but I don't want you to spend a lot of > time redesigning our website if we end up replacing it with a completely > new site within a year. I'll discuss with the rest of the core team what's > happening with the website, but don't get too far into changing it just yet. > > One possibility is that we could point you to another open source project > that's interested in this kind of work. Next week we're at SciPy, a > conference where the people behind lots of scientific Python projects get > together, so we can ask people there about that. > > Best wishes, > Thomas > > > On 1 July 2014 15:23, Emily Schleiner wrote: > >> Dear IPython developers, >> >> A couple of months ago I spoke with Thomas at an Openhatch event about >> the IPython website and it sounds like some design work might be welcome. >> (?) I've been lurking on your lists to get to know the group some and have >> now forked the site on Github with the aim of making it responsive. So far >> I don't plan on revamping the basic shape or colors, but I'm interested to >> hear any design preferences from the community... >> >> Best wishes, >> Emily >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.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 > > -- __________________________________ Emily Schleiner cordial-emily.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Wed Jul 2 14:29:10 2014 From: doug.blank at gmail.com (Doug Blank) Date: Wed, 2 Jul 2014 14:29:10 -0400 Subject: [IPython-dev] Notebooks for humanities students Message-ID: We've just begun a month-long, intensive project on using Notebooks for humanities students (weird, huh? I'll explain later). One of the first things we're tackling is creating appropriate documentation for this use. Here is what we are thinking, especially for Markdown: * assume user knows very little about technologies * examples should not refer to HTML tags to explain the output (eg, the Daring Fireball examples [1] describe effects in terms of HTML tags rather than rendered forms); show the raw version *and* rendered form * examples should not require a running kernel, and should be useful as shown (eg, not like [2]) * markdown documentation should be useable by any kernel (eg, should not make use of kernel-specific items) * docs should try to be as notebook-specific as possible (we are writing docs specifically for this use) * we are trying to be complete... documenting everything that Markdown in the notebook can (and cannot do); we are studying the "marked" project's test suite Of course we will share all of these back to the community at large. Speaking of that, I notice that: https://github.com/ipython/ipython/blob/master/docs/source/about/license_and_copyright.rst doesn't have a license for documentation/notebooks. Would it be possible to add a Creative Commons license to that for documentation? I'd be glad to add a pull request if a particular document license is indicated. And then we'll use the same license. Which? If anyone else has ideas or comments on constructing useful documentation for all uses, please let us know. Thanks! -Doug [1] - http://daringfireball.net/projects/markdown/syntax [2] - http://nbviewer.ipython.org/github/ipython/ipython/blob/1.x/examples/notebooks/Part%204%20-%20Markdown%20Cells.ipynb -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Wed Jul 2 14:43:12 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 2 Jul 2014 11:43:12 -0700 Subject: [IPython-dev] Notebooks for humanities students In-Reply-To: References: Message-ID: On Wed, Jul 2, 2014 at 11:29 AM, Doug Blank wrote: > Would it be possible to add a Creative Commons license to that for > documentation? I'd be glad to add a pull request if a particular document > license is indicated. And then we'll use the same license. Which? > I'd like to see all our documentation licensed under CC-BY, which I think of as the 'moral equivalent' of BSD http://creativecommons.org/licenses/by/4.0/ But I am NOT 'dictating' this as a decision. This is just a proposal so others can pitch in, in case there's any divergence of opinion. Once we reach a decision, a PR on that would be wonderful. 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 aron at ahmadia.net Wed Jul 2 14:45:41 2014 From: aron at ahmadia.net (Aron Ahmadia) Date: Wed, 2 Jul 2014 14:45:41 -0400 Subject: [IPython-dev] Notebooks for humanities students In-Reply-To: References: Message-ID: +1 in general I strongly encourage that the license make it explicit that examples are available for reuse under the IPython BSD license: Here's how it's done for Software Carpentry: http://software-carpentry.org/license.html A On Wed, Jul 2, 2014 at 2:43 PM, Fernando Perez wrote: > > On Wed, Jul 2, 2014 at 11:29 AM, Doug Blank wrote: > >> Would it be possible to add a Creative Commons license to that for >> documentation? I'd be glad to add a pull request if a particular document >> license is indicated. And then we'll use the same license. Which? >> > > I'd like to see all our documentation licensed under CC-BY, which I think > of as the 'moral equivalent' of BSD > > http://creativecommons.org/licenses/by/4.0/ > > But I am NOT 'dictating' this as a decision. This is just a proposal so > others can pitch in, in case there's any divergence of opinion. > > Once we reach a decision, a PR on that would be wonderful. > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Wed Jul 2 16:40:07 2014 From: ellisonbg at gmail.com (Brian Granger) Date: Wed, 2 Jul 2014 13:40:07 -0700 Subject: [IPython-dev] Notebooks for humanities students In-Reply-To: References: Message-ID: <79249B66-50FE-4E96-BDE0-A859694FF523@gmail.com> +1 for CC for narrative text and BSD for code examples Sent from my iPhone > On Jul 2, 2014, at 11:45 AM, Aron Ahmadia wrote: > > +1 in general > > I strongly encourage that the license make it explicit that examples are available for reuse under the IPython BSD license: Here's how it's done for Software Carpentry: > > http://software-carpentry.org/license.html > > A > > >> On Wed, Jul 2, 2014 at 2:43 PM, Fernando Perez wrote: >> >>> On Wed, Jul 2, 2014 at 11:29 AM, Doug Blank wrote: >>> Would it be possible to add a Creative Commons license to that for documentation? I'd be glad to add a pull request if a particular document license is indicated. And then we'll use the same license. Which? >> >> I'd like to see all our documentation licensed under CC-BY, which I think of as the 'moral equivalent' of BSD >> >> http://creativecommons.org/licenses/by/4.0/ >> >> But I am NOT 'dictating' this as a decision. This is just a proposal so others can pitch in, in case there's any divergence of opinion. >> >> Once we reach a decision, a PR on that would be wonderful. >> >> 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 cyrille.rossant at gmail.com Wed Jul 2 17:20:32 2014 From: cyrille.rossant at gmail.com (Cyrille Rossant) Date: Wed, 2 Jul 2014 23:20:32 +0200 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: Can it work in the notebook? 2014-07-02 3:22 GMT+02:00 Thomas Kluyver : > We just merged a PR that makes it much simpler to write wrapper kernels in > Python for other languages. Simply subclass a class in IPython, and define > a few methods and attributes, as described here: > http://ipython.org/ipython-doc/dev/development/wrapperkernels.html > > For instance, I've just written a kernel for bash (no completion, but it > can run commands): > https://github.com/takluyver/bash_kernel > > To try this out, get the latest IPython development version, then pip > install bash_kernel. Run ipython qtconsole --kernel bash to start it. > > Best wishes, > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Wed Jul 2 18:28:19 2014 From: doug.blank at gmail.com (Doug Blank) Date: Wed, 2 Jul 2014 18:28:19 -0400 Subject: [IPython-dev] Notebooks for humanities students In-Reply-To: <79249B66-50FE-4E96-BDE0-A859694FF523@gmail.com> References: <79249B66-50FE-4E96-BDE0-A859694FF523@gmail.com> Message-ID: On Wed, Jul 2, 2014 at 4:40 PM, Brian Granger wrote: > +1 for CC for narrative text and BSD for code examples > Yes, I agree that the CC-BY license for docs fits best with a BSD-licensed project. That way, there shouldn't be any problem going back and forth between code and documentation. -Doug > > Sent from my iPhone > > On Jul 2, 2014, at 11:45 AM, Aron Ahmadia wrote: > > +1 in general > > I strongly encourage that the license make it explicit that examples are > available for reuse under the IPython BSD license: Here's how it's done > for Software Carpentry: > > http://software-carpentry.org/license.html > > A > > > On Wed, Jul 2, 2014 at 2:43 PM, Fernando Perez > wrote: > >> >> On Wed, Jul 2, 2014 at 11:29 AM, Doug Blank wrote: >> >>> Would it be possible to add a Creative Commons license to that for >>> documentation? I'd be glad to add a pull request if a particular document >>> license is indicated. And then we'll use the same license. Which? >>> >> >> I'd like to see all our documentation licensed under CC-BY, which I think >> of as the 'moral equivalent' of BSD >> >> http://creativecommons.org/licenses/by/4.0/ >> >> But I am NOT 'dictating' this as a decision. This is just a proposal so >> others can pitch in, in case there's any divergence of opinion. >> >> Once we reach a decision, a PR on that would be wonderful. >> >> 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 > > > _______________________________________________ > 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 Wed Jul 2 18:49:10 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 2 Jul 2014 15:49:10 -0700 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: On 2 July 2014 14:20, Cyrille Rossant wrote: > Can it work in the notebook? It can, but it will be better by the time IPython 3 is released. At present, the notebook is only aware of one type of kernel, so you have to start it up with a long command line option like this: ipython notebook --KernelManager.kernel_cmd="['python','-m','echokernel', ' -f', '{connection_file}']" Soon, this will be unnecessary: the notebook UI will have a list of available kernels to pick from. I'm working on the next step for this in a PR: https://github.com/ipython/ipython/pull/6026 Thanks, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From asmeurer at gmail.com Wed Jul 2 19:55:46 2014 From: asmeurer at gmail.com (Aaron Meurer) Date: Wed, 2 Jul 2014 18:55:46 -0500 Subject: [IPython-dev] Making small kernels just got easier In-Reply-To: References: Message-ID: <2406629050787931186@unknownmsgid> Will it be possible to set the default kernel in the settings? I just want to override the completion in the Python kernel to use Jedi. Aaron Meurer On Jul 2, 2014, at 5:49 PM, Thomas Kluyver wrote: On 2 July 2014 14:20, Cyrille Rossant wrote: > Can it work in the notebook? It can, but it will be better by the time IPython 3 is released. At present, the notebook is only aware of one type of kernel, so you have to start it up with a long command line option like this: ipython notebook --KernelManager.kernel_cmd="['python','-m','echokernel', ' -f', '{connection_file}']" Soon, this will be unnecessary: the notebook UI will have a list of available kernels to pick from. I'm working on the next step for this in a PR: https://github.com/ipython/ipython/pull/6026 Thanks, Thomas _______________________________________________ IPython-dev mailing list IPython-dev at scipy.org http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Wed Jul 2 22:52:46 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 2 Jul 2014 19:52:46 -0700 Subject: [IPython-dev] Examples of custom CSS for side-by-side (horizontal) output layout? Message-ID: Hi folks, I know in the past people have mentioned having customized their notebook layouts to display output next to the input cells instead of below them. Does anyone have an example handy of this, so I can refer a colleague to it? Thanks! 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 bussonniermatthias at gmail.com Thu Jul 3 02:50:25 2014 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 3 Jul 2014 08:50:25 +0200 Subject: [IPython-dev] Examples of custom CSS for side-by-side (horizontal) output layout? In-Reply-To: References: Message-ID: <96E193F9-ACDA-48FC-86AE-68F0E76F83D8@gmail.com> Le 3 juil. 2014 ? 04:52, Fernando Perez a ?crit : > Hi folks, > > I know in the past people have mentioned having customized their notebook layouts to display output next to the input cells instead of below them. > > Does anyone have an example handy of this, so I can refer a colleague to it? %%html CF : https://twitter.com/Mbussonn/status/474189448452665344 -- M > > Thanks! > > f -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Thu Jul 3 02:54:15 2014 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 3 Jul 2014 08:54:15 +0200 Subject: [IPython-dev] Notebooks for humanities students In-Reply-To: References: Message-ID: Le 2 juil. 2014 ? 20:43, Fernando Perez a ?crit : > > On Wed, Jul 2, 2014 at 11:29 AM, Doug Blank wrote: > Would it be possible to add a Creative Commons license to that for documentation? I'd be glad to add a pull request if a particular document license is indicated. And then we'll use the same license. Which? > > I'd like to see all our documentation licensed under CC-BY, which I think of as the 'moral equivalent' of BSD > > http://creativecommons.org/licenses/by/4.0/ +1 > Once we reach a decision, a PR on that would be wonderful. +1 -- M -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Thu Jul 3 07:31:14 2014 From: doug.blank at gmail.com (Doug Blank) Date: Thu, 3 Jul 2014 07:31:14 -0400 Subject: [IPython-dev] Notebooks for humanities students In-Reply-To: References: Message-ID: On Thu, Jul 3, 2014 at 2:54 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 2 juil. 2014 ? 20:43, Fernando Perez a ?crit : > > > On Wed, Jul 2, 2014 at 11:29 AM, Doug Blank wrote: > >> Would it be possible to add a Creative Commons license to that for >> documentation? I'd be glad to add a pull request if a particular document >> license is indicated. And then we'll use the same license. Which? >> > > I'd like to see all our documentation licensed under CC-BY, which I think > of as the 'moral equivalent' of BSD > > http://creativecommons.org/licenses/by/4.0/ > > > +1 > > Once we reach a decision, a PR on that would be wonderful. > > Done: https://github.com/ipython/ipython/pull/6074 -Doug > > +1 > > -- > M > > _______________________________________________ > 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 Thu Jul 3 09:13:38 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Thu, 3 Jul 2014 06:13:38 -0700 Subject: [IPython-dev] Examples of custom CSS for side-by-side (horizontal) output layout? In-Reply-To: <96E193F9-ACDA-48FC-86AE-68F0E76F83D8@gmail.com> References: <96E193F9-ACDA-48FC-86AE-68F0E76F83D8@gmail.com> Message-ID: Merci beaucoup ! On Jul 2, 2014 11:49 PM, "Matthias Bussonnier" wrote: > > Le 3 juil. 2014 ? 04:52, Fernando Perez a ?crit : > > Hi folks, > > I know in the past people have mentioned having customized their notebook > layouts to display output next to the input cells instead of below them. > > Does anyone have an example handy of this, so I can refer a colleague to > it? > > > > %%html > > > CF : https://twitter.com/Mbussonn/status/474189448452665344 > > -- > M > > > Thanks! > > f > > > > _______________________________________________ > 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 Thu Jul 3 09:14:19 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Thu, 3 Jul 2014 06:14:19 -0700 Subject: [IPython-dev] Notebooks for humanities students In-Reply-To: References: Message-ID: great, thanks! On Jul 3, 2014 4:31 AM, "Doug Blank" wrote: > On Thu, Jul 3, 2014 at 2:54 AM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> >> Le 2 juil. 2014 ? 20:43, Fernando Perez a ?crit : >> >> >> On Wed, Jul 2, 2014 at 11:29 AM, Doug Blank wrote: >> >>> Would it be possible to add a Creative Commons license to that for >>> documentation? I'd be glad to add a pull request if a particular document >>> license is indicated. And then we'll use the same license. Which? >>> >> >> I'd like to see all our documentation licensed under CC-BY, which I think >> of as the 'moral equivalent' of BSD >> >> http://creativecommons.org/licenses/by/4.0/ >> >> >> +1 >> >> Once we reach a decision, a PR on that would be wonderful. >> >> Done: > > https://github.com/ipython/ipython/pull/6074 > > -Doug > > > >> >> +1 >> >> -- >> M >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Thu Jul 3 11:30:58 2014 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 3 Jul 2014 17:30:58 +0200 Subject: [IPython-dev] Examples of custom CSS for side-by-side (horizontal) output layout? In-Reply-To: References: <96E193F9-ACDA-48FC-86AE-68F0E76F83D8@gmail.com> Message-ID: <2C6BE958-CB9A-43A5-B8ED-018150905810@gmail.com> Le 3 juil. 2014 ? 15:13, Fernando Perez a ?crit : > Merci beaucoup ! > Je t'en prie. Toujours heureux de trouver une occasion de ne pas faire ma dissertation. ? tout ? l'heure sur Google Hangout pour la r?union hebdomadaire de d?veloppement. -- M (You're welcome. Alway happy to find a reason not to write my PhD. See you for the dev meeting on Google Hangout in a few hours) -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Thu Jul 3 12:57:07 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Thu, 3 Jul 2014 09:57:07 -0700 Subject: [IPython-dev] Examples of custom CSS for side-by-side (horizontal) output layout? In-Reply-To: <2C6BE958-CB9A-43A5-B8ED-018150905810@gmail.com> References: <96E193F9-ACDA-48FC-86AE-68F0E76F83D8@gmail.com> <2C6BE958-CB9A-43A5-B8ED-018150905810@gmail.com> Message-ID: La tradition continue... :) 2014-07-03 8:30 GMT-07:00 Matthias Bussonnier : > > Le 3 juil. 2014 ? 15:13, Fernando Perez a ?crit : > > Merci beaucoup ! > > Je t'en prie. > > Toujours heureux de trouver une occasion de ne pas faire ma dissertation. > > ? tout ? l'heure sur Google Hangout pour la r?union hebdomadaire de > d?veloppement. > -- > M > > > (You're welcome. > Alway happy to find a reason not to write my PhD. > See you for the dev meeting on Google Hangout in a few hours) > > > _______________________________________________ > 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 doug.blank at gmail.com Thu Jul 3 13:59:45 2014 From: doug.blank at gmail.com (Doug Blank) Date: Thu, 3 Jul 2014 13:59:45 -0400 Subject: [IPython-dev] Format of RadioButtonsWidget description and options Message-ID: Devs, We are working on creating a MultipleChoiceWidget, and wondering if there are options for positioning, or using HTML in, say, the description. For example, if you run the following in a Notebook: ```python from IPython.html.widgets import (RadioButtonsWidget, ContainerWidget, ButtonWidget) from IPython.display import (display, clear_output) answers = ["a) apple", "b) banana", "c) cherry"] choices = RadioButtonsWidget(description="Q1: What is the best fruit?", values=answers) button = ButtonWidget(description="Check Me") container = ContainerWidget(children =[choices, button]) def on_click(button): clear_output() if answers.index(choices.value_name) == 1: print("Correct!! The best fruit is the banana") else: print("Incorrect. Try running the above code to see the best fruit.") button.on_click(on_click) container ``` (see attached for image of output) The description ("Q1: What is the best fruit?") appears to the left of the radio buttons. Is there a way to get it to display above the radio buttons? Is there a way to force a newline after the question? Also, is there a way to use markup in the radio options? Perhaps there is a need for a LabelWidget (as opposed to TextWidget for entry) to do the question? Any suggestions welcomed to make this work/act better. -Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2014-07-03 13:46:44.png Type: image/png Size: 52599 bytes Desc: not available URL: From Kevin.D.Winters at erdc.dren.mil Thu Jul 3 14:39:31 2014 From: Kevin.D.Winters at erdc.dren.mil (Winters, Kevin D ERDC-RDE-CHL-MS) Date: Thu, 3 Jul 2014 18:39:31 +0000 Subject: [IPython-dev] Format of RadioButtonsWidget description and options Message-ID: <00FB624E-6921-4657-B0FE-BE9B726B042B@erdc.dren.mil> I?ve made compilations of widgets to achieve my goals of proper layout (usually wrapped in a class). Typically this means relying on the LatexWidget to act as labels for other widgets. I?ve made some alterations to your example to showcase my formatting method. The key issue with formatting to remember is that the css must be applied after the widget is displayed. When wrapped in a class, I?ve used the main widget compilation container?s on_displayed handler to guarantee that the formatting is applied correctly. ???python from IPython.html.widgets import (RadioButtonsWidget, ContainerWidget, ButtonWidget, LatexWidget) from IPython.display import (display, clear_output) answers = ["a) apple", "b) banana", "c) cherry"] question = LatexWidget(value="Q1: What is the best fruit?") choices = RadioButtonsWidget(description="", values=answers) button = ButtonWidget(description="Check Me") response = LatexWidget(value="") check = ContainerWidget(children=[button, response]) container = ContainerWidget(children=[question, choices, check]) def on_click(button): clear_output() if answers.index(choices.value_name) == 1: response.value = "Correct!! The best fruit is the banana" else: response.value = "Incorrect. Try running the above code to see the best fruit." button.on_click(on_click) display(container) choices.set_css({'padding-left':'30px'}) response.set_css({'padding-left':'10px'}) check.remove_class('vbox') check.add_class('hbox') check.set_css({'align-items':'center?}) ?'' Kevin -------------------- Kevin Winters Research Hydraulic Engineer US Army Corps of Engineers Engineer Research and Development Center 3909 Halls Ferry Road Vicksburg, MS 39180 601.634.2102 From doug.blank at gmail.com Thu Jul 3 14:47:39 2014 From: doug.blank at gmail.com (Doug Blank) Date: Thu, 3 Jul 2014 14:47:39 -0400 Subject: [IPython-dev] Format of RadioButtonsWidget description and options In-Reply-To: <00FB624E-6921-4657-B0FE-BE9B726B042B@erdc.dren.mil> References: <00FB624E-6921-4657-B0FE-BE9B726B042B@erdc.dren.mil> Message-ID: Kevin, thanks! I like both of these ideas (using Latex for the question, and using CSS to position). -Doug On Thu, Jul 3, 2014 at 2:39 PM, Winters, Kevin D ERDC-RDE-CHL-MS < Kevin.D.Winters at erdc.dren.mil> wrote: > I?ve made compilations of widgets to achieve my goals of proper layout > (usually wrapped in a class). Typically this means relying on the > LatexWidget to act as labels for other widgets. I?ve made some alterations > to your example to showcase my formatting method. The key issue with > formatting to remember is that the css must be applied after the widget is > displayed. When wrapped in a class, I?ve used the main widget compilation > container?s on_displayed handler to guarantee that the formatting is > applied correctly. > > ???python > > from IPython.html.widgets import (RadioButtonsWidget, ContainerWidget, > ButtonWidget, LatexWidget) > from IPython.display import (display, clear_output) > answers = ["a) apple", "b) banana", "c) cherry"] > question = LatexWidget(value="Q1: What is the best fruit?") > choices = RadioButtonsWidget(description="", values=answers) > button = ButtonWidget(description="Check Me") > response = LatexWidget(value="") > check = ContainerWidget(children=[button, response]) > container = ContainerWidget(children=[question, choices, check]) > > def on_click(button): > clear_output() > if answers.index(choices.value_name) == 1: > response.value = "Correct!! The best fruit is the banana" > else: > response.value = "Incorrect. Try running the above code to see the > best fruit." > > button.on_click(on_click) > display(container) > > choices.set_css({'padding-left':'30px'}) > response.set_css({'padding-left':'10px'}) > check.remove_class('vbox') > check.add_class('hbox') > check.set_css({'align-items':'center?}) > ?'' > > Kevin > > -------------------- > Kevin Winters > Research Hydraulic Engineer > US Army Corps of Engineers > Engineer Research and Development Center > 3909 Halls Ferry Road > Vicksburg, MS 39180 > 601.634.2102 > > _______________________________________________ > 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 cordial.emily at gmail.com Thu Jul 3 20:15:41 2014 From: cordial.emily at gmail.com (Emily Schleiner) Date: Thu, 3 Jul 2014 17:15:41 -0700 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: For anyone curious to see the changes I made, here is my branch on github: https://github.com/cordial-emily/ipython-website On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner wrote: > Hi Thomas, > > I've already added some responsiveness to the theme you already use -- and > in the mean time before you have a complete change this might be helpful to > you. I'll just finish up the last couple of adjustments and call it good. > > Thanks for letting me know! > > Emily > > > > > On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver wrote: > >> Hi Emily, >> >> Thanks, I'm flattered that you remembered our conversation. We're >> actually just working out the details of hiring a designer, someone who was >> already known to one of the core team. It will probably be a while before >> we have anything concrete to show from that, but I don't want you to spend >> a lot of time redesigning our website if we end up replacing it with a >> completely new site within a year. I'll discuss with the rest of the core >> team what's happening with the website, but don't get too far into changing >> it just yet. >> >> One possibility is that we could point you to another open source project >> that's interested in this kind of work. Next week we're at SciPy, a >> conference where the people behind lots of scientific Python projects get >> together, so we can ask people there about that. >> >> Best wishes, >> Thomas >> >> >> On 1 July 2014 15:23, Emily Schleiner wrote: >> >>> Dear IPython developers, >>> >>> A couple of months ago I spoke with Thomas at an Openhatch event about >>> the IPython website and it sounds like some design work might be welcome. >>> (?) I've been lurking on your lists to get to know the group some and have >>> now forked the site on Github with the aim of making it responsive. So far >>> I don't plan on revamping the basic shape or colors, but I'm interested to >>> hear any design preferences from the community... >>> >>> Best wishes, >>> Emily >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.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 >> >> > > > -- > __________________________________ > Emily Schleiner > cordial-emily.com > -- __________________________________ Emily Schleiner cordial-emily.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Thu Jul 3 20:18:56 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 3 Jul 2014 17:18:56 -0700 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: Thanks Emily. Can we ask you to post a built version of the website somewhere, so that it's easy to look at without cloning the repository and building the site? https://pages.github.com/ is probably the easiest way to do it. Thomas On 3 July 2014 17:15, Emily Schleiner wrote: > For anyone curious to see the changes I made, here is my branch on github: > https://github.com/cordial-emily/ipython-website > > > On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner > wrote: > >> Hi Thomas, >> >> I've already added some responsiveness to the theme you already use -- >> and in the mean time before you have a complete change this might be >> helpful to you. I'll just finish up the last couple of adjustments and call >> it good. >> >> Thanks for letting me know! >> >> Emily >> >> >> >> >> On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver wrote: >> >>> Hi Emily, >>> >>> Thanks, I'm flattered that you remembered our conversation. We're >>> actually just working out the details of hiring a designer, someone who was >>> already known to one of the core team. It will probably be a while before >>> we have anything concrete to show from that, but I don't want you to spend >>> a lot of time redesigning our website if we end up replacing it with a >>> completely new site within a year. I'll discuss with the rest of the core >>> team what's happening with the website, but don't get too far into changing >>> it just yet. >>> >>> One possibility is that we could point you to another open source >>> project that's interested in this kind of work. Next week we're at SciPy, a >>> conference where the people behind lots of scientific Python projects get >>> together, so we can ask people there about that. >>> >>> Best wishes, >>> Thomas >>> >>> >>> On 1 July 2014 15:23, Emily Schleiner wrote: >>> >>>> Dear IPython developers, >>>> >>>> A couple of months ago I spoke with Thomas at an Openhatch event about >>>> the IPython website and it sounds like some design work might be welcome. >>>> (?) I've been lurking on your lists to get to know the group some and have >>>> now forked the site on Github with the aim of making it responsive. So far >>>> I don't plan on revamping the basic shape or colors, but I'm interested to >>>> hear any design preferences from the community... >>>> >>>> Best wishes, >>>> Emily >>>> >>>> -- >>>> __________________________________ >>>> Emily Schleiner >>>> cordial-emily.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 >>> >>> >> >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.com >> > > > > -- > __________________________________ > Emily Schleiner > cordial-emily.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 cordial.emily at gmail.com Thu Jul 3 23:42:17 2014 From: cordial.emily at gmail.com (Emily Schleiner) Date: Thu, 3 Jul 2014 20:42:17 -0700 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: Here you go: http://cordial-emily.github.io/ -Emily On Thu, Jul 3, 2014 at 5:18 PM, Thomas Kluyver wrote: > Thanks Emily. Can we ask you to post a built version of the website > somewhere, so that it's easy to look at without cloning the repository and > building the site? https://pages.github.com/ is probably the easiest way > to do it. > > Thomas > > > On 3 July 2014 17:15, Emily Schleiner wrote: > >> For anyone curious to see the changes I made, here is my branch on github: >> https://github.com/cordial-emily/ipython-website >> >> >> On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner > > wrote: >> >>> Hi Thomas, >>> >>> I've already added some responsiveness to the theme you already use -- >>> and in the mean time before you have a complete change this might be >>> helpful to you. I'll just finish up the last couple of adjustments and call >>> it good. >>> >>> Thanks for letting me know! >>> >>> Emily >>> >>> >>> >>> >>> On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver >>> wrote: >>> >>>> Hi Emily, >>>> >>>> Thanks, I'm flattered that you remembered our conversation. We're >>>> actually just working out the details of hiring a designer, someone who was >>>> already known to one of the core team. It will probably be a while before >>>> we have anything concrete to show from that, but I don't want you to spend >>>> a lot of time redesigning our website if we end up replacing it with a >>>> completely new site within a year. I'll discuss with the rest of the core >>>> team what's happening with the website, but don't get too far into changing >>>> it just yet. >>>> >>>> One possibility is that we could point you to another open source >>>> project that's interested in this kind of work. Next week we're at SciPy, a >>>> conference where the people behind lots of scientific Python projects get >>>> together, so we can ask people there about that. >>>> >>>> Best wishes, >>>> Thomas >>>> >>>> >>>> On 1 July 2014 15:23, Emily Schleiner wrote: >>>> >>>>> Dear IPython developers, >>>>> >>>>> A couple of months ago I spoke with Thomas at an Openhatch event about >>>>> the IPython website and it sounds like some design work might be welcome. >>>>> (?) I've been lurking on your lists to get to know the group some and have >>>>> now forked the site on Github with the aim of making it responsive. So far >>>>> I don't plan on revamping the basic shape or colors, but I'm interested to >>>>> hear any design preferences from the community... >>>>> >>>>> Best wishes, >>>>> Emily >>>>> >>>>> -- >>>>> __________________________________ >>>>> Emily Schleiner >>>>> cordial-emily.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 >>>> >>>> >>> >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.com >>> >> >> >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.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 > > -- __________________________________ Emily Schleiner cordial-emily.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aron at ahmadia.net Fri Jul 4 00:17:46 2014 From: aron at ahmadia.net (Aron Ahmadia) Date: Fri, 4 Jul 2014 00:17:46 -0400 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: Hi Emily This is really nice work. I am not one of the core developers, but I have opinions anyway :) A couple of thoughts/questions: * Probably should be IPython Website in the title * The "Interactive Computing" is a little fuzzy on my Retina display * I really like the font * How do people feel about the content stretching out to the full page width? I have mixed feelings about this. Cheers, Aron On Thu, Jul 3, 2014 at 11:42 PM, Emily Schleiner wrote: > Here you go: > http://cordial-emily.github.io/ > > -Emily > > > On Thu, Jul 3, 2014 at 5:18 PM, Thomas Kluyver wrote: > >> Thanks Emily. Can we ask you to post a built version of the website >> somewhere, so that it's easy to look at without cloning the repository and >> building the site? https://pages.github.com/ is probably the easiest way >> to do it. >> >> Thomas >> >> >> On 3 July 2014 17:15, Emily Schleiner wrote: >> >>> For anyone curious to see the changes I made, here is my branch on >>> github: >>> https://github.com/cordial-emily/ipython-website >>> >>> >>> On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner < >>> cordial.emily at gmail.com> wrote: >>> >>>> Hi Thomas, >>>> >>>> I've already added some responsiveness to the theme you already use -- >>>> and in the mean time before you have a complete change this might be >>>> helpful to you. I'll just finish up the last couple of adjustments and call >>>> it good. >>>> >>>> Thanks for letting me know! >>>> >>>> Emily >>>> >>>> >>>> >>>> >>>> On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver >>>> wrote: >>>> >>>>> Hi Emily, >>>>> >>>>> Thanks, I'm flattered that you remembered our conversation. We're >>>>> actually just working out the details of hiring a designer, someone who was >>>>> already known to one of the core team. It will probably be a while before >>>>> we have anything concrete to show from that, but I don't want you to spend >>>>> a lot of time redesigning our website if we end up replacing it with a >>>>> completely new site within a year. I'll discuss with the rest of the core >>>>> team what's happening with the website, but don't get too far into changing >>>>> it just yet. >>>>> >>>>> One possibility is that we could point you to another open source >>>>> project that's interested in this kind of work. Next week we're at SciPy, a >>>>> conference where the people behind lots of scientific Python projects get >>>>> together, so we can ask people there about that. >>>>> >>>>> Best wishes, >>>>> Thomas >>>>> >>>>> >>>>> On 1 July 2014 15:23, Emily Schleiner wrote: >>>>> >>>>>> Dear IPython developers, >>>>>> >>>>>> A couple of months ago I spoke with Thomas at an Openhatch event >>>>>> about the IPython website and it sounds like some design work might be >>>>>> welcome. (?) I've been lurking on your lists to get to know the group some >>>>>> and have now forked the site on Github with the aim of making it >>>>>> responsive. So far I don't plan on revamping the basic shape or colors, but >>>>>> I'm interested to hear any design preferences from the community... >>>>>> >>>>>> Best wishes, >>>>>> Emily >>>>>> >>>>>> -- >>>>>> __________________________________ >>>>>> Emily Schleiner >>>>>> cordial-emily.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 >>>>> >>>>> >>>> >>>> >>>> -- >>>> __________________________________ >>>> Emily Schleiner >>>> cordial-emily.com >>>> >>> >>> >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.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 >> >> > > > -- > __________________________________ > Emily Schleiner > cordial-emily.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 doug.blank at gmail.com Fri Jul 4 08:32:28 2014 From: doug.blank at gmail.com (Doug Blank) Date: Fri, 4 Jul 2014 08:32:28 -0400 Subject: [IPython-dev] Examples of custom CSS for side-by-side (horizontal) output layout? In-Reply-To: <96E193F9-ACDA-48FC-86AE-68F0E76F83D8@gmail.com> References: <96E193F9-ACDA-48FC-86AE-68F0E76F83D8@gmail.com> Message-ID: On Thu, Jul 3, 2014 at 2:50 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 3 juil. 2014 ? 04:52, Fernando Perez a ?crit : > > Hi folks, > > I know in the past people have mentioned having customized their notebook > layouts to display output next to the input cells instead of below them. > > Does anyone have an example handy of this, so I can refer a colleague to > it? > > > > %%html > > BTW, I find that I can go back and forth between horizontal and vertical styles sequentially in a notebook using this technique, as long as the HTML is entered into new cells. If I go back to a previously executed cell and attempt to re-run the HTML, then the notebook gets confused, and I need to create a new cell (or close and re-open the notebook). This is on Chromium 34.0.1847.116 on Ubuntu. -Doug > > CF : https://twitter.com/Mbussonn/status/474189448452665344 > > -- > M > > > Thanks! > > f > > > > _______________________________________________ > 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 Fri Jul 4 09:03:41 2014 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 4 Jul 2014 15:03:41 +0200 Subject: [IPython-dev] Examples of custom CSS for side-by-side (horizontal) output layout? In-Reply-To: References: <96E193F9-ACDA-48FC-86AE-68F0E76F83D8@gmail.com> Message-ID: Including css with %html follow normal css rules. Last in the dom take precedence (assuming same target specificity) what you see is not astonishing, and is one of the reason style should not be applied by displaying things in cells. -- M Envoy? de mon iPhone > Le 4 juil. 2014 ? 14:32, Doug Blank a ?crit : > >> On Thu, Jul 3, 2014 at 2:50 AM, Matthias Bussonnier wrote: >> >>> Le 3 juil. 2014 ? 04:52, Fernando Perez a ?crit : >>> >>> Hi folks, >>> >>> I know in the past people have mentioned having customized their notebook layouts to display output next to the input cells instead of below them. >>> >>> Does anyone have an example handy of this, so I can refer a colleague to it? >> >> >> %%html >> > > BTW, I find that I can go back and forth between horizontal and vertical styles sequentially in a notebook using this technique, as long as the HTML is entered into new cells. If I go back to a previously executed cell and attempt to re-run the HTML, then the notebook gets confused, and I need to create a new cell (or close and re-open the notebook). This is on Chromium 34.0.1847.116 on Ubuntu. > > -Doug > >> >> CF : https://twitter.com/Mbussonn/status/474189448452665344 >> >> -- >> M >>> >>> Thanks! >>> >>> f >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 jsw at fnal.gov Fri Jul 4 14:27:19 2014 From: jsw at fnal.gov (Jon Wilson) Date: Fri, 4 Jul 2014 13:27:19 -0500 Subject: [IPython-dev] website In-Reply-To: References: Message-ID: <53B6F207.5080709@fnal.gov> Hi Emily, This is quite nice stuff. I'm glad that someone is making the effort to make a responsive page without overdesigning things. Far too many pages are very difficult to read on mobile devices. In my browser (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0), the text appears in a very light gray that is quite difficult to read against the white background. I don't know quite why this is. On my phone (Mozilla/5.0 (Android; Mobile; rv:30.0) Gecko/30.0 Firefox/30.0), the column widths are a bit rough -- the text in the left column is quite narrow, and one piece of the right column overruns the column width and causes horizontal scrolling. There is also a long vertical gap in the left column before reaching the end of the two-column section. Overall, I got the initial feeling that the two-column stuff was all unimportant gunk (not true, of course) that I had to scroll past to get to the real content. I think maybe the sidebar material could be moved to the end of the page? This is only commentary on the front page. I haven't yet taken a look at other pages. Regards, Jon On 07/03/2014 10:42 PM, Emily Schleiner wrote: > Here you go: > http://cordial-emily.github.io/ > > -Emily > > > On Thu, Jul 3, 2014 at 5:18 PM, Thomas Kluyver > wrote: > > Thanks Emily. Can we ask you to post a built version of the > website somewhere, so that it's easy to look at without cloning > the repository and building the site? https://pages.github.com/ is > probably the easiest way to do it. > > Thomas > > > On 3 July 2014 17:15, Emily Schleiner > wrote: > > For anyone curious to see the changes I made, here is my > branch on github: > https://github.com/cordial-emily/ipython-website > > > On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner > > wrote: > > Hi Thomas, > > I've already added some responsiveness to the theme you > already use -- and in the mean time before you have a > complete change this might be helpful to you. I'll just > finish up the last couple of adjustments and call it good. > > Thanks for letting me know! > > Emily > > > > > On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver > > wrote: > > Hi Emily, > > Thanks, I'm flattered that you remembered our > conversation. We're actually just working out the > details of hiring a designer, someone who was already > known to one of the core team. It will probably be a > while before we have anything concrete to show from > that, but I don't want you to spend a lot of time > redesigning our website if we end up replacing it with > a completely new site within a year. I'll discuss with > the rest of the core team what's happening with the > website, but don't get too far into changing it just yet. > > One possibility is that we could point you to another > open source project that's interested in this kind of > work. Next week we're at SciPy, a conference where the > people behind lots of scientific Python projects get > together, so we can ask people there about that. > > Best wishes, > Thomas > > > On 1 July 2014 15:23, Emily Schleiner > > wrote: > > Dear IPython developers, > > A couple of months ago I spoke with Thomas at an > Openhatch event about the IPython website and it > sounds like some design work might be welcome. (?) > I've been lurking on your lists to get to know > the group some and have now forked the site on > Github with the aim of making it responsive. So > far I don't plan on revamping the basic shape or > colors, but I'm interested to hear any design > preferences from the community... > > Best wishes, > Emily > > -- > __________________________________ > Emily Schleiner > cordial-emily.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 > > > > > -- > __________________________________ > Emily Schleiner > cordial-emily.com > > > > > -- > __________________________________ > Emily Schleiner > cordial-emily.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 > > > > > -- > __________________________________ > Emily Schleiner > cordial-emily.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: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_2014-07-04-13-20-04.png Type: image/png Size: 195330 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2014-07-04 13:17:33.png Type: image/png Size: 334072 bytes Desc: not available URL: From cordial.emily at gmail.com Fri Jul 4 15:51:19 2014 From: cordial.emily at gmail.com (Emily Schleiner) Date: Fri, 4 Jul 2014 12:51:19 -0700 Subject: [IPython-dev] website In-Reply-To: <53B6F207.5080709@fnal.gov> References: <53B6F207.5080709@fnal.gov> Message-ID: Hi Aaron and Jon, Thanks for the feedback -- hearing about the look of the site on multiple devices is especially helpful. :) Let's see.. the gap in scrolling (preceding images) is something I should be able to fix. For the large screen size (1400 or more pixels wide) I'll limit the size of the logo so it doesn't look too pixelated and increase the margins some. The gray text on the mobile size sounds like an anomaly based on the devices I've seen so far, but I can increase the font weight for small devices Fyi, ideally I would like to redesign the whole structure with bootstrap etc but it sounds like it might not be worthwhile if the site is going to revamped soon anyway... These adjustments just make it possible to see all the content (as it stands) on phones. Thanks all! Emily On Fri, Jul 4, 2014 at 11:27 AM, Jon Wilson wrote: > Hi Emily, > This is quite nice stuff. I'm glad that someone is making the effort to > make a responsive page without overdesigning things. Far too many pages > are very difficult to read on mobile devices. > > In my browser (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) > Gecko/20100101 Firefox/30.0), the text appears in a very light gray that is > quite difficult to read against the white background. I don't know quite > why this is. > > On my phone (Mozilla/5.0 (Android; Mobile; rv:30.0) Gecko/30.0 > Firefox/30.0), the column widths are a bit rough -- the text in the left > column is quite narrow, and one piece of the right column overruns the > column width and causes horizontal scrolling. There is also a long > vertical gap in the left column before reaching the end of the two-column > section. Overall, I got the initial feeling that the two-column stuff was > all unimportant gunk (not true, of course) that I had to scroll past to get > to the real content. I think maybe the sidebar material could be moved to > the end of the page? > > This is only commentary on the front page. I haven't yet taken a look at > other pages. > Regards, > Jon > > > On 07/03/2014 10:42 PM, Emily Schleiner wrote: > > Here you go: > http://cordial-emily.github.io/ > > -Emily > > > On Thu, Jul 3, 2014 at 5:18 PM, Thomas Kluyver wrote: > >> Thanks Emily. Can we ask you to post a built version of the website >> somewhere, so that it's easy to look at without cloning the repository and >> building the site? https://pages.github.com/ is probably the easiest way >> to do it. >> >> Thomas >> >> >> On 3 July 2014 17:15, Emily Schleiner wrote: >> >>> For anyone curious to see the changes I made, here is my branch on >>> github: >>> https://github.com/cordial-emily/ipython-website >>> >>> >>> On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner < >>> cordial.emily at gmail.com> wrote: >>> >>>> Hi Thomas, >>>> >>>> I've already added some responsiveness to the theme you already use >>>> -- and in the mean time before you have a complete change this might be >>>> helpful to you. I'll just finish up the last couple of adjustments and call >>>> it good. >>>> >>>> Thanks for letting me know! >>>> >>>> Emily >>>> >>>> >>>> >>>> >>>> On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver >>>> wrote: >>>> >>>>> Hi Emily, >>>>> >>>>> Thanks, I'm flattered that you remembered our conversation. We're >>>>> actually just working out the details of hiring a designer, someone who was >>>>> already known to one of the core team. It will probably be a while before >>>>> we have anything concrete to show from that, but I don't want you to spend >>>>> a lot of time redesigning our website if we end up replacing it with a >>>>> completely new site within a year. I'll discuss with the rest of the core >>>>> team what's happening with the website, but don't get too far into changing >>>>> it just yet. >>>>> >>>>> One possibility is that we could point you to another open source >>>>> project that's interested in this kind of work. Next week we're at SciPy, a >>>>> conference where the people behind lots of scientific Python projects get >>>>> together, so we can ask people there about that. >>>>> >>>>> Best wishes, >>>>> Thomas >>>>> >>>>> >>>>> On 1 July 2014 15:23, Emily Schleiner >>>>> wrote: >>>>> >>>>>> Dear IPython developers, >>>>>> >>>>>> A couple of months ago I spoke with Thomas at an Openhatch event >>>>>> about the IPython website and it sounds like some design work might be >>>>>> welcome. (?) I've been lurking on your lists to get to know the group some >>>>>> and have now forked the site on Github with the aim of making it >>>>>> responsive. So far I don't plan on revamping the basic shape or colors, but >>>>>> I'm interested to hear any design preferences from the community... >>>>>> >>>>>> Best wishes, >>>>>> Emily >>>>>> >>>>>> -- >>>>>> __________________________________ >>>>>> Emily Schleiner >>>>>> cordial-emily.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 >>>>> >>>>> >>>> >>>> >>>> -- >>>> __________________________________ >>>> Emily Schleiner >>>> cordial-emily.com >>>> >>> >>> >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.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 >> >> > > > -- > __________________________________ > Emily Schleiner > cordial-emily.com > > > _______________________________________________ > IPython-dev mailing listIPython-dev at scipy.orghttp://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- __________________________________ Emily Schleiner cordial-emily.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsw at fnal.gov Fri Jul 4 16:13:47 2014 From: jsw at fnal.gov (Jon Wilson) Date: Fri, 4 Jul 2014 15:13:47 -0500 Subject: [IPython-dev] website In-Reply-To: References: <53B6F207.5080709@fnal.gov> Message-ID: <53B70AFB.8040907@fnal.gov> Hi Emily, The text is fine on my phone. The gray text issue occurs on my laptop (Ubuntu 14.04, Firefox 30). Sorry that I wasn't clear about that. And, since I just used the word "issue" above, it occurs to me that I should actually be using github's "issue" feature rather than emailing you about it. Regards, Jon On 07/04/2014 02:51 PM, Emily Schleiner wrote: > Hi Aaron and Jon, > > Thanks for the feedback -- hearing about the look of the site on > multiple devices is especially helpful. :) > > Let's see.. the gap in scrolling (preceding images) is something I > should be able to fix. For the large screen size (1400 or more pixels > wide) I'll limit the size of the logo so it doesn't look too pixelated > and increase the margins some. > > The gray text on the mobile size sounds like an anomaly based on the > devices I've seen so far, but I can increase the font weight for small > devices > > Fyi, ideally I would like to redesign the whole structure with > bootstrap etc but it sounds like it might not be worthwhile if the > site is going to revamped soon anyway... These adjustments just make > it possible to see all the content (as it stands) on phones. > > Thanks all! > Emily > > > > > > > > > On Fri, Jul 4, 2014 at 11:27 AM, Jon Wilson > wrote: > > Hi Emily, > This is quite nice stuff. I'm glad that someone is making the > effort to make a responsive page without overdesigning things. > Far too many pages are very difficult to read on mobile devices. > > In my browser (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) > Gecko/20100101 Firefox/30.0), the text appears in a very light > gray that is quite difficult to read against the white > background. I don't know quite why this is. > > On my phone (Mozilla/5.0 (Android; Mobile; rv:30.0) Gecko/30.0 > Firefox/30.0), the column widths are a bit rough -- the text in > the left column is quite narrow, and one piece of the right column > overruns the column width and causes horizontal scrolling. There > is also a long vertical gap in the left column before reaching the > end of the two-column section. Overall, I got the initial feeling > that the two-column stuff was all unimportant gunk (not true, of > course) that I had to scroll past to get to the real content. I > think maybe the sidebar material could be moved to the end of the > page? > > This is only commentary on the front page. I haven't yet taken a > look at other pages. > Regards, > Jon > > > On 07/03/2014 10:42 PM, Emily Schleiner wrote: >> Here you go: >> http://cordial-emily.github.io/ >> >> -Emily >> >> >> On Thu, Jul 3, 2014 at 5:18 PM, Thomas Kluyver > > wrote: >> >> Thanks Emily. Can we ask you to post a built version of the >> website somewhere, so that it's easy to look at without >> cloning the repository and building the site? >> https://pages.github.com/ is probably the easiest way to do it. >> >> Thomas >> >> >> On 3 July 2014 17:15, Emily Schleiner >> > wrote: >> >> For anyone curious to see the changes I made, here is my >> branch on github: >> https://github.com/cordial-emily/ipython-website >> >> >> On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner >> > > wrote: >> >> Hi Thomas, >> >> I've already added some responsiveness to the theme >> you already use -- and in the mean time before you >> have a complete change this might be helpful to you. >> I'll just finish up the last couple of adjustments >> and call it good. >> >> Thanks for letting me know! >> >> Emily >> >> >> >> >> On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver >> > wrote: >> >> Hi Emily, >> >> Thanks, I'm flattered that you remembered our >> conversation. We're actually just working out the >> details of hiring a designer, someone who was >> already known to one of the core team. It will >> probably be a while before we have anything >> concrete to show from that, but I don't want you >> to spend a lot of time redesigning our website if >> we end up replacing it with a completely new site >> within a year. I'll discuss with the rest of the >> core team what's happening with the website, but >> don't get too far into changing it just yet. >> >> One possibility is that we could point you to >> another open source project that's interested in >> this kind of work. Next week we're at SciPy, a >> conference where the people behind lots of >> scientific Python projects get together, so we >> can ask people there about that. >> >> Best wishes, >> Thomas >> >> >> On 1 July 2014 15:23, Emily Schleiner >> > > wrote: >> >> Dear IPython developers, >> >> A couple of months ago I spoke with Thomas at >> an Openhatch event about the IPython website >> and it sounds like some design work might be >> welcome. (?) I've been lurking on your lists >> to get to know the group some and have now >> forked the site on Github with the aim of >> making it responsive. So far I don't plan on >> revamping the basic shape or colors, but I'm >> interested to hear any design preferences >> from the community... >> >> Best wishes, >> Emily >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.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 >> >> >> >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.com >> >> >> >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.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 >> >> >> >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.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 > > > > > -- > __________________________________ > Emily Schleiner > cordial-emily.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 jsw at fnal.gov Fri Jul 4 16:21:38 2014 From: jsw at fnal.gov (Jon Wilson) Date: Fri, 4 Jul 2014 15:21:38 -0500 Subject: [IPython-dev] website In-Reply-To: <53B70AFB.8040907@fnal.gov> References: <53B6F207.5080709@fnal.gov> <53B70AFB.8040907@fnal.gov> Message-ID: <53B70CD2.5050603@fnal.gov> Hmm, it seems that I cannot open issues on your fork unless you specifically enable them: http://programmers.stackexchange.com/questions/179468/forking-a-repo-on-github-but-allowing-new-issues-on-the-fork Regards, Jon On 07/04/2014 03:13 PM, Jon Wilson wrote: > Hi Emily, > The text is fine on my phone. The gray text issue occurs on my laptop > (Ubuntu 14.04, Firefox 30). Sorry that I wasn't clear about that. > > And, since I just used the word "issue" above, it occurs to me that I > should actually be using github's "issue" feature rather than emailing > you about it. > Regards, > Jon > > On 07/04/2014 02:51 PM, Emily Schleiner wrote: >> Hi Aaron and Jon, >> >> Thanks for the feedback -- hearing about the look of the site on >> multiple devices is especially helpful. :) >> >> Let's see.. the gap in scrolling (preceding images) is something I >> should be able to fix. For the large screen size (1400 or more >> pixels wide) I'll limit the size of the logo so it doesn't look too >> pixelated and increase the margins some. >> >> The gray text on the mobile size sounds like an anomaly based on the >> devices I've seen so far, but I can increase the font weight for >> small devices >> >> Fyi, ideally I would like to redesign the whole structure with >> bootstrap etc but it sounds like it might not be worthwhile if the >> site is going to revamped soon anyway... These adjustments just make >> it possible to see all the content (as it stands) on phones. >> >> Thanks all! >> Emily >> >> >> >> >> >> >> >> >> On Fri, Jul 4, 2014 at 11:27 AM, Jon Wilson > > wrote: >> >> Hi Emily, >> This is quite nice stuff. I'm glad that someone is making the >> effort to make a responsive page without overdesigning things. >> Far too many pages are very difficult to read on mobile devices. >> >> In my browser (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) >> Gecko/20100101 Firefox/30.0), the text appears in a very light >> gray that is quite difficult to read against the white >> background. I don't know quite why this is. >> >> On my phone (Mozilla/5.0 (Android; Mobile; rv:30.0) Gecko/30.0 >> Firefox/30.0), the column widths are a bit rough -- the text in >> the left column is quite narrow, and one piece of the right >> column overruns the column width and causes horizontal >> scrolling. There is also a long vertical gap in the left column >> before reaching the end of the two-column section. Overall, I >> got the initial feeling that the two-column stuff was all >> unimportant gunk (not true, of course) that I had to scroll past >> to get to the real content. I think maybe the sidebar material >> could be moved to the end of the page? >> >> This is only commentary on the front page. I haven't yet taken a >> look at other pages. >> Regards, >> Jon >> >> >> On 07/03/2014 10:42 PM, Emily Schleiner wrote: >>> Here you go: >>> http://cordial-emily.github.io/ >>> >>> -Emily >>> >>> >>> On Thu, Jul 3, 2014 at 5:18 PM, Thomas Kluyver >> > wrote: >>> >>> Thanks Emily. Can we ask you to post a built version of the >>> website somewhere, so that it's easy to look at without >>> cloning the repository and building the site? >>> https://pages.github.com/ is probably the easiest way to do it. >>> >>> Thomas >>> >>> >>> On 3 July 2014 17:15, Emily Schleiner >>> > >>> wrote: >>> >>> For anyone curious to see the changes I made, here is my >>> branch on github: >>> https://github.com/cordial-emily/ipython-website >>> >>> >>> On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner >>> >> > wrote: >>> >>> Hi Thomas, >>> >>> I've already added some responsiveness to the theme >>> you already use -- and in the mean time before you >>> have a complete change this might be helpful to you. >>> I'll just finish up the last couple of adjustments >>> and call it good. >>> >>> Thanks for letting me know! >>> >>> Emily >>> >>> >>> >>> >>> On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver >>> > wrote: >>> >>> Hi Emily, >>> >>> Thanks, I'm flattered that you remembered our >>> conversation. We're actually just working out >>> the details of hiring a designer, someone who >>> was already known to one of the core team. It >>> will probably be a while before we have anything >>> concrete to show from that, but I don't want you >>> to spend a lot of time redesigning our website >>> if we end up replacing it with a completely new >>> site within a year. I'll discuss with the rest >>> of the core team what's happening with the >>> website, but don't get too far into changing it >>> just yet. >>> >>> One possibility is that we could point you to >>> another open source project that's interested in >>> this kind of work. Next week we're at SciPy, a >>> conference where the people behind lots of >>> scientific Python projects get together, so we >>> can ask people there about that. >>> >>> Best wishes, >>> Thomas >>> >>> >>> On 1 July 2014 15:23, Emily Schleiner >>> >> > wrote: >>> >>> Dear IPython developers, >>> >>> A couple of months ago I spoke with Thomas >>> at an Openhatch event about the IPython >>> website and it sounds like some design work >>> might be welcome. (?) I've been lurking on >>> your lists to get to know the group some and >>> have now forked the site on Github with the >>> aim of making it responsive. So far I don't >>> plan on revamping the basic shape or colors, >>> but I'm interested to hear any design >>> preferences from the community... >>> >>> Best wishes, >>> Emily >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.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 >>> >>> >>> >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.com >>> >>> >>> >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.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 >>> >>> >>> >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.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 >> >> >> >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.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 cordial.emily at gmail.com Fri Jul 4 17:24:45 2014 From: cordial.emily at gmail.com (Emily Schleiner) Date: Fri, 4 Jul 2014 14:24:45 -0700 Subject: [IPython-dev] website In-Reply-To: <53B70CD2.5050603@fnal.gov> References: <53B6F207.5080709@fnal.gov> <53B70AFB.8040907@fnal.gov> <53B70CD2.5050603@fnal.gov> Message-ID: Done, you can add the issue here: https://github.com/cordial-emily/cordial-emily.github.io/issues Thanks, Emily On Fri, Jul 4, 2014 at 1:21 PM, Jon Wilson wrote: > Hmm, it seems that I cannot open issues on your fork unless you > specifically enable them: > > http://programmers.stackexchange.com/questions/179468/forking-a-repo-on-github-but-allowing-new-issues-on-the-fork > > Regards, > Jon > > > On 07/04/2014 03:13 PM, Jon Wilson wrote: > > Hi Emily, > The text is fine on my phone. The gray text issue occurs on my laptop > (Ubuntu 14.04, Firefox 30). Sorry that I wasn't clear about that. > > And, since I just used the word "issue" above, it occurs to me that I > should actually be using github's "issue" feature rather than emailing you > about it. > Regards, > Jon > > On 07/04/2014 02:51 PM, Emily Schleiner wrote: > > Hi Aaron and Jon, > > Thanks for the feedback -- hearing about the look of the site on > multiple devices is especially helpful. :) > > Let's see.. the gap in scrolling (preceding images) is something I > should be able to fix. For the large screen size (1400 or more pixels > wide) I'll limit the size of the logo so it doesn't look too pixelated and > increase the margins some. > > The gray text on the mobile size sounds like an anomaly based on the > devices I've seen so far, but I can increase the font weight for small > devices > > Fyi, ideally I would like to redesign the whole structure with bootstrap > etc but it sounds like it might not be worthwhile if the site is going to > revamped soon anyway... These adjustments just make it possible to see all > the content (as it stands) on phones. > > Thanks all! > Emily > > > > > > > > > On Fri, Jul 4, 2014 at 11:27 AM, Jon Wilson wrote: > >> Hi Emily, >> This is quite nice stuff. I'm glad that someone is making the effort to >> make a responsive page without overdesigning things. Far too many pages >> are very difficult to read on mobile devices. >> >> In my browser (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) >> Gecko/20100101 Firefox/30.0), the text appears in a very light gray that is >> quite difficult to read against the white background. I don't know quite >> why this is. >> >> On my phone (Mozilla/5.0 (Android; Mobile; rv:30.0) Gecko/30.0 >> Firefox/30.0), the column widths are a bit rough -- the text in the left >> column is quite narrow, and one piece of the right column overruns the >> column width and causes horizontal scrolling. There is also a long >> vertical gap in the left column before reaching the end of the two-column >> section. Overall, I got the initial feeling that the two-column stuff was >> all unimportant gunk (not true, of course) that I had to scroll past to get >> to the real content. I think maybe the sidebar material could be moved to >> the end of the page? >> >> This is only commentary on the front page. I haven't yet taken a look at >> other pages. >> Regards, >> Jon >> >> >> On 07/03/2014 10:42 PM, Emily Schleiner wrote: >> >> Here you go: >> http://cordial-emily.github.io/ >> >> -Emily >> >> >> On Thu, Jul 3, 2014 at 5:18 PM, Thomas Kluyver wrote: >> >>> Thanks Emily. Can we ask you to post a built version of the website >>> somewhere, so that it's easy to look at without cloning the repository and >>> building the site? https://pages.github.com/ is probably the easiest >>> way to do it. >>> >>> Thomas >>> >>> >>> On 3 July 2014 17:15, Emily Schleiner wrote: >>> >>>> For anyone curious to see the changes I made, here is my branch on >>>> github: >>>> https://github.com/cordial-emily/ipython-website >>>> >>>> >>>> On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner < >>>> cordial.emily at gmail.com> wrote: >>>> >>>>> Hi Thomas, >>>>> >>>>> I've already added some responsiveness to the theme you already use >>>>> -- and in the mean time before you have a complete change this might be >>>>> helpful to you. I'll just finish up the last couple of adjustments and call >>>>> it good. >>>>> >>>>> Thanks for letting me know! >>>>> >>>>> Emily >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver >>>>> wrote: >>>>> >>>>>> Hi Emily, >>>>>> >>>>>> Thanks, I'm flattered that you remembered our conversation. We're >>>>>> actually just working out the details of hiring a designer, someone who was >>>>>> already known to one of the core team. It will probably be a while before >>>>>> we have anything concrete to show from that, but I don't want you to spend >>>>>> a lot of time redesigning our website if we end up replacing it with a >>>>>> completely new site within a year. I'll discuss with the rest of the core >>>>>> team what's happening with the website, but don't get too far into changing >>>>>> it just yet. >>>>>> >>>>>> One possibility is that we could point you to another open source >>>>>> project that's interested in this kind of work. Next week we're at SciPy, a >>>>>> conference where the people behind lots of scientific Python projects get >>>>>> together, so we can ask people there about that. >>>>>> >>>>>> Best wishes, >>>>>> Thomas >>>>>> >>>>>> >>>>>> On 1 July 2014 15:23, Emily Schleiner >>>>>> wrote: >>>>>> >>>>>>> Dear IPython developers, >>>>>>> >>>>>>> A couple of months ago I spoke with Thomas at an Openhatch event >>>>>>> about the IPython website and it sounds like some design work might be >>>>>>> welcome. (?) I've been lurking on your lists to get to know the group some >>>>>>> and have now forked the site on Github with the aim of making it >>>>>>> responsive. So far I don't plan on revamping the basic shape or colors, but >>>>>>> I'm interested to hear any design preferences from the community... >>>>>>> >>>>>>> Best wishes, >>>>>>> Emily >>>>>>> >>>>>>> -- >>>>>>> __________________________________ >>>>>>> Emily Schleiner >>>>>>> cordial-emily.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 >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> __________________________________ >>>>> Emily Schleiner >>>>> cordial-emily.com >>>>> >>>> >>>> >>>> >>>> -- >>>> __________________________________ >>>> Emily Schleiner >>>> cordial-emily.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 >>> >>> >> >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.com >> >> >> _______________________________________________ >> IPython-dev mailing listIPython-dev at scipy.orghttp://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > __________________________________ > Emily Schleiner > cordial-emily.com > > > _______________________________________________ > IPython-dev mailing listIPython-dev at scipy.orghttp://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > _______________________________________________ > IPython-dev mailing listIPython-dev at scipy.orghttp://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- __________________________________ Emily Schleiner cordial-emily.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sjdv1982 at gmail.com Sat Jul 5 21:54:09 2014 From: sjdv1982 at gmail.com (Sjoerd de Vries) Date: Sun, 6 Jul 2014 03:54:09 +0200 Subject: [IPython-dev] (no subject) Message-ID: Hi everyone, First, my compliments to the developers of IPython, a wonderful program that I feel is much underused. In my field of science (protein modelling) it is mostly about large software packages consisting of a cloud of command-line tools. This means that everyone (myself included) uses just the bash shell for interactive work. I consider this situation not ideal at all, and I think that IPython has the potential to provide something much better. However, command-line tool clouds are today's reality, and Python tools (numpy, scipy, matplotlib) just live in another universe until they are wrapped as a command-line tool. I feel that IPython needs to provide a better Python <=> shell interface than it does now. In particular, I have the following problems with it: 1. Python variable expansion within shell commands does not work seamlessly, especially if the command-line tool expects a file or stream. 2. Awk one-liners are mostly broken when entered in IPython. 3. Alias magic is incompatible with shell execution. This means that "%ls" is not the same as "!ls" (very confusing). 4. Shell execution also captures stderr I don't like to give negative criticism, especially since I am fairly new to IPython. So I have coded into IPython a possible solution that solves my problems. Hopefully it will be useful to the community. The code branch is at https://github.com/sjdv1982/ipython.git A detailed proposal is at https://raw.githubusercontent.com/sjdv1982/ipython/master/docs/source/whatsnew/pr/incompat-bangmode.rst All of the examples in the proposal are working with the code branch. cheers Sjoerd -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Sat Jul 5 22:51:01 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Sat, 5 Jul 2014 19:51:01 -0700 Subject: [IPython-dev] (no subject) In-Reply-To: References: Message-ID: Hi Sjoerd, On 5 July 2014 18:54, Sjoerd de Vries wrote: > However, command-line tool clouds are today's reality, and Python tools > (numpy, scipy, matplotlib) just live in another universe until they are > wrapped as a command-line tool. I feel that IPython needs to provide a > better Python <=> shell interface than it does now. In particular, I have > the following problems with it: > > 1. Python variable expansion within shell commands does not work > seamlessly, especially if the command-line tool expects a file or stream. > 2. Awk one-liners are mostly broken when entered in IPython. > 3. Alias magic is incompatible with shell execution. This means that "%ls" > is not the same as "!ls" (very confusing). > 4. Shell execution also captures stderr > > I don't like to give negative criticism, especially since I am fairly new > to IPython. So I have coded into IPython a possible solution that solves my > problems. Hopefully it will be useful to the community. > Thanks. This looks like some really interesting ideas, but I think most or all of it should live as an extension outside core IPython. We try to carefully keep the scope of IPython itself constrained, because it would be very easy for it to expand in a thousand directions, and I don't think this is a direction that the core team would use much, so consequently we wouldn't maintain it very well. If there are some simple hooks or something that IPython needs so you can extend it as you want, we can look at merging that, but things like the %bless magic, converters and parsing shell style pipelines should be in a separate project. You might be interested to know that in older releases of IPython, there was a sh profile which enabled various shell-like features: http://ipython.org/ipython-doc/rel-0.10.2/html/interactive/shell.html . It was broken in the big refactoring for 0.11, although by then several of the extra features had been folded into IPython's default mode, but it was never repaired, and eventually got deleted. Best wishes, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From sjdv1982 at gmail.com Sun Jul 6 16:58:03 2014 From: sjdv1982 at gmail.com (Sjoerd de Vries) Date: Sun, 6 Jul 2014 22:58:03 +0200 Subject: [IPython-dev] (no subject) In-Reply-To: References: Message-ID: Hi Thomas, Thanks. This looks like some really interesting ideas, but I think most or > all of it should live as an extension outside core IPython. We try to > carefully keep the scope of IPython itself constrained, because it would be > very easy for it to expand in a thousand directions, and I don't think this > is a direction that the core team would use much, so consequently we > wouldn't maintain it very well. If there are some simple hooks or something > that IPython needs so you can extend it as you want, we can look at merging > that, but things like the %bless magic, converters and parsing shell style > pipelines should be in a separate project. > You might be interested to know that in older releases of IPython, there > was a sh profile which enabled various shell-like features: > http://ipython.org/ipython-doc/rel-0.10.2/html/interactive/shell.html . > It was broken in the big refactoring for 0.11, although by then several of > the extra features had been folded into IPython's default mode, but it was > never repaired, and eventually got deleted. > > Best wishes, > Thomas > Thank you for your response, but I am a bit sad to hear this. Now that the sh profile is deleted, is system-shell-replacement no longer within the scope of IPython, ? Still, no problem... I can re-code these features as an extension: - %bless would be registered as a separate magic by the extension - Converters would be maintained in a separate module - The PipeEvaluator would be maintained in a separate module - The pipeline parser would be maintained in a separate module In addition, the extension would manipulate input_transformer_manager.logical_line_transforms, so that the standard input transformers "escaped_commands" and "assign_from_system" will be overruled. This is a bit rude, but it should work. However, it would still require the following modifications to the IPython core: - Support for evaluators, and the use of AliasEvaluator by %alias (to allow delayed evaluation) - A hook to change the %alias formatter class from DollarFormatter (to allow customized variable substitution) - A hook in FullEvalFormatter._vformat to be triggered on certain "conversion" values (for converters) - Additional optional arguments to interactiveshell methods "getoutput", "system_piped" and "system_raw" (for variable substitution and stderr capture) None of this would break any existing code. Would this be OK? cheers Sjoerd -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Sun Jul 6 17:51:33 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Sun, 6 Jul 2014 14:51:33 -0700 Subject: [IPython-dev] (no subject) In-Reply-To: References: Message-ID: On Sun, Jul 6, 2014 at 1:58 PM, Sjoerd de Vries wrote: > is system-shell-replacement no longer within the scope of IPython, ? Just to be clear, being a system shell replacement was *never* within the scope of IPython :) The sh profile was mostly a 'party trick' that could be useful in some circumstances, but that's it. Even as biased as I may be to the "ipython everywhere" idea, I *still* think it's not a very good idea to have a tool as complex as IPython playing a role of system shell. That's a job where simplicity and robustness should be more important than fancy features. Having said that, we're always happy to see the community build custom tools that fit their personal needs, even if it's not something that makes sense for the project as a whole. 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 takowl at gmail.com Sun Jul 6 23:03:13 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Sun, 6 Jul 2014 22:03:13 -0500 Subject: [IPython-dev] (no subject) In-Reply-To: References: Message-ID: On 6 July 2014 15:58, Sjoerd de Vries wrote: > Thank you for your response, but I am a bit sad to hear this. Now that the > sh profile is deleted, is system-shell-replacement no longer within the > scope of IPython, ? > As Fernando indicated, that's never really been IPython's aim. Of course we like seeing what people build with IPython, but that use case isn't something we especially support. > In addition, the extension would manipulate > input_transformer_manager.logical_line_transforms, so that the standard > input transformers "escaped_commands" and "assign_from_system" will be > overruled. This is a bit rude, but it should work. > That's OK, the input transformation API is there to allow this kind of extension. This is, however, a 'consenting adults' klnd of API - it's entirely possible to break IPython syntax with this, so it's up to you to ensure that things work together. > However, it would still require the following modifications to the IPython > core: > - Support for evaluators, and the use of AliasEvaluator by %alias (to > allow delayed evaluation) > - A hook to change the %alias formatter class from DollarFormatter (to > allow customized variable substitution) > - A hook in FullEvalFormatter._vformat to be triggered on certain > "conversion" values (for converters) > I think the simplest approach to this is something we've been talking about for a while - we shouldn't call var_expand for all magic commands. The obvious answer to this would be to not do it for any magics, and have the magics that want it call it internally, but we've hesitated because we think var_expand makes sense for the majority of magics, and it seems awkward to make them all call it for the sake of a few that don't. An alternative would be to decorate magic function definitions in some way to indicate that var_expand *shouldn't* be called (and leave calling them as the default). Other than that, magics just get the raw string, so you should be able to do whatever you want with that. > - Additional optional arguments to interactiveshell methods "getoutput", > "system_piped" and "system_raw" (for variable substitution and stderr > capture) > I think an argument for stderr capture makes sense. For controlling variable substitution, it might be easier to go down a level, to the (similarly named) functions which they call after doing var_expand. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.wiecki at gmail.com Mon Jul 7 01:20:51 2014 From: thomas.wiecki at gmail.com (Thomas Wiecki) Date: Mon, 7 Jul 2014 07:20:51 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell Message-ID: Hi all, I'm trying to do some static syntax checks (AST parsing) on the code in an IPyNB cell and then either execute the cell or not. I'd also like to control the output that the cell produces. With the magic-interface I know that I can define a function that gets the cell code as a string. This would work well here except that I want this for all cells. With my limited understanding of the IPyNB internals I would see three ways this could be achieved: * There is a hook in the IPyNB I can use like the magic * I have to change the IPyNB client code to do the analysis before it's sent to the kernel. * I change the kernel to do the analysis. Which of these is the best? Can someone point me to the relevant code section I would need to make changes to? Thanks, Thomas -- Thomas Wiecki PhD candidate, Brown University Quantitative Researcher, Quantopian Inc, Boston -------------- next part -------------- An HTML attachment was scrubbed... URL: From cyrille.rossant at gmail.com Mon Jul 7 05:02:21 2014 From: cyrille.rossant at gmail.com (Cyrille Rossant) Date: Mon, 7 Jul 2014 11:02:21 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: Maybe this can be useful? http://ipython.org/ipython-doc/dev/development/wrapperkernels.html 2014-07-07 7:20 GMT+02:00 Thomas Wiecki : > Hi all, > > I'm trying to do some static syntax checks (AST parsing) on the code in an > IPyNB cell and then either execute the cell or not. I'd also like to > control the output that the cell produces. > > With the magic-interface I know that I can define a function that gets the > cell code as a string. This would work well here except that I want this > for all cells. > > With my limited understanding of the IPyNB internals I would see three > ways this could be achieved: > * There is a hook in the IPyNB I can use like the magic > * I have to change the IPyNB client code to do the analysis before it's > sent to the kernel. > * I change the kernel to do the analysis. > > Which of these is the best? Can someone point me to the relevant code > section I would need to make changes to? > > Thanks, > Thomas > > -- > Thomas Wiecki > PhD candidate, Brown University > Quantitative Researcher, Quantopian Inc, Boston > > _______________________________________________ > 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 sjdv1982 at gmail.com Mon Jul 7 05:12:32 2014 From: sjdv1982 at gmail.com (Sjoerd de Vries) Date: Mon, 7 Jul 2014 11:12:32 +0200 Subject: [IPython-dev] (no subject) In-Reply-To: References: Message-ID: On Mon, Jul 7, 2014 at 5:03 AM, Thomas Kluyver wrote: > On 6 July 2014 15:58, Sjoerd de Vries wrote: > >> Thank you for your response, but I am a bit sad to hear this. Now that >> the sh profile is deleted, is system-shell-replacement no longer within the >> scope of IPython, ? >> > > As Fernando indicated, that's never really been IPython's aim. Of course > we like seeing what people build with IPython, but that use case isn't > something we especially support. > Thank you for this clarification, it's all clear now. I will keep my hacks to myself for now, and I will distribute it as an extension once there are the necessary hooks in IPython. > > >> In addition, the extension would manipulate >> input_transformer_manager.logical_line_transforms, so that the standard >> input transformers "escaped_commands" and "assign_from_system" will be >> overruled. This is a bit rude, but it should work. >> > > That's OK, the input transformation API is there to allow this kind of > extension. This is, however, a 'consenting adults' klnd of API - it's > entirely possible to break IPython syntax with this, so it's up to you to > ensure that things work together. > > OK, I will take care :-) > However, it would still require the following modifications to the IPython >> core: >> - Support for evaluators, and the use of AliasEvaluator by %alias (to >> allow delayed evaluation) >> > - A hook to change the %alias formatter class from DollarFormatter (to >> allow customized variable substitution) >> - A hook in FullEvalFormatter._vformat to be triggered on certain >> "conversion" values (for converters) >> > > I think the simplest approach to this is something we've been talking > about for a while - we shouldn't call var_expand for all magic commands. > The obvious answer to this would be to not do it for any magics, and have > the magics that want it call it internally, but we've hesitated because we > think var_expand makes sense for the majority of magics, and it seems > awkward to make them all call it for the sake of a few that don't. An > alternative would be to decorate magic function definitions in some way to > indicate that var_expand *shouldn't* be called (and leave calling them as > the default). > > This would be great! Perhaps an @expand_variable decorator for IPython.core.magic.Magics? I hope that the var_expand policy for each magic will be stored somewhere, to make it overridable by "consenting adults" ;-) > >> - A hook to change the %alias formatter class from DollarFormatter (to >> allow customized variable substitution) >> - A hook in FullEvalFormatter._vformat to be triggered on certain >> "conversion" values (for converters) >> > What about these hooks, would they be OK? I can make a new branch with just this, it's a dozen lines or less. > >> - Additional optional arguments to interactiveshell methods >> "getoutput", "system_piped" and "system_raw" (for variable substitution and >> stderr capture) >> > > I think an argument for stderr capture makes sense. For controlling > variable substitution, it might be easier to go down a level, to the > (similarly named) functions which they call after doing var_expand. > Well, I can copy-paste "getoutput" and "system_piped" into my own extension and make the necessary changes there, if that's best. cheers Sjoerd -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Mon Jul 7 09:19:16 2014 From: ellisonbg at gmail.com (Brian Granger) Date: Mon, 7 Jul 2014 08:19:16 -0500 Subject: [IPython-dev] website In-Reply-To: References: <53B6F207.5080709@fnal.gov> <53B70AFB.8040907@fnal.gov> <53B70CD2.5050603@fnal.gov> Message-ID: Emily, can you open a pull request so we can see and discuss the diffs more easily? On Fri, Jul 4, 2014 at 4:24 PM, Emily Schleiner wrote: > Done, you can add the issue here: > https://github.com/cordial-emily/cordial-emily.github.io/issues > > Thanks, > Emily > > > On Fri, Jul 4, 2014 at 1:21 PM, Jon Wilson wrote: >> >> Hmm, it seems that I cannot open issues on your fork unless you >> specifically enable them: >> >> http://programmers.stackexchange.com/questions/179468/forking-a-repo-on-github-but-allowing-new-issues-on-the-fork >> >> Regards, >> Jon >> >> >> On 07/04/2014 03:13 PM, Jon Wilson wrote: >> >> Hi Emily, >> The text is fine on my phone. The gray text issue occurs on my laptop >> (Ubuntu 14.04, Firefox 30). Sorry that I wasn't clear about that. >> >> And, since I just used the word "issue" above, it occurs to me that I >> should actually be using github's "issue" feature rather than emailing you >> about it. >> Regards, >> Jon >> >> On 07/04/2014 02:51 PM, Emily Schleiner wrote: >> >> Hi Aaron and Jon, >> >> Thanks for the feedback -- hearing about the look of the site on multiple >> devices is especially helpful. :) >> >> Let's see.. the gap in scrolling (preceding images) is something I should >> be able to fix. For the large screen size (1400 or more pixels wide) I'll >> limit the size of the logo so it doesn't look too pixelated and increase the >> margins some. >> >> The gray text on the mobile size sounds like an anomaly based on the >> devices I've seen so far, but I can increase the font weight for small >> devices >> >> Fyi, ideally I would like to redesign the whole structure with bootstrap >> etc but it sounds like it might not be worthwhile if the site is going to >> revamped soon anyway... These adjustments just make it possible to see all >> the content (as it stands) on phones. >> >> Thanks all! >> Emily >> >> >> >> >> >> >> >> >> On Fri, Jul 4, 2014 at 11:27 AM, Jon Wilson wrote: >>> >>> Hi Emily, >>> This is quite nice stuff. I'm glad that someone is making the effort to >>> make a responsive page without overdesigning things. Far too many pages are >>> very difficult to read on mobile devices. >>> >>> In my browser (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) >>> Gecko/20100101 Firefox/30.0), the text appears in a very light gray that is >>> quite difficult to read against the white background. I don't know quite >>> why this is. >>> >>> On my phone (Mozilla/5.0 (Android; Mobile; rv:30.0) Gecko/30.0 >>> Firefox/30.0), the column widths are a bit rough -- the text in the left >>> column is quite narrow, and one piece of the right column overruns the >>> column width and causes horizontal scrolling. There is also a long vertical >>> gap in the left column before reaching the end of the two-column section. >>> Overall, I got the initial feeling that the two-column stuff was all >>> unimportant gunk (not true, of course) that I had to scroll past to get to >>> the real content. I think maybe the sidebar material could be moved to the >>> end of the page? >>> >>> This is only commentary on the front page. I haven't yet taken a look at >>> other pages. >>> Regards, >>> Jon >>> >>> >>> On 07/03/2014 10:42 PM, Emily Schleiner wrote: >>> >>> Here you go: >>> http://cordial-emily.github.io/ >>> >>> -Emily >>> >>> >>> On Thu, Jul 3, 2014 at 5:18 PM, Thomas Kluyver wrote: >>>> >>>> Thanks Emily. Can we ask you to post a built version of the website >>>> somewhere, so that it's easy to look at without cloning the repository and >>>> building the site? https://pages.github.com/ is probably the easiest way to >>>> do it. >>>> >>>> Thomas >>>> >>>> >>>> On 3 July 2014 17:15, Emily Schleiner wrote: >>>>> >>>>> For anyone curious to see the changes I made, here is my branch on >>>>> github: >>>>> https://github.com/cordial-emily/ipython-website >>>>> >>>>> >>>>> On Wed, Jul 2, 2014 at 11:25 AM, Emily Schleiner >>>>> wrote: >>>>>> >>>>>> Hi Thomas, >>>>>> >>>>>> I've already added some responsiveness to the theme you already use -- >>>>>> and in the mean time before you have a complete change this might be helpful >>>>>> to you. I'll just finish up the last couple of adjustments and call it good. >>>>>> >>>>>> Thanks for letting me know! >>>>>> >>>>>> Emily >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Jul 2, 2014 at 10:58 AM, Thomas Kluyver >>>>>> wrote: >>>>>>> >>>>>>> Hi Emily, >>>>>>> >>>>>>> Thanks, I'm flattered that you remembered our conversation. We're >>>>>>> actually just working out the details of hiring a designer, someone who was >>>>>>> already known to one of the core team. It will probably be a while before we >>>>>>> have anything concrete to show from that, but I don't want you to spend a >>>>>>> lot of time redesigning our website if we end up replacing it with a >>>>>>> completely new site within a year. I'll discuss with the rest of the core >>>>>>> team what's happening with the website, but don't get too far into changing >>>>>>> it just yet. >>>>>>> >>>>>>> One possibility is that we could point you to another open source >>>>>>> project that's interested in this kind of work. Next week we're at SciPy, a >>>>>>> conference where the people behind lots of scientific Python projects get >>>>>>> together, so we can ask people there about that. >>>>>>> >>>>>>> Best wishes, >>>>>>> Thomas >>>>>>> >>>>>>> >>>>>>> On 1 July 2014 15:23, Emily Schleiner >>>>>>> wrote: >>>>>>>> >>>>>>>> Dear IPython developers, >>>>>>>> >>>>>>>> A couple of months ago I spoke with Thomas at an Openhatch event >>>>>>>> about the IPython website and it sounds like some design work might be >>>>>>>> welcome. (?) I've been lurking on your lists to get to know the group some >>>>>>>> and have now forked the site on Github with the aim of making it responsive. >>>>>>>> So far I don't plan on revamping the basic shape or colors, but I'm >>>>>>>> interested to hear any design preferences from the community... >>>>>>>> >>>>>>>> Best wishes, >>>>>>>> Emily >>>>>>>> >>>>>>>> -- >>>>>>>> __________________________________ >>>>>>>> Emily Schleiner >>>>>>>> cordial-emily.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 >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> __________________________________ >>>>>> Emily Schleiner >>>>>> cordial-emily.com >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> __________________________________ >>>>> Emily Schleiner >>>>> cordial-emily.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 >>>> >>> >>> >>> >>> -- >>> __________________________________ >>> Emily Schleiner >>> cordial-emily.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 >>> >> >> >> >> -- >> __________________________________ >> Emily Schleiner >> cordial-emily.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 >> > > > > -- > __________________________________ > Emily Schleiner > cordial-emily.com > > _______________________________________________ > 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 @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com From takowl at gmail.com Mon Jul 7 09:47:13 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 7 Jul 2014 08:47:13 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: On 7 July 2014 00:20, Thomas Wiecki wrote: > With my limited understanding of the IPyNB internals I would see three > ways this could be achieved: > * There is a hook in the IPyNB I can use like the magic > * I have to change the IPyNB client code to do the analysis before it's > sent to the kernel. > * I change the kernel to do the analysis. > > Which of these is the best? Can someone point me to the relevant code > section I would need to make changes to? I think you can make use of the hooks already in the kernel. If you're just checking the AST, it's fairly straightforward: just register an AST transformer as described here: http://ipython.org/ipython-doc/dev/config/inputtransforms.html#ast-transformations . It doesn't need to do any transformations: you can simply inspect the code and return it unchanged. Or you can replace it all with Pass() to prevent the cell from executing. It would still look as if it had executed from the frontend, though. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.hirschfeld at gmail.com Mon Jul 7 12:04:24 2014 From: dave.hirschfeld at gmail.com (Dave Hirschfeld) Date: Mon, 7 Jul 2014 16:04:24 +0000 (UTC) Subject: [IPython-dev] ipython trust mynotebook doesn't work Message-ID: I'm trying to share a notebook however running ipython trust mynotebook.ipynb from the command line results in Signing notebook: .\mynotebook.ipynb and I can then see a signature field has been added to the notebook metadata however I still can't see the html output in the notebook!? Is anyone else having problems with the notebook security? Thanks, Dave From fperez.net at gmail.com Mon Jul 7 12:07:23 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 7 Jul 2014 11:07:23 -0500 Subject: [IPython-dev] ipython trust mynotebook doesn't work In-Reply-To: References: Message-ID: Hi Dave, there seems to be an issue with the trust command, it was just reported on the tracker: https://github.com/ipython/ipython/issues/6091 In the meantime, can you try using the "trust this notebook" dialog in the file menu? Please let us know if that helps... Best f On Mon, Jul 7, 2014 at 11:04 AM, Dave Hirschfeld wrote: > I'm trying to share a notebook however running > > ipython trust mynotebook.ipynb > > from the command line results in > > Signing notebook: .\mynotebook.ipynb > > and I can then see a signature field has been added to the notebook > metadata > however I still can't see the html output in the notebook!? > > Is anyone else having problems with the notebook security? > > Thanks, > Dave > > > _______________________________________________ > 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 fperez.net at gmail.com Mon Jul 7 12:07:23 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 7 Jul 2014 11:07:23 -0500 Subject: [IPython-dev] ipython trust mynotebook doesn't work In-Reply-To: References: Message-ID: Hi Dave, there seems to be an issue with the trust command, it was just reported on the tracker: https://github.com/ipython/ipython/issues/6091 In the meantime, can you try using the "trust this notebook" dialog in the file menu? Please let us know if that helps... Best f On Mon, Jul 7, 2014 at 11:04 AM, Dave Hirschfeld wrote: > I'm trying to share a notebook however running > > ipython trust mynotebook.ipynb > > from the command line results in > > Signing notebook: .\mynotebook.ipynb > > and I can then see a signature field has been added to the notebook > metadata > however I still can't see the html output in the notebook!? > > Is anyone else having problems with the notebook security? > > Thanks, > Dave > > > _______________________________________________ > 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 thomas.wiecki at gmail.com Mon Jul 7 12:41:31 2014 From: thomas.wiecki at gmail.com (Thomas Wiecki) Date: Mon, 7 Jul 2014 18:41:31 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: Thanks, I think the wrapper kernel will give me more freedom. Once I have the kernel.json, how can I launch an IPython NB with this new kernel? Couldn't find a way to link to the json file. On Mon, Jul 7, 2014 at 3:47 PM, Thomas Kluyver wrote: > On 7 July 2014 00:20, Thomas Wiecki wrote: > >> With my limited understanding of the IPyNB internals I would see three >> ways this could be achieved: >> * There is a hook in the IPyNB I can use like the magic >> * I have to change the IPyNB client code to do the analysis before it's >> sent to the kernel. >> * I change the kernel to do the analysis. >> >> Which of these is the best? Can someone point me to the relevant code >> section I would need to make changes to? > > > I think you can make use of the hooks already in the kernel. If you're > just checking the AST, it's fairly straightforward: just register an AST > transformer as described here: > http://ipython.org/ipython-doc/dev/config/inputtransforms.html#ast-transformations > . It doesn't need to do any transformations: you can simply inspect the > code and return it unchanged. Or you can replace it all with Pass() to > prevent the cell from executing. It would still look as if it had executed > from the frontend, though. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Thomas Wiecki PhD candidate, Brown University Quantitative Researcher, Quantopian Inc, Boston -------------- next part -------------- An HTML attachment was scrubbed... URL: From alessandro.gagliardi at glassdoor.com Mon Jul 7 12:46:47 2014 From: alessandro.gagliardi at glassdoor.com (Alessandro Gagliardi) Date: Mon, 7 Jul 2014 16:46:47 +0000 Subject: [IPython-dev] toggle line numbers on Mac Message-ID: Stupid question, but I can?t find the answer online. (Maybe I?m Googling it wrong.) Anyway, keyboard shortcuts on a Mac says Cmd+l: toggle line numbers. But when I try Cmd+l in Firefox or Chrome, the browser intercepts it and puts my cursor in the address field. Any idea how to fix this? Thanks, -Alessandro -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Jul 7 12:48:43 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 7 Jul 2014 11:48:43 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: On 7 July 2014 11:41, Thomas Wiecki wrote: > Once I have the kernel.json, how can I launch an IPython NB with this new > kernel? Couldn't find a way to link to the json file. That part's not implemented yet - once it is, there will be a dropdown menu in the notebook UI to select kernels. For now, you need to start the notebook server with a long command like this: ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module']" -------------- next part -------------- An HTML attachment was scrubbed... URL: From jiffyclub at gmail.com Mon Jul 7 12:51:59 2014 From: jiffyclub at gmail.com (Matt Davis) Date: Mon, 7 Jul 2014 09:51:59 -0700 Subject: [IPython-dev] toggle line numbers on Mac In-Reply-To: References: Message-ID: If you're using IPython 2+ with the new modal interface then just "l" while in command mode will toggle line numbers. On older IPython versions maybe it's ctrl-l? - Matt On Mon, Jul 7, 2014 at 9:46 AM, Alessandro Gagliardi < alessandro.gagliardi at glassdoor.com> wrote: > Stupid question, but I can?t find the answer online. (Maybe I?m Googling > it wrong.) Anyway, keyboard shortcuts on a Mac says Cmd+l: toggle line > numbers. But when I try Cmd+l in Firefox or Chrome, the browser intercepts > it and puts my cursor in the address field. Any idea how to fix this? > > Thanks, > -Alessandro > > _______________________________________________ > 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 Mon Jul 7 12:53:30 2014 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 7 Jul 2014 18:53:30 +0200 Subject: [IPython-dev] toggle line numbers on Mac In-Reply-To: References: Message-ID: <2317F1B6-FB1E-40BF-A53D-0B29274D28D2@gmail.com> Le 7 juil. 2014 ? 18:46, Alessandro Gagliardi a ?crit : > Stupid question, but I can?t find the answer online. (Maybe I?m Googling it wrong.) Anyway, > keyboard shortcuts on a Mac says Cmd+l: toggle line numbers. Where does it says that (so that it could be fixed) ? Which version of IPython ? In 2.0 and above, in command mode 'L' should be sufficient. An Ctrl+M, L on previous versions. -- M > But when I try Cmd+l in Firefox or Chrome, the browser intercepts it and puts my cursor in the address field. Any idea how to fix this? > > Thanks, > -Alessandro > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From thomas.wiecki at gmail.com Mon Jul 7 12:57:54 2014 From: thomas.wiecki at gmail.com (Thomas Wiecki) Date: Mon, 7 Jul 2014 18:57:54 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: OK, that seems to work. I copy&pasted the EchoKernel example but it seems to stall (cell id turns to * and stays that way). Any way I can debug this? print's don't seem to get shown. On Mon, Jul 7, 2014 at 6:48 PM, Thomas Kluyver wrote: > On 7 July 2014 11:41, Thomas Wiecki wrote: > >> Once I have the kernel.json, how can I launch an IPython NB with this new >> kernel? Couldn't find a way to link to the json file. > > > That part's not implemented yet - once it is, there will be a dropdown > menu in the notebook UI to select kernels. For now, you need to start the > notebook server with a long command like this: > > ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module']" > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Thomas Wiecki PhD candidate, Brown University Quantitative Researcher, Quantopian Inc, Boston -------------- next part -------------- An HTML attachment was scrubbed... URL: From alessandro.gagliardi at glassdoor.com Mon Jul 7 13:00:27 2014 From: alessandro.gagliardi at glassdoor.com (Alessandro Gagliardi) Date: Mon, 7 Jul 2014 17:00:27 +0000 Subject: [IPython-dev] IPython-dev Digest, Vol 126, Issue 19 In-Reply-To: Message-ID: Ah, quite so. The help says: Cmd ? s : save notebook l : toggle line numbers o : toggle output I mistakenly assumed the ?Cmd? applied to the following two commands as well. As I said, stupid question. :) Thanks, -Alessandro Date: Mon, 7 Jul 2014 09:51:59 -0700 From: Matt Davis > Subject: Re: [IPython-dev] toggle line numbers on Mac To: IPython developers list > Message-ID: > Content-Type: text/plain; charset="utf-8" If you're using IPython 2+ with the new modal interface then just "l" while in command mode will toggle line numbers. On older IPython versions maybe it's ctrl-l? - Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Mon Jul 7 13:02:28 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 7 Jul 2014 12:02:28 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: Try it first using a terminal client: ipython console --existing ... .json. Once you know that works, move over to the notebook. Less moving parts.... f On Mon, Jul 7, 2014 at 11:57 AM, Thomas Wiecki wrote: > OK, that seems to work. I copy&pasted the EchoKernel example but it seems > to stall (cell id turns to * and stays that way). Any way I can debug this? > print's don't seem to get shown. > > > On Mon, Jul 7, 2014 at 6:48 PM, Thomas Kluyver wrote: > >> On 7 July 2014 11:41, Thomas Wiecki wrote: >> >>> Once I have the kernel.json, how can I launch an IPython NB with this >>> new kernel? Couldn't find a way to link to the json file. >> >> >> That part's not implemented yet - once it is, there will be a dropdown >> menu in the notebook UI to select kernels. For now, you need to start the >> notebook server with a long command like this: >> >> ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module']" >> >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > Thomas Wiecki > PhD candidate, Brown University > Quantitative Researcher, Quantopian Inc, Boston > > _______________________________________________ > 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 dave.hirschfeld at gmail.com Mon Jul 7 13:04:24 2014 From: dave.hirschfeld at gmail.com (Dave Hirschfeld) Date: Mon, 7 Jul 2014 17:04:24 +0000 (UTC) Subject: [IPython-dev] ipython trust mynotebook doesn't work References: Message-ID: Fernando Perez gmail.com> writes: > > > Hi Dave, > there seems to be an issue with the trust command, it was just reported on the tracker: > > > https://github.com/ipython/ipython/issues/6091 > > > In the meantime, can you try?using the "trust this notebook" dialog in the file menu? Please let us know if that helps... > > Best > > > f > > I don't seem to have that option - I'm guessing that's in a not-yet-released version of IPython? In [14]: print sys_info() {'commit_hash': '681fd77', 'commit_source': 'installation', 'default_encoding': 'cp1252', 'ipython_path': 'C:\\dev\\bin\\Anaconda\\lib\\site-packages\\IPython', 'ipython_version': '2.1.0', 'os_name': 'nt', 'platform': 'Windows-7-6.1.7601-SP1', 'sys_executable': 'C:\\dev\\bin\\Anaconda\\python.exe', 'sys_platform': 'win32', 'sys_version': '2.7.5 |Anaconda 2.0.0 (64-bit)| (default, Jul 1 2013, 12:37:52) [MSC v.1500 64 bit (AMD64)]'} http://imgur.com/t54RizV If so, I can test out master a bit later and report back... -Dave From nathan12343 at gmail.com Mon Jul 7 13:09:23 2014 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Mon, 7 Jul 2014 12:09:23 -0500 Subject: [IPython-dev] ipython trust mynotebook doesn't work In-Reply-To: References: Message-ID: It should be on the "File" dropdown menu is the notebook web interface. On Monday, July 7, 2014, Dave Hirschfeld wrote: > Fernando Perez gmail.com> writes: > > > > > > > Hi Dave, > > there seems to be an issue with the trust command, it was just reported > on > the tracker: > > > > > > https://github.com/ipython/ipython/issues/6091 > > > > > > In the meantime, can you try using the "trust this notebook" dialog in > the > file menu? Please let us know if that helps... > > > > Best > > > > > > f > > > > > > I don't seem to have that option - I'm guessing that's in a > not-yet-released > version of IPython? > > In [14]: print sys_info() > {'commit_hash': '681fd77', > 'commit_source': 'installation', > 'default_encoding': 'cp1252', > 'ipython_path': 'C:\\dev\\bin\\Anaconda\\lib\\site-packages\\IPython', > 'ipython_version': '2.1.0', > 'os_name': 'nt', > 'platform': 'Windows-7-6.1.7601-SP1', > 'sys_executable': 'C:\\dev\\bin\\Anaconda\\python.exe', > 'sys_platform': 'win32', > 'sys_version': '2.7.5 |Anaconda 2.0.0 (64-bit)| (default, Jul 1 2013, > 12:37:52) [MSC v.1500 64 bit (AMD64)]'} > > http://imgur.com/t54RizV > > > If so, I can test out master a bit later and report back... > > -Dave > > > > _______________________________________________ > 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 nathan12343 at gmail.com Mon Jul 7 13:09:23 2014 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Mon, 7 Jul 2014 12:09:23 -0500 Subject: [IPython-dev] ipython trust mynotebook doesn't work In-Reply-To: References: Message-ID: It should be on the "File" dropdown menu is the notebook web interface. On Monday, July 7, 2014, Dave Hirschfeld wrote: > Fernando Perez gmail.com> writes: > > > > > > > Hi Dave, > > there seems to be an issue with the trust command, it was just reported > on > the tracker: > > > > > > https://github.com/ipython/ipython/issues/6091 > > > > > > In the meantime, can you try using the "trust this notebook" dialog in > the > file menu? Please let us know if that helps... > > > > Best > > > > > > f > > > > > > I don't seem to have that option - I'm guessing that's in a > not-yet-released > version of IPython? > > In [14]: print sys_info() > {'commit_hash': '681fd77', > 'commit_source': 'installation', > 'default_encoding': 'cp1252', > 'ipython_path': 'C:\\dev\\bin\\Anaconda\\lib\\site-packages\\IPython', > 'ipython_version': '2.1.0', > 'os_name': 'nt', > 'platform': 'Windows-7-6.1.7601-SP1', > 'sys_executable': 'C:\\dev\\bin\\Anaconda\\python.exe', > 'sys_platform': 'win32', > 'sys_version': '2.7.5 |Anaconda 2.0.0 (64-bit)| (default, Jul 1 2013, > 12:37:52) [MSC v.1500 64 bit (AMD64)]'} > > http://imgur.com/t54RizV > > > If so, I can test out master a bit later and report back... > > -Dave > > > > _______________________________________________ > 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 jenshnielsen at gmail.com Mon Jul 7 13:50:36 2014 From: jenshnielsen at gmail.com (Jens Nielsen) Date: Mon, 7 Jul 2014 12:50:36 -0500 Subject: [IPython-dev] toggle line numbers on Mac In-Reply-To: <2317F1B6-FB1E-40BF-A53D-0B29274D28D2@gmail.com> References: <2317F1B6-FB1E-40BF-A53D-0B29274D28D2@gmail.com> Message-ID: Matthias, I think the issue is that all shortcuts below cmd-s, which are just a single character, are read as implicit cmd + char. I.e. this issue https://github.com/ipython/ipython/issues/5531 /Jens On Mon, Jul 7, 2014 at 11:53 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 7 juil. 2014 ? 18:46, Alessandro Gagliardi a ?crit : > > > Stupid question, but I can?t find the answer online. (Maybe I?m Googling > it wrong.) Anyway, > > > > keyboard shortcuts on a Mac says Cmd+l: toggle line numbers. > > Where does it says that (so that it could be fixed) ? Which version of > IPython ? > > In 2.0 and above, in command mode 'L' should be sufficient. An Ctrl+M, L > on previous versions. > -- > M > > > > But when I try Cmd+l in Firefox or Chrome, the browser intercepts it and > puts my cursor in the address field. Any idea how to fix this? > > > > Thanks, > > -Alessandro > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Jul 7 14:18:42 2014 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 7 Jul 2014 20:18:42 +0200 Subject: [IPython-dev] toggle line numbers on Mac In-Reply-To: References: <2317F1B6-FB1E-40BF-A53D-0B29274D28D2@gmail.com> Message-ID: <43E86FBB-7216-4F40-9519-086298187393@gmail.com> Le 7 juil. 2014 ? 19:50, Jens Nielsen a ?crit : > Matthias, I think the issue is that all shortcuts below cmd-s, which are just a single character, are read as implicit cmd + char. > I.e. this issue https://github.com/ipython/ipython/issues/5531 I yes, I see. Maybe we should reopen the issue to find a way to fix that. -- M > > /Jens > > > On Mon, Jul 7, 2014 at 11:53 AM, Matthias Bussonnier wrote: > > Le 7 juil. 2014 ? 18:46, Alessandro Gagliardi a ?crit : > > > Stupid question, but I can?t find the answer online. (Maybe I?m Googling it wrong.) Anyway, > > > > keyboard shortcuts on a Mac says Cmd+l: toggle line numbers. > > Where does it says that (so that it could be fixed) ? Which version of IPython ? > > In 2.0 and above, in command mode 'L' should be sufficient. An Ctrl+M, L on previous versions. > -- > M > > > > But when I try Cmd+l in Firefox or Chrome, the browser intercepts it and puts my cursor in the address field. Any idea how to fix this? > > > > Thanks, > > -Alessandro > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://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 thomas.wiecki at gmail.com Mon Jul 7 14:21:07 2014 From: thomas.wiecki at gmail.com (Thomas Wiecki) Date: Mon, 7 Jul 2014 20:21:07 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: Thanks Fernando. I launch the kernel, but once I connect with the console this happens: >>python echokernel.py main NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. To exit, you will have to explicitly quit this process, by either sending "quit" from a client, or using Ctrl-\ in UNIX-like environments. To read more about this, see https://github.com/ipython/ipython/issues/2049 To connect another client to this kernel, use: --existing kernel-22662.json [IPKernelApp] ERROR | Invalid Message Traceback (most recent call last): File "/home/wiecki/envs/zipline_ipydev/lib/python2.7/site-packages/IPython/kernel/zmq/kernelbase.py", line 160, in dispatch_shell msg = self.session.unserialize(msg, content=True, copy=False) File "/home/wiecki/envs/zipline_ipydev/lib/python2.7/site-packages/IPython/kernel/zmq/session.py", line 822, in unserialize raise ValueError("Invalid Signature: %r" % signature) ValueError: Invalid Signature: '5a5e527fdb5c50a2fbeb2d6cdecb974ce32531c535c6adf8dc6ed124df112fb4' [IPKernelApp] ERROR | Invalid Message On Mon, Jul 7, 2014 at 7:02 PM, Fernando Perez wrote: > Try it first using a terminal client: > > > ipython console --existing ... .json. > > Once you know that works, move over to the notebook. Less moving parts.... > > f > > > On Mon, Jul 7, 2014 at 11:57 AM, Thomas Wiecki > wrote: > >> OK, that seems to work. I copy&pasted the EchoKernel example but it seems >> to stall (cell id turns to * and stays that way). Any way I can debug this? >> print's don't seem to get shown. >> >> >> On Mon, Jul 7, 2014 at 6:48 PM, Thomas Kluyver wrote: >> >>> On 7 July 2014 11:41, Thomas Wiecki wrote: >>> >>>> Once I have the kernel.json, how can I launch an IPython NB with this >>>> new kernel? Couldn't find a way to link to the json file. >>> >>> >>> That part's not implemented yet - once it is, there will be a dropdown >>> menu in the notebook UI to select kernels. For now, you need to start the >>> notebook server with a long command like this: >>> >>> ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module']" >>> >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> >> -- >> Thomas Wiecki >> PhD candidate, Brown University >> Quantitative Researcher, Quantopian Inc, Boston >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Thomas Wiecki PhD candidate, Brown University Quantitative Researcher, Quantopian Inc, Boston -------------- next part -------------- An HTML attachment was scrubbed... URL: From cyrille.rossant at gmail.com Mon Jul 7 14:34:41 2014 From: cyrille.rossant at gmail.com (Cyrille Rossant) Date: Mon, 7 Jul 2014 20:34:41 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: I think you have to use ipython qtconsole --kernel ... Le lundi 7 juillet 2014, Thomas Wiecki a ?crit : > Thanks Fernando. > > I launch the kernel, but once I connect with the console this happens: > > >>python echokernel.py > main > NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. > > To exit, you will have to explicitly quit this process, by either sending > "quit" from a client, or using Ctrl-\ in UNIX-like environments. > > To read more about this, see > https://github.com/ipython/ipython/issues/2049 > > > To connect another client to this kernel, use: > --existing kernel-22662.json > [IPKernelApp] ERROR | Invalid Message > Traceback (most recent call last): > File > "/home/wiecki/envs/zipline_ipydev/lib/python2.7/site-packages/IPython/kernel/zmq/kernelbase.py", > line 160, in dispatch_shell > msg = self.session.unserialize(msg, content=True, copy=False) > File > "/home/wiecki/envs/zipline_ipydev/lib/python2.7/site-packages/IPython/kernel/zmq/session.py", > line 822, in unserialize > raise ValueError("Invalid Signature: %r" % signature) > ValueError: Invalid Signature: > '5a5e527fdb5c50a2fbeb2d6cdecb974ce32531c535c6adf8dc6ed124df112fb4' > [IPKernelApp] ERROR | Invalid Message > > > On Mon, Jul 7, 2014 at 7:02 PM, Fernando Perez > wrote: > >> Try it first using a terminal client: >> >> >> ipython console --existing ... .json. >> >> Once you know that works, move over to the notebook. Less moving parts.... >> >> f >> >> >> On Mon, Jul 7, 2014 at 11:57 AM, Thomas Wiecki > > wrote: >> >>> OK, that seems to work. I copy&pasted the EchoKernel example but it >>> seems to stall (cell id turns to * and stays that way). Any way I can debug >>> this? print's don't seem to get shown. >>> >>> >>> On Mon, Jul 7, 2014 at 6:48 PM, Thomas Kluyver >> > wrote: >>> >>>> On 7 July 2014 11:41, Thomas Wiecki >>> > wrote: >>>> >>>>> Once I have the kernel.json, how can I launch an IPython NB with this >>>>> new kernel? Couldn't find a way to link to the json file. >>>> >>>> >>>> That part's not implemented yet - once it is, there will be a dropdown >>>> menu in the notebook UI to select kernels. For now, you need to start the >>>> notebook server with a long command like this: >>>> >>>> ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module']" >>>> >>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> >>> -- >>> Thomas Wiecki >>> PhD candidate, Brown University >>> Quantitative Researcher, Quantopian Inc, Boston >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> >> -- >> Fernando Perez (@fperez_org; http://fperez.org) >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) >> fernando.perez-at-berkeley: contact me here for any direct mail >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > Thomas Wiecki > PhD candidate, Brown University > Quantitative Researcher, Quantopian Inc, Boston > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Jul 7 14:42:04 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 7 Jul 2014 13:42:04 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: On 7 July 2014 13:34, Cyrille Rossant wrote: > I think you have to use ipython qtconsole --kernel ... No, it should work with ipython console as well. Thomas, are you using current master IPython on both sides? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Mon Jul 7 14:43:58 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 7 Jul 2014 13:43:58 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: On Mon, Jul 7, 2014 at 1:42 PM, Thomas Kluyver wrote: > No, it should work with ipython console as well. > > Thomas, are you using current master IPython on both sides? > I can reproduce the problem on master as well... Best f -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Jul 7 14:50:32 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 7 Jul 2014 13:50:32 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: On 7 July 2014 13:43, Fernando Perez wrote: > I can reproduce the problem on master as well... OK, so can I, in fact. I'll investigate later on, unless Min beats me to it. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Mon Jul 7 15:06:12 2014 From: benjaminrk at gmail.com (MinRK) Date: Mon, 7 Jul 2014 14:06:12 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: Race! Not sure what caused it, but the fix is here . -MinRK ? On Mon, Jul 7, 2014 at 1:50 PM, Thomas Kluyver wrote: > On 7 July 2014 13:43, Fernando Perez wrote: > >> I can reproduce the problem on master as well... > > > OK, so can I, in fact. I'll investigate later on, unless Min beats me to > it. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Jul 7 15:09:23 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 7 Jul 2014 14:09:23 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: Well, debugging-by-invoking-Min succeeds again. ;-) On 7 July 2014 14:06, MinRK wrote: > Race! > > Not sure what caused it, but the fix is here > . > > -MinRK > ? > > > On Mon, Jul 7, 2014 at 1:50 PM, Thomas Kluyver wrote: > >> On 7 July 2014 13:43, Fernando Perez wrote: >> >>> I can reproduce the problem on master as well... >> >> >> OK, so can I, in fact. I'll investigate later on, unless Min beats me to >> it. >> >> Thomas >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 bjonen at gmail.com Mon Jul 7 15:27:31 2014 From: bjonen at gmail.com (bjonen) Date: Mon, 7 Jul 2014 12:27:31 -0700 (PDT) Subject: [IPython-dev] Getting the size of ipython notebook cell Message-ID: <1404761251524-5063264.post@n6.nabble.com> Hey giuys, I am working on a patch for pandas that allows a dataframe's string representation to scale with the height and width of the terminal. It would be nice to make this possible in the ipython notebook also. However, for this I would need a way to infer the current size of a cell in the notebook to cut the dataframe appropriately. Anybody know a way to do this? For completeness, here the link to the corresponding pandas issue: https://github.com/pydata/pandas/issues/7180#issuecomment-47335444 Thanks, Benjamin -- View this message in context: http://python.6.x6.nabble.com/Getting-the-size-of-ipython-notebook-cell-tp5063264.html Sent from the IPython - Development mailing list archive at Nabble.com. From takowl at gmail.com Mon Jul 7 15:35:27 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 7 Jul 2014 14:35:27 -0500 Subject: [IPython-dev] Getting the size of ipython notebook cell In-Reply-To: <1404761251524-5063264.post@n6.nabble.com> References: <1404761251524-5063264.post@n6.nabble.com> Message-ID: On 7 July 2014 14:27, bjonen wrote: > I am working on a patch for pandas that allows a dataframe's string > representation to scale with the height and width of the terminal. > It would be nice to make this possible in the ipython notebook also. > However, for this I would need a way to infer the current size of a cell in > the notebook to cut the dataframe appropriately. > > Anybody know a way to do this? > There's certainly no practical way to do this at the moment, and I don't think we should add one. For instance, what if the user resizes their browser after displaying it? What if they share the notebook with people whose screens are bigger or smaller? I don't think trying to tailor the output to the screen size like that makes sense. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Jul 7 15:37:51 2014 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 7 Jul 2014 21:37:51 +0200 Subject: [IPython-dev] Getting the size of ipython notebook cell In-Reply-To: <1404761251524-5063264.post@n6.nabble.com> References: <1404761251524-5063264.post@n6.nabble.com> Message-ID: <1BF41D3C-A23C-492E-AC70-251212F5D046@gmail.com> Hi Benjamin, Le 7 juil. 2014 ? 21:27, bjonen a ?crit : > Hey giuys, > > I am working on a patch for pandas that allows a dataframe's string > representation to scale with the height and width of the terminal. > It would be nice to make this possible in the ipython notebook also. > However, for this I would need a way to infer the current size of a cell in > the notebook to cut the dataframe appropriately. > > Anybody know a way to do this? To add to thomas answer : As for anythings related to knowing something related to the frontend, it is not possible with IPython protocol. - The kernel does not know is is connected to a notebook. - The notebook can be run headless (width make no sense) - several notebook can window can be connected at the same give with live sync between them (so width not unique) [ might be anticipating tomorrow (today?) announcement as scipy] - Window can be resized .... - notebook displayed in nbviewer And so on, and so forth. The only thing you can try to if you want dynamic things is to use dynamic table with javascript/html. -- M > > For completeness, here the link to the corresponding pandas issue: > https://github.com/pydata/pandas/issues/7180#issuecomment-47335444 > > Thanks, > Benjamin > > > > -- > View this message in context: http://python.6.x6.nabble.com/Getting-the-size-of-ipython-notebook-cell-tp5063264.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From fperez.net at gmail.com Mon Jul 7 15:39:25 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 7 Jul 2014 14:39:25 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: don't tell him that! He's going to figure out how people think I'm actually a productive human being! :) On Mon, Jul 7, 2014 at 2:09 PM, Thomas Kluyver wrote: > Well, debugging-by-invoking-Min succeeds again. ;-) > > > On 7 July 2014 14:06, MinRK wrote: > >> Race! >> >> Not sure what caused it, but the fix is here >> . >> >> -MinRK >> ? >> >> >> On Mon, Jul 7, 2014 at 1:50 PM, Thomas Kluyver wrote: >> >>> On 7 July 2014 13:43, Fernando Perez wrote: >>> >>>> I can reproduce the problem on master as well... >>> >>> >>> OK, so can I, in fact. I'll investigate later on, unless Min beats me to >>> it. >>> >>> Thomas >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.wiecki at gmail.com Mon Jul 7 16:26:37 2014 From: thomas.wiecki at gmail.com (Thomas Wiecki) Date: Mon, 7 Jul 2014 22:26:37 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: OK, after the fix the echo kernel works in console but the NB still stalls with [*]. Any pointers? On Mon, Jul 7, 2014 at 9:39 PM, Fernando Perez wrote: > don't tell him that! He's going to figure out how people think I'm > actually a productive human being! :) > > > On Mon, Jul 7, 2014 at 2:09 PM, Thomas Kluyver wrote: > >> Well, debugging-by-invoking-Min succeeds again. ;-) >> >> >> On 7 July 2014 14:06, MinRK wrote: >> >>> Race! >>> >>> Not sure what caused it, but the fix is here >>> . >>> >>> -MinRK >>> ? >>> >>> >>> On Mon, Jul 7, 2014 at 1:50 PM, Thomas Kluyver wrote: >>> >>>> On 7 July 2014 13:43, Fernando Perez wrote: >>>> >>>>> I can reproduce the problem on master as well... >>>> >>>> >>>> OK, so can I, in fact. I'll investigate later on, unless Min beats me >>>> to it. >>>> >>>> Thomas >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > Fernando Perez (@fperez_org; http://fperez.org) > fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) > fernando.perez-at-berkeley: contact me here for any direct mail > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Thomas Wiecki PhD candidate, Brown University Quantitative Researcher, Quantopian Inc, Boston -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Mon Jul 7 16:32:52 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 7 Jul 2014 15:32:52 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: On Mon, Jul 7, 2014 at 3:26 PM, Thomas Wiecki wrote: > OK, after the fix the echo kernel works in console but the NB still stalls > with [*]. Any pointers? I can replicate the problem with the nb, but at least now the text console `ipython console` and the qtconsole do work. Perhaps you can move forward with either of those, while we sort out what's going on with the nb... 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 thomas.wiecki at gmail.com Mon Jul 7 16:36:43 2014 From: thomas.wiecki at gmail.com (Thomas Wiecki) Date: Mon, 7 Jul 2014 22:36:43 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: Sounds good -- let me know. Thanks for the help. On Mon, Jul 7, 2014 at 10:32 PM, Fernando Perez wrote: > > On Mon, Jul 7, 2014 at 3:26 PM, Thomas Wiecki > wrote: > >> OK, after the fix the echo kernel works in console but the NB still >> stalls with [*]. Any pointers? > > > I can replicate the problem with the nb, but at least now the text > console `ipython console` and the qtconsole do work. > > Perhaps you can move forward with either of those, while we sort out > what's going on with the nb... > > 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 > > -- Thomas Wiecki PhD candidate, Brown University Quantitative Researcher, Quantopian Inc, Boston -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Jul 7 21:46:32 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 7 Jul 2014 20:46:32 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: Sorry, I gave an incomplete command in my previous link. kernel_cmd should be the same sequence of arguments you wrote in the kernel.json file, including the all-important {connection_file} parameter, which is replaced with the path to the connection file: ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module', '-f', '{connection_file}']" On 7 July 2014 15:36, Thomas Wiecki wrote: > Sounds good -- let me know. Thanks for the help. > > > On Mon, Jul 7, 2014 at 10:32 PM, Fernando Perez > wrote: > >> >> On Mon, Jul 7, 2014 at 3:26 PM, Thomas Wiecki >> wrote: >> >>> OK, after the fix the echo kernel works in console but the NB still >>> stalls with [*]. Any pointers? >> >> >> I can replicate the problem with the nb, but at least now the text >> console `ipython console` and the qtconsole do work. >> >> Perhaps you can move forward with either of those, while we sort out >> what's going on with the nb... >> >> 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 >> >> > > > -- > Thomas Wiecki > PhD candidate, Brown University > Quantitative Researcher, Quantopian Inc, Boston > > _______________________________________________ > 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 Mon Jul 7 22:21:08 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 7 Jul 2014 21:21:08 -0500 Subject: [IPython-dev] (no subject) In-Reply-To: References: Message-ID: On 7 July 2014 04:12, Sjoerd de Vries wrote: > - A hook to change the %alias formatter class from DollarFormatter (to >>> allow customized variable substitution) >>> - A hook in FullEvalFormatter._vformat to be triggered on certain >>> "conversion" values (for converters) >>> >> > What about these hooks, would they be OK? I can make a new branch with > just this, it's a dozen lines or less. > I guess I'm not entirely sure why we should add hooks from inside these classes - isn't it easier for you to subclass and override the relevant bits? We can look into breaking up the API if it makes sense, though. > - Additional optional arguments to interactiveshell methods "getoutput", >>> "system_piped" and "system_raw" (for variable substitution and stderr >>> capture) >>> >> >> I think an argument for stderr capture makes sense. For controlling >> variable substitution, it might be easier to go down a level, to the >> (similarly named) functions which they call after doing var_expand. >> > > Well, I can copy-paste "getoutput" and "system_piped" into my own > extension and make the necessary changes there, if that's best. > Let's brainstorm on APIs a bit, because I feel like we're swimming in process control APIs - subprocess, pexpect, our own process machinery in IPython.utils. It shouldn't be necessary to reinvent the wheel again. Thanks, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.wiecki at gmail.com Tue Jul 8 01:47:51 2014 From: thomas.wiecki at gmail.com (Thomas Wiecki) Date: Tue, 8 Jul 2014 07:47:51 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: Thanks, that works. On Tue, Jul 8, 2014 at 3:46 AM, Thomas Kluyver wrote: > Sorry, I gave an incomplete command in my previous link. kernel_cmd should > be the same sequence of arguments you wrote in the kernel.json file, > including the all-important {connection_file} parameter, which is replaced > with the path to the connection file: > > ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module', '-f', '{connection_file}']" > > > > > On 7 July 2014 15:36, Thomas Wiecki wrote: > >> Sounds good -- let me know. Thanks for the help. >> >> >> On Mon, Jul 7, 2014 at 10:32 PM, Fernando Perez >> wrote: >> >>> >>> On Mon, Jul 7, 2014 at 3:26 PM, Thomas Wiecki >>> wrote: >>> >>>> OK, after the fix the echo kernel works in console but the NB still >>>> stalls with [*]. Any pointers? >>> >>> >>> I can replicate the problem with the nb, but at least now the text >>> console `ipython console` and the qtconsole do work. >>> >>> Perhaps you can move forward with either of those, while we sort out >>> what's going on with the nb... >>> >>> 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 >>> >>> >> >> >> -- >> Thomas Wiecki >> PhD candidate, Brown University >> Quantitative Researcher, Quantopian Inc, Boston >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Thomas Wiecki PhD candidate, Brown University Quantitative Researcher, Quantopian Inc, Boston -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.hirschfeld at gmail.com Tue Jul 8 02:54:19 2014 From: dave.hirschfeld at gmail.com (Dave Hirschfeld) Date: Tue, 8 Jul 2014 06:54:19 +0000 (UTC) Subject: [IPython-dev] ipython trust mynotebook doesn't work References: Message-ID: Fernando Perez gmail.com> writes: > > > Hi Dave, > there seems to be an issue with the trust command, it was just reported on the tracker: > > > https://github.com/ipython/ipython/issues/6091 > > > In the meantime, can you try?using the "trust this notebook" dialog in the file menu? Please let us know if that helps... > > Best > > > f > I can confirm that I was having the same issue as in #6091 - signing the notebook *with the profile running the notebook server* solved the problem for me. I do think #6094 is an important improvement to the docs. Thanks for your help! -Dave From bjonen at gmail.com Tue Jul 8 03:34:47 2014 From: bjonen at gmail.com (bjonen) Date: Tue, 8 Jul 2014 00:34:47 -0700 (PDT) Subject: [IPython-dev] Getting the size of ipython notebook cell In-Reply-To: <1BF41D3C-A23C-492E-AC70-251212F5D046@gmail.com> References: <1404761251524-5063264.post@n6.nabble.com> <1BF41D3C-A23C-492E-AC70-251212F5D046@gmail.com> Message-ID: <1404804887295-5063344.post@n6.nabble.com> Thanks for the replies! > The only thing you can try to if you want dynamic things is to use dynamic > table with javascript/html. You mean allowing the user to resize the dataframe? Benjamin -- View this message in context: http://python.6.x6.nabble.com/Getting-the-size-of-ipython-notebook-cell-tp5063264p5063344.html Sent from the IPython - Development mailing list archive at Nabble.com. From bussonniermatthias at gmail.com Tue Jul 8 03:57:51 2014 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 8 Jul 2014 09:57:51 +0200 Subject: [IPython-dev] Getting the size of ipython notebook cell In-Reply-To: <1404804887295-5063344.post@n6.nabble.com> References: <1404761251524-5063264.post@n6.nabble.com> <1BF41D3C-A23C-492E-AC70-251212F5D046@gmail.com> <1404804887295-5063344.post@n6.nabble.com> Message-ID: <9F241A5C-A273-4699-AFD5-83268AFE0FEE@gmail.com> Envoy? de mon iPhone > Le 8 juil. 2014 ? 09:34, bjonen a ?crit : > > Thanks for the replies! > >> The only thing you can try to if you want dynamic things is to use dynamic >> table with javascript/html. > > You mean allowing the user to resize the dataframe? For example. Or use @media-query that change the style of the df depending on browser window size. Have a look at bootstrap doc for example. > > Benjamin > > > > -- > View this message in context: http://python.6.x6.nabble.com/Getting-the-size-of-ipython-notebook-cell-tp5063264p5063344.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From sjdv1982 at gmail.com Tue Jul 8 04:25:50 2014 From: sjdv1982 at gmail.com (Sjoerd de Vries) Date: Tue, 8 Jul 2014 10:25:50 +0200 Subject: [IPython-dev] (no subject) In-Reply-To: References: Message-ID: On Jul 8, 2014 4:22 AM, "Thomas Kluyver" wrote: > > On 7 July 2014 04:12, Sjoerd de Vries wrote: >>>> >>>> - A hook to change the %alias formatter class from DollarFormatter (to allow customized variable substitution) >>>> - A hook in FullEvalFormatter._vformat to be triggered on certain "conversion" values (for converters) >> >> >> What about these hooks, would they be OK? I can make a new branch with just this, it's a dozen lines or less. > > > I guess I'm not entirely sure why we should add hooks from inside these classes - isn't it easier for you to subclass and override the relevant bits? We can look into breaking up the API if it makes sense, though. > >>>> >>>> - Additional optional arguments to interactiveshell methods "getoutput", "system_piped" and "system_raw" (for variable substitution and stderr capture) >>> >>> >>> I think an argument for stderr capture makes sense. For controlling variable substitution, it might be easier to go down a level, to the (similarly named) functions which they call after doing var_expand. >> >> >> Well, I can copy-paste "getoutput" and "system_piped" into my own extension and make the necessary changes there, if that's best. > > > Let's brainstorm on APIs a bit, because I feel like we're swimming in process control APIs - subprocess, pexpect, our own process machinery in IPython.utils. It shouldn't be necessary to reinvent the wheel again. > > Thanks, > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > OK, I will create a new branch with just the hooks and a few usage examples. In the process, I will test if a hook is really needed or if the same result can be obtained with subclasses within the extension. Cheers Sjoerd -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.wiecki at gmail.com Tue Jul 8 05:22:46 2014 From: thomas.wiecki at gmail.com (Thomas Wiecki) Date: Tue, 8 Jul 2014 11:22:46 +0200 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: The IPython console works well now. However, using the NB client and sending: self.send_response(self.iopub_socket, 'stream', stream_content) and then returning: return {'status': 'error', 'ename': 'foo', 'evalue': 'bar', 'traceback': messages, 'execution_count': self.execution_count, } Do not display anything in the NB (they do both show up in the console). The cell does not get executed so I think it's executing the correct path. Any ideas? Also, since I want to use a Python kernel I'm inheriting from IPythonKernel. Might that be the problem? I suspect there would be a NotebookKernel (that also supports the magics, which currently give me a syntaxi error) that I can't find. On Tue, Jul 8, 2014 at 7:47 AM, Thomas Wiecki wrote: > Thanks, that works. > > > On Tue, Jul 8, 2014 at 3:46 AM, Thomas Kluyver wrote: > >> Sorry, I gave an incomplete command in my previous link. kernel_cmd >> should be the same sequence of arguments you wrote in the kernel.json file, >> including the all-important {connection_file} parameter, which is replaced >> with the path to the connection file: >> >> ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module', '-f', '{connection_file}']" >> >> >> >> >> On 7 July 2014 15:36, Thomas Wiecki wrote: >> >>> Sounds good -- let me know. Thanks for the help. >>> >>> >>> On Mon, Jul 7, 2014 at 10:32 PM, Fernando Perez >>> wrote: >>> >>>> >>>> On Mon, Jul 7, 2014 at 3:26 PM, Thomas Wiecki >>>> wrote: >>>> >>>>> OK, after the fix the echo kernel works in console but the NB still >>>>> stalls with [*]. Any pointers? >>>> >>>> >>>> I can replicate the problem with the nb, but at least now the text >>>> console `ipython console` and the qtconsole do work. >>>> >>>> Perhaps you can move forward with either of those, while we sort out >>>> what's going on with the nb... >>>> >>>> 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 >>>> >>>> >>> >>> >>> -- >>> Thomas Wiecki >>> PhD candidate, Brown University >>> Quantitative Researcher, Quantopian Inc, Boston >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > Thomas Wiecki > PhD candidate, Brown University > Quantitative Researcher, Quantopian Inc, Boston > -- Thomas Wiecki PhD candidate, Brown University Quantitative Researcher, Quantopian Inc, Boston -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Jul 8 09:45:01 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 8 Jul 2014 08:45:01 -0500 Subject: [IPython-dev] Static code analysis of IPython Notebook cell In-Reply-To: References: Message-ID: On 8 July 2014 04:22, Thomas Wiecki wrote: > The IPython console works well now. However, using the NB client and > sending: > self.send_response(self.iopub_socket, 'stream', stream_content) > What is stream_content? Can you show a runnable example? > Also, since I want to use a Python kernel I'm inheriting from > IPythonKernel. Might that be the problem? I suspect there would be a > NotebookKernel (that also supports the magics, which currently give me a > syntaxi error) that I can't find. No, there's only one IPython kernel class - the magics work the same way in every frontend. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bjonen at gmail.com Tue Jul 8 10:10:55 2014 From: bjonen at gmail.com (bjonen) Date: Tue, 8 Jul 2014 07:10:55 -0700 (PDT) Subject: [IPython-dev] Getting the size of ipython notebook cell In-Reply-To: <9F241A5C-A273-4699-AFD5-83268AFE0FEE@gmail.com> References: <1404761251524-5063264.post@n6.nabble.com> <1BF41D3C-A23C-492E-AC70-251212F5D046@gmail.com> <1404804887295-5063344.post@n6.nabble.com> <9F241A5C-A273-4699-AFD5-83268AFE0FEE@gmail.com> Message-ID: <1404828655658-5063400.post@n6.nabble.com> I see, that's an interesting idea. So I guess one way to get this to work would be to perform the truncation using javascript depending on the screen size information gathered from @media screen. Right now, pandas returns the html code for the table, as such: u'
\n \n \n \n \n .... Could we simply prepend a

Thanks for making this available! -Doug > _______________________________________________ > 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 doug.blank at gmail.com Tue Jul 29 09:06:35 2014 From: doug.blank at gmail.com (Doug Blank) Date: Tue, 29 Jul 2014 09:06:35 -0400 Subject: [IPython-dev] How to make a notebook extension In-Reply-To: References: Message-ID: Follow-ups (suggestions, options, overall betterness) available in the associated issue tracker: https://github.com/ipython/ipython/issues/6229 Hopefully will lead to good documentation. -Doug On Sun, Jul 27, 2014 at 1:24 PM, Doug Blank wrote: > Ok, I think I have this figured out, and if the following is right, and > best practice, I'd be glad to put in the docs. > > First, write your JavaScript programs. There should be a main JS file. The > JavaScript file should generally take the form: > > ``` > define( function () { > var load_ipython_extension = function () { > ... > }; > > return { > load_ipython_extension : load_ipython_extension, > }; > }); > ``` > > This function will return a JS object with "load_ipython_extension" > defined to be a function that is called when loading the extension. > > Name this JS file with a unique name that won't collide with other > extensions. For example, use "jones-feature-name.js" where "jones" is the > name of your group, and "feature-name" is the name of what the feature you > are adding/enhancing. > > If there is only the single .js file, then you can easily make a download > for it. > > If more than one file is needed for your extension (additional libraries, > css, etc) it is advised to make a zip file for easy install. The zip file > should have your main JS file in the root. > > To install the zip or js file, use: > > ipython install-nbextension URL > > The files are saved to $(ipython locale)/nbextensions/ > > At this point, you can use your extension by interactively loading it in a > notebook (regardless of kernel, as long as your kernel supports running > javascript); in the native kernel, that is: > > ``` > %%javascript > IPython.load_extensions("jones-feature-name") > ``` > > Your feature is now active, and will be loaded automatically each time you > open this notebook if you leave this cell in the notebook. [Is that right? > How does it work?] > > What if you have an associated CSS file? It is not loaded automatically. > > Add this to your defined JS object: > > ``` > var load_css = function () { > var link = document.createElement("link"); > link.type = "text/css"; > link.rel = "stylesheet"; > link.href = require.toUrl("/nbextensions/jones-feature-name.css"); > console.log(link); > document.getElementsByTagName("head")[0].appendChild(link); > }; > ``` > > and call it in load_ipython_extension. > > Finally, if you want to load your extension automatically (or need to have > your script loaded earlier to handle opening functions) then you can add > this single line to your $(ipython > locale)/profile_XXX/static/custom/custom.js: > > IPython.load_extensions("jones-feature-name"); > > There are more options (having things execute on notebook open, adding > toolbar buttons, menu items), and those are explain here ... > > How does that sound? Did I miss anything? > > -Doug > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hughesadam87 at gmail.com Tue Jul 29 13:22:16 2014 From: hughesadam87 at gmail.com (Adam Hughes) Date: Tue, 29 Jul 2014 13:22:16 -0400 Subject: [IPython-dev] HTML pandas issue (followup of twitter question) Message-ID: Thanks for answering my twitter question about HTML representations of dataframes. https://twitter.com/hughesadam87 I have a composition class that stores a DataFrame, and uses __getattr__ to pass any attribute call down to the dataframe. Therefore, my object has a __repr__(), _repr_html_() etc... The difference is, if I do "print obj.df", I get the nice html output by default. However, if I do "print obj", I don't get this; I get the standard plain string output. This is weird because I am not overwriting anything. I can sucessfully get my object to print the dataframe html representation by doing: from IPython.core.display import HTML display(HTML(obj.to_html())) What I don't understand is how does the notebook know that a pandas dataframe should display as html by default? How are they communicating? When you print a dataframe, does the notebook look specifically for the _repr_html Since my object has all of the methods of a dataframe (although not publicized), I imagine the notebook might be looking for certain attributes or methods or something, to set this default HTML printing? Hope that makes some sense, sorry. -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Jul 29 13:26:43 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 29 Jul 2014 10:26:43 -0700 Subject: [IPython-dev] HTML pandas issue (followup of twitter question) In-Reply-To: References: Message-ID: On 29 July 2014 10:22, Adam Hughes wrote: > The difference is, if I do "print obj.df", I get the nice html output by > default. That's strange - print should only ever give you the plain string representation. If you just put 'obj.df' or 'obj' on a line by itself at the end of the cell, *without* print, it should display HTML reprs. If you want to display more than one thing per cell, then IPython.display.display(obj) is the rich-repr equivalent of print. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From hughesadam87 at gmail.com Tue Jul 29 14:28:53 2014 From: hughesadam87 at gmail.com (Adam Hughes) Date: Tue, 29 Jul 2014 14:28:53 -0400 Subject: [IPython-dev] HTML pandas issue (followup of twitter question) In-Reply-To: References: Message-ID: I'm sorry you're right thomas. I didn't mean print; I meant if I leave it as the last statement in a cell. IE ... df vs. ... myobject In this case, it still just prints plain text for myobject. The only print method that myobject specifically overloads is: def __repr__(self): return self._df.__repr__() Since otherwise it would default to python objects' print statements. Could this be the problem? I can try to make a self-contained reproducible example if you think this is a bug of sorts. On Tue, Jul 29, 2014 at 1:26 PM, Thomas Kluyver wrote: > On 29 July 2014 10:22, Adam Hughes wrote: > >> The difference is, if I do "print obj.df", I get the nice html output by >> default. > > > That's strange - print should only ever give you the plain string > representation. If you just put 'obj.df' or 'obj' on a line by itself at > the end of the cell, *without* print, it should display HTML reprs. > > If you want to display more than one thing per cell, then > IPython.display.display(obj) is the rich-repr equivalent of print. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Jul 29 14:32:14 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 29 Jul 2014 11:32:14 -0700 Subject: [IPython-dev] HTML pandas issue (followup of twitter question) In-Reply-To: References: Message-ID: On 29 July 2014 11:28, Adam Hughes wrote: > The only print method that myobject specifically overloads is: > > def __repr__(self): > Didn't you say you also define _repr_html_()? It's the presence of _repr_html_() on your object that lets IPython give it the HTML display. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From tritemio at gmail.com Tue Jul 29 14:36:49 2014 From: tritemio at gmail.com (Antonino Ingargiola) Date: Tue, 29 Jul 2014 11:36:49 -0700 Subject: [IPython-dev] IPython notebook widgets for interactive matplotlib figures Message-ID: HI to all, I'm following up to this SO question: http://stackoverflow.com/questions/24961674/ipython-notebook-widgets-for-matplotlib-interactivity To summarize the problem is that I want to "modify" a plot via some notebook widgets, for example adding a cursor (however can can think about any plot tweak including adding/removing data). Putting the following code in a single cell: fig, ax = plt.subplots() ax.plot([3,1,2,4,0,5,3,2,0,2,4]) vline = ax.axvline(1) hline = ax.axhline(0.5) def set_cursor(x, y): vline.set_xdata((x, x)) hline.set_ydata((y, y)) display(fig) interact(set_cursor, x=(1, 9, 0.01), y=(0, 5, 0.01)) results in 2 figures being displayed: one by the standard notebook machinery in the Out field and one by the interact call in the widgets space (between the code cell and the output). Moving the slider makes the first plot to disappear. Is this the expected behavior? Am I doing something wrong? Is there a way I can inhibit the first figure display? Thanks, Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From hughesadam87 at gmail.com Tue Jul 29 15:03:15 2014 From: hughesadam87 at gmail.com (Adam Hughes) Date: Tue, 29 Jul 2014 15:03:15 -0400 Subject: [IPython-dev] HTML pandas issue (followup of twitter question) In-Reply-To: References: Message-ID: AHHHHHHHHH I FORGOT THE TRAILING UNDERSCORE!!!!!!!! Thanks Thomas. My life is complete now. On Tue, Jul 29, 2014 at 2:32 PM, Thomas Kluyver wrote: > On 29 July 2014 11:28, Adam Hughes wrote: > >> The only print method that myobject specifically overloads is: >> >> def __repr__(self): >> > > Didn't you say you also define _repr_html_()? It's the presence of > _repr_html_() on your object that lets IPython give it the HTML display. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Tue Jul 29 15:21:07 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 29 Jul 2014 12:21:07 -0700 Subject: [IPython-dev] IPython notebook widgets for interactive matplotlib figures In-Reply-To: References: Message-ID: On Tue, Jul 29, 2014 at 11:36 AM, Antonino Ingargiola wrote: > > Is this the expected behavior? Am I doing something wrong? Is there a way > I can inhibit the first figure display? > It's an unfortunate side effect of IPython's internal logic that tries to auto-display plots so that simple calls like plot(x) work in an intuitive fashion. Since you're manually calling display(), both code paths kick in, and you end up with a duplicate figure. The simple answer is: in every instance where you're going to do manual figure displaying yourself, you can prevent the automatic display by putting plt.close(fig) at the end of your cell, if you have a handle on a specific figure, or more simply (if less elegant) plt.close('all') that will close every open figure regardless how many there are or whether you have a handle on them. We were never able to come up with a solution that would work well in all the naive/simple cases and yet also not have funny side effects in more advanced scenarios like this. In the end, we settled on making the simple cases work as best as possible, and having to make a manual close() call in other cases. It's possible that with a bit more thought a better solution can be found, this was done early on (before the notebook, all that logic was designed initially for the Qt console). We had so many things to do that we moved on with this current solution, but it may be worth revisiting to see if we can come up with better heuristics or ideas. 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 tritemio at gmail.com Tue Jul 29 16:06:17 2014 From: tritemio at gmail.com (Antonino Ingargiola) Date: Tue, 29 Jul 2014 13:06:17 -0700 Subject: [IPython-dev] IPython notebook widgets for interactive matplotlib figures In-Reply-To: References: Message-ID: On Tue, Jul 29, 2014 at 12:21 PM, Fernando Perez wrote: > > On Tue, Jul 29, 2014 at 11:36 AM, Antonino Ingargiola > wrote: > >> >> Is this the expected behavior? Am I doing something wrong? Is there a way >> I can inhibit the first figure display? >> > > It's an unfortunate side effect of IPython's internal logic that tries to > auto-display plots so that simple calls like > > plot(x) > > work in an intuitive fashion. Since you're manually calling display(), > both code paths kick in, and you end up with a duplicate figure. > > The simple answer is: in every instance where you're going to do manual > figure displaying yourself, you can prevent the automatic display by putting > > plt.close(fig) > > at the end of your cell, if you have a handle on a specific figure > Ouch! So simple! Thanks for the solution. I didn't tried close() because I though that closing the figure would destroy it. It turns out that it is not and the following interact call works as expected. > We were never able to come up with a solution that would work well in all > the naive/simple cases and yet also not have funny side effects in more > advanced scenarios like this. In the end, we settled on making the simple > cases work as best as possible, and having to make a manual close() call in > other cases. It's possible that with a bit more thought a better solution > can be found, this was done early on (before the notebook, all that logic > was designed initially for the Qt console). We had so many things to do > that we moved on with this current solution, but it may be worth revisiting > to see if we can come up with better heuristics or ideas. > Just my 2c: why don't providing an API function like "show_figure(False)". At this moment it will just call close(). In the future if you change implementation the API function will stay the same. Best, Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From msg2mw at gmail.com Tue Jul 29 16:24:20 2014 From: msg2mw at gmail.com (Mike Witt) Date: Tue, 29 Jul 2014 13:24:20 -0700 Subject: [IPython-dev] Problem using JSAnimation Message-ID: <1406665460.6801.58@Backie> I've never used JSAnimation before. I just tried installing it, and every time I try to do anything with it, it wants to import things from matplotlib.animation that don't seem to be there (at least on my system). I wonder, is there some piece of matplolib that I'm missing? I should mention that I've never used matplotlib.animation either. In the past I've created the frames by hand and put them together with convert, ffmpeg, or something like that. In [1]: from JSAnimation import IPython_display --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in () ----> 1 from JSAnimation import IPython_display /usr/local/lib/python2.7/dist-packages/JSAnimation/__init__.py in () ----> 1 from .html_writer import HTMLWriter /usr/local/lib/python2.7/dist-packages/JSAnimation/html_writer.py in () 8 else: 9 from io import BytesIO as InMemory ---> 10 from matplotlib.animation import writers, FileMovieWriter 11 from base64 import b64encode 12 ImportError: cannot import name writers From fperez.net at gmail.com Tue Jul 29 16:41:36 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 29 Jul 2014 13:41:36 -0700 Subject: [IPython-dev] IPython notebook widgets for interactive matplotlib figures In-Reply-To: References: Message-ID: On Tue, Jul 29, 2014 at 1:06 PM, Antonino Ingargiola wrote: > Just my 2c: why don't providing an API function like "show_figure(False)". > At this moment it will just call close(). In the future if you change > implementation the API function will stay the same. Not a bad idea... I'd like to mull a little bit on the cleanest way to do this, but that's not a bad solution. If nothing else, you can add that to your local utils for now, and see if it works well enough. def showfig(f): plt.close(f) display(f) is easy enough to add at the top :) 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 fperez.net at gmail.com Tue Jul 29 16:42:58 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 29 Jul 2014 13:42:58 -0700 Subject: [IPython-dev] Problem using JSAnimation In-Reply-To: <1406665460.6801.58@Backie> References: <1406665460.6801.58@Backie> Message-ID: Check your matplotlib version, it may be too old. I have 1.2.1 and those APIs are there, otherwise you may need to update mpl. On Tue, Jul 29, 2014 at 1:24 PM, Mike Witt wrote: > I've never used JSAnimation before. I just tried installing it, > and every time I try to do anything with it, it wants to import > things from matplotlib.animation that don't seem to be there (at > least on my system). I wonder, is there some piece of matplolib > that I'm missing? > > I should mention that I've never used matplotlib.animation either. > In the past I've created the frames by hand and put them together > with convert, ffmpeg, or something like that. > > > In [1]: from JSAnimation import IPython_display > --------------------------------------------------------------------------- > ImportError Traceback (most recent call > last) > in () > ----> 1 from JSAnimation import IPython_display > > /usr/local/lib/python2.7/dist-packages/JSAnimation/__init__.py in > () > ----> 1 from .html_writer import HTMLWriter > > /usr/local/lib/python2.7/dist-packages/JSAnimation/html_writer.py in > () > 8 else: > 9 from io import BytesIO as InMemory > ---> 10 from matplotlib.animation import writers, FileMovieWriter > 11 from base64 import b64encode > 12 > > ImportError: cannot import name writers > _______________________________________________ > 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 msg2mw at gmail.com Tue Jul 29 16:54:09 2014 From: msg2mw at gmail.com (Mike Witt) Date: Tue, 29 Jul 2014 13:54:09 -0700 Subject: [IPython-dev] Problem using JSAnimation In-Reply-To: (from fperez.net@gmail.com on Tue Jul 29 13:42:58 2014) References: <1406665460.6801.58@Backie> Message-ID: <1406667249.6801.60@Backie> On 07/29/2014 01:42:58 PM, Fernando Perez wrote: > Check your matplotlib version, it may be too old. I have 1.2.1 and > those > APIs are there, otherwise you may need to update mpl. Mine is older. I'm updating. Thanks! -Mike From markbak at gmail.com Tue Jul 29 16:56:03 2014 From: markbak at gmail.com (Mark Bakker) Date: Tue, 29 Jul 2014 22:56:03 +0200 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing Message-ID: We have developed a series of 15 Notebooks for scientists and engineers who want to use Python programming for exploratory computing, scipting, data analysis, and visualization.The Notebooks were developed for an undergraduate class (sophomores) in Civil Engineering. No prior knowledge of computer programming is assumed. Each Notebook covers a specific topic and includes a number of exercises. The exercises should take less than 4 hours to complete for each Notebook. The Notebooks may be viewed at http://mbakker7.github.io/exploratory_computing_with_python/ A link to the GitHub repository is also shown on this page. Hope you find them useful, Mark Bakker TU Delft, The Netherlands -------------- next part -------------- An HTML attachment was scrubbed... URL: From tritemio at gmail.com Tue Jul 29 17:11:06 2014 From: tritemio at gmail.com (Antonino Ingargiola) Date: Tue, 29 Jul 2014 14:11:06 -0700 Subject: [IPython-dev] IPython notebook widgets for interactive matplotlib figures In-Reply-To: References: Message-ID: On Tue, Jul 29, 2014 at 1:41 PM, Fernando Perez wrote: > > On Tue, Jul 29, 2014 at 1:06 PM, Antonino Ingargiola > wrote: > >> Just my 2c: why don't providing an API function like >> "show_figure(False)". At this moment it will just call close(). In the >> future if you change implementation the API function will stay the same. > > > Not a bad idea... I'd like to mull a little bit on the cleanest way to do > this, but that's not a bad solution. > > If nothing else, you can add that to your local utils for now, and see if > it works well enough. > > def showfig(f): > plt.close(f) > display(f) > > is easy enough to add at the top :) > Yep, I'm doing also a step further. Since the problem was adding interactivity to inline matplotlib plots, I wrapped the necessary bits in a function like this: def add_cursor(fig, ax): plt.close() vline = ax.axvline(1, color='k') hline = ax.axhline(1, color='k') def set_cursor(x, y): vline.set_xdata((x, x)) hline.set_ydata((y, y)) display(fig) interact(set_cursor, x=ax.get_xlim(), y=ax.get_ylim()) and then simply add a call to add_cursor whenever is needed. In this case display() is called by interact(). I will probably write a couple of similar functions for various "interactivity needs". Thanks again, Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Tue Jul 29 17:21:07 2014 From: satra at mit.edu (Satrajit Ghosh) Date: Tue, 29 Jul 2014 17:21:07 -0400 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: References: Message-ID: thanks mark! this is great and came at an opportune time. i was just looking to create similar stats modules. some related questions to the larger community. - how could we disseminate or find such modules that can be used for teaching, without having to go through every single notebook? - how do we describe the prior knowledge required through a dependency structure? cheers, satra On Tue, Jul 29, 2014 at 4:56 PM, Mark Bakker wrote: > We have developed a series of 15 Notebooks for scientists and engineers > who want to use Python programming for exploratory computing, scipting, > data analysis, and visualization.The Notebooks were developed for an > undergraduate class (sophomores) in Civil Engineering. No prior knowledge > of computer programming is assumed. Each Notebook covers a specific topic > and includes a number of exercises. The exercises should take less than 4 > hours to complete for each Notebook. > > The Notebooks may be viewed at > http://mbakker7.github.io/exploratory_computing_with_python/ > A link to the GitHub repository is also shown on this page. > > Hope you find them useful, > > Mark Bakker > TU Delft, The Netherlands > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Tue Jul 29 17:34:11 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 29 Jul 2014 14:34:11 -0700 Subject: [IPython-dev] IPython notebook widgets for interactive matplotlib figures In-Reply-To: References: Message-ID: On Tue, Jul 29, 2014 at 2:11 PM, Antonino Ingargiola wrote: > def add_cursor(fig, ax): > plt.close() > Make sure you call close on the fig object, so you don't rely on the implicit state management that pyplot does... -- 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 fperez.net at gmail.com Tue Jul 29 17:35:41 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 29 Jul 2014 14:35:41 -0700 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: References: Message-ID: On Tue, Jul 29, 2014 at 2:21 PM, Satrajit Ghosh wrote: > - how could we disseminate or find such modules that can be used for > teaching, without having to go through every single notebook? > For now, the gallery is the best we have. We plan on putting resources into making nbviewer a much richer platform, but Matthias keep having this silly notion of "finishing a PhD" that constantly gets in the way of real work ;) > - how do we describe the prior knowledge required through a dependency > structure? > Thant sounds like something a semantic web person would say... ;) -- 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 tritemio at gmail.com Tue Jul 29 17:39:23 2014 From: tritemio at gmail.com (Antonino Ingargiola) Date: Tue, 29 Jul 2014 14:39:23 -0700 Subject: [IPython-dev] IPython notebook widgets for interactive matplotlib figures In-Reply-To: References: Message-ID: On Tue, Jul 29, 2014 at 2:34 PM, Fernando Perez wrote: > > On Tue, Jul 29, 2014 at 2:11 PM, Antonino Ingargiola > wrote: > >> def add_cursor(fig, ax): >> plt.close() >> > > Make sure you call close on the fig object, so you don't rely on the > implicit state management that pyplot does... > Right, thanks! Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Jul 30 04:26:37 2014 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 30 Jul 2014 10:26:37 +0200 Subject: [IPython-dev] [IPython-User] IPython Notebooks and Active Learning (Matthew Brett) In-Reply-To: References: Message-ID: If I may suggest too, please use header cell instead of hash in markdown. Header cell are used for section when converting to latex and do automatically generate anchors on nbviewer/html so that you can link to subpart: Example : http://nbviewer.ipython.org/url/jdj.mit.edu/~stevenj/IJulia%20Preview.ipynb#Multimedia-display-in-IJulia On Tue, Jul 29, 2014 at 11:16 PM, Matthew Brett wrote: > Hi, > > On Tue, Jul 29, 2014 at 4:50 PM, Mark Bakker wrote: > > We have developed a series of 15 Notebooks for scientists and engineers > who > > want to use Python programming for exploratory computing, scipting, data > > analysis, and visualization. No prior knowledge of computer programming > is > > assumed. Each Notebook covers a specific topic and includes a number of > > exercises. The exercises should take less than 4 hours to complete for > each > > Notebook. > > > > We have developed these Notebooks for an undergraduate class > (sophomores) in > > Civil Engineering. A short survey of the students taking the class (~270 > of > > them) showed that the students really liked the class and learned a lot. > > > > The Notebooks may be viewed at > > http://mbakker7.github.io/exploratory_computing_with_python/ > > A link to the GitHub repository is also shown on this page. > > Thanks a lot for this. From our feedback, our students liked the > notebooks too - e.g. > > "I appreciate the downloadable iPython notebooks with explanations of > what the code is and does - will be a great reference" > > I think there's really no question that the notebooks make running > code examples easier and clearer for the teacher and the student. And > they are indeed a great reference. The question always is - what do > we want to teach? In some cases it's probably enough that the > students get the idea, and running / writing code in the notebooks > helps them get the idea. But the students also implicitly learn that > this is the standard way of working with code, and I personally don't > think we should be teaching that. So, for me at least, I am trying to > find a way to strike a balance between the ease of writing materials / > ease of getting students running code, and the need for teaching solid > working practice. For example, for the next iteration of our course, > I'm thinking of doing a flipped classroom format, with the tutorials > mostly in IPython notebooks, but doing the exercises in class using > text editor and terminal and git. I'd also like to try and teach the > IPython notebook as a great tool for sharing and explaining a > workflow, or developing a tutorial. > > Cheers, > > Matthew > _______________________________________________ > IPython-User mailing list > IPython-User at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Wed Jul 30 07:33:03 2014 From: doug.blank at gmail.com (Doug Blank) Date: Wed, 30 Jul 2014 07:33:03 -0400 Subject: [IPython-dev] [IPython-User] IPython Notebooks and Active Learning (Matthew Brett) In-Reply-To: References: Message-ID: Excellent project! What is the license for these? It would be great if they were Creative Commons Share with Attribution, or similar: https://creativecommons.org/licenses/by-sa/4.0/ I can imagine using variations of these for a Physics curriculum. On Wed, Jul 30, 2014 at 4:26 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > If I may suggest too, please use header cell instead of hash in markdown. > Header cell are used for section when converting to latex and do > automatically generate anchors on nbviewer/html so that you can link to > subpart: > > Example : > > http://nbviewer.ipython.org/url/jdj.mit.edu/~stevenj/IJulia%20Preview.ipynb#Multimedia-display-in-IJulia > Being in the middle of writing similar notebooks, we found that using header cells can be quite painful when it comes to moving sections around. For example, if you want to move a section, one has to individually select, press up/down, for all cells in a section. So, we wrote "Move Section Up"/"Move Section Down" buttons and have included those in calico-document-tools. The tool will move all cells in a section/subsection up or down. You can install it: ipython install-nbextension https://bitbucket.org/ipre/calico/downloads/ calico-document-tools-1.0.zip You can then begin to use them in your notebooks by loading them dynamically: ``` %%javascript IPython.load_extensions("calico-document-tools"); ``` Or, if you want to load them always, put that line in your: $(ipython locate)/profile_default/static/custom/custom.js That collection of tools also contains: section numbering, table of contents, and a beta version of bibliographic support. -Doug > > > On Tue, Jul 29, 2014 at 11:16 PM, Matthew Brett > wrote: > >> Hi, >> >> On Tue, Jul 29, 2014 at 4:50 PM, Mark Bakker wrote: >> > We have developed a series of 15 Notebooks for scientists and engineers >> who >> > want to use Python programming for exploratory computing, scipting, data >> > analysis, and visualization. No prior knowledge of computer programming >> is >> > assumed. Each Notebook covers a specific topic and includes a number of >> > exercises. The exercises should take less than 4 hours to complete for >> each >> > Notebook. >> > >> > We have developed these Notebooks for an undergraduate class >> (sophomores) in >> > Civil Engineering. A short survey of the students taking the class >> (~270 of >> > them) showed that the students really liked the class and learned a lot. >> > >> > The Notebooks may be viewed at >> > http://mbakker7.github.io/exploratory_computing_with_python/ >> > A link to the GitHub repository is also shown on this page. >> >> Thanks a lot for this. From our feedback, our students liked the >> notebooks too - e.g. >> >> "I appreciate the downloadable iPython notebooks with explanations of >> what the code is and does - will be a great reference" >> >> I think there's really no question that the notebooks make running >> code examples easier and clearer for the teacher and the student. And >> they are indeed a great reference. The question always is - what do >> we want to teach? In some cases it's probably enough that the >> students get the idea, and running / writing code in the notebooks >> helps them get the idea. But the students also implicitly learn that >> this is the standard way of working with code, and I personally don't >> think we should be teaching that. So, for me at least, I am trying to >> find a way to strike a balance between the ease of writing materials / >> ease of getting students running code, and the need for teaching solid >> working practice. For example, for the next iteration of our course, >> I'm thinking of doing a flipped classroom format, with the tutorials >> mostly in IPython notebooks, but doing the exercises in class using >> text editor and terminal and git. I'd also like to try and teach the >> IPython notebook as a great tool for sharing and explaining a >> workflow, or developing a tutorial. >> >> Cheers, >> >> Matthew >> _______________________________________________ >> IPython-User mailing list >> IPython-User at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-user >> > > > _______________________________________________ > 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 markbak at gmail.com Wed Jul 30 16:57:45 2014 From: markbak at gmail.com (Mark Bakker) Date: Wed, 30 Jul 2014 22:57:45 +0200 Subject: [IPython-dev] [IPython-User] IPython Notebooks and Active Learning (Matthew Brett) Message-ID: Thanks, Doug. Hope you find it useful. Just added the license to the website. And thanks for your pointers about moving header cells around. Will have to try out your tools. Definitely interested in the bibliographic support. Is there any other support around to handle bibliography stuff (I am thinking bibtex-like capabilities...). Keep me informed how your development goes, Mark From: Doug Blank > > Excellent project! What is the license for these? It would be great if they > were Creative Commons Share with Attribution, or similar: > > https://creativecommons.org/licenses/by-sa/4.0/ > > I can imagine using variations of these for a Physics curriculum. > > On Wed, Jul 30, 2014 at 4:26 AM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > > > If I may suggest too, please use header cell instead of hash in markdown. > > Header cell are used for section when converting to latex and do > > automatically generate anchors on nbviewer/html so that you can link to > > subpart: > > > > Example : > > > > > http://nbviewer.ipython.org/url/jdj.mit.edu/~stevenj/IJulia%20Preview.ipynb#Multimedia-display-in-IJulia > > > > Being in the middle of writing similar notebooks, we found that using > header cells can be quite painful when it comes to moving sections around. > For example, if you want to move a section, one has to individually select, > press up/down, for all cells in a section. > > So, we wrote "Move Section Up"/"Move Section Down" buttons and have > included those in calico-document-tools. The tool will move all cells in a > section/subsection up or down. You can install it: > > ipython install-nbextension https://bitbucket.org/ipre/calico/downloads/ > calico-document-tools-1.0.zip > > You can then begin to use them in your notebooks by loading them > dynamically: > > ``` > %%javascript > IPython.load_extensions("calico-document-tools"); > ``` > > Or, if you want to load them always, put that line in your: > > $(ipython locate)/profile_default/static/custom/custom.js > > That collection of tools also contains: section numbering, table of > contents, and a beta version of bibliographic support. > > -Doug > > > > > > > > On Tue, Jul 29, 2014 at 11:16 PM, Matthew Brett > > > wrote: > > > >> Hi, > >> > >> On Tue, Jul 29, 2014 at 4:50 PM, Mark Bakker wrote: > >> > We have developed a series of 15 Notebooks for scientists and > engineers > >> who > >> > want to use Python programming for exploratory computing, scipting, > data > >> > analysis, and visualization. No prior knowledge of computer > programming > >> is > >> > assumed. Each Notebook covers a specific topic and includes a number > of > >> > exercises. The exercises should take less than 4 hours to complete for > >> each > >> > Notebook. > >> > > >> > We have developed these Notebooks for an undergraduate class > >> (sophomores) in > >> > Civil Engineering. A short survey of the students taking the class > >> (~270 of > >> > them) showed that the students really liked the class and learned a > lot. > >> > > >> > The Notebooks may be viewed at > >> > http://mbakker7.github.io/exploratory_computing_with_python/ > >> > A link to the GitHub repository is also shown on this page. > >> > >> Thanks a lot for this. From our feedback, our students liked the > >> notebooks too - e.g. > >> > >> "I appreciate the downloadable iPython notebooks with explanations of > >> what the code is and does - will be a great reference" > >> > >> I think there's really no question that the notebooks make running > >> code examples easier and clearer for the teacher and the student. And > >> they are indeed a great reference. The question always is - what do > >> we want to teach? In some cases it's probably enough that the > >> students get the idea, and running / writing code in the notebooks > >> helps them get the idea. But the students also implicitly learn that > >> this is the standard way of working with code, and I personally don't > >> think we should be teaching that. So, for me at least, I am trying to > >> find a way to strike a balance between the ease of writing materials / > >> ease of getting students running code, and the need for teaching solid > >> working practice. For example, for the next iteration of our course, > >> I'm thinking of doing a flipped classroom format, with the tutorials > >> mostly in IPython notebooks, but doing the exercises in class using > >> text editor and terminal and git. I'd also like to try and teach the > >> IPython notebook as a great tool for sharing and explaining a > >> workflow, or developing a tutorial. > >> > >> Cheers, > >> > >> Matthew > >> _______________________________________________ > >> IPython-User mailing list > >> IPython-User at scipy.org > >> http://mail.scipy.org/mailman/listinfo/ipython-user > >> > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.scipy.org/pipermail/ipython-dev/attachments/20140730/0fe0738d/attachment-0001.html > > ------------------------------ > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > End of IPython-dev Digest, Vol 126, Issue 66 > ******************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Wed Jul 30 18:40:44 2014 From: kikocorreoso at gmail.com (Kiko) Date: Thu, 31 Jul 2014 00:40:44 +0200 Subject: [IPython-dev] Command line tool to publish a notebook on a wordpress blog In-Reply-To: References: Message-ID: 2014-07-29 11:00 GMT+02:00 Matthias Bussonnier : > Hi > Le 29 juil. 2014 ? 10:07, Kiko a ?crit : > > Hi all, > > I made a small script to publish a notebook directly on a wordpress blog. > The repo can be found here: > https://github.com/Pybonacci/ipy2wp > > It uses nbconvert to convert the notebook to html (maybe I should explore > a conversion to markdown instead of html). I use this to publish on > http://pybonacci.org and it works great with simple notebooks (I have to > check notebooks with more complex structure). It creates a draft on your > wordpress blog so you can check the post before publishing. > > Hi, Matthias. How can I change the basic template with a custom template? Is it possible? Should I use jinja2? markdown? Any thought about that will be very welcome. > > That's really nice, > > It is super agreeable to see people using it as a library and not using > subprocess ! > We've spent quite some time working on that so it make me glad to see > people using it ! > > You should add it to the Wiki on project using IPython/Jupyter ! > > -- > Matthias > > > If someone uses the script please provide some feedback to improve the > tool. If someone experience any problem, please, open an issue in the repo. > If someone has something similar and want to share it would be great to see > how others are solving that. > > If your wordpress blog is older than v 3.5 please check this link: > http://codex.wordpress.org/XML-RPC_Support > > Kind regards. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://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 kikocorreoso at gmail.com Wed Jul 30 18:44:54 2014 From: kikocorreoso at gmail.com (Kiko) Date: Thu, 31 Jul 2014 00:44:54 +0200 Subject: [IPython-dev] Command line tool to publish a notebook on a wordpress blog In-Reply-To: References: Message-ID: 2014-07-29 14:07 GMT+02:00 Doug Blank : > On Tue, Jul 29, 2014 at 4:07 AM, Kiko wrote: > >> Hi all, >> >> I made a small script to publish a notebook directly on a wordpress blog. >> The repo can be found here: >> https://github.com/Pybonacci/ipy2wp >> >> It uses nbconvert to convert the notebook to html (maybe I should explore >> a conversion to markdown instead of html). I use this to publish on >> http://pybonacci.org and it works great with simple notebooks (I have to >> check notebooks with more complex structure). It creates a draft on your >> wordpress blog so you can check the post before publishing. >> >> If someone uses the script please provide some feedback to improve the >> tool. If someone experience any problem, please, open an issue in the repo. >> If someone has something similar and want to share it would be great to see >> how others are solving that. >> >> If your wordpress blog is older than v 3.5 please check this link: >> http://codex.wordpress.org/XML-RPC_Support >> >> Kind regards. >> > > Very useful! > > Do you have any suggestions regarding how to get IPython's /static etc. > installed so that everything needed (eg, javascript) will load? > > Also, looks like some HTML is being injected into

> > Well, wordpress change some html. One thing would be to use a plugin like 'raw html' or similar. But the basic idea of the tool would be to help in the publication of a notebook in a wordpress blog but some stuff are dependent of your wordpress install (javascript, iframes, code highlight,...). If someone have any ideas about how to improve it I'm all ears (eyes in this case) > Thanks for making this available! > > -Doug > > >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Wed Jul 30 18:48:40 2014 From: kikocorreoso at gmail.com (Kiko) Date: Thu, 31 Jul 2014 00:48:40 +0200 Subject: [IPython-dev] Command line tool to publish a notebook on a wordpress blog In-Reply-To: References: Message-ID: 2014-07-31 0:44 GMT+02:00 Kiko : > > > > 2014-07-29 14:07 GMT+02:00 Doug Blank : > > On Tue, Jul 29, 2014 at 4:07 AM, Kiko wrote: >> >>> Hi all, >>> >>> I made a small script to publish a notebook directly on a wordpress >>> blog. The repo can be found here: >>> https://github.com/Pybonacci/ipy2wp >>> >>> It uses nbconvert to convert the notebook to html (maybe I should >>> explore a conversion to markdown instead of html). I use this to publish on >>> http://pybonacci.org and it works great with simple notebooks (I have >>> to check notebooks with more complex structure). It creates a draft on your >>> wordpress blog so you can check the post before publishing. >>> >>> If someone uses the script please provide some feedback to improve the >>> tool. If someone experience any problem, please, open an issue in the repo. >>> If someone has something similar and want to share it would be great to see >>> how others are solving that. >>> >>> If your wordpress blog is older than v 3.5 please check this link: >>> http://codex.wordpress.org/XML-RPC_Support >>> >>> Kind regards. >>> >> >> By the way, I changed some stuff and the inline images now are uploaded to your wordpress (wp-content/uploads) and then linked in the html uploaded. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Wed Jul 30 19:30:04 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 30 Jul 2014 16:30:04 -0700 Subject: [IPython-dev] [IPython-User] IPython Notebooks and Active Learning (Matthew Brett) In-Reply-To: References: Message-ID: On Wed, Jul 30, 2014 at 4:33 AM, Doug Blank wrote: > Being in the middle of writing similar notebooks, we found that using > header cells can be quite painful when it comes to moving sections around. > For example, if you want to move a section, one has to individually select, > press up/down, for all cells in a section. That is really a big pain point in managing any kind of complex/long notebook. Paul Ivanov recently protoyped out a solution for this: https://github.com/ivanov/nb-cccp I've been using it and it works fairly well, even though it's not really production-ready yet. We in the core team are really trying to get 3.0 out the door, so I'm not sure how much bandwidth Paul will have for this in the coming weeks. But it would be a great tool to finish up, because it's *super* useful. If anyone can pitch in to help Paul out with this code, it would be a great contribution that would make everyone's life a lot easier... 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 lstagner at uci.edu Wed Jul 30 20:29:41 2014 From: lstagner at uci.edu (Luke Stagner) Date: Wed, 30 Jul 2014 17:29:41 -0700 Subject: [IPython-dev] IDL/GDL kernel Message-ID: <53D98DF5.7000100@uci.edu> Hello All, I am a graduate student studying plasma physics. I have made a mostly functional IDL/GDL(just GDL for now) kernel using the new wrapper kernel feature. I borrowed heavily from the bash_kernel example. If it is not too much trouble I need some help with two things. 1. IPython doesn't kill GDL process when shutting down or restarting the kernel. I have defined the do_shutdown to kill the process but that doesn't seem to do anything. 2. Inline Plots: My current method is to have GDL make pngs of the plots and then publishing them. Unfortunately this is not working and I am not sure why. Plasma physics is very much stuck using IDL because of all the legacy software. My hope is that this kernel will act as a gateway drug towards more open programming languages. When IPython 3/Jupyter comes out I am going to try to convince the computer staff at the DIII-D National Ignition Facility to install the multi-user notebook server with many different kernels installed. Thanks for your time -Luke Stagner -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmckerns at caltech.edu Wed Jul 30 20:40:31 2014 From: mmckerns at caltech.edu (Michael McKerns) Date: Wed, 30 Jul 2014 20:40:31 -0400 (EDT) Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: <53D98DF5.7000100@uci.edu> References: <53D98DF5.7000100@uci.edu> Message-ID: <59944.67.186.183.87.1406767231.squirrel@webmail.caltech.edu> Luke, I know it's not what you are asking? but just to throw this into the mix. you might be able to bridge some gaps with one of my old packages, pyIDL. I'm just putting it out there in case you haven't come across it. It's unmaintained, but was fairly feature complete a few years back. I just stopped using IDL. https://pypi.python.org/pypi/pyIDL/ http://www.cacr.caltech.edu/~mmckerns/pyIDL.html http://sourceforge.net/projects/pyidl/ I'm guessing that you could see what I did to stop the IDL processes in my IDL bindings, and maybe then leverage that. > Hello All, > > I am a graduate student studying plasma physics. I have made a mostly > functional IDL/GDL(just GDL for now) kernel > using the new wrapper kernel > feature. I borrowed heavily from the bash_kernel > example. If it is not too > much trouble I need some help with two things. > > 1. IPython doesn't kill GDL process when shutting down or restarting the > kernel. I have defined the do_shutdown > > to kill the process but that doesn't seem to do anything. > 2. Inline Plots: My current method > > is to have GDL make pngs of the plots and then publishing them. > Unfortunately this is not working and I am not sure why. > > Plasma physics is very much stuck using IDL because of all the legacy > software. My hope is that this kernel will act as a gateway drug towards > more open programming languages. When IPython 3/Jupyter comes out I am > going to try to convince the computer staff at the DIII-D National > Ignition Facility to install the multi-user notebook server with many > different kernels installed. > > Thanks for your time > > -Luke Stagner > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > --- Mike McKerns California Institute of Technology http://www.its.caltech.edu/~mmckerns From doug.blank at gmail.com Wed Jul 30 20:42:11 2014 From: doug.blank at gmail.com (Doug Blank) Date: Wed, 30 Jul 2014 20:42:11 -0400 Subject: [IPython-dev] [IPython-User] IPython Notebooks and Active Learning (Matthew Brett) In-Reply-To: References: Message-ID: On Wed, Jul 30, 2014 at 7:30 PM, Fernando Perez wrote: > > On Wed, Jul 30, 2014 at 4:33 AM, Doug Blank wrote: > >> Being in the middle of writing similar notebooks, we found that using >> header cells can be quite painful when it comes to moving sections around. >> For example, if you want to move a section, one has to individually select, >> press up/down, for all cells in a section. > > > That is really a big pain point in managing any kind of complex/long > notebook. Paul Ivanov recently protoyped out a solution for this: > > https://github.com/ivanov/nb-cccp > > I've been using it and it works fairly well, even though it's not really > production-ready yet. We in the core team are really trying to get 3.0 out > the door, so I'm not sure how much bandwidth Paul will have for this in the > coming weeks. But it would be a great tool to finish up, because it's > *super* useful. > > If anyone can pitch in to help Paul out with this code, it would be a > great contribution that would make everyone's life a lot easier... > Yes, many problems can be solved by being able to select multiple cells, and operate on them. One should be able to make many of the operations that can work on a selected cell to work on a set of selected cells. This extension is really only a temporary workaround for that kind of functionality. And, once there is a method to select multiple cells, it would be really handy to be able to drag and drop those cells where you want them. But, I am really looking forward to a server-based Jupyter setup, with selectable kernels, so I don't want to distract from the big picture :) With the set of extension tools we have now, we are confident that this will work well for a writing course this fall. -Doug > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Wed Jul 30 20:54:42 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 30 Jul 2014 17:54:42 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: <53D98DF5.7000100@uci.edu> References: <53D98DF5.7000100@uci.edu> Message-ID: Hi Luke, On 30 July 2014 17:29, Luke Stagner wrote: > I am a graduate student studying plasma physics. I have made a mostly > functional IDL/GDL(just GDL for now) kernel > using the new wrapper kernel > feature. I borrowed heavily from the bash_kernel > example. If it is not too much > trouble I need some help with two things. > Cool, I'm glad to hear that the API and the example are useful. > 1. IPython doesn't kill GDL process when shutting down or restarting the > kernel. I have defined the do_shutdown > > to kill the process but that doesn't seem to do anything. > That's strange. I've just tried with my bash kernel, which doesn't implement do_shutdown at all, and it does stop the process correctly (the server stops the wrapper process, and that automatically causes the child process to die). I don't know exactly what could be interfering with that, but I'll keep thinking. > 2. Inline Plots: My current method > is > to have GDL make pngs of the plots and then publishing them. Unfortunately > this is not working and I am not sure why. > It should work. Looking at your code, you should switch back to the commented out line that opens and reads the image files, rather than displaying the filenames. If you comment out the rmtree(plot_dir) line, are the images being written as you expect? Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Wed Jul 30 21:20:03 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 30 Jul 2014 18:20:03 -0700 Subject: [IPython-dev] [IPython-User] IPython Notebooks and Active Learning (Matthew Brett) In-Reply-To: References: Message-ID: On Wed, Jul 30, 2014 at 5:42 PM, Doug Blank wrote: > Yes, many problems can be solved by being able to select multiple cells, > and operate on them. One should be able to make many of the operations that > can work on a selected cell to work on a set of selected cells. This > extension is really only a temporary workaround for that kind of > functionality. > > And, once there is a method to select multiple cells, it would be really > handy to be able to drag and drop those cells where you want them. > Yup, ultimately that's the UI work that needs to be done. > > But, I am really looking forward to a server-based Jupyter setup, with > selectable kernels, so I don't want to distract from the big picture :) > With the set of extension tools we have now, we are confident that this > will work well for a writing course this fall. > Thanks for your patience, and kudos on the great work you've been doing on your side! 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 lstagner at uci.edu Wed Jul 30 21:32:13 2014 From: lstagner at uci.edu (Luke Stagner) Date: Wed, 30 Jul 2014 18:32:13 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: References: Message-ID: <53D99C9D.4070900@uci.edu> Thomas, I am glad I am not the only one stumped by this. I have done what you have suggested and I verified that it is producing the .png files. If I were to hazard a guess I would say that publish_display_data is not connecting to the notebook. -Luke On 07/30/2014 05:41 PM, ipython-dev-request at scipy.org wrote: > ------------------------------ > > Message: 6 > Date: Wed, 30 Jul 2014 17:54:42 -0700 > From: Thomas Kluyver > Subject: Re: [IPython-dev] IDL/GDL kernel > To: IPython developers list > Message-ID: > > Content-Type: text/plain; charset="utf-8" > > Hi Luke, > > On 30 July 2014 17:29, Luke Stagner wrote: > >> >I am a graduate student studying plasma physics. I have made a mostly >> >functional IDL/GDL(just GDL for now) kernel >> > using the new wrapper kernel >> >feature. I borrowed heavily from the bash_kernel >> > example. If it is not too much >> >trouble I need some help with two things. >> > > Cool, I'm glad to hear that the API and the example are useful. > > >> > 1. IPython doesn't kill GDL process when shutting down or restarting the >> >kernel. I have defined the do_shutdown >> > >> >to kill the process but that doesn't seem to do anything. >> > > That's strange. I've just tried with my bash kernel, which doesn't > implement do_shutdown at all, and it does stop the process correctly (the > server stops the wrapper process, and that automatically causes the child > process to die). I don't know exactly what could be interfering with that, > but I'll keep thinking. > > >> >2. Inline Plots: My current method >> > is >> >to have GDL make pngs of the plots and then publishing them. Unfortunately >> >this is not working and I am not sure why. >> > > It should work. Looking at your code, you should switch back to the > commented out line that opens and reads the image files, rather than > displaying the filenames. If you comment out the rmtree(plot_dir) line, are > the images being written as you expect? > > Thomas > -------------- next part -------------- > An HTML attachment was scrubbed... > URL:http://mail.scipy.org/pipermail/ipython-dev/attachments/20140730/0ed4b32f/attachment.html > > ------------------------------ From takowl at gmail.com Wed Jul 30 22:30:18 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 30 Jul 2014 19:30:18 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: <53D99C9D.4070900@uci.edu> References: <53D99C9D.4070900@uci.edu> Message-ID: On 30 July 2014 18:32, Luke Stagner wrote: > I have done what you have suggested and I verified that it is producing > the .png files. If I were to hazard a guess I would say that > publish_display_data is not connecting to the notebook. > Ah, digging into the code, you're right. publish_display_data depends on the IPython shell machinery, which is not being spun up for non-IPython kernels. You should be able to do it like this: self.send_response(self.iopub_socket, 'display_data', {'image/png': data}) Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Wed Jul 30 22:47:13 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 30 Jul 2014 19:47:13 -0700 Subject: [IPython-dev] Public-domain browser terminal interface In-Reply-To: References: Message-ID: The author of GraphTerm has just contacted me to say that he's pulled out the plain web terminal component - a combination of frontend stuff from term.js and updated Python code on the backend (so we don't have to handle more JS than we have to). It's BSD licensed, based on Tornado, uses websockets and appears to support Python 3, and Dr. Saravanan says he'd be happy to help us integrate it into IPython. https://github.com/mitotic/pyxterm Thomas On 8 July 2014 13:42, William Stein wrote: > On Tue, Jul 8, 2014 at 1:31 PM, Fernando Perez > wrote: > > > > On Tue, Jul 8, 2014 at 3:26 PM, William Stein wrote: > >> > >> What about term.js? It's MIT licensed (partly due to me asking > >> nicely), and is what many online IDE projects (including > >> SageMathCloud) use: > >> > >> https://github.com/chjj/term.js/ > > > > > > Thanks, that's the link I had in mind!! > > > >> > >> Maybe it isn't an option for you because the backend is Node.js > >> instead of Python. I just wanted to double check, just in case. > > > > > > Not a problem at all. We're thinking of this for the multiuser server, > which > > has a Node component as well, so it's perfect. > > > > We might take you up on your 'pile of code' offer later, but we'll let > you > > know if we have the bandwidth for it. To start with, we'll probably be OK > > with the plain vanilla code as-is. > > > > Thanks again! > > One particular thing I added was resizing the backend pty in response > to changing the terminal size. This involved a little bit of new > tricky node.js code. > It works in node 0.8.x, but didn't work _last time I tried_ with Node > 0.10.x, which is why all SageMathCloud projects are still running > 0.8.x. > > Anyway, if you guys go with term.js you'll inevitably run into the > same issue, so keep me posted. > > -- W/illiam > > > > > 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 > > > > > > -- > William Stein > Professor of Mathematics > University of Washington > http://wstein.org > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Wed Jul 30 22:50:52 2014 From: ellisonbg at gmail.com (Brian Granger) Date: Wed, 30 Jul 2014 19:50:52 -0700 Subject: [IPython-dev] Public-domain browser terminal interface In-Reply-To: References: Message-ID: Yes, that is really great! That will make it much easier to offer the terminal in contexts where node.js isn't in the backend. Fantastic! On Wed, Jul 30, 2014 at 7:47 PM, Thomas Kluyver wrote: > The author of GraphTerm has just contacted me to say that he's pulled out > the plain web terminal component - a combination of frontend stuff from > term.js and updated Python code on the backend (so we don't have to handle > more JS than we have to). It's BSD licensed, based on Tornado, uses > websockets and appears to support Python 3, and Dr. Saravanan says he'd be > happy to help us integrate it into IPython. > > https://github.com/mitotic/pyxterm > > Thomas > > > On 8 July 2014 13:42, William Stein wrote: >> >> On Tue, Jul 8, 2014 at 1:31 PM, Fernando Perez >> wrote: >> > >> > On Tue, Jul 8, 2014 at 3:26 PM, William Stein wrote: >> >> >> >> What about term.js? It's MIT licensed (partly due to me asking >> >> nicely), and is what many online IDE projects (including >> >> SageMathCloud) use: >> >> >> >> https://github.com/chjj/term.js/ >> > >> > >> > Thanks, that's the link I had in mind!! >> > >> >> >> >> Maybe it isn't an option for you because the backend is Node.js >> >> instead of Python. I just wanted to double check, just in case. >> > >> > >> > Not a problem at all. We're thinking of this for the multiuser server, >> > which >> > has a Node component as well, so it's perfect. >> > >> > We might take you up on your 'pile of code' offer later, but we'll let >> > you >> > know if we have the bandwidth for it. To start with, we'll probably be >> > OK >> > with the plain vanilla code as-is. >> > >> > Thanks again! >> >> One particular thing I added was resizing the backend pty in response >> to changing the terminal size. This involved a little bit of new >> tricky node.js code. >> It works in node 0.8.x, but didn't work _last time I tried_ with Node >> 0.10.x, which is why all SageMathCloud projects are still running >> 0.8.x. >> >> Anyway, if you guys go with term.js you'll inevitably run into the >> same issue, so keep me posted. >> >> -- W/illiam >> >> > >> > 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 >> > >> >> >> >> -- >> William Stein >> Professor of Mathematics >> University of Washington >> http://wstein.org >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > 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 @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com From fperez.net at gmail.com Wed Jul 30 23:10:53 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 30 Jul 2014 20:10:53 -0700 Subject: [IPython-dev] Public-domain browser terminal interface In-Reply-To: References: Message-ID: On Wed, Jul 30, 2014 at 7:50 PM, Brian Granger wrote: > Yes, that is really great! That will make it much easier to offer the > terminal in contexts where node.js isn't in the backend. Fantastic! > +lots!! Very happy to hear this, thanks Thomas for following up... -- 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 lstagner at uci.edu Wed Jul 30 23:27:28 2014 From: lstagner at uci.edu (Luke Stagner) Date: Wed, 30 Jul 2014 20:27:28 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: References: <53D99C9D.4070900@uci.edu> Message-ID: <53D9B7A0.5050309@uci.edu> Hmm, that didn't seem to work. I now get the following error with the following revision . I must be doing something wrong. -Luke On 07/30/2014 07:30 PM, Thomas Kluyver wrote: > On 30 July 2014 18:32, Luke Stagner > wrote: > > I have done what you have suggested and I verified that it is > producing > the .png files. If I were to hazard a guess I would say that > publish_display_data is not connecting to the notebook. > > > Ah, digging into the code, you're right. publish_display_data depends > on the IPython shell machinery, which is not being spun up for > non-IPython kernels. > > You should be able to do it like this: > self.send_response(self.iopub_socket, 'display_data', {'image/png': data}) > > Thomas > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Wed Jul 30 23:40:35 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 30 Jul 2014 20:40:35 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: <53D9B7A0.5050309@uci.edu> References: <53D99C9D.4070900@uci.edu> <53D9B7A0.5050309@uci.edu> Message-ID: On 30 July 2014 20:27, Luke Stagner wrote: > Hmm, that didn't seem to work. I now get the following error > > with the following revision > . > I must be doing something wrong. > Oh yes, using that lower level interface, you'll need to base64 encode the data yourself. JSON can only handle text, not arbitrary bytes. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From lstagner at uci.edu Thu Jul 31 00:04:45 2014 From: lstagner at uci.edu (Luke Stagner) Date: Wed, 30 Jul 2014 21:04:45 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: References: <53D99C9D.4070900@uci.edu> <53D9B7A0.5050309@uci.edu> Message-ID: <53D9C05D.1030204@uci.edu> Good news no more error. Bad news still no inline plot. I even set it so that it reads some random png I have every time and still no go. Luke On 07/30/2014 08:40 PM, Thomas Kluyver wrote: > On 30 July 2014 20:27, Luke Stagner > wrote: > > Hmm, that didn't seem to work. I now get the following error > > with the following revision > . > I must be doing something wrong. > > > Oh yes, using that lower level interface, you'll need to base64 encode > the data yourself. JSON can only handle text, not arbitrary bytes. > > Thomas > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From lstagner at uci.edu Thu Jul 31 02:52:10 2014 From: lstagner at uci.edu (Luke Stagner) Date: Wed, 30 Jul 2014 23:52:10 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: References: <53D99C9D.4070900@uci.edu> <53D9B7A0.5050309@uci.edu> Message-ID: <53D9E79A.1070603@uci.edu> In regards to the kernel not shutting down the GDL process. It seems that kernel.do_shutdown is not being overridden by GDLKernel.do_shutdown. To check this I threw in an assert that will fail if GDLKernel.do_shutdown gets called. Suffice to say that assert is never thrown. -Luke On 07/30/2014 08:40 PM, Thomas Kluyver wrote: > On 30 July 2014 20:27, Luke Stagner > wrote: > > Hmm, that didn't seem to work. I now get the following error > > with the following revision > . > I must be doing something wrong. > > > Oh yes, using that lower level interface, you'll need to base64 encode > the data yourself. JSON can only handle text, not arbitrary bytes. > > Thomas > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.f.moore at gmail.com Thu Jul 31 03:00:38 2014 From: p.f.moore at gmail.com (Paul Moore) Date: Thu, 31 Jul 2014 08:00:38 +0100 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: <53D9E79A.1070603@uci.edu> References: <53D99C9D.4070900@uci.edu> <53D9B7A0.5050309@uci.edu> <53D9E79A.1070603@uci.edu> Message-ID: On 31 July 2014 07:52, Luke Stagner wrote: > In regards to the kernel not shutting down the GDL process. It seems that > kernel.do_shutdown is not being overridden by GDLKernel.do_shutdown. To > check this I threw in an assert that will fail if GDLKernel.do_shutdown gets > called. Suffice to say that assert is never thrown. >From visual inspection, it appears to me that do_shutdown is indented too far, making it a local function of do_execute, rather than a method of the class. Paul From lstagner at uci.edu Thu Jul 31 03:07:05 2014 From: lstagner at uci.edu (Luke Stagner) Date: Thu, 31 Jul 2014 00:07:05 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: References: <53D99C9D.4070900@uci.edu> <53D9B7A0.5050309@uci.edu> <53D9E79A.1070603@uci.edu> Message-ID: <53D9EB19.70104@uci.edu> I always suspected that I had no idea what I was doing. Its nice to finally have proof. On 07/31/2014 12:00 AM, Paul Moore wrote: > On 31 July 2014 07:52, Luke Stagner wrote: >> In regards to the kernel not shutting down the GDL process. It seems that >> kernel.do_shutdown is not being overridden by GDLKernel.do_shutdown. To >> check this I threw in an assert that will fail if GDLKernel.do_shutdown gets >> called. Suffice to say that assert is never thrown. > >From visual inspection, it appears to me that do_shutdown is indented > too far, making it a local function of do_execute, rather than a > method of the class. > > Paul > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From ingolf.becker at googlemail.com Thu Jul 31 06:18:42 2014 From: ingolf.becker at googlemail.com (Ingolf Becker) Date: Thu, 31 Jul 2014 11:18:42 +0100 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: References: Message-ID: Dear Mark very nice notebooks! I particularl On 29 July 2014 21:56, Mark Bakker wrote: > We have developed a series of 15 Notebooks for scientists and engineers > who want to use Python programming for exploratory computing, scipting, > data analysis, and visualization.The Notebooks were developed for an > undergraduate class (sophomores) in Civil Engineering. No prior knowledge > of computer programming is assumed. Each Notebook covers a specific topic > and includes a number of exercises. The exercises should take less than 4 > hours to complete for each Notebook. > > The Notebooks may be viewed at > http://mbakker7.github.io/exploratory_computing_with_python/ > A link to the GitHub repository is also shown on this page. > > Hope you find them useful, > > Mark Bakker > TU Delft, The Netherlands > > _______________________________________________ > 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 ingolf.becker at googlemail.com Thu Jul 31 06:25:08 2014 From: ingolf.becker at googlemail.com (Ingolf Becker) Date: Thu, 31 Jul 2014 11:25:08 +0100 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: References: Message-ID: Sorry about that - I particularly like the notebooks on water management and the time series analysis. Just a remark though: I would avoid using %pylab inline - it has some hideous side effects [1] (and there was talk of it being removed entirely in future versions) `%matplotlib inline from matplotlib import pyplot as plt` should be preferred. [1] https://carreau.github.io/posts/10-No-PyLab-Thanks.ipynb.html Thank you for sharing! On 31 July 2014 11:18, Ingolf Becker wrote: > Dear Mark > > very nice notebooks! I particularl > > > On 29 July 2014 21:56, Mark Bakker wrote: > >> We have developed a series of 15 Notebooks for scientists and engineers >> who want to use Python programming for exploratory computing, scipting, >> data analysis, and visualization.The Notebooks were developed for an >> undergraduate class (sophomores) in Civil Engineering. No prior >> knowledge of computer programming is assumed. Each Notebook covers a >> specific topic and includes a number of exercises. The exercises should >> take less than 4 hours to complete for each Notebook. >> >> The Notebooks may be viewed at >> http://mbakker7.github.io/exploratory_computing_with_python/ >> A link to the GitHub repository is also shown on this page. >> >> Hope you find them useful, >> >> Mark Bakker >> TU Delft, The Netherlands >> >> _______________________________________________ >> 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 gelonida at gmail.com Thu Jul 31 07:30:31 2014 From: gelonida at gmail.com (Gelonida) Date: Thu, 31 Jul 2014 13:30:31 +0200 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: References: Message-ID: <53DA28D7.3040404@gmail.com> Hi Mark, Small suggestion to add some clarifying information to your link. On 7/29/2014 10:56 PM, Mark Bakker wrote: > We have developed a series of 15 Notebooks for scientists and > engineers who want to use Python programming for exploratory > computing, scipting, data analysis, and visualization.The Notebooks > were developed for an undergraduate class (sophomores) in Civil > Engineering. No prior knowledge of computer programming is assumed. > Each Notebook covers a specific topic and includes a number of > exercises. The exercises should take less than 4 hours to complete for > each Notebook. > > The Notebooks may be viewed at > http://mbakker7.github.io/exploratory_computing_with_python/ > A link to the GitHub repository is also shown on this page. > These links look interesting and I know a few persons who might enjoy learning a little about python this way. However as a notebook newbie (I only used ipython as interactive shell so far and did not read more about notebooks) I am a little confused. The web page seems to be aimed at newbies. It gives the impression, that I just have to go to http://mbakker7.github.io/exploratory_computing_with_python/ and then to click on notebook 1 ( http://nbviewer.ipython.org/github/mbakker7/exploratory_computing_with_python/blob/master/notebook1/py_exploratory_comp_1_sol.ipynb ) and that I could then change the contents of the input field, press shift-enter and then see the new result. But it seems, that this is just a static version of the ipython notebook. Only when - downloading the file - installing all package dependencies (IMHO very difficult for python newbies at least on windows) , - starting a cmd window - and running C:\Python27\Scripts\ipython notebook I was able to use the notebook as described. I assume, that with above procedure you'd loose about 99% of the newbies who could have been interested in trying out python/notebooks. Wouldn't it be possible to add a more explicit link which mentions at least, that the notebooks cannot be executed immediately or even better a link to a page trying to explain (even if not aimed for newbies) how to use/install ipython/notebooks? _ _ -------------- next part -------------- An HTML attachment was scrubbed... URL: From gvwilson at third-bit.com Thu Jul 31 13:56:47 2014 From: gvwilson at third-bit.com (Greg Wilson) Date: Thu, 31 Jul 2014 13:56:47 -0400 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: References: Message-ID: <53DA835F.7050000@third-bit.com> Mark Bakker > wrote: We have developed a series of 15 Notebooks for scientists and engineers who want to use Python programming for exploratory computing, scipting, data analysis, and visualization.... Satrajit Ghosh wrote: > - how could we disseminate or find such modules that can be used for > teaching, without having to go through every single notebook? > - how do we describe the prior knowledge required through a dependency > structure? Greg Wilson writes: During our sprint last week, R?mi Emonet and Raniere Silva started exploring the idea of using off-the-shelf package managers to manage lesson material [1,2] so that something like: $ conda install barba-12-steps-navier-stokes will do what it should. I'm really excited by the idea, and hope to put some time into it once September rolls around - if people are interested, I'll send a note to this list once work gets under way. Thanks, Greg Wilson [1] https://softwarecarpentrylessonmanager.github.io/lesson-manager/04-howto.html [2] http://blog.rgaiacs.com/2014/07/27/sprint.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From markbak at gmail.com Thu Jul 31 15:44:58 2014 From: markbak at gmail.com (Mark Bakker) Date: Thu, 31 Jul 2014 21:44:58 +0200 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing Message-ID: Yeah, good point about the %matplotlib inline. That is much better. The thing is that I am using Canopy in class and when you start an IPython Notebook in Canopy I think it starts by default in what used to be pylab mode. I wonder what it does now, as the --pylab flag is gone. Should try that, as this was the behavior in the class last year. From: Ingolf Becker > > I particularly like the notebooks on water management and the time series > analysis. Just a remark though: > I would avoid using %pylab inline - it has some hideous side effects [1] > (and there was talk of it being removed entirely in future versions) > `%matplotlib inline > from matplotlib import pyplot as plt` > should be preferred. > > [1] https://carreau.github.io/posts/10-No-PyLab-Thanks.ipynb.html > > Thank you for sharing! > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From markbak at gmail.com Thu Jul 31 15:49:53 2014 From: markbak at gmail.com (Mark Bakker) Date: Thu, 31 Jul 2014 21:49:53 +0200 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing Message-ID: Good point. For the class I obviously had installation instructions. They are quite easy when you install a packaged bundle (Canopy Express, PythonXY, Anaconda). We used Canopy Express in the class and that worked well. All Notebooks were also accompanied by 10-15 minute videos outlining the new features that were used in the Notebook. I will have to redo some of those videos and will add links to them in the next few weeks. For now I will add some information about installing and getting started. That is indeed a very good idea and should get newbies up and running, Mark On Thu, Jul 31, 2014 at 7:00 PM, wrote: > From: Gelonida > Hi Mark, > > > Small suggestion to add some clarifying information to your link. > > These links look interesting and I know a few persons who might enjoy > learning a little about python this way. > However as a notebook newbie (I only used ipython as interactive shell > so far and did not read more about notebooks) I am a little confused. > > The web page seems to be aimed at newbies. > It gives the impression, that I just have to go to > http://mbakker7.github.io/exploratory_computing_with_python/ > and then to click on notebook 1 ( > > http://nbviewer.ipython.org/github/mbakker7/exploratory_computing_with_python/blob/master/notebook1/py_exploratory_comp_1_sol.ipynb > ) > and that I could then change the contents of the input field, press > shift-enter and then see the new result. > > But it seems, that this is just a static version of the ipython notebook. > > Only when > - downloading the file > - installing all package dependencies (IMHO very difficult for python > newbies at least on windows) , > - starting a cmd window > - and running C:\Python27\Scripts\ipython notebook > > I was able to use the notebook as described. > > I assume, that with above procedure you'd loose about 99% of the newbies > who could have been interested in trying out python/notebooks. > > Wouldn't it be possible to add a more explicit link which mentions at > least, that the notebooks cannot be executed immediately or even better > a link to a page trying to explain (even if not aimed for newbies) > how to use/install ipython/notebooks? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Thu Jul 31 18:55:01 2014 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 31 Jul 2014 15:55:01 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: <53D9C05D.1030204@uci.edu> References: <53D99C9D.4070900@uci.edu> <53D9B7A0.5050309@uci.edu> <53D9C05D.1030204@uci.edu> Message-ID: On 30 July 2014 21:04, Luke Stagner wrote: > Good news no more error. Bad news still no inline plot. I even set it so > that it reads some random png I have every time and still no go. > Sorry, I got the message structure wrong when I gave you an example without trying it. This time, here's an example that I have tested and ensured that it works: with open('foo.png', 'rb') as f: import base64 imgdata = base64.b64encode(f.read()) self.send_response(self.iopub_socket, 'display_data', {'data':{'image/png': imgdata.decode('ascii')}}) -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Thu Jul 31 19:01:29 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Thu, 31 Jul 2014 16:01:29 -0700 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: <53DA835F.7050000@third-bit.com> References: <53DA835F.7050000@third-bit.com> Message-ID: On Thu, Jul 31, 2014 at 10:56 AM, Greg Wilson wrote: > During our sprint last week, R?mi Emonet and Raniere Silva started > exploring the idea of using off-the-shelf package managers to manage lesson > material [1,2] so that something like: > > $ conda install barba-12-steps-navier-stokes > > will do what it should. I'm really excited by the idea, and hope to put > some time into it once September rolls around - if people are interested, > I'll send a note to this list once work gets under way. > Please do so! I've been thinking lately a lot along those lines as well, the 'code and data (up to some size limits) as a package'. I think there's a lot of potential in that line of thinking, and we may be able to leverage a lot of existing technology to make it easier to reuse bundles of material that focus on a specific teaching or research context, making both education and reproducible research easier. The fact that there are valid limits to the above with enormous data sizes shouldn't deter us from making progress on the many use cases where that won't be an issue. 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 fperez.net at gmail.com Thu Jul 31 19:02:46 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Thu, 31 Jul 2014 16:02:46 -0700 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: References: Message-ID: On Thu, Jul 31, 2014 at 12:44 PM, Mark Bakker wrote: > Yeah, good point about the %matplotlib inline. That is much better. The > thing is that I am using Canopy in class and when you start an IPython > Notebook in Canopy I think it starts by default in what used to be pylab > mode. I wonder what it does now, as the --pylab flag is gone. Should try > that, as this was the behavior in the class last year. Just ignore that: if you add the explicit %matplotlib call and the manual imports, the code will still work in canopy, and it will *also* work for anyone who starts without the global --pylab flag. So just do the 'new right thing' manually with %matplotlib, and it will work fine transparently. 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 fperez.net at gmail.com Thu Jul 31 19:08:14 2014 From: fperez.net at gmail.com (Fernando Perez) Date: Thu, 31 Jul 2014 16:08:14 -0700 Subject: [IPython-dev] IDL/GDL kernel In-Reply-To: References: <53D99C9D.4070900@uci.edu> <53D9B7A0.5050309@uci.edu> <53D9C05D.1030204@uci.edu> Message-ID: Do you think it's worth adding this to the base class as a utility method(s)? On Thu, Jul 31, 2014 at 3:55 PM, Thomas Kluyver wrote: > On 30 July 2014 21:04, Luke Stagner wrote: > >> Good news no more error. Bad news still no inline plot. I even set it so >> that it reads some random png I have every time and still no go. >> > > Sorry, I got the message structure wrong when I gave you an example > without trying it. This time, here's an example that I have tested and > ensured that it works: > > with open('foo.png', 'rb') as f: > > import base64 > > imgdata = base64.b64encode(f.read()) > > self.send_response(self.iopub_socket, 'display_data', > {'data':{'image/png': imgdata.decode('ascii')}}) > > > _______________________________________________ > 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 doug.blank at gmail.com Thu Jul 31 20:36:51 2014 From: doug.blank at gmail.com (Doug Blank) Date: Thu, 31 Jul 2014 20:36:51 -0400 Subject: [IPython-dev] Install and Demo Videos of Notebook Extensions Message-ID: Here are some new videos showing installation and demonstration of the Spell Check, Document Tools, and Cell Tools. Document Tools includes section movers, heading numbering, table of contents, and bibliographic tools (biblio not demoed yet) Cell Tools includes Input/Output tabs, and two column view. Installation videos: 1) Jupyter Notebook Cell Tools Extension Installation (Windows) https://www.youtube.com/watch?v=WwoTzvOkEJQ 2) Jupyter Notebook Document Tools Extension Installation (Windows) https://www.youtube.com/watch?v=YbM8rrj-Bms 3) Jupyter Notebook Spell Check Extension Installation (Windows) https://www.youtube.com/watch?v=Km3AtRynWFQ Demonstration videos: 4) Jupyter Notebook Cell Tools Extension Demonstration https://www.youtube.com/watch?v=dBB1TCWQgBg 5) Jupyter Notebook Document Tools Extension Demonstration https://www.youtube.com/watch?v=LRzUSilYEks 6) Jupyter Notebook Spell Check Extension Demonstration https://www.youtube.com/watch?v=o4xCp3b4oCw -Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at mit.edu Thu Jul 31 20:58:27 2014 From: satra at mit.edu (Satrajit Ghosh) Date: Thu, 31 Jul 2014 20:58:27 -0400 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: References: <53DA835F.7050000@third-bit.com> Message-ID: hi greg and fernando, along these both git-annex [1] and ipfs [2] might be solutions for the near future, and would offer easy flexibility across data sizes. cheers, satra [1] https://git-annex.branchable.com/ [2] http://ipfs.io On Thu, Jul 31, 2014 at 7:01 PM, Fernando Perez wrote: > > On Thu, Jul 31, 2014 at 10:56 AM, Greg Wilson > wrote: > >> During our sprint last week, R?mi Emonet and Raniere Silva started >> exploring the idea of using off-the-shelf package managers to manage lesson >> material [1,2] so that something like: >> >> $ conda install barba-12-steps-navier-stokes >> >> will do what it should. I'm really excited by the idea, and hope to put >> some time into it once September rolls around - if people are interested, >> I'll send a note to this list once work gets under way. >> > > Please do so! I've been thinking lately a lot along those lines as well, > the 'code and data (up to some size limits) as a package'. I think there's > a lot of potential in that line of thinking, and we may be able to leverage > a lot of existing technology to make it easier to reuse bundles of material > that focus on a specific teaching or research context, making both > education and reproducible research easier. > > The fact that there are valid limits to the above with enormous data sizes > shouldn't deter us from making progress on the many use cases where that > won't be an issue. > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan12343 at gmail.com Thu Jul 31 21:11:30 2014 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Thu, 31 Jul 2014 18:11:30 -0700 Subject: [IPython-dev] Install and Demo Videos of Notebook Extensions In-Reply-To: References: Message-ID: Thanks very much for forwarding the videos - it was very nice to have the demo to see what your extensions look like in practice. I believe this was already discussed in an earlier thread, but it would be very nice if there were a way to select suggestions for misspelled words. I do this all time time using chrome's spell-checker, so it's a bit of a habit to right-click on words that have squiggly red underlines. I guess some people don't like messing with the right-click menu, so maybe it could be toggled somehow? In any case, having indicators about misspelled words at all is a huge improvement. Thanks for sharing the extension. -Nathan On Thu, Jul 31, 2014 at 5:36 PM, Doug Blank wrote: > Here are some new videos showing installation and demonstration of the > Spell Check, Document Tools, and Cell Tools. > > Document Tools includes section movers, heading numbering, table of > contents, and bibliographic tools (biblio not demoed yet) > > Cell Tools includes Input/Output tabs, and two column view. > > Installation videos: > > 1) Jupyter Notebook Cell Tools Extension Installation (Windows) > https://www.youtube.com/watch?v=WwoTzvOkEJQ > > 2) Jupyter Notebook Document Tools Extension Installation (Windows) > https://www.youtube.com/watch?v=YbM8rrj-Bms > > 3) Jupyter Notebook Spell Check Extension Installation (Windows) > https://www.youtube.com/watch?v=Km3AtRynWFQ > > Demonstration videos: > > 4) Jupyter Notebook Cell Tools Extension Demonstration > https://www.youtube.com/watch?v=dBB1TCWQgBg > > 5) Jupyter Notebook Document Tools Extension Demonstration > https://www.youtube.com/watch?v=LRzUSilYEks > > 6) Jupyter Notebook Spell Check Extension Demonstration > https://www.youtube.com/watch?v=o4xCp3b4oCw > > -Doug > > > _______________________________________________ > 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 gvwilson at third-bit.com Thu Jul 31 21:39:47 2014 From: gvwilson at third-bit.com (Greg Wilson) Date: Thu, 31 Jul 2014 21:39:47 -0400 Subject: [IPython-dev] Announcement: Set of IPython Notebooks to learn Python for Exploratory Computing In-Reply-To: References: <53DA835F.7050000@third-bit.com> Message-ID: <53DAEFE3.3000005@third-bit.com> On Thu, Jul 31, 2014 at 10:56 AM, Greg Wilson > wrote: During our sprint last week, R?mi Emonet and Raniere Silva started exploring the idea of using off-the-shelf package managers to manage lesson material [1,2] so that something like: $ conda install barba-12-steps-navier-stokes will do what it should. I'm really excited by the idea, and hope to put some time into it once September rolls around - if people are interested, I'll send a note to this list once work gets under way. On 2014-07-31 7:01 PM, Fernando Perez wrote: > Please do so! I've been thinking lately a lot along those lines as > well, the 'code and data (up to some size limits) as a package'. I > think there's a lot of potential in that line of thinking, and we may > be able to leverage a lot of existing technology to make it easier to > reuse bundles of material that focus on a specific teaching or > research context, making both education and reproducible research easier. Yeah - what I *actually* want to be able to do is: $ conda install doi://10.1371/journal.pone.0103452 and get the source of the paper, the code, the libraries the code depends on (in a safely sandboxed environment), and either the data or links to the data (or torrent files for the data). Lessons are then just a special case... Thanks, Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Thu Jul 31 21:46:16 2014 From: doug.blank at gmail.com (Doug Blank) Date: Thu, 31 Jul 2014 21:46:16 -0400 Subject: [IPython-dev] Install and Demo Videos of Notebook Extensions In-Reply-To: References: Message-ID: On Thu, Jul 31, 2014 at 9:11 PM, Nathan Goldbaum wrote: > Thanks very much for forwarding the videos - it was very nice to have the > demo to see what your extensions look like in practice. > You are welcomed, and I agree! Sometimes it is hard to see what an extension really is, and there isn't currently an uninstall. > > I believe this was already discussed in an earlier thread, but it would be > very nice if there were a way to select suggestions for misspelled words. > I do this all time time using chrome's spell-checker, so it's a bit of a > habit to right-click on words that have squiggly red underlines. I guess > some people don't like messing with the right-click menu, so maybe it could > be toggled somehow? > > In any case, having indicators about misspelled words at all is a huge > improvement. Thanks for sharing the extension. > I agree that we should eventually add that functionality. I'm going to be using the notebooks to teach writing this Fall. I'll explain that this current method (no suggestions) fits the philosophy of the system... it doesn't do everything for you, but tries to help along the way. And, just perhaps, students might actually learn how to spell :) But yes, in the long run, it should make suggestions on right-click. Someone in the issue tracker even suggested that we could hook up functionality to do tab word completion... that would be even more in the spirit of the system :) Might as well take advantage of the dictionary, if you've got it. -Doug > > -Nathan > > > On Thu, Jul 31, 2014 at 5:36 PM, Doug Blank wrote: > >> Here are some new videos showing installation and demonstration of the >> Spell Check, Document Tools, and Cell Tools. >> >> Document Tools includes section movers, heading numbering, table of >> contents, and bibliographic tools (biblio not demoed yet) >> >> Cell Tools includes Input/Output tabs, and two column view. >> >> Installation videos: >> >> 1) Jupyter Notebook Cell Tools Extension Installation (Windows) >> https://www.youtube.com/watch?v=WwoTzvOkEJQ >> >> 2) Jupyter Notebook Document Tools Extension Installation (Windows) >> https://www.youtube.com/watch?v=YbM8rrj-Bms >> >> 3) Jupyter Notebook Spell Check Extension Installation (Windows) >> https://www.youtube.com/watch?v=Km3AtRynWFQ >> >> Demonstration videos: >> >> 4) Jupyter Notebook Cell Tools Extension Demonstration >> https://www.youtube.com/watch?v=dBB1TCWQgBg >> >> 5) Jupyter Notebook Document Tools Extension Demonstration >> https://www.youtube.com/watch?v=LRzUSilYEks >> >> 6) Jupyter Notebook Spell Check Extension Demonstration >> https://www.youtube.com/watch?v=o4xCp3b4oCw >> >> -Doug >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: