From andrew.gibiansky at gmail.com Mon Mar 2 03:23:55 2015 From: andrew.gibiansky at gmail.com (Andrew Gibiansky) Date: Mon, 2 Mar 2015 00:23:55 -0800 Subject: [IPython-dev] Disabling Authentication for Kernels Message-ID: Folks, Since IPython 3.0 has been released, I am now frantically trying to get IHaskell into a state where it can be used with 3.0 :) I am running into the issue of authentication. In previous IHaskell releases, I have disabled it via c.Session.key = b'' c.Session.keyfile = b'' as it was nontrivial to implement and had not been requested by any users. However, with Jupyter, I am attempting to avoid creating a separate IHaskell profile, so IHaskell can be used just as a Jupyter kernel. Is there a way to disable authentication for a kernel via its kernelspec/kernel.json? If not, is there any way around this issue other than creating a custom profile (or biting the bullet and figuring out and implementing authentication)? Should've started working on this ages ago, but kept having other more pressing issues... :) Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at payne.org Mon Mar 2 10:17:03 2015 From: andy at payne.org (Andrew Payne) Date: Mon, 2 Mar 2015 10:17:03 -0500 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: References: Message-ID: On Mon, Mar 2, 2015 at 3:23 AM, Andrew Gibiansky wrote: > Is there a way to disable authentication for a kernel via its > kernelspec/kernel.json? If not, is there any way around this issue other > than creating a custom profile (or biting the bullet and figuring out and > implementing authentication)? > I'm having the same issue (I think) with ITorch. ITorch does not (yet) implement message authentication for kernel messages. See: https://github.com/facebook/iTorch/issues/30 To ask a (possibly) refactored version of Andrew's question: I'm running a private notebook server with multiple kernels available (bash, Python 2, Torch, etc.). How do I disable authentication on a per-kernel basis? -andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Mar 2 12:30:11 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 2 Mar 2015 09:30:11 -0800 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: References: Message-ID: <5E2D0320-644D-44F5-B858-8B1DE2AF5AA4@gmail.com> I raised the issue here : https://github.com/ipython/ipython/issues/7337 and for now the response is No, there is no way to configure that on a per kernel basis. You could though write a mini wrapper/middleware in zmq in another language that accept unsigned message and sign them. Though keep in mind that even on localhost, zmq ports are open to everyone and are equivalent to shell access. -- M Le 2 mars 2015 ? 07:17, Andrew Payne a ?crit : > > On Mon, Mar 2, 2015 at 3:23 AM, Andrew Gibiansky wrote: > Is there a way to disable authentication for a kernel via its kernelspec/kernel.json? If not, is there any way around this issue other than creating a custom profile (or biting the bullet and figuring out and implementing authentication)? > > I'm having the same issue (I think) with ITorch. ITorch does not (yet) implement message authentication for kernel messages. See: https://github.com/facebook/iTorch/issues/30 > > To ask a (possibly) refactored version of Andrew's question: I'm running a private notebook server with multiple kernels available (bash, Python 2, Torch, etc.). How do I disable authentication on a per-kernel basis? > > -andy > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Mar 2 12:33:25 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 2 Mar 2015 09:33:25 -0800 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: References: Message-ID: On 2 March 2015 at 00:23, Andrew Gibiansky wrote: > Is there a way to disable authentication for a kernel via its > kernelspec/kernel.json? If not, is there any way around this issue other > than creating a custom profile (or biting the bullet and figuring out and > implementing authentication)? If your language has a working HMAC library, implementing the authentication should be trivial. Even in R, it wasn't hard: https://github.com/takluyver/IRkernel/blob/master/R/kernel.r#L15 Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.gibiansky at gmail.com Mon Mar 2 15:14:43 2015 From: andrew.gibiansky at gmail.com (Andrew Gibiansky) Date: Mon, 2 Mar 2015 12:14:43 -0800 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: References: Message-ID: Sounds reasonable. I sadly am not very well-versed in cryptographic hashing, which is why I originally avoided dealing with it. I've now implemented HMAC-SHA256 signing, but am generating invalid signatures. So, two questions: 1. What are good ways to debug this? 2. My suspicion is that I am treating the key incorrectly. If I understand correctly, the provided key is something like "base64-base64-base64". Is that string meant to be taken literally as the key (when decoded from Utf8), or is the idea to do a base64 decoding of that and use that as the key? Thanks, -- Andrew On Mon, Mar 2, 2015 at 9:33 AM, Thomas Kluyver wrote: > On 2 March 2015 at 00:23, Andrew Gibiansky > wrote: > >> Is there a way to disable authentication for a kernel via its >> kernelspec/kernel.json? If not, is there any way around this issue other >> than creating a custom profile (or biting the bullet and figuring out and >> implementing authentication)? > > > If your language has a working HMAC library, implementing the > authentication should be trivial. Even in R, it wasn't hard: > https://github.com/takluyver/IRkernel/blob/master/R/kernel.r#L15 > > 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 Mar 2 15:23:52 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 2 Mar 2015 12:23:52 -0800 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: References: Message-ID: On 2 March 2015 at 12:14, Andrew Gibiansky wrote: > 1. What are good ways to debug this? > I don't know of any. Hash matching is an all or nothing thing - there's no way to tell if you're nearly correct. > 2. My suspicion is that I am treating the key incorrectly. If I understand > correctly, the provided key is something like "base64-base64-base64". Is > that string meant to be taken literally as the key (when decoded from > Utf8), or is the idea to do a base64 decoding of that and use that as the > key? > Taken literally, i.e. those ascii bytes are given to the HMAC function. I believe the key is actually a UUID. You can see a very simple but valid signing function I wrote recently here: https://github.com/takluyver/aiokernel/blob/master/aiokernel.py#L15 Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.gibiansky at gmail.com Mon Mar 2 15:58:02 2015 From: andrew.gibiansky at gmail.com (Andrew Gibiansky) Date: Mon, 2 Mar 2015 12:58:02 -0800 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: References: Message-ID: Thanks for the example. Is the signature supposed to be in any way readable? I am getting something like \xf6\xd9hV\xea\xa0\xe1\x9cV\x9f"\xa5\x04\x8f\x87\x05\xd4=\xde\x04V4\xcc\x9eo\xcc/\x10\x92\x16I\x0f Perhaps this is the issue? On Mon, Mar 2, 2015 at 12:23 PM, Thomas Kluyver wrote: > On 2 March 2015 at 12:14, Andrew Gibiansky > wrote: > >> 1. What are good ways to debug this? >> > > I don't know of any. Hash matching is an all or nothing thing - there's no > way to tell if you're nearly correct. > > >> 2. My suspicion is that I am treating the key incorrectly. If I >> understand correctly, the provided key is something like >> "base64-base64-base64". Is that string meant to be taken literally as the >> key (when decoded from Utf8), or is the idea to do a base64 decoding of >> that and use that as the key? >> > > Taken literally, i.e. those ascii bytes are given to the HMAC function. I > believe the key is actually a UUID. > > You can see a very simple but valid signing function I wrote recently here: > > https://github.com/takluyver/aiokernel/blob/master/aiokernel.py#L15 > > 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 Mar 2 16:58:10 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 2 Mar 2015 13:58:10 -0800 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: References: Message-ID: On 2 March 2015 at 12:58, Andrew Gibiansky wrote: > Is the signature supposed to be in any way readable? I am getting > something like > > > \xf6\xd9hV\xea\xa0\xe1\x9cV\x9f"\xa5\x04\x8f\x87\x05\xd4=\xde\x04V4\xcc\x9eo\xcc/\x10\x92\x16I\x0f > That's the raw bytes; you need to get the hex digest. In Python, an HMAC object has methods .digest() and .hexdigest(), and we use the latter. If there isn't an explicit way to get the hex digest, translating the bytes to hex should work. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bw at activustech.com Mon Mar 2 17:20:41 2015 From: bw at activustech.com (Brian Wolf) Date: Mon, 02 Mar 2015 17:20:41 -0500 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: References: Message-ID: <54F4E239.5030704@activustech.com> Here's how I implemented authentication in Python for a project a few years ago. from passlib.context import CryptContext pwd_context = CryptContext( schemes=["sha256_crypt", "sha512_crypt", "pbkdf2_sha256"], default="sha256_crypt", all__vary_rounds = "10%", sha256_crypt__default_rounds = 10000 ) if pwd_context.verify(pwd_during_login, pwd_in_db): # password hashes match; set user as logged in else: # password hashes do not match; user not logged in Thank you. Brian ------------------------------------------------------------------------ * Activus Technologies * Brian Wolf * Phone: 410.367.2958 * ? Recurring payment solutions * ? Custom software development On 03/02/2015 03:14 PM, Andrew Gibiansky wrote: > Sounds reasonable. I sadly am not very well-versed in cryptographic > hashing, which is why I originally avoided dealing with it. > > I've now implemented HMAC-SHA256 signing, but am generating invalid > signatures. So, two questions: > > 1. What are good ways to debug this? > 2. My suspicion is that I am treating the key incorrectly. If I > understand correctly, the provided key is something like > "base64-base64-base64". Is that string meant to be taken literally as > the key (when decoded from Utf8), or is the idea to do a base64 > decoding of that and use that as the key? > > Thanks, > -- Andrew > > On Mon, Mar 2, 2015 at 9:33 AM, Thomas Kluyver > wrote: > > On 2 March 2015 at 00:23, Andrew Gibiansky > > > wrote: > > Is there a way to disable authentication for a kernel via its > kernelspec/kernel.json? If not, is there any way around this > issue other than creating a custom profile (or biting the > bullet and figuring out and implementing authentication)? > > > If your language has a working HMAC library, implementing the > authentication should be trivial. Even in R, it wasn't hard: > https://github.com/takluyver/IRkernel/blob/master/R/kernel.r#L15 > > 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 andrew.gibiansky at gmail.com Mon Mar 2 17:45:43 2015 From: andrew.gibiansky at gmail.com (Andrew Gibiansky) Date: Mon, 2 Mar 2015 14:45:43 -0800 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: <54F4E239.5030704@activustech.com> References: <54F4E239.5030704@activustech.com> Message-ID: Thank you all! I had missed the fact that it was using `hexdigest` as opposed to `digest`. It works now, albeit perhaps with a substandard SHA implementation (speed wise). -- Andrew On Mon, Mar 2, 2015 at 2:20 PM, Brian Wolf wrote: > Here's how I implemented authentication in Python for a project a few > years ago. > > from passlib.context import CryptContext > > > pwd_context = CryptContext( > schemes=["sha256_crypt", "sha512_crypt", "pbkdf2_sha256"], > default="sha256_crypt", > all__vary_rounds = "10%", > sha256_crypt__default_rounds = 10000 > ) > > > if pwd_context.verify(pwd_during_login, pwd_in_db): > # password hashes match; set user as logged in > else: > # password hashes do not match; user not logged in > > > > Thank you. > Brian > > ------------------------------ > > > - Activus Technologies > - Brian Wolf > - Phone: 410.367.2958 > - ? Recurring payment solutions > - ? Custom software development > > On 03/02/2015 03:14 PM, Andrew Gibiansky wrote: > > Sounds reasonable. I sadly am not very well-versed in cryptographic > hashing, which is why I originally avoided dealing with it. > > I've now implemented HMAC-SHA256 signing, but am generating invalid > signatures. So, two questions: > > 1. What are good ways to debug this? > 2. My suspicion is that I am treating the key incorrectly. If I understand > correctly, the provided key is something like "base64-base64-base64". Is > that string meant to be taken literally as the key (when decoded from > Utf8), or is the idea to do a base64 decoding of that and use that as the > key? > > Thanks, > -- Andrew > > On Mon, Mar 2, 2015 at 9:33 AM, Thomas Kluyver wrote: > >> On 2 March 2015 at 00:23, Andrew Gibiansky >> wrote: >> >>> Is there a way to disable authentication for a kernel via its >>> kernelspec/kernel.json? If not, is there any way around this issue other >>> than creating a custom profile (or biting the bullet and figuring out and >>> implementing authentication)? >> >> >> If your language has a working HMAC library, implementing the >> authentication should be trivial. Even in R, it wasn't hard: >> https://github.com/takluyver/IRkernel/blob/master/R/kernel.r#L15 >> >> Thomas >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Mon Mar 2 19:37:02 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 2 Mar 2015 16:37:02 -0800 Subject: [IPython-dev] Disabling Authentication for Kernels In-Reply-To: References: <54F4E239.5030704@activustech.com> Message-ID: Thanks for working on this, Andrew. I tried to help work on it a bit this morning, but my Haskell-fu is weak. I'll see if I can help iTorch out. I seem to be able to fake my way through Lua a bit better than I can Haskell. -MinRK On Mon, Mar 2, 2015 at 2:45 PM, Andrew Gibiansky wrote: > Thank you all! I had missed the fact that it was using `hexdigest` as > opposed to `digest`. It works now, albeit perhaps with a substandard SHA > implementation (speed wise). > > -- Andrew > > On Mon, Mar 2, 2015 at 2:20 PM, Brian Wolf wrote: > >> Here's how I implemented authentication in Python for a project a few >> years ago. >> >> from passlib.context import CryptContext >> >> >> pwd_context = CryptContext( >> schemes=["sha256_crypt", "sha512_crypt", "pbkdf2_sha256"], >> default="sha256_crypt", >> all__vary_rounds = "10%", >> sha256_crypt__default_rounds = 10000 >> ) >> >> >> if pwd_context.verify(pwd_during_login, pwd_in_db): >> # password hashes match; set user as logged in >> else: >> # password hashes do not match; user not logged in >> >> >> >> Thank you. >> Brian >> >> ------------------------------ >> >> >> - Activus Technologies >> - Brian Wolf >> - Phone: 410.367.2958 >> - ? Recurring payment solutions >> - ? Custom software development >> >> On 03/02/2015 03:14 PM, Andrew Gibiansky wrote: >> >> Sounds reasonable. I sadly am not very well-versed in cryptographic >> hashing, which is why I originally avoided dealing with it. >> >> I've now implemented HMAC-SHA256 signing, but am generating invalid >> signatures. So, two questions: >> >> 1. What are good ways to debug this? >> 2. My suspicion is that I am treating the key incorrectly. If I >> understand correctly, the provided key is something like >> "base64-base64-base64". Is that string meant to be taken literally as the >> key (when decoded from Utf8), or is the idea to do a base64 decoding of >> that and use that as the key? >> >> Thanks, >> -- Andrew >> >> On Mon, Mar 2, 2015 at 9:33 AM, Thomas Kluyver wrote: >> >>> On 2 March 2015 at 00:23, Andrew Gibiansky >>> wrote: >>> >>>> Is there a way to disable authentication for a kernel via its >>>> kernelspec/kernel.json? If not, is there any way around this issue other >>>> than creating a custom profile (or biting the bullet and figuring out and >>>> implementing authentication)? >>> >>> >>> If your language has a working HMAC library, implementing the >>> authentication should be trivial. Even in R, it wasn't hard: >>> https://github.com/takluyver/IRkernel/blob/master/R/kernel.r#L15 >>> >>> Thomas >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://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 >> >> > > _______________________________________________ > 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 jgomezdans at gmail.com Tue Mar 3 12:51:40 2015 From: jgomezdans at gmail.com (Jose Gomez-Dans) Date: Tue, 3 Mar 2015 17:51:40 +0000 Subject: [IPython-dev] "Run" button for widgets? Message-ID: Hi, I am exploring the use of IPython widgets for some teaching. Basically, I want to be able to set a number of parameters to then run some code and plot some results. This is fairly typical. However, my code can take ~minutes to run, and currently, if I change something in any of my widgets, IPython will execute the code, irrespective that the user wants to change more boxes/sliders/etc.Is there some provision for having a "Run" button that would gather all the data in the boxes and only run the code when this button is pressed? We are using IPython 2.x, if that makes any difference. Many thanks! Jose -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Mar 3 12:56:54 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 3 Mar 2015 09:56:54 -0800 Subject: [IPython-dev] "Run" button for widgets? In-Reply-To: References: Message-ID: On 3 March 2015 at 09:51, Jose Gomez-Dans wrote: > Is there some provision for having a "Run" button that would gather all > the data in the boxes and only run the code when this button is pressed? > Yes, the interact_manual() function ( http://ipython.org/ipython-doc/stable/api/generated/IPython.html.widgets.interaction.html?highlight=interact_manual#IPython.html.widgets.interaction.interact_manual ) does exactly this... > We are using IPython 2.x, if that makes any difference. > ... but it's new in IPython 3. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Tue Mar 3 19:25:53 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Tue, 3 Mar 2015 16:25:53 -0800 Subject: [IPython-dev] Fwd: error message ipython notebook (fwd) In-Reply-To: <20150304002506.GG2482884@phare.normalesup.org> References: <20150304002506.GG2482884@phare.normalesup.org> Message-ID: ---------- Forwarded message ---------- From: Gael Varoquaux Date: Tue, Mar 3, 2015 at 4:25 PM Subject: error message ipython notebook (fwd) To: support at continuum.io Cc: Fernando Perez , Brian Granger < ellisonbg at gmail.com> Hi Continuum people and Fernando and Brian, Below is the error message that a user got on anaconda, on mac OSX, trying to launch the IPython notebook today during a course that I was giving. I am not completely sure if the problem is in IPython or in anaconda, so I am not sure where I should submit a report. I am happy submitting a bug report if you decide where it should go. Doing an "export LC_TYPE=C" before launching the IPython notebook solved the problems. Cheers, Ga?l ----- Forwarded message from Katja Heuer ----- Date: Tue, 3 Mar 2015 17:06:36 +0100 From: Katja Heuer To: Gael Varoquaux Subject: error message ipython notebook Last login: Tue Mar 3 17:01:37 on ttys012 10-4-204-92:~ katja$ ipython notebook Traceback (most recent call last): File "/Users/katja/anaconda/bin/ipython", line 6, in sys.exit(start_ipython()) File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/__init__.py", line 120, in start_ipython return launch_new_instance(argv=argv, **kwargs) File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ application.py", line 563, in launch_instance app.initialize(argv) File "", line 2, in initialize File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ application.py", line 92, in catch_config_error return method(app, *args, **kwargs) File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/terminal/ ipapp.py", line 321, in initialize super(TerminalIPythonApp, self).initialize(argv) File "", line 2, in initialize File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ application.py", line 92, in catch_config_error return method(app, *args, **kwargs) File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/core/ application.py", line 381, in initialize self.parse_command_line(argv) File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/terminal/ ipapp.py", line 316, in parse_command_line return super(TerminalIPythonApp, self).parse_command_line(argv) File "", line 2, in parse_command_line File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ application.py", line 92, in catch_config_error return method(app, *args, **kwargs) File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ application.py", line 475, in parse_command_line return self.initialize_subcommand(subc, subargv) File "", line 2, in initialize_subcommand File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ application.py", line 92, in catch_config_error return method(app, *args, **kwargs) File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ application.py", line 406, in initialize_subcommand subapp = import_item(subapp) File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/utils/ importstring.py", line 42, in import_item module = __import__(package, fromlist=[obj]) File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/html/ notebookapp.py", line 81, in from IPython.consoleapp import IPythonConsoleApp File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/ consoleapp.py", line 43, in from IPython.kernel.zmq.kernelapp import ( File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/ kernelapp.py", line 54, in from .ipkernel import Kernel File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/ ipkernel.py", line 40, in from .zmqshell import ZMQInteractiveShell File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/ zmqshell.py", line 36, in from IPython.core.payloadpage import install_payload_page File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/core/ payloadpage.py", line 24, in from docutils.core import publish_string File "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/core.py", line 20, in from docutils import frontend, io, utils, readers, writers File "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/ frontend.py", line 41, in import docutils.utils File "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/utils/ __init__.py", line 20, in import docutils.io File "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/io.py", line 18, in from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput File "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/utils/ error_reporting.py", line 47, in locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1] File "/Users/katja/anaconda/lib/python2.7/locale.py", line 543, in getdefaultlocale return _parse_localename(localename) File "/Users/katja/anaconda/lib/python2.7/locale.py", line 475, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: UTF-8 10-4-204-92:~ katja$ ----- End forwarded message ----- -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Tue Mar 3 19:37:59 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 3 Mar 2015 16:37:59 -0800 Subject: [IPython-dev] Fwd: error message ipython notebook (fwd) In-Reply-To: References: <20150304002506.GG2482884@phare.normalesup.org> Message-ID: We've seen that one a few times. It's not specific to IPython. UTF-8 is not a valid locale (it should be something like en_GB.UTF-8), but something on some Macs seems to set it to UTF-8. Thomas On 3 March 2015 at 16:25, Brian Granger wrote: > > ---------- Forwarded message ---------- > From: Gael Varoquaux > Date: Tue, Mar 3, 2015 at 4:25 PM > Subject: error message ipython notebook (fwd) > To: support at continuum.io > Cc: Fernando Perez , Brian Granger < > ellisonbg at gmail.com> > > > Hi Continuum people and Fernando and Brian, > > Below is the error message that a user got on anaconda, on mac OSX, > trying to launch the IPython notebook today during a course that I was > giving. I am not completely sure if the problem is in IPython or in > anaconda, so I am not sure where I should submit a report. I am happy > submitting a bug report if you decide where it should go. > > Doing an "export LC_TYPE=C" before launching the IPython notebook solved > the problems. > > Cheers, > > Ga?l > > ----- Forwarded message from Katja Heuer ----- > > Date: Tue, 3 Mar 2015 17:06:36 +0100 > From: Katja Heuer > To: Gael Varoquaux > Subject: error message ipython notebook > > > Last login: Tue Mar 3 17:01:37 on ttys012 > > 10-4-204-92:~ katja$ ipython notebook > > Traceback (most recent call last): > > File "/Users/katja/anaconda/bin/ipython", line 6, in > > sys.exit(start_ipython()) > > File > "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/__init__.py", > line 120, in start_ipython > > return launch_new_instance(argv=argv, **kwargs) > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ > application.py", line 563, in launch_instance > > app.initialize(argv) > > File "", line 2, in initialize > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ > application.py", line 92, in catch_config_error > > return method(app, *args, **kwargs) > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/terminal/ > ipapp.py", line 321, in initialize > > super(TerminalIPythonApp, self).initialize(argv) > > File "", line 2, in initialize > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ > application.py", line 92, in catch_config_error > > return method(app, *args, **kwargs) > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/core/ > application.py", line 381, in initialize > > self.parse_command_line(argv) > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/terminal/ > ipapp.py", line 316, in parse_command_line > > return super(TerminalIPythonApp, self).parse_command_line(argv) > > File "", line 2, in parse_command_line > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ > application.py", line 92, in catch_config_error > > return method(app, *args, **kwargs) > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ > application.py", line 475, in parse_command_line > > return self.initialize_subcommand(subc, subargv) > > File "", line 2, in initialize_subcommand > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ > application.py", line 92, in catch_config_error > > return method(app, *args, **kwargs) > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/config/ > application.py", line 406, in initialize_subcommand > > subapp = import_item(subapp) > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/utils/ > importstring.py", line 42, in import_item > > module = __import__(package, fromlist=[obj]) > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/html/ > notebookapp.py", line 81, in > > from IPython.consoleapp import IPythonConsoleApp > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/ > consoleapp.py", line 43, in > > from IPython.kernel.zmq.kernelapp import ( > > File > "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/ > kernelapp.py", line 54, in > > from .ipkernel import Kernel > > File > "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/ > ipkernel.py", line 40, in > > from .zmqshell import ZMQInteractiveShell > > File > "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/ > zmqshell.py", line 36, in > > from IPython.core.payloadpage import install_payload_page > > File "/Users/katja/anaconda/lib/python2.7/site-packages/IPython/core/ > payloadpage.py", line 24, in > > from docutils.core import publish_string > > File > "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/core.py", > line 20, in > > from docutils import frontend, io, utils, readers, writers > > File "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/ > frontend.py", line 41, in > > import docutils.utils > > File "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/utils/ > __init__.py", line 20, in > > import docutils.io > > File "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/io.py", > line > 18, in > > from docutils.utils.error_reporting import locale_encoding, > ErrorString, > ErrorOutput > > File "/Users/katja/anaconda/lib/python2.7/site-packages/docutils/utils/ > error_reporting.py", line 47, in > > locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1] > > File "/Users/katja/anaconda/lib/python2.7/locale.py", line 543, in > getdefaultlocale > > return _parse_localename(localename) > > File "/Users/katja/anaconda/lib/python2.7/locale.py", line 475, in > _parse_localename > > raise ValueError, 'unknown locale: %s' % localename > > ValueError: unknown locale: UTF-8 > > 10-4-204-92:~ katja$ > > > ----- End forwarded message ----- > > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > @ellisonbg on Twitter and GitHub > bgranger at calpoly.edu and ellisonbg at gmail.com > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnurser at gmail.com Wed Mar 4 05:29:33 2015 From: gnurser at gmail.com (George Nurser) Date: Wed, 4 Mar 2015 10:29:33 +0000 Subject: [IPython-dev] nbagg problems in ipython 3.0.1 and 2.4 Message-ID: Hi, Not sure whether this is an python or matplotlib query. Using the latest python v3.0.1 and matplotlib 1.4.3 from macports on OS X 10.9.5, python 2.7.9, I invoke ipython with ipython notebook Then in a new 'Jupyter' notebook I create on Safari 7.1.3 I do %matplotlib nbagg import matplotlib.pyplot as plt plt.plot([1,2]) -- this works great, but if I click on the red x to the top right then (i) I get the warning message on the console of [IPKernelApp] ERROR | No such comm: 42451f0dd4314048908b43c2e4c414bf (ii) all future calls to matplotlib don't actually plot anything. e.g. (both in the original cell and in new cells below in the notebook) doing plt.plot([1,2]) just gives Out[5]: [] I can get things to work again with another call of %matplotlib nbagg but just wondered whether it was supposed to work like this. I had similar issues with python 2.4 and matplotlib 1.4.2 Regards, George Nurser. -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien.drix at gmail.com Wed Mar 4 08:57:43 2015 From: damien.drix at gmail.com (Damien Drix) Date: Wed, 4 Mar 2015 14:57:43 +0100 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing Message-ID: The IPython notebook has changed the way I work. Literate programming, the merging of experiment scripts and experiment reports into a single document, and countless other productivity gains: tweaking matplotlib graphs interactively, easy parallelism, etc. It is quite awesome! Could it be improved? It certainly can. Here are the two points I find most prominent: - After one has gotten used to SublimeText & co, CodeMirror just hurts. - The notebook server has huge potential for remote work, but this potential is partly unexploitable because of some aspects of the client/server architecture. Let me explain the latter point. I have a fairly beefy desktop machine in my office, but I'm often working from other locations. I'd like to be able to open a notebook remotely on my laptop, edit it, start some long- running computations, close my laptop, go to lunch, and come back to it in the afternoon to see the results. Right now, it... kind of works. But the issue is that since the execution of cells is orchestrated by client-side javascript, at most one cell will be executed if I close the client. The results are there in the kernel namespace, but the outputs are lost -- integrating the outputs into the notebook is also done by client-side scripts. The client also loses track of which cells are still being executed. One solution would be to use X forwarding and keep the notebook client running on the desktop machine, but in my case the connection lag makes text editing quite unbearable. I prefer to connect to the notebook server from a local client process. Here is the solution I was thinking about: - A new frontend app where, instead of embedding a text editor into the notebook, the notebook itself is embedded into a text editor. A number of nice, open-source, SublimeText-class editors are already being developed: Atom, LimeText, LightTable, etc. LightTable has actually done some work on integrating the IPython kernel and displaying results inline. I imagine that it wouldn't be unreasonably hard to turn it into a full notebook client. As a bonus, no more juggling between two editors: use the same for the notebooks and for plain Python scripts! - Move the task of supervising cell execution and integrating the outputs into the notebook model from the client to the server, so that notebooks can keep running when the client disconnects. - Let the client app refresh its view of the notebook when it reconnects to the server, showing the new outputs and which cells are still running. Any thoughts on this? Is it all maybe already happening in the Jupyter project? ;-) Best, Damien -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexgarciac at gmail.com Wed Mar 4 09:37:40 2015 From: alexgarciac at gmail.com (Alexander Garcia Castro) Date: Wed, 4 Mar 2015 09:37:40 -0500 Subject: [IPython-dev] IPython notebook and the semantic web Message-ID: Good news for all those who are wondering about Adobe and the semantic web. Larry Masinter (http://larry.masinter.net) will be with us at Sepublica. He will be our keynote speaker with "Getting More Data Through the Publication Pipeline?. Larry will also participate in our round table, so if you want to discuss the semantic web and document formats used for publication,this is the right moment Dont forget to submit your paper to Sepublica -- Alexander Garcia http://www.alexandergarcia.name/ http://www.usefilm.com/photographer/75943.html http://www.linkedin.com/in/alexgarciac -------------- next part -------------- An HTML attachment was scrubbed... URL: From rnelsonchem at gmail.com Wed Mar 4 10:25:48 2015 From: rnelsonchem at gmail.com (Ryan Nelson) Date: Wed, 4 Mar 2015 10:25:48 -0500 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: Not an IPython dev here, but I have a partial solution that might work for you. I also have a very powerful desktop that I use to run calculations remotely. Instead of X session tunneling, I use port forwarding. Here's an edited excerpt from my .ssh/config file for connecting to my desktop from my laptop while at home: Host athomenb # The IP address for my desktop on the router HostName 192.168.1.125 # Add your username here User my_user_name # Change id_rsa to the name of your key file if you use it IdentityFile ~/.ssh/id_rsa # For the notebook LocalForward 8080 localhost:8080 # Optional other stuff Compression no ForwardX11 yes ForwardX11Trusted yes # Add this if you need to connect via a non-standard ssh port #Port 30000 >From the command line, I can access my home computer as follows: >$ ssh athomenb >From my desktop, I fire up tmux and then Ipython notebook: desktop>$ tmux desktop:tmux>$ ipython notebook --no-browser --port 8080 At this point, I can actually use my web browser on my laptop to connect to "Localhost", which is actually forwarding to my remote computer. This is much, much faster than using a remote X window. Connect to this website http://localhost:8080/ I can do all of my stuff. If you have something running, just save the notebook and close the window *without* halting. You can also close the IPython file browser. In your ssh session, you can detach from your tmux session without the notebook stopping. ("Ctrl-b d" is the detach command that you have set for tmux.) desktop:tmux>$ Ctrl-b d desktop>$ exit $ Now, to check on the progress of your calculations, you need to reestablish the ssh connection to your remote machine, if you want, you can reattach to the tmux session as well. $ ssh athomenb desktop>$ tmux a desktop:tmux>$ #Ipython stuff Reconnect your local webbroswer to localhost and click on the notebook that's running. Sorry. I glossed over a lot of the details here. If this helps, but you need a little more info to get it running, let me know. Ryan On Wed, Mar 4, 2015 at 8:57 AM, Damien Drix wrote: > The IPython notebook has changed the way I work. Literate programming, > the merging of experiment scripts and experiment reports into a single > document, and countless other productivity gains: tweaking matplotlib > graphs interactively, easy parallelism, etc. It is quite awesome! > > Could it be improved? It certainly can. Here are the two points I find > most prominent: > - After one has gotten used to SublimeText & co, CodeMirror just hurts. > - The notebook server has huge potential for remote work, but this > potential is partly unexploitable because of some aspects of the > client/server architecture. > > Let me explain the latter point. I have a fairly beefy desktop machine in > my office, but I'm often working from other locations. I'd like to be > able to open a notebook remotely on my laptop, edit it, start some long- > running computations, close my laptop, go to lunch, and come back to it > in the afternoon to see the results. > > Right now, it... kind of works. But the issue is that since the execution > of cells is orchestrated by client-side javascript, at most one cell will > be executed if I close the client. The results are there in the kernel > namespace, but the outputs are lost -- integrating the outputs into the > notebook is also done by client-side scripts. The client also loses track > of which cells are still being executed. > > One solution would be to use X forwarding and keep the notebook client > running on the desktop machine, but in my case the connection lag makes > text editing quite unbearable. I prefer to connect to the notebook server > from a local client process. > > Here is the solution I was thinking about: > > - A new frontend app where, instead of embedding a text editor into the > notebook, the notebook itself is embedded into a text editor. A number of > nice, open-source, SublimeText-class editors are already being developed: > Atom, LimeText, LightTable, etc. LightTable has actually done some work > on integrating the IPython kernel and displaying results inline. I > imagine that it wouldn't be unreasonably hard to turn it into a full > notebook client. As a bonus, no more juggling between two editors: use > the same for the notebooks and for plain Python scripts! > > - Move the task of supervising cell execution and integrating the outputs > into the notebook model from the client to the server, so that notebooks > can keep running when the client disconnects. > > - Let the client app refresh its view of the notebook when it reconnects > to the server, showing the new outputs and which cells are still running. > > Any thoughts on this? Is it all maybe already happening in the Jupyter > project? ;-) > > Best, > Damien > > _______________________________________________ > 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 Mar 4 10:35:01 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Wed, 4 Mar 2015 07:35:01 -0800 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: The long running notebook issues are something we do plan on addressing. Note, that when you disconnect a client, the notebook does keep running - it just doesn't cache the output while the notebook is gone. On Wed, Mar 4, 2015 at 5:57 AM, Damien Drix wrote: > The IPython notebook has changed the way I work. Literate programming, > the merging of experiment scripts and experiment reports into a single > document, and countless other productivity gains: tweaking matplotlib > graphs interactively, easy parallelism, etc. It is quite awesome! > > Could it be improved? It certainly can. Here are the two points I find > most prominent: > - After one has gotten used to SublimeText & co, CodeMirror just hurts. > - The notebook server has huge potential for remote work, but this > potential is partly unexploitable because of some aspects of the > client/server architecture. > > Let me explain the latter point. I have a fairly beefy desktop machine in > my office, but I'm often working from other locations. I'd like to be > able to open a notebook remotely on my laptop, edit it, start some long- > running computations, close my laptop, go to lunch, and come back to it > in the afternoon to see the results. > > Right now, it... kind of works. But the issue is that since the execution > of cells is orchestrated by client-side javascript, at most one cell will > be executed if I close the client. The results are there in the kernel > namespace, but the outputs are lost -- integrating the outputs into the > notebook is also done by client-side scripts. The client also loses track > of which cells are still being executed. > > One solution would be to use X forwarding and keep the notebook client > running on the desktop machine, but in my case the connection lag makes > text editing quite unbearable. I prefer to connect to the notebook server > from a local client process. > > Here is the solution I was thinking about: > > - A new frontend app where, instead of embedding a text editor into the > notebook, the notebook itself is embedded into a text editor. A number of > nice, open-source, SublimeText-class editors are already being developed: > Atom, LimeText, LightTable, etc. LightTable has actually done some work > on integrating the IPython kernel and displaying results inline. I > imagine that it wouldn't be unreasonably hard to turn it into a full > notebook client. As a bonus, no more juggling between two editors: use > the same for the notebooks and for plain Python scripts! > > - Move the task of supervising cell execution and integrating the outputs > into the notebook model from the client to the server, so that notebooks > can keep running when the client disconnects. > > - Let the client app refresh its view of the notebook when it reconnects > to the server, showing the new outputs and which cells are still running. > > Any thoughts on this? Is it all maybe already happening in the Jupyter > project? ;-) > > Best, > Damien > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Wed Mar 4 10:41:42 2015 From: wes.turner at gmail.com (Wes Turner) Date: Wed, 4 Mar 2015 09:41:42 -0600 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: * An SSH port forward really is a better option. IPython Notebook is a remote shell with all of the privileges of the user its run as. * PyCharm has notebook editing support: https://www.jetbrains.com/pycharm/help/ipython-notebook-support.html On Mar 4, 2015 7:58 AM, "Damien Drix" wrote: > The IPython notebook has changed the way I work. Literate programming, > the merging of experiment scripts and experiment reports into a single > document, and countless other productivity gains: tweaking matplotlib > graphs interactively, easy parallelism, etc. It is quite awesome! > > Could it be improved? It certainly can. Here are the two points I find > most prominent: > - After one has gotten used to SublimeText & co, CodeMirror just hurts. > - The notebook server has huge potential for remote work, but this > potential is partly unexploitable because of some aspects of the > client/server architecture. > > Let me explain the latter point. I have a fairly beefy desktop machine in > my office, but I'm often working from other locations. I'd like to be > able to open a notebook remotely on my laptop, edit it, start some long- > running computations, close my laptop, go to lunch, and come back to it > in the afternoon to see the results. > > Right now, it... kind of works. But the issue is that since the execution > of cells is orchestrated by client-side javascript, at most one cell will > be executed if I close the client. The results are there in the kernel > namespace, but the outputs are lost -- integrating the outputs into the > notebook is also done by client-side scripts. The client also loses track > of which cells are still being executed. > > One solution would be to use X forwarding and keep the notebook client > running on the desktop machine, but in my case the connection lag makes > text editing quite unbearable. I prefer to connect to the notebook server > from a local client process. > > Here is the solution I was thinking about: > > - A new frontend app where, instead of embedding a text editor into the > notebook, the notebook itself is embedded into a text editor. A number of > nice, open-source, SublimeText-class editors are already being developed: > Atom, LimeText, LightTable, etc. LightTable has actually done some work > on integrating the IPython kernel and displaying results inline. I > imagine that it wouldn't be unreasonably hard to turn it into a full > notebook client. As a bonus, no more juggling between two editors: use > the same for the notebooks and for plain Python scripts! > > - Move the task of supervising cell execution and integrating the outputs > into the notebook model from the client to the server, so that notebooks > can keep running when the client disconnects. > > - Let the client app refresh its view of the notebook when it reconnects > to the server, showing the new outputs and which cells are still running. > > Any thoughts on this? Is it all maybe already happening in the Jupyter > project? ;-) > > Best, > Damien > > _______________________________________________ > 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 ssanderson at quantopian.com Wed Mar 4 10:44:37 2015 From: ssanderson at quantopian.com (ssanderson) Date: Wed, 4 Mar 2015 07:44:37 -0800 (PST) Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: <1425483877248-5088096.post@n6.nabble.com> There's also an excellent IPython Notebook mode for Emacs. The best-maintained version is currently a fork of the original: https://github.com/millejoh/emacs-ipython-notebook. I'm not sure what the status of it is w/r/t IPython 3.0 though. -- View this message in context: http://python.6.x6.nabble.com/thoughts-on-the-notebook-alternative-front-ends-and-remote-editing-tp5088083p5088096.html Sent from the IPython - Development mailing list archive at Nabble.com. From takowl at gmail.com Wed Mar 4 12:36:27 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 4 Mar 2015 09:36:27 -0800 Subject: [IPython-dev] nbagg problems in ipython 3.0.1 and 2.4 In-Reply-To: References: Message-ID: On 4 March 2015 at 02:29, George Nurser wrote: > Not sure whether this is an python or matplotlib query. I think that's probably one for matplotlib - the nbagg backend is all in matplotlib. Thanks, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Wed Mar 4 12:48:15 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 4 Mar 2015 09:48:15 -0800 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: On 4 March 2015 at 05:57, Damien Drix wrote: > - Move the task of supervising cell execution and integrating the outputs > into the notebook model from the client to the server, so that notebooks > can keep running when the client disconnects. > > - Let the client app refresh its view of the notebook when it reconnects > to the server, showing the new outputs and which cells are still running. These two points are a big part of what Matthias will be working on. Part of the motivation is also collaborative editing, which requires that the server maintain a notebook model to synchronise the clients. Once we have that, then the kernel can continue updating the notebook without any client having it open. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From edsrahn at gmail.com Wed Mar 4 12:50:29 2015 From: edsrahn at gmail.com (Ed Rahn) Date: Wed, 4 Mar 2015 12:50:29 -0500 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: <1425483877248-5088096.post@n6.nabble.com> References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: <20150304125029.294a76bf353f0e7dd74bee68@gmail.com> Thanks for the link! I often miss my emacs key bindings in ipython notebook. On Wed, 4 Mar 2015 07:44:37 -0800 (PST) ssanderson wrote: > There's also an excellent IPython Notebook mode for Emacs. The > best-maintained version is currently a fork of the original: > https://github.com/millejoh/emacs-ipython-notebook. I'm not sure what the > status of it is w/r/t IPython 3.0 though. > > > > -- > View this message in context: http://python.6.x6.nabble.com/thoughts-on-the-notebook-alternative-front-ends-and-remote-editing-tp5088083p5088096.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 -- Ed Rahn From nick.bollweg at gmail.com Wed Mar 4 13:00:50 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Wed, 4 Mar 2015 13:00:50 -0500 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: <1425483877248-5088096.post@n6.nabble.com> References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: Good discussion. I for one would hate to see losing the momentum of a powerful web-based computing environment to start implementing stuff for editor-of-the-week (no offense). The notebook has the (already observed) potential to bring interactive computing to people that would never download a programming editor. What about codemirror is lacking? Let's build it! Marijn is a really awesome dude, but can't build everything himself :) Not to pre-empt Thomas and Matthias, but I have started hacking together a proof-of-concept architecture that moves the state of the notebook-being-used into another model that neatly handles persistence and multiple users. Disclaimer: it doesn't really work yet! https://github.com/nrbgt/derby-notebook When the user requests a notebook, its contents are pulled off the content manager and rebuilt into an evented model. This model includes everything from the original content, but adds enough stuff to make the state of the UI persistent: - notebook - kernel - state - cell - id - position in a linked list <- current sticky wicket! - state - user - id - current cell/mode - widgets <- haven't started yet Then one or more clients (browsers or daemons) subscribe to and publish deltas to this model, which eventually get persisted to the backend and other clients. Because each client has its own local model, it is robust against latency, etc. and you don't have to make the decision between "updating the DOM" vs "updating the model" vs "sending an event"... there is only the model. I don't think there is a compelling way to make _repr_javascript_ work with this, but widgets are *perfect* as they already work this way... though it may require adding an additional View.view_model if there are UI things that one would want to share among many users. Pics or it didn't happen: [image: Inline image 1] Right now, codemirror is doing a great job of handling text deltas between n browsers. The issue arises in correctly handling inserted/moved cells, and I'm working with the authors of derby, the application framework, to get these sorted out! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2015-03-03_1848.png Type: image/png Size: 321581 bytes Desc: not available URL: From takowl at gmail.com Wed Mar 4 13:14:45 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 4 Mar 2015 10:14:45 -0800 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: On 4 March 2015 at 10:00, Nicholas Bollweg wrote: > Not to pre-empt Thomas and Matthias, but I have started hacking together a > proof-of-concept architecture that moves the state of the > notebook-being-used into another model that neatly handles persistence and > multiple users. Oh cool! You should definitely find some time to discuss this in detail with Matthias. Thanks, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Wed Mar 4 13:29:59 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Wed, 4 Mar 2015 13:29:59 -0500 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: Well, I really wanted to work first before shopping it around: - load contents - editing/add/(re)move/run cells - save contents But I'd love to jaw on it some more! Trying to get Ian's simple example working right now :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Mar 4 14:22:29 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 4 Mar 2015 11:22:29 -0800 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: Le 4 mars 2015 ? 10:00, Nicholas Bollweg a ?crit : > Good discussion. > > I for one would hate to see losing the momentum of a powerful web-based computing environment to start implementing stuff for editor-of-the-week (no offense). The notebook has the (already observed) potential to bring interactive computing to people that would never download a programming editor. > > What about codemirror is lacking? Let's build it! Marijn is a really awesome dude, but can't build everything himself :) > > Not to pre-empt Thomas and Matthias, but I have started hacking together a proof-of-concept architecture that moves the state of the notebook-being-used into another model that neatly handles persistence and multiple users. Disclaimer: it doesn't really work yet! That's great that the long time goal too, Haven't had a deep look yet, but will. How much does it rely on derby/nodejs being there ? The proxy was one of the things I though about, but I'm not sure that completely the way we want to go. But let see. > > https://github.com/nrbgt/derby-notebook > > When the user requests a notebook, its contents are pulled off the content manager and rebuilt into an evented model. This model includes everything from the original content, but adds enough stuff to make the state of the UI persistent: > notebook > kernel > state > cell > id > position in a linked list <- current sticky wicket! > state > user > id > current cell/mode > widgets <- haven't started yet That's nice, I really want to decouple the notebook model which is on disk to the on memory one. I'm pondering not a list for cell, but actually dict of id-> cell plus a list of id order. that should make partial update simple. thought ? I really want to think about user UI state that is synced vs the one that is not synced. For example I doubt the hidden state of cell toolbar should be synced. Same with collapse state of output area. > Then one or more clients (browsers or daemons) subscribe to and publish deltas to this model, which eventually get persisted to the backend and other clients. Because each client has its own local model, it is robust against latency, etc. and you don't have to make the decision between "updating the DOM" vs "updating the model" vs "sending an event"... there is only the model. > > I don't think there is a compelling way to make _repr_javascript_ work with this, but widgets are *perfect* as they already work this way... though it may require adding an additional View.view_model if there are UI things that one would want to share among many users. reprjs make sens for "static widget" (mpld3m or Julia Gadfly) that allow in browser panning and zooming. I would really like building the structure of the notebook in a way that the realtime backend would be plug able. WE also need to think carefully about the execution logic. I would like to have real-time where I would be able to execute, but the people I share with would not. I suppose we would need to bake login into RT framework. How do you handle that for now ? Should we make a place just to discuss realtime collaboration ? -- M > > Pics or it didn't happen: > <2015-03-03_1848.png> > > Right now, codemirror is doing a great job of handling text deltas between n browsers. The issue arises in correctly handling inserted/moved cells, and I'm working with the authors of derby, the application framework, to get these sorted out! > > _______________________________________________ > 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 efiring at hawaii.edu Wed Mar 4 14:53:34 2015 From: efiring at hawaii.edu (Eric Firing) Date: Wed, 04 Mar 2015 09:53:34 -1000 Subject: [IPython-dev] nbagg problems in ipython 3.0.1 and 2.4 In-Reply-To: References: Message-ID: <54F762BE.1000509@hawaii.edu> George, The problem is that clicking the red X is closing the figure, and the call in the next cell is trying to plot to that closed figure. The solution is to open a new figure in each cell where you want to plot to a new figure. You can use plt.figure(), or use "fig, ax = plt.subplots()" and then "ax.plot(...)" etc. Eric On 2015/03/04 12:29 AM, George Nurser wrote: > Hi, > > Not sure whether this is an python or matplotlib query. > > Using the latest python v3.0.1 and matplotlib 1.4.3 from macports on OS > X 10.9.5, python 2.7.9, > I invoke ipython with > > ipython notebook > > Then in a new 'Jupyter' notebook I create on Safari 7.1.3 I do > > %matplotlib nbagg > > import matplotlib.pyplot as plt > > plt.plot([1,2]) > > -- this works great, but if I click on the red x to the top right then > > (i) I get the warning message on the console of > [IPKernelApp] ERROR | No such comm: 42451f0dd4314048908b43c2e4c414bf > > (ii) all future calls to matplotlib don't actually plot anything. e.g. > (both in the original cell and in new cells below in the notebook) doing > plt.plot([1,2]) just gives > > Out[5]: [] > > I can get things to work again with another call of > %matplotlib nbagg > but just wondered whether it was supposed to work like this. > > I had similar issues with python 2.4 and matplotlib 1.4.2 > > Regards, George Nurser. > > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > From gnurser at gmail.com Wed Mar 4 18:14:28 2015 From: gnurser at gmail.com (George Nurser) Date: Wed, 4 Mar 2015 23:14:28 +0000 Subject: [IPython-dev] nbagg problems in ipython 3.0.1 and 2.4 In-Reply-To: <54F762BE.1000509@hawaii.edu> References: <54F762BE.1000509@hawaii.edu> Message-ID: Thanks Eric. That makes sense. George On 4 March 2015 at 19:53, Eric Firing wrote: > George, > > The problem is that clicking the red X is closing the figure, and the > call in the next cell is trying to plot to that closed figure. The > solution is to open a new figure in each cell where you want to plot to > a new figure. You can use plt.figure(), or use "fig, ax = > plt.subplots()" and then "ax.plot(...)" etc. > > Eric > > On 2015/03/04 12:29 AM, George Nurser wrote: > > Hi, > > > > Not sure whether this is an python or matplotlib query. > > > > Using the latest python v3.0.1 and matplotlib 1.4.3 from macports on OS > > X 10.9.5, python 2.7.9, > > I invoke ipython with > > > > ipython notebook > > > > Then in a new 'Jupyter' notebook I create on Safari 7.1.3 I do > > > > %matplotlib nbagg > > > > import matplotlib.pyplot as plt > > > > plt.plot([1,2]) > > > > -- this works great, but if I click on the red x to the top right then > > > > (i) I get the warning message on the console of > > [IPKernelApp] ERROR | No such comm: 42451f0dd4314048908b43c2e4c414bf > > > > (ii) all future calls to matplotlib don't actually plot anything. e.g. > > (both in the original cell and in new cells below in the notebook) doing > > plt.plot([1,2]) just gives > > > > Out[5]: [] > > > > I can get things to work again with another call of > > %matplotlib nbagg > > but just wondered whether it was supposed to work like this. > > > > I had similar issues with python 2.4 and matplotlib 1.4.2 > > > > Regards, George Nurser. > > > > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://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 one at kentran.net Thu Mar 5 00:14:22 2015 From: one at kentran.net (Kenneth Tran) Date: Wed, 4 Mar 2015 21:14:22 -0800 Subject: [IPython-dev] iPython 3.0-dev --matplotlib inline In-Reply-To: References: Message-ID: It seems that doing this is not the same as %pylab inline. I tried it but this line failed. * plot(range(0,9))* I tried putting %pylab inline in the startup.ipy file but it doesn't work either. Am I missing something? -K On Fri, Feb 6, 2015 at 12:27 PM, MinRK wrote: > For completeness, you can create a startup file that always enables inline > matplotlib with: > > echo "get_ipython().enable_matplotlib('inline')" > ~/.ipython/profile_default/startup/matplotlib_inline.py > > ? > > On Fri, Feb 6, 2015 at 12:24 PM, MinRK wrote: > >> Passing kernel arguments on the notebook server CLI was deprecated in >> 2.0, and removed in 3.0. You can use the `%matplotlib inline` magic in your >> notebook to set up matplotlib, or enable matplotlib in your >> `ipython_config.py` or startup files in your IPython profile. >> >> -MinRK >> >> On Fri, Feb 6, 2015 at 12:19 PM, John Omernik wrote: >> >>> In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I am >>> getting >>> >>> [C 14:16:28.361 NotebookApp] Bad config encountered during >>> initialization: >>> >>> [C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib' >>> >>> Any thoughts? Do I need to change something to have the same affect? >>> >>> Thanks >>> >>> John >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://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 Mar 5 00:36:34 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 4 Mar 2015 21:36:34 -0800 Subject: [IPython-dev] iPython 3.0-dev --matplotlib inline In-Reply-To: References: Message-ID: Le 4 mars 2015 ? 21:14, Kenneth Tran a ?crit : > It seems that doing this is not the same as %pylab inline. I tried it but this line failed. > plot(range(0,9)) > > I tried putting %pylab inline in the startup.ipy file but it doesn't work either. > > Am I missing something? You should not use %pylab, or --pylab. it is undocumented and deprecated. That being said, Do we support startup.ipy files ? -- M > > -K > > > On Fri, Feb 6, 2015 at 12:27 PM, MinRK wrote: > For completeness, you can create a startup file that always enables inline matplotlib with: > > echo "get_ipython().enable_matplotlib('inline')" > ~/.ipython/profile_default/startup/matplotlib_inline.py > > On Fri, Feb 6, 2015 at 12:24 PM, MinRK wrote: > Passing kernel arguments on the notebook server CLI was deprecated in 2.0, and removed in 3.0. You can use the `%matplotlib inline` magic in your notebook to set up matplotlib, or enable matplotlib in your `ipython_config.py` or startup files in your IPython profile. > > -MinRK > > On Fri, Feb 6, 2015 at 12:19 PM, John Omernik wrote: > In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I am getting > > [C 14:16:28.361 NotebookApp] Bad config encountered during initialization: > > [C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib' > > Any thoughts? Do I need to change something to have the same affect? > > Thanks > > John > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Thu Mar 5 01:12:32 2015 From: benjaminrk at gmail.com (MinRK) Date: Wed, 4 Mar 2015 22:12:32 -0800 Subject: [IPython-dev] iPython 3.0-dev --matplotlib inline In-Reply-To: References: Message-ID: On Wed, Mar 4, 2015 at 9:36 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 4 mars 2015 ? 21:14, Kenneth Tran a ?crit : > > It seems that doing this is not the same as %pylab inline. I tried it but > this line failed. > * plot(range(0,9))* > > I tried putting %pylab inline in the startup.ipy file but it doesn't work > either. > > Am I missing something? > > > You should not use %pylab, or --pylab. > it is undocumented and deprecated. > > That being said, > > Do we support startup.ipy files ? > yes > -- > M > > > -K > > > On Fri, Feb 6, 2015 at 12:27 PM, MinRK wrote: > >> For completeness, you can create a startup file that always enables >> inline matplotlib with: >> >> echo "get_ipython().enable_matplotlib('inline')" > ~/.ipython/profile_default/startup/matplotlib_inline.py >> >> ? >> >> On Fri, Feb 6, 2015 at 12:24 PM, MinRK wrote: >> >>> Passing kernel arguments on the notebook server CLI was deprecated in >>> 2.0, and removed in 3.0. You can use the `%matplotlib inline` magic in your >>> notebook to set up matplotlib, or enable matplotlib in your >>> `ipython_config.py` or startup files in your IPython profile. >>> >>> -MinRK >>> >>> On Fri, Feb 6, 2015 at 12:19 PM, John Omernik wrote: >>> >>>> In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I >>>> am getting >>>> >>>> [C 14:16:28.361 NotebookApp] Bad config encountered during >>>> initialization: >>>> >>>> [C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib' >>>> >>>> Any thoughts? Do I need to change something to have the same affect? >>>> >>>> Thanks >>>> >>>> John >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Thu Mar 5 01:23:09 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Thu, 5 Mar 2015 01:23:09 -0500 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: My thought with this prototype is to get something out the door quickly that others can look at, and start thinking about what "modeling collaboration" looks like. Once I have the REPL basics, and maybe an initial stab at faking widgets into working against derby, the real fun begins: what the hell is a multiuser notebook? What UX will make it work, and not fail like google wave? I have some thoughts, and as I show it to people, wheels start turning. As for my architectural choices: I like Derby (on racer on sharejs on livedb on mongo/redis) because it gives me models, routes, pubsub, templating, sessions, validation, url routes, operational transform, asset packaging, and synthetic models (more below), but doesn't decide to reinvent the whole ecosystem like meteor. With both of them, though, you kinda buy into the whole thing, and it would be hard to get off it... so maybe it's not a good choice for the real solution... but it might be. Because eventually, you gotta write some javascript. So I am not selling derby, really, but there is a lot of stuff that I would be really sad to lose or have to reinvent. How much does it rely on derby/nodejs being there ? > That would be, well, 100%. See above. I've looked at opencoweb,and webalchemy, but didn't see how to make them work for me easily. Specifically on coweb, love the multi backend concept. But not much momentum. And... at the end of the day you still have to write some javascript :P And then there's firebase... > The proxy was one of the things I though about, but I'm not sure that > completely the way we want to go. > But let see. > Sheer laziness on my part: doing the proxy gave me all of the assets for free, and those routes that I didn't care to re-implement (tree). I didn't even bother to proxy websockets. When it's done, I'll even replace /notebooks/ with the multi-user one for demo purposes.. That's nice, I really want to decouple the notebook model which is on disk > to the on memory one. > I'm just working with what I find...again, the challenge is in modeling collaboration. With a model of the collaboration > I'm pondering not a list for cell, but actually dict of id-> cell plus a > list of id order. > > that should make partial update simple. > As I am learning, you still must order it on the page! This is non-trivial, once you start talking about moving stuff that corresponds to DOM, and messing with people's viewports. The approach I have taken in derby/racer/mongo is to model the notebooks in one collection and the cells in another. Strong ID, good. The cells maintain a simple reference to the notebook, and the reactive query plus local filter and sorting handles the rest. There are likely other solutions, but this gives me pretty good robustness... or should, once I figure everything out. thought ? > > I really want to think about user UI state that is synced vs the one that > is not synced. > For example I doubt the hidden state of cell toolbar should be synced. > > Same with collapse state of output area. > Yes. I mean, sync is interesting. Sync to whom? If you are personally working on two windows, would you want to sync everything between the two of them? Some things? In derby, one is provided with several constructs that handle these cases: - THE MODEL is... well, the model. that persists. and is shared. and is versioned (but you can't touch the versions... yet) - _page is "this user using this url in this browser" - _session is "this user using this site" For things like the state of the UI, if you really, really don't care about it, just toss it in _page. It never even goes to mongo, i don't think. Things you want to persist for a while: maybe _session. But the magic thing is references. In a given scope (a route or a compnent) you have a model. It is made of bits and pieces of those model above, but none of them know where they are bound. Except when they need to, to serve higher-level goals: right now, for example, my toolbar has the logic for turning a DOM click into an insertion into the actual collection. THis is ugly, and I need to do better, but because all the changes fire locally, it's fast enough to replace jquery/backbone... and happens to get persisted to the database. > I don't think there is a compelling way to make _repr_javascript_ work > with this, but widgets are *perfect* as they already work this way... > though it may require adding an additional View.view_model if there are UI > things that one would want to share among many users. > > > reprjs make sens for "static widget" (mpld3m or Julia Gadfly) that allow > in browser panning and zooming. > Sure: totally reasonable. I guess i meant, there's no way to make a "static" widget work with multiuser/OT, which widgets might be reusable whole cloth. But nothing that uses dirty tricks to talk to the kernel is going to fly, not saying I've done that :P I would really like building the structure of the notebook in a way that > the realtime backend would be plug able. > Funny, just had that discussion with some colleagues. Agreed that an OT standard-like spec would be ideal. > WE also need to think carefully about the execution logic. I would like to > have real-time where I would be able to execute, but the people I share > with would not. > I haven't handled this case yet, but i think it should be possible to prevent a specific user from changing a specific field in a document, in this case the state of a cell > I suppose we would need to bake login into RT framework. How do you handle > that for now ? > In my proxy, i'm just using the existing password stuff. Once you get to the RT views, you'll already have been authorized. > > Should we make a place just to discuss realtime collaboration ? > Might be in order. Are we talking IPEP, or something more informal? Is this really a jupyter discussion? Cheers! Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Thu Mar 5 01:24:46 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 4 Mar 2015 22:24:46 -0800 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: On Wed, Mar 4, 2015 at 11:22 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Should we make a place just to discuss realtime collaboration ? > No, let's keep it on this list... The discussion is at the heart of very interesting questions about the entire system, so I'd rather not splinter into multiple lists. Nicholas, I appreciate your desire to polish things, but I really would like to encourage you to sync in with us on all of this earlier rather than later. As has already been mentioned, this is what Matthias is basically working full-time on right now, as part of the ongoing collaboration with the Google CoLaboratory team. It's the perfect time to have these discussions with the whole team! Very much looking forward to what will cook out from this effort :) 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 wes.turner at gmail.com Thu Mar 5 01:35:38 2015 From: wes.turner at gmail.com (Wes Turner) Date: Thu, 5 Mar 2015 00:35:38 -0600 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: On Mar 5, 2015 12:25 AM, "Fernando Perez" wrote: > > On Wed, Mar 4, 2015 at 11:22 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: >> >> Should we make a place just to discuss realtime collaboration ? > > > No, let's keep it on this list... The discussion is at the heart of very interesting questions about the entire system, so I'd rather not splinter into multiple lists. So: * auth * cell-based authz * OT (Operational Transformation) And: * cloud storage * tmpnb/docker containerization ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Thu Mar 5 01:41:58 2015 From: wes.turner at gmail.com (Wes Turner) Date: Thu, 5 Mar 2015 00:41:58 -0600 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: ... And integrated revision tracking/management. On Mar 5, 2015 12:35 AM, "Wes Turner" wrote: > > On Mar 5, 2015 12:25 AM, "Fernando Perez" wrote: > > > > On Wed, Mar 4, 2015 at 11:22 AM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> > >> Should we make a place just to discuss realtime collaboration ? > > > > > > No, let's keep it on this list... The discussion is at the heart of > very interesting questions about the entire system, so I'd rather not > splinter into multiple lists. > > So: > > * auth > * cell-based authz > * OT (Operational Transformation) > > And: > > * cloud storage > * tmpnb/docker containerization > > ? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Thu Mar 5 01:56:41 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 4 Mar 2015 22:56:41 -0800 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: <8CB9B2C9-1ABE-49B6-A5DB-0B9E923EE58C@gmail.com> Le 4 mars 2015 ? 22:24, Fernando Perez a ?crit : > On Wed, Mar 4, 2015 at 11:22 AM, Matthias Bussonnier wrote: > Should we make a place just to discuss realtime collaboration ? > > No, let's keep it on this list... The discussion is at the heart of very interesting questions about the entire system, so I'd rather not splinter into multiple lists. No, not multiple list, I was thinking about GH issues, where you can mute things. Also the ML, is all but friendly for searching a topic/archive. Will respond to other mails tomorrow. -- M > > Nicholas, I appreciate your desire to polish things, but I really would like to encourage you to sync in with us on all of this earlier rather than later. As has already been mentioned, this is what Matthias is basically working full-time on right now, as part of the ongoing collaboration with the Google CoLaboratory team. It's the perfect time to have these discussions with the whole team! > > Very much looking forward to what will cook out from this effort :) > > 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 jared at jaredforsyth.com Thu Mar 5 02:29:21 2015 From: jared at jaredforsyth.com (Jared Forsyth) Date: Thu, 5 Mar 2015 00:29:21 -0700 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing Message-ID: This might be a good time to let y'all know about the alternative front-end I've been building for ipython :) Although it's probably better described as a "life manager / notebook" that happens to have first-class support for ipython integration. Some important aspects: UI - tree-based structure (think workflowy) - highly optimized for keyboard navigation - multiple display modes possible (including a mindmap view) - searchable - multi-paned (arbitrary paning) - pop out the output of a node into a separate window - multiple note types (markdown, code, todo-item, list-item, embedded image) - import/export to .ipynb and several other formats - visual indication that cell is "dirty" -- the contents have been changed since last evaluation Architecture - browser-based, but offline-first (no server required) - connects to an ipython server, or a clojure repl, or an in-browser js kernel - *everything is always saved* to in-browser storage, with optional synchronization to google drive or a github gist (for multi-user, multi-device) I've managed to get together a tutorial for ipython and a general navigation tutorial , and more docs are coming soon. I'd love to get your feedback! ? Cheers, Jared -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nm-ipython-shot.png Type: image/png Size: 183102 bytes Desc: not available URL: From mjandrews.net at gmail.com Thu Mar 5 04:26:53 2015 From: mjandrews.net at gmail.com (Mark Andrews) Date: Thu, 5 Mar 2015 09:26:53 +0000 Subject: [IPython-dev] Hacking nbconvert, nbformat: Looking for howto's Message-ID: I would like to make a django based application to converts ipython json files into html or pdf etc. To do this, I need to learn more about nbconvert, nbformat, etc. I found this http://bit.ly/1BQO8WX to be useful. However, it looks like some of its code is now out of date. For example, I get warnings about deprecated code. Could anyone point me to a similar guide using more up to date IPython? thank you, Mark Andrews (Sorry for the user-ish question being sent to the dev mailing list. However, unless I am mistaken the ipython-user mailing list is being phased out. Correct me if I am wrong.) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ra092767 at ime.unicamp.br Thu Mar 5 07:22:58 2015 From: ra092767 at ime.unicamp.br (Raniere Silva) Date: Thu, 5 Mar 2015 09:22:58 -0300 Subject: [IPython-dev] Hacking nbconvert, nbformat: Looking for howto's In-Reply-To: References: Message-ID: <20150305122258.GC1072@pupunha> Hi Mark, > I would like to make a django based application to converts ipython json > files into html or pdf etc. To do this, I need to learn more about > nbconvert, nbformat, etc. > > I found this > > http://bit.ly/1BQO8WX > > to be useful. However, it looks like some of its code is now out of date. > For example, I get warnings about deprecated code. > > Could anyone point me to a similar guide using more up to date IPython? You can call nbconvert "from the shell" using subprocess. This will be my first approach. If you prefer avoid this approach, I will start looking at IPython/nbconvert directory from the source code. nbconvert uses Jinja2, http://jinja.pocoo.org/, template so you should take a look on it. Raniere -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From wes.turner at gmail.com Thu Mar 5 08:42:33 2015 From: wes.turner at gmail.com (Wes Turner) Date: Thu, 5 Mar 2015 07:42:33 -0600 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: On Thu, Mar 5, 2015 at 1:29 AM, Jared Forsyth wrote: > > I've managed to get together a tutorial for ipython > and a general navigation > tutorial , and more docs are coming > soon. > > I'd love to get your feedback! > At first glance, this looks outstanding! * Dig the vim shortcuts * Dig the split panes (.glyphicon-resize-vertical and .glyphicon-option-vertical might work) Wondering how/where the 'undo' / 'redo' support is implemented, and whether it would be possible to port that back upstream? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mattwcraig at gmail.com Thu Mar 5 08:44:50 2015 From: mattwcraig at gmail.com (Matt Craig) Date: Thu, 05 Mar 2015 05:44:50 -0800 (PST) Subject: [IPython-dev] iPython 3.0-dev --matplotlib inline In-Reply-To: References: Message-ID: <1425563089988.9900936b@Nodemailer> It seems that doing this is not the same as %pylab inline. I tried it but this line failed.? ??plot(range(0,9)) Hi Ken, You also need this: import matplotlib.pyplot as plt? Then plt.plot(range(0, 9)) Matt ? Sent from Mailbox On Wednesday, Mar 4, 2015 at 11:15 PM, Kenneth Tran , wrote: It seems that doing this is not the same as %pylab inline. I tried it but this line failed. ? ??plot(range(0,9)) I tried putting %pylab inline in the startup.ipy file but it doesn't work either. Am I missing something? -K On Fri, Feb 6, 2015 at 12:27 PM, MinRK wrote: For completeness, you can create a startup file that always enables inline matplotlib with: echo "get_ipython().enable_matplotlib('inline')" > ~/.ipython/profile_default/startup/matplotlib_inline.py ? On Fri, Feb 6, 2015 at 12:24 PM, MinRK wrote: Passing kernel arguments on the notebook server CLI was deprecated in 2.0, and removed in 3.0. You can use the `%matplotlib inline` magic in your notebook to set up matplotlib, or enable matplotlib in your `ipython_config.py` or startup files in your IPython profile. On Fri, Feb 6, 2015 at 12:19 PM, John Omernik wrote: In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I am getting [C 14:16:28.361 NotebookApp] Bad config encountered during initialization: [C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib' Any thoughts? Do I need to change something to have the same affect? Thanks John _______________________________________________ IPython-dev mailing list IPython-dev at scipy.org http://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 kestert at google.com Thu Mar 5 11:36:33 2015 From: kestert at google.com (Kester Tong) Date: Thu, 5 Mar 2015 11:36:33 -0500 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: Hi Everyone, I'm part of the Google team that is working with IPython on realtime collaboration and notebook redesign. I was also one of the developers on the coLaboratory project, where we implemented a Notebook front end using the Google Drive realtime API (see https://github.com/jupyter/colaboratory or https://chrome.google.com/webstore/detail/colaboratory-notebook/pianggobfjcgeihlmfhfgkfalopndooo?hl=en-US for the working Chrome App). The main choices I've seen so far in this thread are: * text editor vs traditional notebook I prefer the traditional notebook for the reasons Nicholas gave. * Storing model in browser vs the same place as the kernel. I think that we should aim to have both capacities, and that's what me and Matthias had been aiming for so far. For backends like Google's realtime API (which is afaik the only free web based backend for this sort of thing), the model needs to be in the browser. * Using derby.js It's great to have operational transforms (OTs) taken care of by someone else. But I'm concerned that locking into this would exclude other backends such as Google Drive's realtime API. Maybe we could wrap both in a another layer though. Currently I've been prototyping with React, although my prototype is much less developed than the others posted here. React is nice because, based on my experience in coLaboratory, there are lots of stateful UI components in the notebook, and React allows you to store all your state in one place. However, it also has stateful components if you need them. Right now I have a list of cells id's, and map from cell id's to cells, which as Matthias mentioned, seems like the best way to handle realtime, but also helps keep cell widgets independent of their position in the notebook. Kester On Thu, Mar 5, 2015 at 8:42 AM, Wes Turner wrote: > > > On Thu, Mar 5, 2015 at 1:29 AM, Jared Forsyth > wrote: > >> >> I've managed to get together a tutorial for ipython >> and a general navigation >> tutorial , and more docs are >> coming soon. >> >> I'd love to get your feedback! >> > > At first glance, this looks outstanding! > > * Dig the vim shortcuts > * Dig the split panes (.glyphicon-resize-vertical and > .glyphicon-option-vertical might work) > > Wondering how/where the 'undo' / 'redo' support is implemented, and > whether it would be possible to port that back upstream? > > Thanks! > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Thu Mar 5 12:56:25 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 5 Mar 2015 09:56:25 -0800 Subject: [IPython-dev] Hacking nbconvert, nbformat: Looking for howto's In-Reply-To: References: Message-ID: On 5 March 2015 at 01:26, Mark Andrews wrote: > However, it looks like some of its code is now out of date. For example, I > get warnings about deprecated code. At a glance, the main changes are: nbformat.current is deprecated - it was an API that would always refer to the latest version of nbformat, but we decided that wasn't so useful. Now use: from IPython import nbformat Then you'll need to specify the in-memory format you're expecting when you load a notebook: nb = nbformat.reads(response.text, as_version=4) If you load the notebook as version 4, then we got rid of the notion of worksheets, so you can take out any references to '.worksheets[0]'. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Thu Mar 5 13:09:58 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Thu, 5 Mar 2015 13:09:58 -0500 Subject: [IPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <1425483877248-5088096.post@n6.nabble.com> Message-ID: Sorry for the stealth mode, but it's really a pretty recent development! The current issue on the "refactoring of notebook javascript" is what got me thinking about this: https://github.com/ipython/ipython/issues/7784 I am working towards a demo for some other research that has been ongoing... we just didn't have an execution environment... and I was kinda waiting to see what happened. Our eventual use case would be a poor fit for SaaS, and the derby stack gives us everything we need to host our own and scale it, so the google stuff is not a good fit for my needs... but we should definitely be looking at how to make sure that the architecture is "open", to use an over-taxed term. Definitely interested in seeing where it all goes! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jared at jaredforsyth.com Thu Mar 5 14:07:58 2015 From: jared at jaredforsyth.com (Jared Forsyth) Date: Thu, 05 Mar 2015 19:07:58 +0000 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing References: Message-ID: ++for react. That's what the UI for Notablemind is written in, and makes state management awesome. It also makes things like rearranging cells trivial. On Thu, Mar 5, 2015 at 9:36 AM Kester Tong wrote: > Hi Everyone, > > I'm part of the Google team that is working with IPython on realtime > collaboration and notebook redesign. I was also one of the developers on > the coLaboratory project, where we implemented a Notebook front end using > the Google Drive realtime API (see https://github.com/jupyter/colaboratory > or > https://chrome.google.com/webstore/detail/colaboratory-notebook/pianggobfjcgeihlmfhfgkfalopndooo?hl=en-US > for the working Chrome App). > > The main choices I've seen so far in this thread are: > > * text editor vs traditional notebook > > I prefer the traditional notebook for the reasons Nicholas gave. > > * Storing model in browser vs the same place as the kernel. > > I think that we should aim to have both capacities, and that's what me and > Matthias had been aiming for so far. For backends like Google's realtime > API (which is afaik the only free web based backend for this sort of > thing), the model needs to be in the browser. > > * Using derby.js > > It's great to have operational transforms (OTs) taken care of by someone > else. But I'm concerned that locking into this would exclude other > backends such as Google Drive's realtime API. Maybe we could wrap both in > a another layer though. > > Currently I've been prototyping with React, although my prototype is much > less developed than the others posted here. React is nice because, based > on my experience in coLaboratory, there are lots of stateful UI components > in the notebook, and React allows you to store all your state in one > place. However, it also has stateful components if you need them. Right > now I have a list of cells id's, and map from cell id's to cells, which as > Matthias mentioned, seems like the best way to handle realtime, but also > helps keep cell widgets independent of their position in the notebook. > > Kester > > > > On Thu, Mar 5, 2015 at 8:42 AM, Wes Turner wrote: > >> >> >> On Thu, Mar 5, 2015 at 1:29 AM, Jared Forsyth >> wrote: >> >>> >>> I've managed to get together a tutorial for ipython >>> and a general >>> navigation tutorial , and more >>> docs are coming soon. >>> >>> I'd love to get your feedback! >>> >> >> At first glance, this looks outstanding! >> >> * Dig the vim shortcuts >> * Dig the split panes (.glyphicon-resize-vertical and >> .glyphicon-option-vertical might work) >> >> Wondering how/where the 'undo' / 'redo' support is implemented, and >> whether it would be possible to port that back upstream? >> >> Thanks! >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kestert at google.com Thu Mar 5 14:17:31 2015 From: kestert at google.com (Kester Tong) Date: Thu, 5 Mar 2015 14:17:31 -0500 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: Jared, can you let us know (here or in https://github.com/ipython/ipython/issues/7784) a bit about your experience with React. I've found it very easy to use but powerful, and it seems to play nicely with other frameworks. Other people have raised concerns about performance (e.g. Atom moved away from React for performance issues). I can identify 3 areas that might need to be handled outside react: the text editor, output areas (that can contain large binary blobs) and widgets (which I don't know a lot about). I think these can probably be solved simply by having React components that wrap some other code, and don't try to maintain state using React. But you have a lot more knowledge of this than me. Kester On Thu, Mar 5, 2015 at 2:07 PM, Jared Forsyth wrote: > ++for react. That's what the UI for Notablemind is written in, and makes > state management awesome. It also makes things like rearranging cells > trivial. > > > On Thu, Mar 5, 2015 at 9:36 AM Kester Tong wrote: > >> Hi Everyone, >> >> I'm part of the Google team that is working with IPython on realtime >> collaboration and notebook redesign. I was also one of the developers on >> the coLaboratory project, where we implemented a Notebook front end using >> the Google Drive realtime API (see >> https://github.com/jupyter/colaboratory or >> https://chrome.google.com/webstore/detail/colaboratory-notebook/pianggobfjcgeihlmfhfgkfalopndooo?hl=en-US >> for the working Chrome App). >> >> The main choices I've seen so far in this thread are: >> >> * text editor vs traditional notebook >> >> I prefer the traditional notebook for the reasons Nicholas gave. >> >> * Storing model in browser vs the same place as the kernel. >> >> I think that we should aim to have both capacities, and that's what me >> and Matthias had been aiming for so far. For backends like Google's >> realtime API (which is afaik the only free web based backend for this sort >> of thing), the model needs to be in the browser. >> >> * Using derby.js >> >> It's great to have operational transforms (OTs) taken care of by someone >> else. But I'm concerned that locking into this would exclude other >> backends such as Google Drive's realtime API. Maybe we could wrap both in >> a another layer though. >> >> Currently I've been prototyping with React, although my prototype is much >> less developed than the others posted here. React is nice because, based >> on my experience in coLaboratory, there are lots of stateful UI components >> in the notebook, and React allows you to store all your state in one >> place. However, it also has stateful components if you need them. Right >> now I have a list of cells id's, and map from cell id's to cells, which as >> Matthias mentioned, seems like the best way to handle realtime, but also >> helps keep cell widgets independent of their position in the notebook. >> >> Kester >> >> >> >> On Thu, Mar 5, 2015 at 8:42 AM, Wes Turner wrote: >> >>> >>> >>> On Thu, Mar 5, 2015 at 1:29 AM, Jared Forsyth >>> wrote: >>> >>>> >>>> I've managed to get together a tutorial for ipython >>>> and a general >>>> navigation tutorial , and more >>>> docs are coming soon. >>>> >>>> I'd love to get your feedback! >>>> >>> >>> At first glance, this looks outstanding! >>> >>> * Dig the vim shortcuts >>> * Dig the split panes (.glyphicon-resize-vertical and >>> .glyphicon-option-vertical might work) >>> >>> Wondering how/where the 'undo' / 'redo' support is implemented, and >>> whether it would be possible to port that back upstream? >>> >>> Thanks! >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Thu Mar 5 14:36:02 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 5 Mar 2015 11:36:02 -0800 Subject: [IPython-dev] nbexplode - experiment in version controlling notebooks Message-ID: I've just completed a rough prototype of a concept we've been calling 'nbexplode'. If you've wrestled with merge conflicts in notebooks kept in text-based VCSs, you might like to investigate it. https://github.com/takluyver/nbexplode/ Since current VCSs don't understand any structure within a file (beyond lines), the idea is to let the VCS know about the structure of a notebook by breaking it up into many files for separate cells and outputs. The VCS should then be smarter about merging separate changes. When you check out an exploded notebook, you can recombine it into a single .ipynb file to work with. This is still sub-optimal, because filesystems (and therefore VCSs) have no notion of an ordered sequence. And it's probably more unwieldy for viewing diffs, because cells appear out of order. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Thu Mar 5 15:05:41 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Thu, 5 Mar 2015 12:05:41 -0800 Subject: [IPython-dev] nbexplode - experiment in version controlling notebooks In-Reply-To: References: Message-ID: Ooohhh, very cool! Thanks for working on this! On Thu, Mar 5, 2015 at 11:36 AM, Thomas Kluyver wrote: > I've just completed a rough prototype of a concept we've been calling > 'nbexplode'. If you've wrestled with merge conflicts in notebooks kept in > text-based VCSs, you might like to investigate it. > > https://github.com/takluyver/nbexplode/ > > Since current VCSs don't understand any structure within a file (beyond > lines), the idea is to let the VCS know about the structure of a notebook > by breaking it up into many files for separate cells and outputs. The VCS > should then be smarter about merging separate changes. When you check out > an exploded notebook, you can recombine it into a single .ipynb file to > work with. > > This is still sub-optimal, because filesystems (and therefore VCSs) have > no notion of an ordered sequence. And it's probably more unwieldy for > viewing diffs, because cells appear out of order. > > Thomas > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Thu Mar 5 15:59:18 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Thu, 5 Mar 2015 15:59:18 -0500 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: Really, not trying to start a fight with Mountain View! Reading up on the Google Drive spec, there is at least one (no license provided, 1 contributor) API implementation in Java: https://github.com/goodow/realtime-store Presumably, between that and the API docs, another reference implementation could be built, presumably on Tornado to fit with the rest of the community infrastructure. Presumably some kind of cross-implementation test suite could be arrived at. I would see those pieces as an entry gate. I would still see something that looks like a local evented model store, no matter how the updates get to it: perhaps this is a thing the Flux pattern can be used to implement? I have no experience with React, but do find a lot of what they say as very positive. I would look hard at the other reactive programming environments (riot, mithril, etc.) as well: there is something to be said for orders of magnitude less code in your framework. I wouldn't even rule derby out, as its standalone form is pretty capable, but heavy like react because it is bringing along so many node polyfills. But otherwise, having already invested in backbone, it's not the worst either. On Thu, Mar 5, 2015 at 2:17 PM, Kester Tong wrote: > Jared, > > can you let us know (here or in > https://github.com/ipython/ipython/issues/7784) a bit about your > experience with React. I've found it very easy to use but powerful, and it > seems to play nicely with other frameworks. Other people have raised > concerns about performance (e.g. Atom moved away from React for performance > issues). I can identify 3 areas that might need to be handled outside > react: the text editor, output areas (that can contain large binary blobs) > and widgets (which I don't know a lot about). I think these can probably > be solved simply by having React components that wrap some other code, and > don't try to maintain state using React. But you have a lot more knowledge > of this than me. > > Kester > > On Thu, Mar 5, 2015 at 2:07 PM, Jared Forsyth > wrote: > >> ++for react. That's what the UI for Notablemind is written in, and makes >> state management awesome. It also makes things like rearranging cells >> trivial. >> >> >> On Thu, Mar 5, 2015 at 9:36 AM Kester Tong wrote: >> >>> Hi Everyone, >>> >>> I'm part of the Google team that is working with IPython on realtime >>> collaboration and notebook redesign. I was also one of the developers on >>> the coLaboratory project, where we implemented a Notebook front end using >>> the Google Drive realtime API (see >>> https://github.com/jupyter/colaboratory or >>> https://chrome.google.com/webstore/detail/colaboratory-notebook/pianggobfjcgeihlmfhfgkfalopndooo?hl=en-US >>> for the working Chrome App). >>> >>> The main choices I've seen so far in this thread are: >>> >>> * text editor vs traditional notebook >>> >>> I prefer the traditional notebook for the reasons Nicholas gave. >>> >>> * Storing model in browser vs the same place as the kernel. >>> >>> I think that we should aim to have both capacities, and that's what me >>> and Matthias had been aiming for so far. For backends like Google's >>> realtime API (which is afaik the only free web based backend for this sort >>> of thing), the model needs to be in the browser. >>> >>> * Using derby.js >>> >>> It's great to have operational transforms (OTs) taken care of by someone >>> else. But I'm concerned that locking into this would exclude other >>> backends such as Google Drive's realtime API. Maybe we could wrap both in >>> a another layer though. >>> >>> Currently I've been prototyping with React, although my prototype is >>> much less developed than the others posted here. React is nice because, >>> based on my experience in coLaboratory, there are lots of stateful UI >>> components in the notebook, and React allows you to store all your state in >>> one place. However, it also has stateful components if you need them. >>> Right now I have a list of cells id's, and map from cell id's to cells, >>> which as Matthias mentioned, seems like the best way to handle realtime, >>> but also helps keep cell widgets independent of their position in the >>> notebook. >>> >>> Kester >>> >>> >>> >>> On Thu, Mar 5, 2015 at 8:42 AM, Wes Turner wrote: >>> >>>> >>>> >>>> On Thu, Mar 5, 2015 at 1:29 AM, Jared Forsyth >>>> wrote: >>>> >>>>> >>>>> I've managed to get together a tutorial for ipython >>>>> and a general >>>>> navigation tutorial , and more >>>>> docs are coming soon. >>>>> >>>>> I'd love to get your feedback! >>>>> >>>> >>>> At first glance, this looks outstanding! >>>> >>>> * Dig the vim shortcuts >>>> * Dig the split panes (.glyphicon-resize-vertical and >>>> .glyphicon-option-vertical might work) >>>> >>>> Wondering how/where the 'undo' / 'redo' support is implemented, and >>>> whether it would be possible to port that back upstream? >>>> >>>> Thanks! >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 Mar 5 16:16:36 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 5 Mar 2015 13:16:36 -0800 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: Hi Jared, Please to see that, looks nice to see alternative front ends ! A few inline/comments questions. Le 4 mars 2015 ? 23:29, Jared Forsyth a ?crit : > This might be a good time to let y'all know about the alternative front-end I've been building for ipython :) > Although it's probably better described as a "life manager / notebook" that happens to have first-class support for ipython integration. > > Some important aspects: > UI > - tree-based structure (think workflow) We are considering "tree" for notebook, but we are more targeting "implicite" tree structure base on the header level. we used to have worksheet. Manipulating tree was too complicated in our opinion with respect to the user interface model. I'm curious of wether you have feedback on that your users perspective, and aslso from developpemetn point of view. > - highly optimized for keyboard navigation > - multiple display modes possible (including a mindmap view) > - searchable > - multi-paned (arbitrary paning) > - pop out the output of a node into a separate window I had difficulties finding out how to get "out" of this view, or even understand during the first second it was just a view. I think one need either an animation, or a visual indication. Adobe Illustrator have this nice think when you edit a subnode that the siblings are still roughly there but really discreet/translucent in the background > - multiple note types (markdown, code, todo-item, list-item, embedded image) > - import/export to .ipynb and several other formats Nice, are you using nbconvert. Are you using IPython 2,x or 3.x ? I'm not sure you are aware that we have ~30 languages supported. (https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages) Though you seem to have rust we don't have. Any comment on how easy/missing features of our protocol ? > - visual indication that cell is "dirty" -- the contents have been changed since last evaluation I'm curious about the semantics, we don't have that in IPython because we did not agreed on when something would be "dirty" or clean. > > Architecture > - browser-based, but offline-first (no server required) > - connects to an ipython server, or a clojure repl, or an in-browser js kernel > - *everything is always saved* to in-browser storage, with optional synchronization to google drive or a github gist (for multi-user, multi-device) Do you have an abstraction layer? Are you interested in realtime implementation ? could we share some js implementation/protocol maybe ? > > I've managed to get together a tutorial for ipython and a general navigation tutorial, and more docs are coming soon. > > I'd love to get your feedback! Thanks for what you did ! Hopping to work with you in the future. Some response to other mails. I'm also looking forward to use reach or other equivalent library. Right now I'm playing with real-time api and what abstraction are needed in the notebook to support many API. It would be great to draft compatibility of API and sharing libraries. That will probably be easier once we split our repo in multiple sub-repos. To NIck, I guess the final API will not be google drive and that you will have one more layer of indirection. Having people testing many framework is really nice and would hall us getting the right api. I do thing that for now GDrive is really nice as it allows custom and easy sharing of notebook, We already have a lot of complains of too many dependencies, and drive is one of the things that most of the time : 1) does not require you to create yet another account 2) integrate with sharing. 3) allow to ship an extension with no deps. Would love to see experiment with mithril, and other. The current maintenance of IPython (and traffic on ML these last day) does not give me enough time to investigate many framework. Also the goal of Jupyter is to make organisation and working groups for things like that, so looking forward to meetings. Cheers, -- M -------------- next part -------------- An HTML attachment was scrubbed... URL: From kestert at google.com Thu Mar 5 16:34:06 2015 From: kestert at google.com (Kester Tong) Date: Thu, 5 Mar 2015 16:34:06 -0500 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: Nick, I was probably coming across too strong with "but I'm concerned that locking into this would exclude other backends such as Google Drive's realtime API. Maybe we could wrap both in a another layer though." What I meant is that the best solution is probably going to be an abstraction layer around the data service (derby or Google Drive) that does the realtime sync. Drive also has an local evented model store, and I agree that the data model should also be an evented model. I think that the right approach is probably a non-generic evented local model, i.e. one with hard coded classes (Notebook, Cell, etc.). This would hopefully give us some fine grained control over the model, e.g. if a cell is stateful and handles its own codemirror, then update events for a cell don't need to bubble up to the notebook object. On Thu, Mar 5, 2015 at 3:59 PM, Nicholas Bollweg wrote: > Really, not trying to start a fight with Mountain View! > > Reading up on the Google Drive spec, there is at least one (no license > provided, 1 contributor) API implementation in Java: > > https://github.com/goodow/realtime-store > > Presumably, between that and the API docs, another reference > implementation could be built, presumably on Tornado to fit with the rest > of the community infrastructure. Presumably some kind of > cross-implementation test suite could be arrived at. I would see those > pieces as an entry gate. > > I would still see something that looks like a local evented model store, > no matter how the updates get to it: perhaps this is a thing the Flux > pattern can be used to implement? > > I have no experience with React, but do find a lot of what they say as > very positive. I would look hard at the other reactive programming > environments (riot, mithril, etc.) as well: there is something to be said > for orders of magnitude less code in your framework. I wouldn't even rule > derby out, as its standalone form is pretty capable, but heavy like react > because it is bringing along so many node polyfills. But otherwise, having > already invested in backbone, it's not the worst either. > > > On Thu, Mar 5, 2015 at 2:17 PM, Kester Tong wrote: > >> Jared, >> >> can you let us know (here or in >> https://github.com/ipython/ipython/issues/7784) a bit about your >> experience with React. I've found it very easy to use but powerful, and it >> seems to play nicely with other frameworks. Other people have raised >> concerns about performance (e.g. Atom moved away from React for performance >> issues). I can identify 3 areas that might need to be handled outside >> react: the text editor, output areas (that can contain large binary blobs) >> and widgets (which I don't know a lot about). I think these can probably >> be solved simply by having React components that wrap some other code, and >> don't try to maintain state using React. But you have a lot more knowledge >> of this than me. >> >> Kester >> >> On Thu, Mar 5, 2015 at 2:07 PM, Jared Forsyth >> wrote: >> >>> ++for react. That's what the UI for Notablemind is written in, and makes >>> state management awesome. It also makes things like rearranging cells >>> trivial. >>> >>> >>> On Thu, Mar 5, 2015 at 9:36 AM Kester Tong wrote: >>> >>>> Hi Everyone, >>>> >>>> I'm part of the Google team that is working with IPython on realtime >>>> collaboration and notebook redesign. I was also one of the developers on >>>> the coLaboratory project, where we implemented a Notebook front end using >>>> the Google Drive realtime API (see >>>> https://github.com/jupyter/colaboratory or >>>> https://chrome.google.com/webstore/detail/colaboratory-notebook/pianggobfjcgeihlmfhfgkfalopndooo?hl=en-US >>>> for the working Chrome App). >>>> >>>> The main choices I've seen so far in this thread are: >>>> >>>> * text editor vs traditional notebook >>>> >>>> I prefer the traditional notebook for the reasons Nicholas gave. >>>> >>>> * Storing model in browser vs the same place as the kernel. >>>> >>>> I think that we should aim to have both capacities, and that's what me >>>> and Matthias had been aiming for so far. For backends like Google's >>>> realtime API (which is afaik the only free web based backend for this sort >>>> of thing), the model needs to be in the browser. >>>> >>>> * Using derby.js >>>> >>>> It's great to have operational transforms (OTs) taken care of by >>>> someone else. But I'm concerned that locking into this would exclude other >>>> backends such as Google Drive's realtime API. Maybe we could wrap both in >>>> a another layer though. >>>> >>>> Currently I've been prototyping with React, although my prototype is >>>> much less developed than the others posted here. React is nice because, >>>> based on my experience in coLaboratory, there are lots of stateful UI >>>> components in the notebook, and React allows you to store all your state in >>>> one place. However, it also has stateful components if you need them. >>>> Right now I have a list of cells id's, and map from cell id's to cells, >>>> which as Matthias mentioned, seems like the best way to handle realtime, >>>> but also helps keep cell widgets independent of their position in the >>>> notebook. >>>> >>>> Kester >>>> >>>> >>>> >>>> On Thu, Mar 5, 2015 at 8:42 AM, Wes Turner >>>> wrote: >>>> >>>>> >>>>> >>>>> On Thu, Mar 5, 2015 at 1:29 AM, Jared Forsyth >>>>> wrote: >>>>> >>>>>> >>>>>> I've managed to get together a tutorial for ipython >>>>>> and a general >>>>>> navigation tutorial , and more >>>>>> docs are coming soon. >>>>>> >>>>>> I'd love to get your feedback! >>>>>> >>>>> >>>>> At first glance, this looks outstanding! >>>>> >>>>> * Dig the vim shortcuts >>>>> * Dig the split panes (.glyphicon-resize-vertical and >>>>> .glyphicon-option-vertical might work) >>>>> >>>>> Wondering how/where the 'undo' / 'redo' support is implemented, and >>>>> whether it would be possible to port that back upstream? >>>>> >>>>> Thanks! >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://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 jared at jaredforsyth.com Thu Mar 5 17:01:44 2015 From: jared at jaredforsyth.com (Jared Forsyth) Date: Thu, 05 Mar 2015 22:01:44 +0000 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing References: Message-ID: To those points (in addition to my comments on the issue thread): - *editor: *I think the editor should continue to be codemirror -- let it do what it is good at. I use codemirror in Notablemind, and the interop works just fine. I'd be happy to spin off my react-codemirror component into a separate package if that's helpful - *output areas: *large binary blobs are no problem for react, as long as you're careful about things. Again, notablemind (rendering ipython outputs) has no problem - *widgets: *embedding arbitrary widgets within a react component is super simple :). If widgets are written in react, all the better, but that's not necessary. On Thu, Mar 5, 2015 at 12:17 PM Kester Tong wrote: > Jared, > > can you let us know (here or in > https://github.com/ipython/ipython/issues/7784) a bit about your > experience with React. I've found it very easy to use but powerful, and it > seems to play nicely with other frameworks. Other people have raised > concerns about performance (e.g. Atom moved away from React for performance > issues). I can identify 3 areas that might need to be handled outside > react: the text editor, output areas (that can contain large binary blobs) > and widgets (which I don't know a lot about). I think these can probably > be solved simply by having React components that wrap some other code, and > don't try to maintain state using React. But you have a lot more knowledge > of this than me. > > Kester > > On Thu, Mar 5, 2015 at 2:07 PM, Jared Forsyth > wrote: > >> ++for react. That's what the UI for Notablemind is written in, and makes >> state management awesome. It also makes things like rearranging cells >> trivial. >> >> >> On Thu, Mar 5, 2015 at 9:36 AM Kester Tong wrote: >> >>> Hi Everyone, >>> >>> I'm part of the Google team that is working with IPython on realtime >>> collaboration and notebook redesign. I was also one of the developers on >>> the coLaboratory project, where we implemented a Notebook front end using >>> the Google Drive realtime API (see >>> https://github.com/jupyter/colaboratory or >>> https://chrome.google.com/webstore/detail/colaboratory-notebook/pianggobfjcgeihlmfhfgkfalopndooo?hl=en-US >>> for the working Chrome App). >>> >>> The main choices I've seen so far in this thread are: >>> >>> * text editor vs traditional notebook >>> >>> I prefer the traditional notebook for the reasons Nicholas gave. >>> >>> * Storing model in browser vs the same place as the kernel. >>> >>> I think that we should aim to have both capacities, and that's what me >>> and Matthias had been aiming for so far. For backends like Google's >>> realtime API (which is afaik the only free web based backend for this sort >>> of thing), the model needs to be in the browser. >>> >>> * Using derby.js >>> >>> It's great to have operational transforms (OTs) taken care of by someone >>> else. But I'm concerned that locking into this would exclude other >>> backends such as Google Drive's realtime API. Maybe we could wrap both in >>> a another layer though. >>> >>> Currently I've been prototyping with React, although my prototype is >>> much less developed than the others posted here. React is nice because, >>> based on my experience in coLaboratory, there are lots of stateful UI >>> components in the notebook, and React allows you to store all your state in >>> one place. However, it also has stateful components if you need them. >>> Right now I have a list of cells id's, and map from cell id's to cells, >>> which as Matthias mentioned, seems like the best way to handle realtime, >>> but also helps keep cell widgets independent of their position in the >>> notebook. >>> >>> Kester >>> >>> >>> >>> On Thu, Mar 5, 2015 at 8:42 AM, Wes Turner wrote: >>> >>>> >>>> >>>> On Thu, Mar 5, 2015 at 1:29 AM, Jared Forsyth >>>> wrote: >>>> >>>>> >>>>> I've managed to get together a tutorial for ipython >>>>> and a general >>>>> navigation tutorial , and more >>>>> docs are coming soon. >>>>> >>>>> I'd love to get your feedback! >>>>> >>>> >>>> At first glance, this looks outstanding! >>>> >>>> * Dig the vim shortcuts >>>> * Dig the split panes (.glyphicon-resize-vertical and >>>> .glyphicon-option-vertical might work) >>>> >>>> Wondering how/where the 'undo' / 'redo' support is implemented, and >>>> whether it would be possible to port that back upstream? >>>> >>>> Thanks! >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 mjandrews.net at gmail.com Thu Mar 5 19:37:18 2015 From: mjandrews.net at gmail.com (Mark Andrews) Date: Fri, 6 Mar 2015 00:37:18 +0000 Subject: [IPython-dev] Hacking nbconvert, nbformat: Looking for howto's In-Reply-To: References: Message-ID: Thanks for the advice. It looks like guide I mentioned can still serve as a useful starting, and I'll just make changes along the lines you suggested. -m On Thu, Mar 5, 2015 at 5:56 PM, Thomas Kluyver wrote: > On 5 March 2015 at 01:26, Mark Andrews wrote: > >> However, it looks like some of its code is now out of date. For example, >> I get warnings about deprecated code. > > > At a glance, the main changes are: > > nbformat.current is deprecated - it was an API that would always refer to > the latest version of nbformat, but we decided that wasn't so useful. Now > use: > > from IPython import nbformat > > Then you'll need to specify the in-memory format you're expecting when you > load a notebook: > > nb = nbformat.reads(response.text, as_version=4) > > If you load the notebook as version 4, then we got rid of the notion of > worksheets, so you can take out any references to '.worksheets[0]'. > > 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 bussonniermatthias at gmail.com Thu Mar 5 21:28:16 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 5 Mar 2015 18:28:16 -0800 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: Message-ID: <076709B3-4616-4B93-99F5-9DA08F4A3DFB@gmail.com> Hey Jared. Le 5 mars 2015 ? 14:01, Jared Forsyth a ?crit : > To those points (in addition to my comments on the issue thread): > > - editor: I think the editor should continue to be codemirror -- let it do what it is good at. I use codemirror in Notablemind, and the interop works just fine. I'd be happy to spin off my react-codemirror component into a separate package if that's helpful That would be great. I've seen a few of these, but they seem to be un-maintained, and haven't receive patches in month. I suppose if we can have them in an organisation it would help being sure that there is not a single bottle neck. We can see that at the right time. I'm working on having real-time on current code mirror but if we can code mirror<-> react <-> RT-API that would be even more awesome. We are not totally decided on react and will have a look at phosphor also, though apparently phosphor does ply nicely with react. > - output areas: large binary blobs are no problem for react, as long as you're careful about things. Again, notablemind (rendering ipython outputs) has no problem I dont think we are concern about big binary blob, but really long notebooks, and some system where math expression have difficulties to render. But hearing that it works great is nice. > - widgets: embedding arbitrary widgets within a react component is super simple :). If widgets are written in react, all the better, but that's not necessary. havent seen a react widget yet... but I suppose there might already be some. -- m -------------- next part -------------- An HTML attachment was scrubbed... URL: From jared at jaredforsyth.com Fri Mar 6 02:39:14 2015 From: jared at jaredforsyth.com (Jared Forsyth) Date: Fri, 06 Mar 2015 07:39:14 +0000 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing References: <076709B3-4616-4B93-99F5-9DA08F4A3DFB@gmail.com> Message-ID: Regarding math rendering, I use katex, and it's super fast. I also have it set up so everything can be rendered on the server side (another awesome bent of react) - no phantomjs required. On 7:28PM, Thu, Mar 5, 2015 Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Hey Jared. > > Le 5 mars 2015 ? 14:01, Jared Forsyth a ?crit : > > To those points (in addition to my comments on the issue thread): > > - *editor: *I think the editor should continue to be codemirror -- let it > do what it is good at. I use codemirror in Notablemind, and the interop > works just fine. I'd be happy to spin off my react-codemirror component > into a separate package if that's helpful > > > That would be great. > I've seen a few of these, but they seem to be un-maintained, and haven't > receive patches in month. > I suppose if we can have them in an organisation it would help being sure > that there is not a single bottle neck. > We can see that at the right time. > > I'm working on having real-time on current code mirror but if we can code > mirror<-> react <-> RT-API that would be even more awesome. > > We are not totally decided on react and will have a look at phosphor also, > though apparently phosphor does ply nicely with react. > > > - *output areas: *large binary blobs are no problem for react, as long as > you're careful about things. Again, notablemind (rendering ipython outputs) > has no problem > > > I dont think we are concern about big binary blob, but really long > notebooks, and some system where math expression > have difficulties to render. > But hearing that it works great is nice. > > > - *widgets: *embedding arbitrary widgets within a react component is > super simple :). If widgets are written in react, all the better, but > that's not necessary. > > > havent seen a react widget yet... but I suppose there might already be > some. > -- > 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 akim at lrde.epita.fr Fri Mar 6 02:56:01 2015 From: akim at lrde.epita.fr (Akim Demaille) Date: Fri, 6 Mar 2015 08:56:01 +0100 Subject: [IPython-dev] UTF-8, SVG, _repr_svg_, Python 2 Message-ID: Hi! Congratulations on your efforts! I have a regression since 3.0 (well, I'm pretty sure it's a regression, but I no longer have a 2.3 or 2.4 to make sure). Belong is a scaled down version. In reality, vcsn is a platform for automata (vcsn-sandbox.lrde.epita.fr); it renders automata as SVG graphs via dot. We have a problem with the rendering of UTF-8 labels. This does not work as I would expect: from IPython.display import SVG class Foo: def _repr_svg_(self): return ''' ????? ''' Foo() I expect to get my string displayed, but I get: > --------------------------------------------------------------------------- > UnicodeDecodeError > Traceback (most recent call last) > > in () > 10 ????? > 11 > ''' > > ---> 12 Foo() > > > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/displayhook.pyc in __call__(self, result) > 236 self.write_format_data(format_dict, md_dict) > 237 self.log_output(format_dict) > --> 238 self.finish_displayhook() > 239 > 240 def cull_cache(self): > > > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/kernel/zmq/displayhook.pyc in finish_displayhook(self) > 70 sys.stderr.flush() > 71 if self.msg['content']['data']: > ---> 72 self.session.send(self.pub_socket, self.msg, ident=self.topic) > 73 self.msg = None > 74 > > > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/kernel/zmq/session.pyc in send(self, stream, msg_or_type, content, parent, ident, buffers, track, header, metadata) > 647 if self.adapt_version: > 648 msg = adapt(msg, self.adapt_version) > --> 649 to_send = self.serialize(msg, ident) > 650 to_send.extend(buffers) > 651 longest = max([ len(s) for s in to_send ]) > > > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/kernel/zmq/session.pyc in serialize(self, msg, ident) > 551 content = self.none > 552 elif isinstance(content, dict): > --> 553 content = self.pack(content) > 554 elif isinstance(content, bytes): > 555 # content is already packed, as in a relayed message > > > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/kernel/zmq/session.pyc in (obj) > 83 # disallow nan, because it's not actually valid JSON > 84 > json_packer = lambda obj: jsonapi.dumps(obj, default=date_default, > > ---> 85 ensure_ascii=False, allow_nan=False, > 86 > ) > > 87 json_unpacker = lambda s: jsonapi.loads(s) > > > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/zmq/utils/jsonapi.pyc in dumps(o, **kwargs) > 38 kwargs['separators'] = (',', ':') > 39 > ---> 40 s = jsonmod.dumps(o, **kwargs) > 41 > 42 if isinstance(s, unicode): > > > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.pyc in dumps(obj, skipkeys, ensure_ascii, check_circular, allow_nan, cls, indent, separators, encoding, default, sort_keys, **kw) > 248 check_circular=check_circular, allow_nan=allow_nan, indent=indent, > 249 separators=separators, encoding=encoding, default=default, > --> 250 > sort_keys=sort_keys, **kw).encode(obj) > > 251 > 252 > > > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.pyc in encode(self, o) > 208 if not isinstance(chunks, (list, tuple)): > 209 chunks = list(chunks) > --> 210 return ''.join(chunks) > 211 > 212 def iterencode(self, o, _one_shot=False): > > > > UnicodeDecodeError > : 'ascii' codec can't decode byte 0xc3 in position 226: ordinal not in range(128) However, this works: the SVG is correctly rendered. SVG(Foo()._repr_svg_()) So there is something somewhere that does not behave as I would expect. What am I doing wrong? Where should I look for more precise documentation? Thanks in advance! From maximilian.albert at gmail.com Fri Mar 6 04:47:43 2015 From: maximilian.albert at gmail.com (Maximilian Albert) Date: Fri, 6 Mar 2015 09:47:43 +0000 Subject: [IPython-dev] nbexplode - experiment in version controlling notebooks In-Reply-To: References: Message-ID: Very interesting idea! Thanks for working on this, Thomas! (And on everything else. ;) ) Would you favour this approach over something like nbdiff [1,2]? Disclaimer: I haven't tried nbdiff yet, just stumbled upon it and thought it looked promising. But I'm wondering what sort of future direction you core devs have in mind for dealing with "semantic" diffing/merging of notebooks. Cheers, Max [1] http://nbdiff.org/ [2] https://github.com/tarmstrong/nbdiff 2015-03-05 19:36 GMT+00:00 Thomas Kluyver : > I've just completed a rough prototype of a concept we've been calling > 'nbexplode'. If you've wrestled with merge conflicts in notebooks kept in > text-based VCSs, you might like to investigate it. > > https://github.com/takluyver/nbexplode/ > > Since current VCSs don't understand any structure within a file (beyond > lines), the idea is to let the VCS know about the structure of a notebook > by breaking it up into many files for separate cells and outputs. The VCS > should then be smarter about merging separate changes. When you check out > an exploded notebook, you can recombine it into a single .ipynb file to > work with. > > This is still sub-optimal, because filesystems (and therefore VCSs) have > no notion of an ordered sequence. And it's probably more unwieldy for > viewing diffs, because cells appear out of order. > > 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 cyrille.rossant at gmail.com Fri Mar 6 05:02:04 2015 From: cyrille.rossant at gmail.com (Cyrille Rossant) Date: Fri, 6 Mar 2015 11:02:04 +0100 Subject: [IPython-dev] nbexplode - experiment in version controlling notebooks In-Reply-To: References: Message-ID: For a different (orthogonal) approach to the problem of VCS with ipynb, you can have a look at https://github.com/rossant/ipymd/. It lets you replace the JSON ipynb format with regular Markdown or Python scripts. It's convenient if you don't need to save metadata/output/images/etc. These formats are more VCS-friendly than JSON. Cyrille 2015-03-06 10:47 GMT+01:00 Maximilian Albert : > Very interesting idea! Thanks for working on this, Thomas! (And on > everything else. ;) ) > > Would you favour this approach over something like nbdiff [1,2]? Disclaimer: > I haven't tried nbdiff yet, just stumbled upon it and thought it looked > promising. But I'm wondering what sort of future direction you core devs > have in mind for dealing with "semantic" diffing/merging of notebooks. > > Cheers, > Max > > [1] http://nbdiff.org/ > [2] https://github.com/tarmstrong/nbdiff > > > 2015-03-05 19:36 GMT+00:00 Thomas Kluyver : >> >> I've just completed a rough prototype of a concept we've been calling >> 'nbexplode'. If you've wrestled with merge conflicts in notebooks kept in >> text-based VCSs, you might like to investigate it. >> >> https://github.com/takluyver/nbexplode/ >> >> Since current VCSs don't understand any structure within a file (beyond >> lines), the idea is to let the VCS know about the structure of a notebook by >> breaking it up into many files for separate cells and outputs. The VCS >> should then be smarter about merging separate changes. When you check out an >> exploded notebook, you can recombine it into a single .ipynb file to work >> with. >> >> This is still sub-optimal, because filesystems (and therefore VCSs) have >> no notion of an ordered sequence. And it's probably more unwieldy for >> viewing diffs, because cells appear out of order. >> >> 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 > From akim at lrde.epita.fr Fri Mar 6 06:09:40 2015 From: akim at lrde.epita.fr (Akim Demaille) Date: Fri, 6 Mar 2015 12:09:40 +0100 Subject: [IPython-dev] UTF-8, SVG, _repr_svg_, Python 2 In-Reply-To: References: Message-ID: > Le 6 mars 2015 ? 08:56, Akim Demaille a ?crit : > > Hi! > > Congratulations on your efforts! > > I have a regression since 3.0 (well, I'm pretty sure it's > a regression, but I no longer have a 2.3 or 2.4 to make sure). > Belong is a scaled down version. In reality, vcsn is a platform > for automata (vcsn-sandbox.lrde.epita.fr); it renders automata > as SVG graphs via dot. We have a problem with the rendering of > UTF-8 labels. Forget about this. Clearly in the example I gave the leading u'' was missing. But the problem is deeper in the case of our conversion routines, and seem more related to Python than IPython. Cheers! From zvoros at gmail.com Fri Mar 6 07:42:38 2015 From: zvoros at gmail.com (=?UTF-8?B?Wm9sdMOhbiBWw7Zyw7Zz?=) Date: Fri, 06 Mar 2015 13:42:38 +0100 Subject: [IPython-dev] current development version: 3.1 or 4.0? Message-ID: <54F9A0BE.9020006@gmail.com> Hi all, On the ipython website http://ipython.org/, 4.0.dev is indicated as the development version. However, if I pull the code from master, I end up with 3.1.0-dev: IPython 3.1.0-dev -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. Also, this is what is contained in version_info In [5]: IPython.version_info Out[5]: (3, 1, 0, 'dev') Is this only a typo, or there is some deeper reason for the discrepancy? If it is only a typo, I have issued a PR on github. Cheers, Zolt?n From takowl at gmail.com Fri Mar 6 11:32:54 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 6 Mar 2015 08:32:54 -0800 Subject: [IPython-dev] nbexplode - experiment in version controlling notebooks In-Reply-To: References: Message-ID: On 6 Mar 2015 01:47, "Maximilian Albert" wrote: > Would you favour this approach over something like nbdiff [1,2]? Disclaimer: I haven't tried nbdiff yet, just stumbled upon it and thought it looked promising. I don't think this is better than nbdiff: it's much worse for a human looking at the diff, but it may allow some more merges to be handled automatically, without manually fixing conflicts. It may even be possible to combine the two, so nbexplode helps the vcs, and nbdiff helps the user when the VCS can't merge automatically. > But I'm wondering what sort of future direction you core devs have in mind for dealing with "semantic" diffing/merging of notebooks. Write a new VCS? I'm mostly joking, but so long as VCSs are designed for nothing but flat text files, I think storing structured data in them will be kind of hackish. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Fri Mar 6 11:35:44 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 6 Mar 2015 08:35:44 -0800 Subject: [IPython-dev] current development version: 3.1 or 4.0? In-Reply-To: <54F9A0BE.9020006@gmail.com> References: <54F9A0BE.9020006@gmail.com> Message-ID: No, it's deliberate: we haven't yet separated the 3.x branch from master, because there are a lot of changes going in to 3.x already. When we split them, master will be 4.0.dev. On 6 Mar 2015 04:42, "Zolt?n V?r?s" wrote: > Hi all, > > On the ipython website http://ipython.org/, 4.0.dev is indicated as the > development version. However, if I pull the code from master, I end up > with 3.1.0-dev: > > IPython 3.1.0-dev -- An enhanced Interactive Python. > ? -> Introduction and overview of IPython's features. > %quickref -> Quick reference. > help -> Python's own help system. > object? -> Details about 'object', use 'object??' for extra details. > > > Also, this is what is contained in version_info > > In [5]: IPython.version_info > Out[5]: (3, 1, 0, 'dev') > > Is this only a typo, or there is some deeper reason for the discrepancy? > If it is only a typo, I have issued a PR on github. > > > Cheers, > Zolt?n > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From borysow at arlut.utexas.edu Fri Mar 6 11:33:42 2015 From: borysow at arlut.utexas.edu (Michael Borysow) Date: Fri, 06 Mar 2015 10:33:42 -0600 Subject: [IPython-dev] nbexplode - experiment in version controlling notebooks In-Reply-To: References: Message-ID: <54F9D6E6.10609@arlut.utexas.edu> Is there anything like Semantic Merge (https://www.semanticmerge.com/) that understands something simpler like JSON? Still eagerly awaiting them adding support for Python. Oh, and this is my first email to the list, hello everyone! Regards, Michael On 03/06/2015 10:32 AM, Thomas Kluyver wrote: > > On 6 Mar 2015 01:47, "Maximilian Albert" > wrote: > > Would you favour this approach over something like nbdiff [1,2]? > Disclaimer: I haven't tried nbdiff yet, just stumbled upon it and > thought it looked promising. > > I don't think this is better than nbdiff: it's much worse for a human > looking at the diff, but it may allow some more merges to be handled > automatically, without manually fixing conflicts. It may even be > possible to combine the two, so nbexplode helps the vcs, and nbdiff > helps the user when the VCS can't merge automatically. > > > But I'm wondering what sort of future direction you core devs have > in mind for dealing with "semantic" diffing/merging of notebooks. > > Write a new VCS? I'm mostly joking, but so long as VCSs are designed > for nothing but flat text files, I think storing structured data in > them will be kind of hackish. > > Thomas > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Michael Borysow, Ph.D. Engineering Scientist The University of Texas at Austin Applied Research Laboratories borysow at arlut.utexas.edu (512) 835-3396 -------------- next part -------------- An HTML attachment was scrubbed... URL: From zvoros at gmail.com Fri Mar 6 11:40:51 2015 From: zvoros at gmail.com (=?windows-1252?Q?Zolt=E1n_V=F6r=F6s?=) Date: Fri, 06 Mar 2015 17:40:51 +0100 Subject: [IPython-dev] current development version: 3.1 or 4.0? In-Reply-To: References: <54F9A0BE.9020006@gmail.com> Message-ID: <54F9D893.90904@gmail.com> Hi Thomas, In that case, you can delete the PR. Sorry for the noise. Cheers, Zolt?n On 03/06/2015 05:35 PM, Thomas Kluyver wrote: > > No, it's deliberate: we haven't yet separated the 3.x branch from > master, because there are a lot of changes going in to 3.x already. > When we split them, master will be 4.0.dev. > > On 6 Mar 2015 04:42, "Zolt?n V?r?s" > wrote: > > Hi all, > > On the ipython website http://ipython.org/, 4.0.dev is indicated > as the > development version. However, if I pull the code from master, I end up > with 3.1.0-dev: > > IPython 3.1.0-dev -- An enhanced Interactive Python. > ? -> Introduction and overview of IPython's features. > %quickref -> Quick reference. > help -> Python's own help system. > object? -> Details about 'object', use 'object??' for extra details. > > > Also, this is what is contained in version_info > > In [5]: IPython.version_info > Out[5]: (3, 1, 0, 'dev') > > Is this only a typo, or there is some deeper reason for the > discrepancy? > If it is only a typo, I have issued a PR on github. > > > Cheers, > Zolt?n > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From takowl at gmail.com Fri Mar 6 12:10:48 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 6 Mar 2015 09:10:48 -0800 Subject: [IPython-dev] current development version: 3.1 or 4.0? In-Reply-To: <54F9D893.90904@gmail.com> References: <54F9A0BE.9020006@gmail.com> <54F9D893.90904@gmail.com> Message-ID: That's fine. We can just merge the PR after we branch off 3.x. On 6 Mar 2015 08:41, "Zolt?n V?r?s" wrote: > Hi Thomas, > > In that case, you can delete the PR. Sorry for the noise. > > Cheers, > Zolt?n > > On 03/06/2015 05:35 PM, Thomas Kluyver wrote: > > > > No, it's deliberate: we haven't yet separated the 3.x branch from > > master, because there are a lot of changes going in to 3.x already. > > When we split them, master will be 4.0.dev. > > > > On 6 Mar 2015 04:42, "Zolt?n V?r?s" > > wrote: > > > > Hi all, > > > > On the ipython website http://ipython.org/, 4.0.dev is indicated > > as the > > development version. However, if I pull the code from master, I end > up > > with 3.1.0-dev: > > > > IPython 3.1.0-dev -- An enhanced Interactive Python. > > ? -> Introduction and overview of IPython's features. > > %quickref -> Quick reference. > > help -> Python's own help system. > > object? -> Details about 'object', use 'object??' for extra > details. > > > > > > Also, this is what is contained in version_info > > > > In [5]: IPython.version_info > > Out[5]: (3, 1, 0, 'dev') > > > > Is this only a typo, or there is some deeper reason for the > > discrepancy? > > If it is only a typo, I have issued a PR on github. > > > > > > Cheers, > > Zolt?n > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://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 Fri Mar 6 12:20:15 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Fri, 6 Mar 2015 09:20:15 -0800 Subject: [IPython-dev] nbexplode - experiment in version controlling notebooks In-Reply-To: <54F9D6E6.10609@arlut.utexas.edu> References: <54F9D6E6.10609@arlut.utexas.edu> Message-ID: On 6 Mar 2015 08:37, "Michael Borysow" wrote: > Semantic Merge (https://www.semanticmerge.com/) Interesting, I hadn't seen that before. Pity it's not open source. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From moorepants at gmail.com Fri Mar 6 12:25:47 2015 From: moorepants at gmail.com (Jason Moore) Date: Fri, 6 Mar 2015 09:25:47 -0800 Subject: [IPython-dev] It seems that extensions in the cwd do not take precedence in notebooks Message-ID: I have a directory full of notebooks and I dropped the version_information magic py file in the directory so that I can use it in the notebooks. I then modified the py file and the modifications did not reflect in the notebook. Turns out I had a ~/.ipython/extensions/version_information.py in place and the notebooks were using that instead of the one in the directory with the notebooks. I would have thought that the one in the cwd would take precedence. Why is that? Also, how do you find where a magic is loading from? For python modules you simply look at __file__. Jason moorepants.info +01 530-601-9791 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Fri Mar 6 12:37:57 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 6 Mar 2015 09:37:57 -0800 Subject: [IPython-dev] [iPython-dev] thoughts on the notebook, alternative front-ends and remote editing In-Reply-To: References: <076709B3-4616-4B93-99F5-9DA08F4A3DFB@gmail.com> Message-ID: Le 5 mars 2015 ? 23:39, Jared Forsyth a ?crit : > Regarding math rendering, I use katex, and it's super fast. I also have it set up so everything can be rendered on the server side (another awesome bent of react) - no phantomjs required. > Yeah, we heard of it, last time I checked (long ago) it was not supporting all of mathjax features. But having it in the nbconvert process would be nice. I've also heard of `mathematical`(ruby) that apparently rely on a c library. -- M > > On 7:28PM, Thu, Mar 5, 2015 Matthias Bussonnier wrote: > Hey Jared. > > Le 5 mars 2015 ? 14:01, Jared Forsyth a ?crit : > >> To those points (in addition to my comments on the issue thread): >> >> - editor: I think the editor should continue to be codemirror -- let it do what it is good at. I use codemirror in Notablemind, and the interop works just fine. I'd be happy to spin off my react-codemirror component into a separate package if that's helpful > > That would be great. > I've seen a few of these, but they seem to be un-maintained, and haven't receive patches in month. > I suppose if we can have them in an organisation it would help being sure that there is not a single bottle neck. > We can see that at the right time. > > I'm working on having real-time on current code mirror but if we can code mirror<-> react <-> RT-API that would be even more awesome. > > We are not totally decided on react and will have a look at phosphor also, though apparently phosphor does ply nicely with react. > > >> - output areas: large binary blobs are no problem for react, as long as you're careful about things. Again, notablemind (rendering ipython outputs) has no problem > > I dont think we are concern about big binary blob, but really long notebooks, and some system where math expression > have difficulties to render. > But hearing that it works great is nice. > > >> - widgets: embedding arbitrary widgets within a react component is super simple :). If widgets are written in react, all the better, but that's not necessary. > > havent seen a react widget yet... but I suppose there might already be some. > -- > 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 Fri Mar 6 12:44:33 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 6 Mar 2015 09:44:33 -0800 Subject: [IPython-dev] UTF-8, SVG, _repr_svg_, Python 2 In-Reply-To: References: Message-ID: <18AE6DF4-063A-4431-830C-8DCB5DCAF3C8@gmail.com> Hi, Indeed this seem like a unicode issue. Works great for me on Python3 :-) I wold suggest opening an issues on github if you have other problems ! Thanks ! -- M Le 6 mars 2015 ? 03:09, Akim Demaille a ?crit : > >> Le 6 mars 2015 ? 08:56, Akim Demaille a ?crit : >> >> Hi! >> >> Congratulations on your efforts! >> >> I have a regression since 3.0 (well, I'm pretty sure it's >> a regression, but I no longer have a 2.3 or 2.4 to make sure). >> Belong is a scaled down version. In reality, vcsn is a platform >> for automata (vcsn-sandbox.lrde.epita.fr); it renders automata >> as SVG graphs via dot. We have a problem with the rendering of >> UTF-8 labels. > > Forget about this. Clearly in the example I gave the leading u'' > was missing. But the problem is deeper in the case of our conversion > routines, and seem more related to Python than IPython. > > Cheers! > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From nathan12343 at gmail.com Fri Mar 6 17:48:12 2015 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Fri, 6 Mar 2015 14:48:12 -0800 Subject: [IPython-dev] Applying arbitrary CSS to an IPython 3.0 widget Message-ID: Hi all, Does anyone have an example of how to apply CSS to a notebook widget in IPython 3.0? Old versions offered the set_css method, but that has been removed in the latest version. I see in the widget transition doc: https://github.com/ipython/ipython/wiki/IPython-3.0-comm-and-widget-migration-document that set_css has been superseded by the CSS attributes (works fine for most things, but not for obscure CSS settings) and the _dom_classes and _css tuples (not dictionaries as indicated in the transition doc). The latter seems perfect, but it's not clear to me how to use these tuples. Is there an example somewhere I can look at? Thanks! -Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Fri Mar 6 18:05:41 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Fri, 6 Mar 2015 18:05:41 -0500 Subject: [IPython-dev] Applying arbitrary CSS to an IPython 3.0 widget In-Reply-To: References: Message-ID: Here's the only usage as I found in the source: container = Box(_dom_classes=['widget-interact']) https://github.com/ipython/ipython/blob/0c6a0f7982d430b3e4ff55c1fa04aca58a4fdb16/IPython/html/widgets/interaction.py#L184 Looks like each tuple member is a triple of (selector, property, value): txt = widgets.Text(value="Stratocaster") display(txt) txt._css = [ ("input", "font-family", "Comic Sans MS"), (None, "transform", "matrix(1, -0.2, 0, 1, 0, 0)") ] Pretty slick! On Fri, Mar 6, 2015 at 5:48 PM, Nathan Goldbaum wrote: > Hi all, > > Does anyone have an example of how to apply CSS to a notebook widget in > IPython 3.0? Old versions offered the set_css method, but that has been > removed in the latest version. > > I see in the widget transition doc: > > > https://github.com/ipython/ipython/wiki/IPython-3.0-comm-and-widget-migration-document > > that set_css has been superseded by the CSS attributes (works fine for > most things, but not for obscure CSS settings) and the _dom_classes and > _css tuples (not dictionaries as indicated in the transition doc). The > latter seems perfect, but it's not clear to me how to use these tuples. > > Is there an example somewhere I can look at? > > Thanks! > > -Nathan > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hughesadam87 at gmail.com Fri Mar 6 18:07:06 2015 From: hughesadam87 at gmail.com (Adam Hughes) Date: Fri, 6 Mar 2015 18:07:06 -0500 Subject: [IPython-dev] Applying arbitrary CSS to an IPython 3.0 widget In-Reply-To: References: Message-ID: Slick indeed! Thanks for sharing On Fri, Mar 6, 2015 at 6:05 PM, Nicholas Bollweg wrote: > Here's the only usage as I found in the source: > container = Box(_dom_classes=['widget-interact']) > > > https://github.com/ipython/ipython/blob/0c6a0f7982d430b3e4ff55c1fa04aca58a4fdb16/IPython/html/widgets/interaction.py#L184 > > Looks like each tuple member is a triple of (selector, property, value): > > txt = widgets.Text(value="Stratocaster") > display(txt) > txt._css = [ > ("input", "font-family", "Comic Sans MS"), > (None, "transform", "matrix(1, -0.2, 0, 1, 0, 0)") > ] > > Pretty slick! > > On Fri, Mar 6, 2015 at 5:48 PM, Nathan Goldbaum > wrote: > >> Hi all, >> >> Does anyone have an example of how to apply CSS to a notebook widget in >> IPython 3.0? Old versions offered the set_css method, but that has been >> removed in the latest version. >> >> I see in the widget transition doc: >> >> >> https://github.com/ipython/ipython/wiki/IPython-3.0-comm-and-widget-migration-document >> >> that set_css has been superseded by the CSS attributes (works fine for >> most things, but not for obscure CSS settings) and the _dom_classes and >> _css tuples (not dictionaries as indicated in the transition doc). The >> latter seems perfect, but it's not clear to me how to use these tuples. >> >> Is there an example somewhere I can look at? >> >> Thanks! >> >> -Nathan >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan12343 at gmail.com Fri Mar 6 18:20:42 2015 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Fri, 6 Mar 2015 15:20:42 -0800 Subject: [IPython-dev] Applying arbitrary CSS to an IPython 3.0 widget In-Reply-To: References: Message-ID: On Fri, Mar 6, 2015 at 3:05 PM, Nicholas Bollweg wrote: > Here's the only usage as I found in the source: > container = Box(_dom_classes=['widget-interact']) > > > https://github.com/ipython/ipython/blob/0c6a0f7982d430b3e4ff55c1fa04aca58a4fdb16/IPython/html/widgets/interaction.py#L184 > > Looks like each tuple member is a triple of (selector, property, value): > > txt = widgets.Text(value="Stratocaster") > display(txt) > txt._css = [ > ("input", "font-family", "Comic Sans MS"), > (None, "transform", "matrix(1, -0.2, 0, 1, 0, 0)") > ] > I'll go ahead and update the wiki with a more thorough example like this one. Thanks Nick! > Pretty slick! > > On Fri, Mar 6, 2015 at 5:48 PM, Nathan Goldbaum > wrote: > >> Hi all, >> >> Does anyone have an example of how to apply CSS to a notebook widget in >> IPython 3.0? Old versions offered the set_css method, but that has been >> removed in the latest version. >> >> I see in the widget transition doc: >> >> >> https://github.com/ipython/ipython/wiki/IPython-3.0-comm-and-widget-migration-document >> >> that set_css has been superseded by the CSS attributes (works fine for >> most things, but not for obscure CSS settings) and the _dom_classes and >> _css tuples (not dictionaries as indicated in the transition doc). The >> latter seems perfect, but it's not clear to me how to use these tuples. >> >> Is there an example somewhere I can look at? >> >> Thanks! >> >> -Nathan >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yanghatespam at gmail.com Sat Mar 7 02:29:06 2015 From: yanghatespam at gmail.com (Yang Zhang) Date: Fri, 6 Mar 2015 23:29:06 -0800 Subject: [IPython-dev] readline shortcuts like prev line (ctrl-p) and reverse search (ctrl-r)? Message-ID: I've been using IPNB for a while and while it's great, something I sorely miss from the command line interface is the set of readline shortcuts (esp. history shortcuts), stuff like ctrl-p/up arrow for recalling the previous line, ctrl-r for reverse-searching through your history, etc. I realize it's not terrible for ctrl-p since you can do something like: Esc Up C V Enter (ctrl-r is a bit tougher with using the browser's find + mouse clicks necessary). Anyway I just thought I'd actually ask here to make sure I'm not missing these anywhere in the web interface all this time. (Or perhaps someone has written extensions to support such functionality!) Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.gibiansky at gmail.com Sat Mar 7 02:50:26 2015 From: andrew.gibiansky at gmail.com (Andrew Gibiansky) Date: Fri, 6 Mar 2015 23:50:26 -0800 Subject: [IPython-dev] Questions on implementing some notebook frontend extensions Message-ID: Hey all, I have a few frontend modifications I'd like to make for the IHaskell kernel, and I'd love to get some pointers on where to start and how feasible these are. I have some ideas, but since you are much more familiar with the client-side JS than I am, I'd like to hear if you think these are possible and/or reasonable, and perhaps how you would approach them (no detailed response required, maybe just something like "Use the CodeMirror api" or "we have some undocumented capabilities for this in IPython" or "wait until CodeMirror 5" or "impossible"). The extensions are: 1. Get some info about an identifier from the kernel when I hover my mouse over that identifier, and display it as a popup. Idea: Use CodeMirror API and IPython comms to communicate with kernel. 2. Add a keyboard shortcut to automatically reformat a cell, and have this actually change the contents of whichever cell is currently selected, provided it is a Haskell cell. Idea: Use the IPython API to add a keyboard shortcut, use comms to communicate with backend to do reformatting, use IPython API to get currently selected cell and send contents to kernel via comm, and use IPython APIs to change the contents of a cell. If you have any suggestions for better routes, words of caution, I'd love to hear them. (As an aside, one reason I am asking like this rather than just going ahead and trying it and seeing how far I get is that some of these may be tackled by some other contributors to IHaskell; I would like to make sure I am not sending them off on a wild goose chase with a method that is overcomplicated or unlikely to work before giving them instructions.) Thanks! Andrew PS. IHaskell `master` now supports IPython 3.0. There's still a bit of work to be done before I'm ready to make a Jupyter-ready *release*, but it is no more than a week or two out. So far, I've really enjoyed working with IPython 3; the interface is great, the kernel interface is well thought out (if perhaps missing a few things I want, but there's always room for extension, I hope :) ), and all in all it's been very good. -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Sat Mar 7 15:17:50 2015 From: benjaminrk at gmail.com (MinRK) Date: Sat, 7 Mar 2015 12:17:50 -0800 Subject: [IPython-dev] Questions on implementing some notebook frontend extensions In-Reply-To: References: Message-ID: On Fri, Mar 6, 2015 at 11:50 PM, Andrew Gibiansky < andrew.gibiansky at gmail.com> wrote: > Hey all, > > I have a few frontend modifications I'd like to make for the IHaskell > kernel, and I'd love to get some pointers on where to start and how > feasible these are. I have some ideas, but since you are much more familiar > with the client-side JS than I am, I'd like to hear if you think these are > possible and/or reasonable, and perhaps how you would approach them (no > detailed response required, maybe just something like "Use the CodeMirror > api" or "we have some undocumented capabilities for this in IPython" or > "wait until CodeMirror 5" or "impossible"). > > The extensions are: > > 1. Get some info about an identifier from the kernel when I hover my mouse > over that identifier, and display it as a popup. > > Idea: Use CodeMirror API and IPython comms to communicate with kernel. > I think CM.coorsChar is the relevant API. You might not need to use comms for this one, if `inspect_request` is the right action. If the output should be distinguished from inspection via other means, then a custom comm would be appropriate. > > 2. Add a keyboard shortcut to automatically reformat a cell, and have this > actually change the contents of whichever cell is currently selected, > provided it is a Haskell cell. > > Idea: Use the IPython API to add a keyboard shortcut, use comms to > communicate with backend to do reformatting, use IPython API to get > currently selected cell and send contents to kernel via comm, and use > IPython APIs to change the contents of a cell. > Sounds right to me. > > If you have any suggestions for better routes, words of caution, I'd love > to hear them. > > (As an aside, one reason I am asking like this rather than just going > ahead and trying it and seeing how far I get is that some of these may be > tackled by some other contributors to IHaskell; I would like to make sure I > am not sending them off on a wild goose chase with a method that is > overcomplicated or unlikely to work before giving them instructions.) > I see no geese here to chase. > > Thanks! > Andrew > > PS. IHaskell `master` now supports IPython 3.0. There's still a bit of > work to be done before I'm ready to make a Jupyter-ready *release*, but it > is no more than a week or two out. So far, I've really enjoyed working with > IPython 3; the interface is great, the kernel interface is well thought out > (if perhaps missing a few things I want, but there's always room for > extension, I hope :) ), and all in all it's been very good. > Great to hear that 3.0 is working out for you. Can you describe the missing things? It may be a while before there's another revision, but it's good to keep track of what shortcomings kernel authors find, so we can make the right adjustments in the future. -MinRK > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.gibiansky at gmail.com Sat Mar 7 16:23:17 2015 From: andrew.gibiansky at gmail.com (Andrew Gibiansky) Date: Sat, 7 Mar 2015 13:23:17 -0800 Subject: [IPython-dev] Questions on implementing some notebook frontend extensions In-Reply-To: References: Message-ID: Thanks Min! That's exactly the sort of feedback I was hoping to get. To respond to your question about what I've found lacking, my main desires for additions to IPython are for a better import and export story for kernels. Specifically, right now IPython supports the following exports: - txt - PDF via latex - Markdown - HTML These are all well and good, but they're not enough. In my experience, the formats used vary by technology and community, and thus need to be someone more flexible. Specifically, in the Haskell world, we at least would want the following: - Import from literate Haskell (two different types of literate haskell) - Export to literate Haskell (two different types) - Export to a Haskell module (which would require some processing to make the cells actually valid compilable Haskell code) - Export to a cabal package (which would be like exporting to a Haskell module, but with more postprocessing) These are things that are pretty integral to the Haskell ecosystem, and so it would make sense to ship them with the IHaskell kernel, and not as some sort of extensions. That said I totally understand why these don't exist (yet) -- there's tons of stuff going on in the IPython world and there's not enough developer manpower to do *everything, *but I do hope that going forward to 3.1 or 4 or whatever is next, there might be some design work put into a more compelling configurable import/export story. -- Andrew On Sat, Mar 7, 2015 at 12:17 PM, MinRK wrote: > > > On Fri, Mar 6, 2015 at 11:50 PM, Andrew Gibiansky < > andrew.gibiansky at gmail.com> wrote: > >> Hey all, >> >> I have a few frontend modifications I'd like to make for the IHaskell >> kernel, and I'd love to get some pointers on where to start and how >> feasible these are. I have some ideas, but since you are much more familiar >> with the client-side JS than I am, I'd like to hear if you think these are >> possible and/or reasonable, and perhaps how you would approach them (no >> detailed response required, maybe just something like "Use the CodeMirror >> api" or "we have some undocumented capabilities for this in IPython" or >> "wait until CodeMirror 5" or "impossible"). >> >> The extensions are: >> >> 1. Get some info about an identifier from the kernel when I hover my >> mouse over that identifier, and display it as a popup. >> >> Idea: Use CodeMirror API and IPython comms to communicate with kernel. >> > > I think CM.coorsChar is the relevant API. > > You might not need to use comms for this one, if `inspect_request` is the > right action. If the output should be distinguished from inspection via > other means, then a custom comm would be appropriate. > > >> >> 2. Add a keyboard shortcut to automatically reformat a cell, and have >> this actually change the contents of whichever cell is currently selected, >> provided it is a Haskell cell. >> >> Idea: Use the IPython API to add a keyboard shortcut, use comms to >> communicate with backend to do reformatting, use IPython API to get >> currently selected cell and send contents to kernel via comm, and use >> IPython APIs to change the contents of a cell. >> > > Sounds right to me. > > >> >> If you have any suggestions for better routes, words of caution, I'd love >> to hear them. >> >> (As an aside, one reason I am asking like this rather than just going >> ahead and trying it and seeing how far I get is that some of these may be >> tackled by some other contributors to IHaskell; I would like to make sure I >> am not sending them off on a wild goose chase with a method that is >> overcomplicated or unlikely to work before giving them instructions.) >> > > I see no geese here to chase. > > >> >> Thanks! >> Andrew >> >> PS. IHaskell `master` now supports IPython 3.0. There's still a bit of >> work to be done before I'm ready to make a Jupyter-ready *release*, but it >> is no more than a week or two out. So far, I've really enjoyed working with >> IPython 3; the interface is great, the kernel interface is well thought out >> (if perhaps missing a few things I want, but there's always room for >> extension, I hope :) ), and all in all it's been very good. >> > > Great to hear that 3.0 is working out for you. Can you describe the > missing things? It may be a while before there's another revision, but it's > good to keep track of what shortcomings kernel authors find, so we can make > the right adjustments in the future. > > -MinRK > > >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Sat Mar 7 16:44:09 2015 From: benjaminrk at gmail.com (MinRK) Date: Sat, 7 Mar 2015 13:44:09 -0800 Subject: [IPython-dev] Questions on implementing some notebook frontend extensions In-Reply-To: References: Message-ID: On Sat, Mar 7, 2015 at 1:23 PM, Andrew Gibiansky wrote: > Thanks Min! That's exactly the sort of feedback I was hoping to get. > > To respond to your question about what I've found lacking, my main desires > for additions to IPython are for a better import and export story for > kernels. Specifically, right now IPython supports the following exports: > > - txt > - PDF via latex > - Markdown > - HTML > > These are all well and good, but they're not enough. In my experience, the > formats used vary by technology and community, and thus need to be someone > more flexible. Specifically, in the Haskell world, we at least would want > the following: > > - Import from literate Haskell (two different types of literate > haskell) > - Export to literate Haskell (two different types) > - Export to a Haskell module (which would require some processing to > make the cells actually valid compilable Haskell code) > - Export to a cabal package (which would be like exporting to a > Haskell module, but with more postprocessing) > > These are things that are pretty integral to the Haskell ecosystem, and so > it would make sense to ship them with the IHaskell kernel, and not as some > sort of extensions. That said I totally understand why these don't exist > (yet) -- there's tons of stuff going on in the IPython world and there's > not enough developer manpower to do *everything, *but I do hope that > going forward to 3.1 or 4 or whatever is next, there might be some design > work put into a more compelling configurable import/export story. > It is clear that there are changes that need to be made in nbconvert. I was just talking with Jess Hamrick yesterday about some of the changes we should make for nbgrader, another of the more demanding nbconvert use cases, revealing problems in how nbconvert is put together. I don't think nbconvert on its own is going to cover quite everything you described. For instance, the cabal package export might be a separate tool that *uses* nbconvert, rather than being implemented as a highly configured invocation of nbconvert itself. And fully custom templates that don't match any of the pre-installed formats are possible right now, but it's not at all clear how to use them, and both how we communicate that, and how they actually work need to be improved. It is super helpful to have as many use cases as we can get, even if our answer to some of them is "that's best done with a separate tool that wraps nbconvert," we can still make changes in nbconvert to facilitate these things. -MinRK > > -- Andrew > > On Sat, Mar 7, 2015 at 12:17 PM, MinRK wrote: > >> >> >> On Fri, Mar 6, 2015 at 11:50 PM, Andrew Gibiansky < >> andrew.gibiansky at gmail.com> wrote: >> >>> Hey all, >>> >>> I have a few frontend modifications I'd like to make for the IHaskell >>> kernel, and I'd love to get some pointers on where to start and how >>> feasible these are. I have some ideas, but since you are much more familiar >>> with the client-side JS than I am, I'd like to hear if you think these are >>> possible and/or reasonable, and perhaps how you would approach them (no >>> detailed response required, maybe just something like "Use the CodeMirror >>> api" or "we have some undocumented capabilities for this in IPython" or >>> "wait until CodeMirror 5" or "impossible"). >>> >>> The extensions are: >>> >>> 1. Get some info about an identifier from the kernel when I hover my >>> mouse over that identifier, and display it as a popup. >>> >>> Idea: Use CodeMirror API and IPython comms to communicate with kernel. >>> >> >> I think CM.coorsChar is the relevant API. >> >> You might not need to use comms for this one, if `inspect_request` is the >> right action. If the output should be distinguished from inspection via >> other means, then a custom comm would be appropriate. >> >> >>> >>> 2. Add a keyboard shortcut to automatically reformat a cell, and have >>> this actually change the contents of whichever cell is currently selected, >>> provided it is a Haskell cell. >>> >>> Idea: Use the IPython API to add a keyboard shortcut, use comms to >>> communicate with backend to do reformatting, use IPython API to get >>> currently selected cell and send contents to kernel via comm, and use >>> IPython APIs to change the contents of a cell. >>> >> >> Sounds right to me. >> >> >>> >>> If you have any suggestions for better routes, words of caution, I'd >>> love to hear them. >>> >>> (As an aside, one reason I am asking like this rather than just going >>> ahead and trying it and seeing how far I get is that some of these may be >>> tackled by some other contributors to IHaskell; I would like to make sure I >>> am not sending them off on a wild goose chase with a method that is >>> overcomplicated or unlikely to work before giving them instructions.) >>> >> >> I see no geese here to chase. >> >> >>> >>> Thanks! >>> Andrew >>> >>> PS. IHaskell `master` now supports IPython 3.0. There's still a bit of >>> work to be done before I'm ready to make a Jupyter-ready *release*, but it >>> is no more than a week or two out. So far, I've really enjoyed working with >>> IPython 3; the interface is great, the kernel interface is well thought out >>> (if perhaps missing a few things I want, but there's always room for >>> extension, I hope :) ), and all in all it's been very good. >>> >> >> Great to hear that 3.0 is working out for you. Can you describe the >> missing things? It may be a while before there's another revision, but it's >> good to keep track of what shortcomings kernel authors find, so we can make >> the right adjustments in the future. >> >> -MinRK >> >> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://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 andrew.gibiansky at gmail.com Sat Mar 7 17:22:08 2015 From: andrew.gibiansky at gmail.com (Andrew Gibiansky) Date: Sat, 7 Mar 2015 14:22:08 -0800 Subject: [IPython-dev] Questions on implementing some notebook frontend extensions In-Reply-To: References: Message-ID: Agreed. In my mind, this is something that can be done as part of the kernel. For example, kernelspec.json can specify a list of formats that the kernel accepts as import and export; then messages in the messaging spec can be used to transmit notebook data forward and backward. Trying to make nbconvert or nbconvert wrappers do everything is an infinite problem -- you could instead delegate this to the kernels themselves. This would allow kernels to take all of this effort onto themselves. Anyway, it's clear that there's some design work to be done here. I'm happy to discuss this further when things come around to it :) -- Andrew On Sat, Mar 7, 2015 at 1:44 PM, MinRK wrote: > > > On Sat, Mar 7, 2015 at 1:23 PM, Andrew Gibiansky < > andrew.gibiansky at gmail.com> wrote: > >> Thanks Min! That's exactly the sort of feedback I was hoping to get. >> >> To respond to your question about what I've found lacking, my main >> desires for additions to IPython are for a better import and export story >> for kernels. Specifically, right now IPython supports the following exports: >> >> - txt >> - PDF via latex >> - Markdown >> - HTML >> >> These are all well and good, but they're not enough. In my experience, >> the formats used vary by technology and community, and thus need to be >> someone more flexible. Specifically, in the Haskell world, we at least >> would want the following: >> >> - Import from literate Haskell (two different types of literate >> haskell) >> - Export to literate Haskell (two different types) >> - Export to a Haskell module (which would require some processing to >> make the cells actually valid compilable Haskell code) >> - Export to a cabal package (which would be like exporting to a >> Haskell module, but with more postprocessing) >> >> These are things that are pretty integral to the Haskell ecosystem, and >> so it would make sense to ship them with the IHaskell kernel, and not as >> some sort of extensions. That said I totally understand why these don't >> exist (yet) -- there's tons of stuff going on in the IPython world and >> there's not enough developer manpower to do *everything, *but I do hope >> that going forward to 3.1 or 4 or whatever is next, there might be some >> design work put into a more compelling configurable import/export story. >> > > It is clear that there are changes that need to be made in nbconvert. I > was just talking with Jess Hamrick yesterday about some of the changes we > should make for nbgrader, another of the more demanding nbconvert use > cases, revealing problems in how nbconvert is put together. > > I don't think nbconvert on its own is going to cover quite everything you > described. For instance, the cabal package export might be a separate tool > that *uses* nbconvert, rather than being implemented as a highly configured > invocation of nbconvert itself. And fully custom templates that don't match > any of the pre-installed formats are possible right now, but it's not at > all clear how to use them, and both how we communicate that, and how they > actually work need to be improved. > > It is super helpful to have as many use cases as we can get, even if our > answer to some of them is "that's best done with a separate tool that wraps > nbconvert," we can still make changes in nbconvert to facilitate these > things. > > -MinRK > > > >> >> -- Andrew >> >> On Sat, Mar 7, 2015 at 12:17 PM, MinRK wrote: >> >>> >>> >>> On Fri, Mar 6, 2015 at 11:50 PM, Andrew Gibiansky < >>> andrew.gibiansky at gmail.com> wrote: >>> >>>> Hey all, >>>> >>>> I have a few frontend modifications I'd like to make for the IHaskell >>>> kernel, and I'd love to get some pointers on where to start and how >>>> feasible these are. I have some ideas, but since you are much more familiar >>>> with the client-side JS than I am, I'd like to hear if you think these are >>>> possible and/or reasonable, and perhaps how you would approach them (no >>>> detailed response required, maybe just something like "Use the CodeMirror >>>> api" or "we have some undocumented capabilities for this in IPython" or >>>> "wait until CodeMirror 5" or "impossible"). >>>> >>>> The extensions are: >>>> >>>> 1. Get some info about an identifier from the kernel when I hover my >>>> mouse over that identifier, and display it as a popup. >>>> >>>> Idea: Use CodeMirror API and IPython comms to communicate with kernel. >>>> >>> >>> I think CM.coorsChar is the relevant API. >>> >>> You might not need to use comms for this one, if `inspect_request` is >>> the right action. If the output should be distinguished from inspection via >>> other means, then a custom comm would be appropriate. >>> >>> >>>> >>>> 2. Add a keyboard shortcut to automatically reformat a cell, and have >>>> this actually change the contents of whichever cell is currently selected, >>>> provided it is a Haskell cell. >>>> >>>> Idea: Use the IPython API to add a keyboard shortcut, use comms to >>>> communicate with backend to do reformatting, use IPython API to get >>>> currently selected cell and send contents to kernel via comm, and use >>>> IPython APIs to change the contents of a cell. >>>> >>> >>> Sounds right to me. >>> >>> >>>> >>>> If you have any suggestions for better routes, words of caution, I'd >>>> love to hear them. >>>> >>>> (As an aside, one reason I am asking like this rather than just going >>>> ahead and trying it and seeing how far I get is that some of these may be >>>> tackled by some other contributors to IHaskell; I would like to make sure I >>>> am not sending them off on a wild goose chase with a method that is >>>> overcomplicated or unlikely to work before giving them instructions.) >>>> >>> >>> I see no geese here to chase. >>> >>> >>>> >>>> Thanks! >>>> Andrew >>>> >>>> PS. IHaskell `master` now supports IPython 3.0. There's still a bit of >>>> work to be done before I'm ready to make a Jupyter-ready *release*, but it >>>> is no more than a week or two out. So far, I've really enjoyed working with >>>> IPython 3; the interface is great, the kernel interface is well thought out >>>> (if perhaps missing a few things I want, but there's always room for >>>> extension, I hope :) ), and all in all it's been very good. >>>> >>> >>> Great to hear that 3.0 is working out for you. Can you describe the >>> missing things? It may be a while before there's another revision, but it's >>> good to keep track of what shortcomings kernel authors find, so we can make >>> the right adjustments in the future. >>> >>> -MinRK >>> >>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Sat Mar 7 17:28:53 2015 From: benjaminrk at gmail.com (MinRK) Date: Sat, 7 Mar 2015 14:28:53 -0800 Subject: [IPython-dev] Questions on implementing some notebook frontend extensions In-Reply-To: References: Message-ID: On Sat, Mar 7, 2015 at 2:22 PM, Andrew Gibiansky wrote: > Agreed. In my mind, this is something that can be done as part of the > kernel. > > For example, kernelspec.json can specify a list of formats that the kernel > accepts as import and export; then messages in the messaging spec can be > used to transmit notebook data forward and backward. Trying to make > nbconvert or nbconvert wrappers do everything is an infinite problem -- you > could instead delegate this to the kernels themselves. This would allow > kernels to take all of this effort onto themselves. > I wouldn't consider this a kernel feature, but that might be a question of definitions. IHaskell, as a project, may provide *both* a kernel for Jupyter and some advanced notebook export/conversion tools. But I doubt that such things should be a part of the kernel specifications themselves. But we should also hear from other kernel authors about that. If it's something that's common to many kernels, then maybe Jupyter as the coordinating point should define some APIs or at least conventions to follow. -MinRK > > Anyway, it's clear that there's some design work to be done here. I'm > happy to discuss this further when things come around to it :) > > -- Andrew > > On Sat, Mar 7, 2015 at 1:44 PM, MinRK wrote: > >> >> >> On Sat, Mar 7, 2015 at 1:23 PM, Andrew Gibiansky < >> andrew.gibiansky at gmail.com> wrote: >> >>> Thanks Min! That's exactly the sort of feedback I was hoping to get. >>> >>> To respond to your question about what I've found lacking, my main >>> desires for additions to IPython are for a better import and export story >>> for kernels. Specifically, right now IPython supports the following exports: >>> >>> - txt >>> - PDF via latex >>> - Markdown >>> - HTML >>> >>> These are all well and good, but they're not enough. In my experience, >>> the formats used vary by technology and community, and thus need to be >>> someone more flexible. Specifically, in the Haskell world, we at least >>> would want the following: >>> >>> - Import from literate Haskell (two different types of literate >>> haskell) >>> - Export to literate Haskell (two different types) >>> - Export to a Haskell module (which would require some processing to >>> make the cells actually valid compilable Haskell code) >>> - Export to a cabal package (which would be like exporting to a >>> Haskell module, but with more postprocessing) >>> >>> These are things that are pretty integral to the Haskell ecosystem, and >>> so it would make sense to ship them with the IHaskell kernel, and not as >>> some sort of extensions. That said I totally understand why these don't >>> exist (yet) -- there's tons of stuff going on in the IPython world and >>> there's not enough developer manpower to do *everything, *but I do hope >>> that going forward to 3.1 or 4 or whatever is next, there might be some >>> design work put into a more compelling configurable import/export story. >>> >> >> It is clear that there are changes that need to be made in nbconvert. I >> was just talking with Jess Hamrick yesterday about some of the changes we >> should make for nbgrader, another of the more demanding nbconvert use >> cases, revealing problems in how nbconvert is put together. >> >> I don't think nbconvert on its own is going to cover quite everything you >> described. For instance, the cabal package export might be a separate tool >> that *uses* nbconvert, rather than being implemented as a highly configured >> invocation of nbconvert itself. And fully custom templates that don't match >> any of the pre-installed formats are possible right now, but it's not at >> all clear how to use them, and both how we communicate that, and how they >> actually work need to be improved. >> >> It is super helpful to have as many use cases as we can get, even if our >> answer to some of them is "that's best done with a separate tool that wraps >> nbconvert," we can still make changes in nbconvert to facilitate these >> things. >> >> -MinRK >> >> >> >>> >>> -- Andrew >>> >>> On Sat, Mar 7, 2015 at 12:17 PM, MinRK wrote: >>> >>>> >>>> >>>> On Fri, Mar 6, 2015 at 11:50 PM, Andrew Gibiansky < >>>> andrew.gibiansky at gmail.com> wrote: >>>> >>>>> Hey all, >>>>> >>>>> I have a few frontend modifications I'd like to make for the IHaskell >>>>> kernel, and I'd love to get some pointers on where to start and how >>>>> feasible these are. I have some ideas, but since you are much more familiar >>>>> with the client-side JS than I am, I'd like to hear if you think these are >>>>> possible and/or reasonable, and perhaps how you would approach them (no >>>>> detailed response required, maybe just something like "Use the CodeMirror >>>>> api" or "we have some undocumented capabilities for this in IPython" or >>>>> "wait until CodeMirror 5" or "impossible"). >>>>> >>>>> The extensions are: >>>>> >>>>> 1. Get some info about an identifier from the kernel when I hover my >>>>> mouse over that identifier, and display it as a popup. >>>>> >>>>> Idea: Use CodeMirror API and IPython comms to communicate with kernel. >>>>> >>>> >>>> I think CM.coorsChar is the relevant API. >>>> >>>> You might not need to use comms for this one, if `inspect_request` is >>>> the right action. If the output should be distinguished from inspection via >>>> other means, then a custom comm would be appropriate. >>>> >>>> >>>>> >>>>> 2. Add a keyboard shortcut to automatically reformat a cell, and have >>>>> this actually change the contents of whichever cell is currently selected, >>>>> provided it is a Haskell cell. >>>>> >>>>> Idea: Use the IPython API to add a keyboard shortcut, use comms to >>>>> communicate with backend to do reformatting, use IPython API to get >>>>> currently selected cell and send contents to kernel via comm, and use >>>>> IPython APIs to change the contents of a cell. >>>>> >>>> >>>> Sounds right to me. >>>> >>>> >>>>> >>>>> If you have any suggestions for better routes, words of caution, I'd >>>>> love to hear them. >>>>> >>>>> (As an aside, one reason I am asking like this rather than just going >>>>> ahead and trying it and seeing how far I get is that some of these may be >>>>> tackled by some other contributors to IHaskell; I would like to make sure I >>>>> am not sending them off on a wild goose chase with a method that is >>>>> overcomplicated or unlikely to work before giving them instructions.) >>>>> >>>> >>>> I see no geese here to chase. >>>> >>>> >>>>> >>>>> Thanks! >>>>> Andrew >>>>> >>>>> PS. IHaskell `master` now supports IPython 3.0. There's still a bit of >>>>> work to be done before I'm ready to make a Jupyter-ready *release*, but it >>>>> is no more than a week or two out. So far, I've really enjoyed working with >>>>> IPython 3; the interface is great, the kernel interface is well thought out >>>>> (if perhaps missing a few things I want, but there's always room for >>>>> extension, I hope :) ), and all in all it's been very good. >>>>> >>>> >>>> Great to hear that 3.0 is working out for you. Can you describe the >>>> missing things? It may be a while before there's another revision, but it's >>>> good to keep track of what shortcomings kernel authors find, so we can make >>>> the right adjustments in the future. >>>> >>>> -MinRK >>>> >>>> >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Sat Mar 7 20:43:08 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sat, 7 Mar 2015 17:43:08 -0800 Subject: [IPython-dev] Write the docs (conference) Message-ID: I just noticed this conference, happening in Portland in May: http://www.writethedocs.org/conf/na/2015/ As we're starting to think about ways of writing and using technical docs as notebooks, should we send someone there to start scoping out what other people interested in docs are concerned about and working on? This year's schedule is not online yet, but here's last year's for an idea of the nature of the conference: http://conf.writethedocs.org/na/2014/#schedule Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Sat Mar 7 22:48:58 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Sat, 7 Mar 2015 19:48:58 -0800 Subject: [IPython-dev] Questions on implementing some notebook frontend extensions In-Reply-To: References: Message-ID: > > 2. Add a keyboard shortcut to automatically reformat a cell, and have this actually change the contents of whichever cell is currently selected, provided it is a Haskell cell. > > Idea: Use the IPython API to add a keyboard shortcut, use comms to communicate with backend to do reformatting, use IPython API to get currently selected cell and send contents to kernel via comm, and use IPython APIs to change the contents of a cell. > > Sounds right to me. Doesn't the Api for %load now have a replace= flag that would replace current cell ? -- M -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Sat Mar 7 23:13:35 2015 From: benjaminrk at gmail.com (MinRK) Date: Sat, 7 Mar 2015 20:13:35 -0800 Subject: [IPython-dev] Write the docs (conference) In-Reply-To: References: Message-ID: seems like a good idea. On Sat, Mar 7, 2015 at 5:43 PM, Thomas Kluyver wrote: > I just noticed this conference, happening in Portland in May: > > http://www.writethedocs.org/conf/na/2015/ > > As we're starting to think about ways of writing and using technical docs > as notebooks, should we send someone there to start scoping out what other > people interested in docs are concerned about and working on? > > This year's schedule is not online yet, but here's last year's for an idea > of the nature of the conference: > http://conf.writethedocs.org/na/2014/#schedule > > 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 Sun Mar 8 20:18:11 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sun, 8 Mar 2015 17:18:11 -0700 Subject: [IPython-dev] Questions on implementing some notebook frontend extensions In-Reply-To: References: Message-ID: On 7 March 2015 at 19:48, Matthias Bussonnier wrote: > Doesn't the Api for %load now have a replace= flag that would > replace current cell ? Yes, though I think at present it's only possible to use that API while handling an execute request, because it's delivered to the frontend as part of an execute_reply. We already know we need to rethink the payloads system, though. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Mon Mar 9 11:39:50 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Mon, 9 Mar 2015 08:39:50 -0700 Subject: [IPython-dev] Write the docs (conference) In-Reply-To: References: Message-ID: Good for the dev meeting agenda On Mar 7, 2015 8:14 PM, "MinRK" wrote: > seems like a good idea. > > On Sat, Mar 7, 2015 at 5:43 PM, Thomas Kluyver wrote: > >> I just noticed this conference, happening in Portland in May: >> >> http://www.writethedocs.org/conf/na/2015/ >> >> As we're starting to think about ways of writing and using technical docs >> as notebooks, should we send someone there to start scoping out what other >> people interested in docs are concerned about and working on? >> >> This year's schedule is not online yet, but here's last year's for an >> idea of the nature of the conference: >> http://conf.writethedocs.org/na/2014/#schedule >> >> 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 wstein at gmail.com Mon Mar 9 13:00:33 2015 From: wstein at gmail.com (William Stein) Date: Mon, 9 Mar 2015 10:00:33 -0700 Subject: [IPython-dev] both source and input Message-ID: Hi, I'm curious why the IPython notebook format has both "source" and "input" fields to represent the input to a cell? I just rewrote my "ipynb <--> sync friendly text" conversion format to be much more robust and this tripped me up. I'm definitely not asking to change anything in IPython. I'm just curious why there is both source and input, and -- more importantly -- are there any other fields that represent input for other types of cells? Thanks, -- William (http://wstein.org) From benjaminrk at gmail.com Mon Mar 9 13:20:06 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 9 Mar 2015 10:20:06 -0700 Subject: [IPython-dev] both source and input In-Reply-To: References: Message-ID: On Mon, Mar 9, 2015 at 10:00 AM, William Stein wrote: > Hi, > > I'm curious why the IPython notebook format has both "source" and > "input" fields to represent the input to a cell? I just rewrote my > "ipynb <--> sync friendly text" conversion format to be much more > robust and this tripped me up. > > I'm definitely not asking to change anything in IPython. I'm just > curious why there is both source and input, and -- more importantly -- > are there any other fields that represent input for other types of > cells? > It's just input and source in v3 and earlier. This wasn't an intentional difference, we just didn't realize that code and non-code cells would be so similar when we drafted early formats. nbformat v4 in IPython 3.0 does away with the difference (input is replaced with source). -MinRK > > Thanks, > > -- > William (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 wstein at gmail.com Mon Mar 9 13:23:14 2015 From: wstein at gmail.com (William Stein) Date: Mon, 9 Mar 2015 10:23:14 -0700 Subject: [IPython-dev] both source and input In-Reply-To: References: Message-ID: On Mon, Mar 9, 2015 at 10:20 AM, MinRK wrote: > > On Mon, Mar 9, 2015 at 10:00 AM, William Stein wrote: >> >> Hi, >> >> I'm curious why the IPython notebook format has both "source" and >> "input" fields to represent the input to a cell? I just rewrote my >> "ipynb <--> sync friendly text" conversion format to be much more >> robust and this tripped me up. >> >> I'm definitely not asking to change anything in IPython. I'm just >> curious why there is both source and input, and -- more importantly -- >> are there any other fields that represent input for other types of >> cells? > > > It's just input and source in v3 and earlier. This wasn't an intentional > difference, we just didn't realize that code and non-code cells would be so > similar when we drafted early formats. nbformat v4 in IPython 3.0 does away > with the difference (input is replaced with source). Awesome -- that's the best imaginable answer from my point of view! > > -MinRK > >> >> >> Thanks, >> >> -- >> William (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 > -- William (http://wstein.org) From pmhobson at gmail.com Mon Mar 9 13:46:51 2015 From: pmhobson at gmail.com (Paul Hobson) Date: Mon, 9 Mar 2015 10:46:51 -0700 Subject: [IPython-dev] Write the docs (conference) In-Reply-To: References: Message-ID: IPython Devs: Please get in touch if you come to town and would like to claim your complimentary Portland beer or bike tour. Y'all have racked up a lot of credits in my Devs I Owe Big Time system. -Paul Portland, OR On Mon, Mar 9, 2015 at 8:39 AM, Fernando Perez wrote: > Good for the dev meeting agenda > On Mar 7, 2015 8:14 PM, "MinRK" wrote: > >> seems like a good idea. >> >> On Sat, Mar 7, 2015 at 5:43 PM, Thomas Kluyver wrote: >> >>> I just noticed this conference, happening in Portland in May: >>> >>> http://www.writethedocs.org/conf/na/2015/ >>> >>> As we're starting to think about ways of writing and using technical >>> docs as notebooks, should we send someone there to start scoping out what >>> other people interested in docs are concerned about and working on? >>> >>> This year's schedule is not online yet, but here's last year's for an >>> idea of the nature of the conference: >>> http://conf.writethedocs.org/na/2014/#schedule >>> >>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Mon Mar 9 13:54:44 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Mon, 9 Mar 2015 10:54:44 -0700 Subject: [IPython-dev] Write the docs (conference) In-Reply-To: References: Message-ID: Thanks! On Mon, Mar 9, 2015 at 10:46 AM, Paul Hobson wrote: > IPython Devs: > > Please get in touch if you come to town and would like to claim your > complimentary Portland beer or bike tour. Y'all have racked up a lot of > credits in my Devs I Owe Big Time system. > > -Paul > Portland, OR > > On Mon, Mar 9, 2015 at 8:39 AM, Fernando Perez > wrote: > >> Good for the dev meeting agenda >> On Mar 7, 2015 8:14 PM, "MinRK" wrote: >> >>> seems like a good idea. >>> >>> On Sat, Mar 7, 2015 at 5:43 PM, Thomas Kluyver wrote: >>> >>>> I just noticed this conference, happening in Portland in May: >>>> >>>> http://www.writethedocs.org/conf/na/2015/ >>>> >>>> As we're starting to think about ways of writing and using technical >>>> docs as notebooks, should we send someone there to start scoping out what >>>> other people interested in docs are concerned about and working on? >>>> >>>> This year's schedule is not online yet, but here's last year's for an >>>> idea of the nature of the conference: >>>> http://conf.writethedocs.org/na/2014/#schedule >>>> >>>> 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 >> >> > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan12343 at gmail.com Tue Mar 10 20:43:49 2015 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Tue, 10 Mar 2015 17:43:49 -0700 Subject: [IPython-dev] Cython magic annotate option broken under IPython 3.0? Message-ID: Hi all, I realize that the cython magic has been moved over to the cython project, but I couldn't find a way to report this on their trac issue tracker, and it's not even clear to me if this is an issue in the cython side of things or the IPython side. To reproduce this issue, be on cython 0.22 and IPython 3.0 and run the following notebook: http://nbviewer.ipython.org/gist/ngoldbaum/855a629d997aa7959254 Googling the error returns some several year old discussions in IPython related to the autoreload magic and I'm not sure if that is a red herring here: http://mail.scipy.org/pipermail/ipython-dev/2012-May/009288.html For how I'm working around this by calling cython at the command line in my notebook and then loading the annotated HTML with an IFrame. Thanks for your help! -Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Wed Mar 11 01:09:50 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Tue, 10 Mar 2015 22:09:50 -0700 Subject: [IPython-dev] Cython magic annotate option broken under IPython 3.0? In-Reply-To: References: Message-ID: I think this is probably something that needs to be reported to cython. I don't know how best to do that - maybe start on the mailing lists? Thanks, Thomas On 10 Mar 2015 17:44, "Nathan Goldbaum" wrote: > Hi all, > > I realize that the cython magic has been moved over to the cython project, > but I couldn't find a way to report this on their trac issue tracker, and > it's not even clear to me if this is an issue in the cython side of things > or the IPython side. > > To reproduce this issue, be on cython 0.22 and IPython 3.0 and run the > following notebook: > > http://nbviewer.ipython.org/gist/ngoldbaum/855a629d997aa7959254 > > Googling the error returns some several year old discussions in IPython > related to the autoreload magic and I'm not sure if that is a red herring > here: > > http://mail.scipy.org/pipermail/ipython-dev/2012-May/009288.html > > For how I'm working around this by calling cython at the command line in > my notebook and then loading the annotated HTML with an IFrame. > > Thanks for your help! > > -Nathan > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Mar 11 01:57:14 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 10 Mar 2015 22:57:14 -0700 Subject: [IPython-dev] Cython magic annotate option broken under IPython 3.0? In-Reply-To: References: Message-ID: <9EA864CF-2583-46FF-958D-0FC03462D9E0@gmail.com> LMGFY http://trac.cython.org/report/1 :-) -- M Le 10 mars 2015 ? 22:09, Thomas Kluyver a ?crit : > I think this is probably something that needs to be reported to cython. I don't know how best to do that - maybe start on the mailing lists? > > Thanks, > Thomas > > On 10 Mar 2015 17:44, "Nathan Goldbaum" wrote: > Hi all, > > I realize that the cython magic has been moved over to the cython project, but I couldn't find a way to report this on their trac issue tracker, and it's not even clear to me if this is an issue in the cython side of things or the IPython side. > > To reproduce this issue, be on cython 0.22 and IPython 3.0 and run the following notebook: > > http://nbviewer.ipython.org/gist/ngoldbaum/855a629d997aa7959254 > > Googling the error returns some several year old discussions in IPython related to the autoreload magic and I'm not sure if that is a red herring here: > > http://mail.scipy.org/pipermail/ipython-dev/2012-May/009288.html > > For how I'm working around this by calling cython at the command line in my notebook and then loading the annotated HTML with an IFrame. > > Thanks for your help! > > -Nathan > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan12343 at gmail.com Wed Mar 11 02:30:20 2015 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Tue, 10 Mar 2015 23:30:20 -0700 Subject: [IPython-dev] Cython magic annotate option broken under IPython 3.0? In-Reply-To: <9EA864CF-2583-46FF-958D-0FC03462D9E0@gmail.com> References: <9EA864CF-2583-46FF-958D-0FC03462D9E0@gmail.com> Message-ID: On Tue, Mar 10, 2015 at 10:57 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > LMGFY > > http://trac.cython.org/report/1 > > :-) > Right, but there's no way to get a trac account without being added by hand by one of the cython devs: http://trac.cython.org/ In the meantime I've gone ahead and sent a report to the cython mailing list. It's in the moderator queue for the list... > > -- > M > > Le 10 mars 2015 ? 22:09, Thomas Kluyver a ?crit : > > I think this is probably something that needs to be reported to cython. I > don't know how best to do that - maybe start on the mailing lists? > > Thanks, > Thomas > On 10 Mar 2015 17:44, "Nathan Goldbaum" wrote: > >> Hi all, >> >> I realize that the cython magic has been moved over to the cython >> project, but I couldn't find a way to report this on their trac issue >> tracker, and it's not even clear to me if this is an issue in the cython >> side of things or the IPython side. >> >> To reproduce this issue, be on cython 0.22 and IPython 3.0 and run the >> following notebook: >> >> http://nbviewer.ipython.org/gist/ngoldbaum/855a629d997aa7959254 >> >> Googling the error returns some several year old discussions in IPython >> related to the autoreload magic and I'm not sure if that is a red herring >> here: >> >> http://mail.scipy.org/pipermail/ipython-dev/2012-May/009288.html >> >> For how I'm working around this by calling cython at the command line in >> my notebook and then loading the annotated HTML with an IFrame. >> >> Thanks for your help! >> >> -Nathan >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Mar 11 02:34:14 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 10 Mar 2015 23:34:14 -0700 Subject: [IPython-dev] Cython magic annotate option broken under IPython 3.0? In-Reply-To: References: <9EA864CF-2583-46FF-958D-0FC03462D9E0@gmail.com> Message-ID: Le 10 mars 2015 ? 23:30, Nathan Goldbaum a ?crit : > > > On Tue, Mar 10, 2015 at 10:57 PM, Matthias Bussonnier wrote: > LMGFY > > http://trac.cython.org/report/1 > > :-) > > > > Right, but there's no way to get a trac account without being added by hand by one of the cython devs: > > http://trac.cython.org/ > > In the meantime I've gone ahead and sent a report to the cython mailing list. It's in the moderator queue for the list... Oh, I guess they increased the barrier to entry. last time I had to fix the highlighting in annotate because it was leaking in notebook, I did not had this problem. My bad. -- M > > > -- > M > > Le 10 mars 2015 ? 22:09, Thomas Kluyver a ?crit : > >> I think this is probably something that needs to be reported to cython. I don't know how best to do that - maybe start on the mailing lists? >> >> Thanks, >> Thomas >> >> On 10 Mar 2015 17:44, "Nathan Goldbaum" wrote: >> Hi all, >> >> I realize that the cython magic has been moved over to the cython project, but I couldn't find a way to report this on their trac issue tracker, and it's not even clear to me if this is an issue in the cython side of things or the IPython side. >> >> To reproduce this issue, be on cython 0.22 and IPython 3.0 and run the following notebook: >> >> http://nbviewer.ipython.org/gist/ngoldbaum/855a629d997aa7959254 >> >> Googling the error returns some several year old discussions in IPython related to the autoreload magic and I'm not sure if that is a red herring here: >> >> http://mail.scipy.org/pipermail/ipython-dev/2012-May/009288.html >> >> For how I'm working around this by calling cython at the command line in my notebook and then loading the annotated HTML with an IFrame. >> >> Thanks for your help! >> >> -Nathan >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Wed Mar 11 03:32:05 2015 From: kikocorreoso at gmail.com (Kiko) Date: Wed, 11 Mar 2015 08:32:05 +0100 Subject: [IPython-dev] Cython magic annotate option broken under IPython 3.0? In-Reply-To: References: Message-ID: 2015-03-11 1:43 GMT+01:00 Nathan Goldbaum : > Hi all, > > I realize that the cython magic has been moved over to the cython project, > but I couldn't find a way to report this on their trac issue tracker, and > it's not even clear to me if this is an issue in the cython side of things > or the IPython side. > > To reproduce this issue, be on cython 0.22 and IPython 3.0 and run the > following notebook: > > http://nbviewer.ipython.org/gist/ngoldbaum/855a629d997aa7959254 > > Googling the error returns some several year old discussions in IPython > related to the autoreload magic and I'm not sure if that is a red herring > here: > > http://mail.scipy.org/pipermail/ipython-dev/2012-May/009288.html > > For how I'm working around this by calling cython at the command line in > my notebook and then loading the annotated HTML with an IFrame. > > Thanks for your help! > This week I was working with Cython and IPython on linux with no issues. My setup: CPython 3.4, Cython 0.22, IPython 3.0. Example on: http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/C%20elemental%2C%20querido%20Cython..ipynb#Cythonizando,-que-es-gerundio-%28toma-3%29 . I tested your notebook example on windows right now with no issues. ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From zvoros at gmail.com Wed Mar 11 12:52:50 2015 From: zvoros at gmail.com (=?UTF-8?B?Wm9sdMOhbiBWw7Zyw7Zz?=) Date: Wed, 11 Mar 2015 17:52:50 +0100 Subject: [IPython-dev] Cntr-s makes cell inactive Message-ID: <550072E2.3080203@gmail.com> Hi all, I think the behaviour of some keyboard shortcuts has changed recently. In particular, Cntr-s for saving the notebook renders the cell inactive (i.e., the cursor is taken away, and the border of the cell becomes gray). Was this a conscious design decision, or this happened by accident? I would like to propose that in cases, where it is clear that one doesn't want to leave the cell when invoking a certain shortcut, e.g., saving the entire notebook, the cell should not become inactive. What now happens to me quite often is that I hit Cntr-s, and then b, which then creates a new cell above, while I actually wanted to type 'b' in the current cell. I think this was not like this before. If this was considered, and this is the decision that the developers arrived at, so be it. Otherwise, I would be happy to issue a PR, if the core team agrees. Cheers, Zolt?n From benjaminrk at gmail.com Wed Mar 11 13:17:59 2015 From: benjaminrk at gmail.com (MinRK) Date: Wed, 11 Mar 2015 10:17:59 -0700 Subject: [IPython-dev] Cntr-s makes cell inactive In-Reply-To: <550072E2.3080203@gmail.com> References: <550072E2.3080203@gmail.com> Message-ID: I think mode switching on save is a bug. On Wed, Mar 11, 2015 at 9:52 AM, Zolt?n V?r?s wrote: > Hi all, > > I think the behaviour of some keyboard shortcuts has changed recently. > In particular, Cntr-s for saving the notebook renders the cell inactive > (i.e., the cursor is taken away, and the border of the cell becomes > gray). Was this a conscious design decision, or this happened by > accident? I would like to propose that in cases, where it is clear that > one doesn't want to leave the cell when invoking a certain shortcut, > e.g., saving the entire notebook, the cell should not become inactive. > What now happens to me quite often is that I hit Cntr-s, and then b, > which then creates a new cell above, while I actually wanted to type 'b' > in the current cell. I think this was not like this before. > > If this was considered, and this is the decision that the developers > arrived at, so be it. Otherwise, I would be happy to issue a PR, if the > core team agrees. > > Cheers, > Zolt?n > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonakosn at gmail.com Wed Mar 11 13:25:54 2015 From: antonakosn at gmail.com (Nontas Antonakos) Date: Wed, 11 Mar 2015 17:25:54 +0000 Subject: [IPython-dev] IntText width Message-ID: Hi, My colleagues and I have been extensively using the IPython widgets for our project. They are awesome and thanks for your good work! However, since upgrading to IPython 3, all our stuff broke, as expected, and we are in the process of refixing them by replacing the old ContainerWIdget with FlexBox. One of the problems we encountered has to do with IntText. It seems that IntText consists of a 'widget-hbox', which has 'widget-label' and 'text' as children. By changing the width of IntText, it seems like only the width of the 'text' is updated and not the one of the 'widget-hbox' object. Consequently, it is impossible to control the width of the text area when it is part of a FlexBox. Is this the expected behaviour of IntText? We weren't sure whether this is a bug or the desired behaviour. How should I change the width of IntText so that the width of its hbox is also changed? Thank you in advance for your time! Cheers, Nontas -------------- next part -------------- An HTML attachment was scrubbed... URL: From zvoros at gmail.com Wed Mar 11 13:46:16 2015 From: zvoros at gmail.com (=?windows-1252?Q?Zolt=E1n_V=F6r=F6s?=) Date: Wed, 11 Mar 2015 18:46:16 +0100 Subject: [IPython-dev] Cntr-s makes cell inactive In-Reply-To: References: <550072E2.3080203@gmail.com> Message-ID: <55007F68.4010502@gmail.com> Thanks for the reply! I will try to find a fix, then. A somewhat related question: when the notebook is busy for a long time, the html title reflects this state, but only till the first autosave. I.e., the title switches from 'mynotebook (Busy)' to 'mynotebook', when the autosave runs. I think this should happen only, when the kernel becomes idle. Would you agree? I can try to get to the bottom of this, too. Cheers, Zolt?n On 03/11/2015 06:17 PM, MinRK wrote: > I think mode switching on save is a bug. > > On Wed, Mar 11, 2015 at 9:52 AM, Zolt?n V?r?s > wrote: > > Hi all, > > I think the behaviour of some keyboard shortcuts has changed recently. > In particular, Cntr-s for saving the notebook renders the cell > inactive > (i.e., the cursor is taken away, and the border of the cell becomes > gray). Was this a conscious design decision, or this happened by > accident? I would like to propose that in cases, where it is clear > that > one doesn't want to leave the cell when invoking a certain shortcut, > e.g., saving the entire notebook, the cell should not become inactive. > What now happens to me quite often is that I hit Cntr-s, and then b, > which then creates a new cell above, while I actually wanted to > type 'b' > in the current cell. I think this was not like this before. > > If this was considered, and this is the decision that the developers > arrived at, so be it. Otherwise, I would be happy to issue a PR, > if the > core team agrees. > > Cheers, > Zolt?n > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://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 rawlins at gmail.com Wed Mar 11 16:48:23 2015 From: rawlins at gmail.com (Kyle Rawlins) Date: Wed, 11 Mar 2015 16:48:23 -0400 Subject: [IPython-dev] question about command line options Message-ID: I?ve been trying to update some of my stuff for ipython 3, and hitting basic roadblock to do with passing configuration options. I have some code that starts the notebook programmatically, and passes an exec_lines option to IPKernelApp. Something to do with the parsing, or not parsing of quote marks is completely messing me up, and I can?t figure it out. Right now, it looks like IPKernelApp is guessing where there should be quote marks, and doesn?t always get it right. But setting that aside for the moment, here?s a tip-of-the-iceberg MWE that illustrates some of the weirdness at the command line, maybe someone can give me a pointer to where in the code this is happening. The command (at the command line, OS X, so the outer single quotes are interpreted by the shell) ipython3 --InteractiveShellApp.exec_lines='["print(2)"]? works, whereas ipython3 notebook --IPKernelApp.exec_lines='["print(2)?]' does not (just silently doesn't print a 2). This, as far as I can tell, did work in IPython 2. In contrast, the command: ipython3 --InteractiveShellApp.exec_lines='[print(2)]? does not work (fails with an error), but ipython3 notebook --IPKernelApp.exec_lines='[print(2)]? does work! The problem seems to come with whatever magic is (successfully?) guessing that the thing inside the bracket should be quoted for IPKernelApp only. With my actual exec_lines command it appears to not get this right, resulting in the silent behavior shown in the first case, but I haven?t even begun to figure out where to look to debug this, and it seemed easier to start with this simpler example. Any ideas? Thanks, -kyle -- Kyle Rawlins http://sites.krieger.jhu.edu/rawlins/ Department of Cognitive Science Johns Hopkins University From bussonniermatthias at gmail.com Wed Mar 11 18:03:15 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 11 Mar 2015 15:03:15 -0700 Subject: [IPython-dev] question about command line options In-Reply-To: References: Message-ID: <47FE28E8-BD62-4E80-A4A2-1A5B7AB86484@gmail.com> > ipython3 notebook --IPKernelApp.exec_lines='["print(2)?]' > Passing config to kernel while starting the notebook app is not supported. -- M From bussonniermatthias at gmail.com Wed Mar 11 18:06:45 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 11 Mar 2015 15:06:45 -0700 Subject: [IPython-dev] Cntr-s makes cell inactive In-Reply-To: <55007F68.4010502@gmail.com> References: <550072E2.3080203@gmail.com> <55007F68.4010502@gmail.com> Message-ID: Sure, this seem like a bug. -- M Le 11 mars 2015 ? 10:46, Zolt?n V?r?s a ?crit : > Thanks for the reply! I will try to find a fix, then. > > A somewhat related question: when the notebook is busy for a long time, > the html title reflects this state, but only till the first autosave. > I.e., the title switches from 'mynotebook (Busy)' to 'mynotebook', when > the autosave runs. I think this should happen only, when the kernel > becomes idle. Would you agree? I can try to get to the bottom of this, too. > > Cheers, > Zolt?n > > On 03/11/2015 06:17 PM, MinRK wrote: >> I think mode switching on save is a bug. >> >> On Wed, Mar 11, 2015 at 9:52 AM, Zolt?n V?r?s > > wrote: >> >> Hi all, >> >> I think the behaviour of some keyboard shortcuts has changed recently. >> In particular, Cntr-s for saving the notebook renders the cell >> inactive >> (i.e., the cursor is taken away, and the border of the cell becomes >> gray). Was this a conscious design decision, or this happened by >> accident? I would like to propose that in cases, where it is clear >> that >> one doesn't want to leave the cell when invoking a certain shortcut, >> e.g., saving the entire notebook, the cell should not become inactive. >> What now happens to me quite often is that I hit Cntr-s, and then b, >> which then creates a new cell above, while I actually wanted to >> type 'b' >> in the current cell. I think this was not like this before. >> >> If this was considered, and this is the decision that the developers >> arrived at, so be it. Otherwise, I would be happy to issue a PR, >> if the >> core team agrees. >> >> Cheers, >> Zolt?n >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 zvoros at gmail.com Wed Mar 11 18:14:50 2015 From: zvoros at gmail.com (=?UTF-8?B?Wm9sdMOhbiBWw7Zyw7Zz?=) Date: Wed, 11 Mar 2015 23:14:50 +0100 Subject: [IPython-dev] Cntr-s makes cell inactive In-Reply-To: References: <550072E2.3080203@gmail.com> <55007F68.4010502@gmail.com> Message-ID: I haven't yet found the culprit. I have checked the obvious places services/contents.js notebook/js/notebook.js edit/js/editor.js but those don't seem to contain the definition of the save function. Can you point me in the right direction? Zolt?n On 03/11/2015 11:06 PM, Matthias Bussonnier wrote: > Sure, this seem like a bug. > -- M Le 11 mars 2015 ? 10:46, Zolt?n V?r?s a ?crit : >> >Thanks for the reply! I will try to find a fix, then. >> > >> >A somewhat related question: when the notebook is busy for a long time, >> >the html title reflects this state, but only till the first autosave. >> >I.e., the title switches from 'mynotebook (Busy)' to 'mynotebook', when >> >the autosave runs. I think this should happen only, when the kernel >> >becomes idle. Would you agree? I can try to get to the bottom of this, too. >> > >> >Cheers, >> >Zolt?n >> > >> >On 03/11/2015 06:17 PM, MinRK wrote: >>> >>I think mode switching on save is a bug. >>> >> >>> >>On Wed, Mar 11, 2015 at 9:52 AM, Zolt?n V?r?s >> >>> wrote: >>> >> >>> >> Hi all, >>> >> >>> >> I think the behaviour of some keyboard shortcuts has changed recently. >>> >> In particular, Cntr-s for saving the notebook renders the cell >>> >> inactive >>> >> (i.e., the cursor is taken away, and the border of the cell becomes >>> >> gray). Was this a conscious design decision, or this happened by >>> >> accident? I would like to propose that in cases, where it is clear >>> >> that >>> >> one doesn't want to leave the cell when invoking a certain shortcut, >>> >> e.g., saving the entire notebook, the cell should not become inactive. >>> >> What now happens to me quite often is that I hit Cntr-s, and then b, >>> >> which then creates a new cell above, while I actually wanted to >>> >> type 'b' >>> >> in the current cell. I think this was not like this before. >>> >> >>> >> If this was considered, and this is the decision that the developers >>> >> arrived at, so be it. Otherwise, I would be happy to issue a PR, >>> >> if the >>> >> core team agrees. >>> >> >>> >> Cheers, >>> >> Zolt?n >>> >> _______________________________________________ >>> >> IPython-dev mailing list >>> >> IPython-dev at scipy.org >>> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >> >>> >> >>> >> >>> >> >>> >>_______________________________________________ >>> >>IPython-dev mailing list >>> >>IPython-dev at scipy.org >>> >>http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> >_______________________________________________ >> >IPython-dev mailing list >> >IPython-dev at scipy.org >> >http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From bussonniermatthias at gmail.com Wed Mar 11 19:13:11 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 11 Mar 2015 16:13:11 -0700 Subject: [IPython-dev] Cntr-s makes cell inactive In-Reply-To: References: <550072E2.3080203@gmail.com> <55007F68.4010502@gmail.com> Message-ID: in action.js. when clicking on save button we ned to ensure that focus get back on notebook, so we call focus, though when triggering the same action from keyboard, calling focus with to command mode. Not a trivial change We probably need a "ensure_focus" that focus the cell only if neither ell, not code mirror is focused. -- M Le 11 mars 2015 ? 15:14, Zolt?n V?r?s a ?crit : > I haven't yet found the culprit. I have checked the obvious places > > services/contents.js > notebook/js/notebook.js > edit/js/editor.js > > but those don't seem to contain the definition of the save function. Can > you point me in the right direction? > > Zolt?n > > > On 03/11/2015 11:06 PM, Matthias Bussonnier wrote: >> Sure, this seem like a bug. >> -- M Le 11 mars 2015 ? 10:46, Zolt?n V?r?s a ?crit : >>>> Thanks for the reply! I will try to find a fix, then. >>>> >>>> A somewhat related question: when the notebook is busy for a long time, >>>> the html title reflects this state, but only till the first autosave. >>>> I.e., the title switches from 'mynotebook (Busy)' to 'mynotebook', when >>>> the autosave runs. I think this should happen only, when the kernel >>>> becomes idle. Would you agree? I can try to get to the bottom of this, too. >>>> >>>> Cheers, >>>> Zolt?n >>>> >>>> On 03/11/2015 06:17 PM, MinRK wrote: >>>>>> I think mode switching on save is a bug. >>>>>> >>>>>> On Wed, Mar 11, 2015 at 9:52 AM, Zolt?n V?r?s >>>>> > wrote: >>>>>> >>>>>> Hi all, >>>>>> >>>>>> I think the behaviour of some keyboard shortcuts has changed recently. >>>>>> In particular, Cntr-s for saving the notebook renders the cell >>>>>> inactive >>>>>> (i.e., the cursor is taken away, and the border of the cell becomes >>>>>> gray). Was this a conscious design decision, or this happened by >>>>>> accident? I would like to propose that in cases, where it is clear >>>>>> that >>>>>> one doesn't want to leave the cell when invoking a certain shortcut, >>>>>> e.g., saving the entire notebook, the cell should not become inactive. >>>>>> What now happens to me quite often is that I hit Cntr-s, and then b, >>>>>> which then creates a new cell above, while I actually wanted to >>>>>> type 'b' >>>>>> in the current cell. I think this was not like this before. >>>>>> >>>>>> If this was considered, and this is the decision that the developers >>>>>> arrived at, so be it. Otherwise, I would be happy to issue a PR, >>>>>> if the >>>>>> core team agrees. >>>>>> >>>>>> Cheers, >>>>>> Zolt?n >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From zarak.mahmud at gmail.com Thu Mar 12 01:08:52 2015 From: zarak.mahmud at gmail.com (z0k) Date: Wed, 11 Mar 2015 22:08:52 -0700 (PDT) Subject: [IPython-dev] TikZ Magics In-Reply-To: <6F69D108-582B-44F6-A966-164731753ED0@ipp.mpg.de> References: <6F69D108-582B-44F6-A966-164731753ED0@ipp.mpg.de> Message-ID: <1426136932669-5089023.post@n6.nabble.com> I am trying to get TikZ working with IPython notebook, but I am getting this error: 49 if not isinstance(data, dict): ---> 50 raise TypeError('data must be a dict, got: %r' % data) 51 if metadata is not None: 52 if not isinstance(metadata, dict): TypeError: data must be a dict, got: 'TikZMagic.Tikz' I am on MacOSx Mavericks and have MacTex installed. Any idea on what might be the problem? -- View this message in context: http://python.6.x6.nabble.com/TikZ-Magics-tp5001768p5089023.html Sent from the IPython - Development mailing list archive at Nabble.com. From michael.kraus at ipp.mpg.de Thu Mar 12 03:55:21 2015 From: michael.kraus at ipp.mpg.de (Michael Kraus) Date: Thu, 12 Mar 2015 08:55:21 +0100 Subject: [IPython-dev] TikZ Magics In-Reply-To: <1426136932669-5089023.post@n6.nabble.com> References: <6F69D108-582B-44F6-A966-164731753ED0@ipp.mpg.de> <1426136932669-5089023.post@n6.nabble.com> Message-ID: <7E411B06-D9FF-4EE5-8B5F-E3C7335231F1@ipp.mpg.de> Which version of IPython are you using? When exactly does that happen? > On 12.03.2015, at 06:08, z0k wrote: > > I am trying to get TikZ working with IPython notebook, but I am getting this > error: > > > 49 if not isinstance(data, dict): > ---> 50 raise TypeError('data must be a dict, got: %r' % data) > 51 if metadata is not None: > 52 if not isinstance(metadata, dict): > > TypeError: data must be a dict, got: 'TikZMagic.Tikz' > > I am on MacOSx Mavericks and have MacTex installed. Any idea on what might > be the problem? > > > > -- > View this message in context: http://python.6.x6.nabble.com/TikZ-Magics-tp5001768p5089023.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 zarak.mahmud at gmail.com Thu Mar 12 05:19:36 2015 From: zarak.mahmud at gmail.com (z0k) Date: Thu, 12 Mar 2015 02:19:36 -0700 (PDT) Subject: [IPython-dev] TikZ Magics In-Reply-To: <7E411B06-D9FF-4EE5-8B5F-E3C7335231F1@ipp.mpg.de> References: <6F69D108-582B-44F6-A966-164731753ED0@ipp.mpg.de> <1426136932669-5089023.post@n6.nabble.com> <7E411B06-D9FF-4EE5-8B5F-E3C7335231F1@ipp.mpg.de> Message-ID: <1426151976841-5089032.post@n6.nabble.com> I'm running IPython version 3.0.0 I installed the extension using %install_ext http://www.ipp.mpg.de/~mkraus/python/tikzmagic.py in a notebook cell. I then loaded it with %load_ext tikzmagic, which seems to work fine. However, when I try to run the following: %tikz \draw (0,0) rectangle (1,1); (or any other magic command for tikz) I get the error. I only copied the last bit of the traceback. -- View this message in context: http://python.6.x6.nabble.com/TikZ-Magics-tp5001768p5089032.html Sent from the IPython - Development mailing list archive at Nabble.com. From zvoros at gmail.com Thu Mar 12 08:29:14 2015 From: zvoros at gmail.com (=?windows-1252?Q?Zolt=E1n_V=F6r=F6s?=) Date: Thu, 12 Mar 2015 13:29:14 +0100 Subject: [IPython-dev] Cntr-s makes cell inactive In-Reply-To: References: <550072E2.3080203@gmail.com> <55007F68.4010502@gmail.com> Message-ID: <5501869A.8010704@gmail.com> On 03/12/2015 12:13 AM, Matthias Bussonnier wrote: > in action.js. > > > when clicking on save button we ned to ensure that focus get back on notebook, so we call focus, > though when triggering the same action from keyboard, calling focus with to command mode. > > Not a trivial change Too bad. I have actually looked at action.js, and I see that this problem is a bit more involving. But is it not possible to inspect the event in the 'save_notebook' action, and insert env.notebook.focus_cell() for mouse clicks, and env.notebook.command_mode() for key strokes? I have already tried this, it nothing happened, though, I don't know, why... Cheers, Zolt?n From michael.kraus at ipp.mpg.de Thu Mar 12 10:01:05 2015 From: michael.kraus at ipp.mpg.de (Michael Kraus) Date: Thu, 12 Mar 2015 15:01:05 +0100 Subject: [IPython-dev] TikZ Magics In-Reply-To: <1426151976841-5089032.post@n6.nabble.com> References: <6F69D108-582B-44F6-A966-164731753ED0@ipp.mpg.de> <1426136932669-5089023.post@n6.nabble.com> <7E411B06-D9FF-4EE5-8B5F-E3C7335231F1@ipp.mpg.de> <1426151976841-5089032.post@n6.nabble.com> Message-ID: The latest version of the TikZ magic is available at https://github.com/mkrphys/ipython-tikzmagic. I should remove the old version from my homepage and put a redirect. I just tested that latest version of the magic with IPython 3.0.0 and both Python 2.7.9 and 3.4.3 and cannot reproduce the problem. I am running MacOSX 10.10.2 with Python from MacPorts and MacTex 2014. I suggest you try with the latest version and if that does not work, send the full traceback. > On 12.03.2015, at 10:19, z0k wrote: > > I'm running IPython version 3.0.0 > > I installed the extension using %install_ext > http://www.ipp.mpg.de/~mkraus/python/tikzmagic.py in a notebook cell. > > I then loaded it with %load_ext tikzmagic, which seems to work fine. > > However, when I try to run the following: > %tikz \draw (0,0) rectangle (1,1); > > (or any other magic command for tikz) > > I get the error. I only copied the last bit of the traceback. > > > > -- > View this message in context: http://python.6.x6.nabble.com/TikZ-Magics-tp5001768p5089032.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 zarak.mahmud at gmail.com Thu Mar 12 11:07:58 2015 From: zarak.mahmud at gmail.com (z0k) Date: Thu, 12 Mar 2015 08:07:58 -0700 (PDT) Subject: [IPython-dev] TikZ Magics In-Reply-To: References: <6F69D108-582B-44F6-A966-164731753ED0@ipp.mpg.de> <1426136932669-5089023.post@n6.nabble.com> <7E411B06-D9FF-4EE5-8B5F-E3C7335231F1@ipp.mpg.de> <1426151976841-5089032.post@n6.nabble.com> Message-ID: <1426172878806-5089070.post@n6.nabble.com> That worked! Thanks very much for your quick response (and for putting this extension out there). -- View this message in context: http://python.6.x6.nabble.com/TikZ-Magics-tp5001768p5089070.html Sent from the IPython - Development mailing list archive at Nabble.com. From bussonniermatthias at gmail.com Thu Mar 12 13:41:23 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 12 Mar 2015 10:41:23 -0700 Subject: [IPython-dev] Cntr-s makes cell inactive In-Reply-To: <5501869A.8010704@gmail.com> References: <550072E2.3080203@gmail.com> <55007F68.4010502@gmail.com> <5501869A.8010704@gmail.com> Message-ID: Le 12 mars 2015 ? 05:29, Zolt?n V?r?s a ?crit : > > > On 03/12/2015 12:13 AM, Matthias Bussonnier wrote: >> in action.js. >> >> >> when clicking on save button we ned to ensure that focus get back on notebook, so we call focus, >> though when triggering the same action from keyboard, calling focus with to command mode. >> >> Not a trivial change > Too bad. I have actually looked at action.js, and I see that this > problem is a bit more involving. But is it not possible to inspect the > event in the 'save_notebook' action, and insert > env.notebook.focus_cell() for mouse clicks, and > env.notebook.command_mode() for key strokes? I have already tried this, > it nothing happened, though, I don't know, why... Something like https://github.com/ipython/ipython/pull/8024 should help, if you want to have a look. -- M > > > Cheers, > Zolt?n > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From rawlins at gmail.com Thu Mar 12 17:35:35 2015 From: rawlins at gmail.com (Kyle Rawlins) Date: Thu, 12 Mar 2015 17:35:35 -0400 Subject: [IPython-dev] question about command line options In-Reply-To: References: Message-ID: <049853EA-50D8-4306-9259-93B11E5DBAC1@gmail.com> On Mar 11, 2015, at 7:13 PM, ipython-dev-request at scipy.org wrote: > Date: Wed, 11 Mar 2015 15:03:15 -0700 > From: Matthias Bussonnier > Subject: Re: [IPython-dev] question about command line options > To: IPython developers list > Message-ID: <47FE28E8-BD62-4E80-A4A2-1A5B7AB86484 at gmail.com> > Content-Type: text/plain; charset=windows-1252 > > >> ipython3 notebook --IPKernelApp.exec_lines='["print(2)?]' > > Passing config to kernel while starting the notebook app is not supported. > -- > M ok. I take it this applies to calls to NotebookApp.initialize as well? Is there any approved way to do scripted setup for (ipython) kernels in this way (e.g. not in a personal config file) short of writing my own kernel? This was apparently supported in 2, insofar as these options were present in --help-all (and no longer are), so some kind of workaround if there is any would be helpful. Also, perhaps if this is the answer, you should consider not letting it ever work. Right now setting IPKernelApp.exec_lines via command line mostly does do something, so the command line is still getting to IPKernelApp somehow, and it fails only in these complicated circumstances apparently relating to the automatic insertion of quotes. I think sometimes it is pretty hard for those of us who haven't been steeped in the internals to understand exactly what can and should be configured when and how, because configuration is so flexible in IPython... Thanks, -kyle From takowl at gmail.com Thu Mar 12 18:51:30 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 12 Mar 2015 15:51:30 -0700 Subject: [IPython-dev] question about command line options In-Reply-To: <049853EA-50D8-4306-9259-93B11E5DBAC1@gmail.com> References: <049853EA-50D8-4306-9259-93B11E5DBAC1@gmail.com> Message-ID: On 12 March 2015 at 14:35, Kyle Rawlins wrote: > Also, perhaps if this is the answer, you should consider not letting it > ever work. Right now setting IPKernelApp.exec_lines via command line > mostly does do something, so the command line is still getting to > IPKernelApp somehow, and it fails only in these complicated circumstances > apparently relating to the automatic insertion of quotes. I think > sometimes it is pretty hard for those of us who haven't been steeped in the > internals to understand exactly what can and should be configured when and > how, because configuration is so flexible in IPython... The only thing to remember is that the notebook config (command line options and the ipython_notebook_config.py file) don't affect kernels. You can workaround this by creating a kernelspec with extra command line arguments for the kernel, but there isn't a way to do it purely at the command line. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmcgibbo at gmail.com Thu Mar 12 19:40:10 2015 From: rmcgibbo at gmail.com (Robert McGibbon) Date: Thu, 12 Mar 2015 16:40:10 -0700 Subject: [IPython-dev] Remote Launcher App? Message-ID: Hi, I was wondering if anyone has made a small app OS X that is capable of launching and stopping the notebook, preferably from a dropdown from top menubar. I was thinking it would be nice to launch the notebook either locally or remotely on a separate server connected with ssh port forwarding. I was thinking of making this app for my own use (in my research, I use the notebook and lots of different remote clusters over ssh). If someone has already done this though, that would obviously save some work. -Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Thu Mar 12 19:43:17 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 12 Mar 2015 16:43:17 -0700 Subject: [IPython-dev] Remote Launcher App? In-Reply-To: References: Message-ID: <1246376E-2F4F-4058-818A-4D0348C38096@gmail.com> Le 12 mars 2015 ? 16:40, Robert McGibbon a ?crit : > Hi, > > I was wondering if anyone has made a small app OS X that is capable of launching and stopping the notebook, preferably from a dropdown from top menubar. I was thinking it would be nice to launch the notebook either locally or remotely on a separate server connected with ssh port forwarding. > > I was thinking of making this app for my own use (in my research, I use the notebook and lots of different remote clusters over ssh). If someone has already done this though, that would obviously save some work. i've heard other request for that. Thomas wrote (https://github.com/takluyver/nbopen) that might be useful. There is the kronosnotebook app (http://www.kronosnotebook.com/ website seem down now) Keep us informed -- M -------------- next part -------------- An HTML attachment was scrubbed... URL: From casey.grun at post.harvard.edu Thu Mar 12 21:58:43 2015 From: casey.grun at post.harvard.edu (Casey Grun) Date: Thu, 12 Mar 2015 20:58:43 -0500 Subject: [IPython-dev] Remote Launcher App? In-Reply-To: <1246376E-2F4F-4058-818A-4D0348C38096@gmail.com> References: <1246376E-2F4F-4058-818A-4D0348C38096@gmail.com> Message-ID: I was hoping to do something like this using Platypus ( http://www.sveinbjorn.org/platypus), which lets you bundle shell (or Python) scripts as app bundles and can tie into the menu bar and such. Looks like nbopen could do the trick for me (I just wanted to be able to double-click files in Finder), but maybe Platypus could help you? On Thursday, March 12, 2015, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 12 mars 2015 ? 16:40, Robert McGibbon a ?crit : > > Hi, > > I was wondering if anyone has made a small app OS X that is capable of > launching and stopping the notebook, preferably from a dropdown from top > menubar. I was thinking it would be nice to launch the notebook either > locally or remotely on a separate server connected with ssh port forwarding. > > I was thinking of making this app for my own use (in my research, I use > the notebook and lots of different remote clusters over ssh). If someone > has already done this though, that would obviously save some work. > > > > i've heard other request for that. > > Thomas wrote (https://github.com/takluyver/nbopen) that might be useful. > > There is the kronosnotebook app (http://www.kronosnotebook.com/ website > seem down now) > > Keep us informed > -- > M > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zvoros at gmail.com Fri Mar 13 03:37:05 2015 From: zvoros at gmail.com (=?windows-1252?Q?Zolt=E1n_V=F6r=F6s?=) Date: Fri, 13 Mar 2015 08:37:05 +0100 Subject: [IPython-dev] Cntr-s makes cell inactive In-Reply-To: References: <550072E2.3080203@gmail.com> <55007F68.4010502@gmail.com> <5501869A.8010704@gmail.com> Message-ID: <550293A1.6070904@gmail.com> Thanks, Matthias, I will try to come up with a fix. Cheers, Zolt?n On 03/12/2015 06:41 PM, Matthias Bussonnier wrote: > > Le 12 mars 2015 ? 05:29, Zolt?n V?r?s > a ?crit : > >> >> >> On 03/12/2015 12:13 AM, Matthias Bussonnier wrote: >>> in action.js. >>> >>> >>> when clicking on save button we ned to ensure that focus get back on >>> notebook, so we call focus, >>> though when triggering the same action from keyboard, calling focus >>> with to command mode. >>> >>> Not a trivial change >> Too bad. I have actually looked at action.js, and I see that this >> problem is a bit more involving. But is it not possible to inspect the >> event in the 'save_notebook' action, and insert >> env.notebook.focus_cell() for mouse clicks, and >> env.notebook.command_mode() for key strokes? I have already tried this, >> it nothing happened, though, I don't know, why... > > > Something like https://github.com/ipython/ipython/pull/8024 should > help, if you want to have a look. > -- > M > >> >> >> Cheers, >> Zolt?n >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 rnelsonchem at gmail.com Fri Mar 13 14:59:29 2015 From: rnelsonchem at gmail.com (Ryan Nelson) Date: Fri, 13 Mar 2015 14:59:29 -0400 Subject: [IPython-dev] IPython's matplotlib inline magic is really magic? Actually it might resets axes bounds... Message-ID: I'm constructing a multi-plot figure using an IPython notebook (v3) and matplotlib (v1.4.3) inline magic. I was manually setting the axes bounds, and I ended up with something like the following: ######## import matplotlib.pyplot as plt %matplotlib inline bottom = 0.12 top = 0.9 left = 0.12 axwidth = (1-(left*2))/3 fig = plt.figure(figsize=(10,4)) ax1 = fig.add_axes((left, bottom, axwidth, top)) ax1.set_title('Title') #ax1.tick_params(labelleft=False) ax2 = fig.add_axes((left+axwidth, bottom, axwidth, top), sharex=ax1, sharey=ax1) ax2.tick_params(labelleft=False) ax3 = fig.add_axes((left+axwidth*2, bottom, axwidth, top), sharex=ax1, sharey=ax1) ax3.tick_params(labelleft=False) fig.savefig('junk.pdf', format='pdf') fig.savefig('junk2.png') ####### Obviously, the bottom+top that I've selected is >1, so the axes should go off the top of the figure. (Stupid, I know...) The axes in both the PDF and PNG formatted files are clipped by the top of the figure as you would expect; however, the figure that is displayed in the Notebook looks just fine. In addition, if you add a title to one of the axes, the figure in IPython suddenly creates more space for the text. Maybe it is rearranging the axes information behind the scenes? I'm curious why this design decision was made. I would say this is a bug. Now that I know about this behavior, I can easily fix it. But new users will be baffled when their saved figure looks nothing like the displayed figure in the notebook. Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From rnelsonchem at gmail.com Fri Mar 13 19:00:40 2015 From: rnelsonchem at gmail.com (Ryan Nelson) Date: Fri, 13 Mar 2015 19:00:40 -0400 Subject: [IPython-dev] [Matplotlib-users] IPython's matplotlib inline magic is really magic? Actually it might resets axes bounds... In-Reply-To: References: Message-ID: Thanks Tom. Your hint led me to the following page: https://github.com/ipython/ipython/blob/aab20bf85126f5b1da857193c446aebe6346acec/docs/source/whatsnew/version2.0.rst#other-changes So it seems that this change is quite old, and I never noticed it before... The suggestion on that page requires some incantation of the %config magic. I tried this: %config InlineBackend.print_figure_kwargs.bbox_inches = None Which silently passes, but doesn't change the behavior. Your rational for IPython's use of this kwarg by default is sound, and I understand that there are valid use cases for it in some circumstances. However, I still think this is problematic. I like MPL because you can make a plot to your exact specifications -- but setting this kind of behavior by default (without a well documented fix) feels a little "Microsoft Office"-y... That being said, I really don't care all that much. IPython is a fantastic tool. I'll just move my plotting code to a separate script and tweak things there. (But then I won't be able to share the notebook with my fancy plot embedded except as an external image. Can't have everything.) I actually don't want any sort of 'tight' layout; however, just for reference, the `tight_layout` function throws an error in my example. Ryan On Fri, Mar 13, 2015 at 4:03 PM, Thomas Caswell wrote: > This is due to the fact that by default the inline backend saves the pngs > using `boundingbox_inches='tight'`. The design goal on the mpl side of > this kwargs was to trim off extra whitespace, but the way it is implemented > works just as effectively to expand to fit artists that fall outside of the > figure. I assume the choice to make this the default in inline was to > waste as little space as possible. > > A possibly more reliable method to get the same effect is to use > `tight_layout` (see http://matplotlib.org/users/tight_layout_guide.html) > > There was talk of replacing that implementation with a linear constraint > solver, but not much progress has been made in that direction (see > https://github.com/matplotlib/matplotlib/issues/1109) > > Tom > > On Fri, Mar 13, 2015 at 3:01 PM Ryan Nelson wrote: > >> I'm constructing a multi-plot figure using an IPython notebook (v3) and >> matplotlib (v1.4.3) inline magic. I was manually setting the axes bounds, >> and I ended up with something like the following: >> >> ######## >> import matplotlib.pyplot as plt >> %matplotlib inline >> >> bottom = 0.12 >> top = 0.9 >> left = 0.12 >> axwidth = (1-(left*2))/3 >> >> fig = plt.figure(figsize=(10,4)) >> >> ax1 = fig.add_axes((left, bottom, axwidth, top)) >> ax1.set_title('Title') >> #ax1.tick_params(labelleft=False) >> >> ax2 = fig.add_axes((left+axwidth, bottom, axwidth, top), >> sharex=ax1, sharey=ax1) >> ax2.tick_params(labelleft=False) >> >> ax3 = fig.add_axes((left+axwidth*2, bottom, axwidth, top), >> sharex=ax1, sharey=ax1) >> ax3.tick_params(labelleft=False) >> >> fig.savefig('junk.pdf', format='pdf') >> fig.savefig('junk2.png') >> ####### >> >> Obviously, the bottom+top that I've selected is >1, so the axes should go >> off the top of the figure. (Stupid, I know...) The axes in both the PDF and >> PNG formatted files are clipped by the top of the figure as you would >> expect; however, the figure that is displayed in the Notebook looks just >> fine. In addition, if you add a title to one of the axes, the figure in >> IPython suddenly creates more space for the text. Maybe it is rearranging >> the axes information behind the scenes? >> >> I'm curious why this design decision was made. I would say this is a bug. >> Now that I know about this behavior, I can easily fix it. But new users >> will be baffled when their saved figure looks nothing like the displayed >> figure in the notebook. >> >> Ryan >> ------------------------------------------------------------ >> ------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Fri Mar 13 19:07:31 2015 From: wes.turner at gmail.com (Wes Turner) Date: Fri, 13 Mar 2015 18:07:31 -0500 Subject: [IPython-dev] IPython's matplotlib inline magic is really magic? Actually it might resets axes bounds... In-Reply-To: References: Message-ID: Ryan, http://wrdrd.github.io/docs/consulting/data-science.html#data-visualization-tools On Mar 13, 2015 1:59 PM, "Ryan Nelson" wrote: > I'm constructing a multi-plot figure using an IPython notebook (v3) and > matplotlib (v1.4.3) inline magic. I was manually setting the axes bounds, > and I ended up with something like the following: > > ######## > import matplotlib.pyplot as plt > %matplotlib inline > > bottom = 0.12 > top = 0.9 > left = 0.12 > axwidth = (1-(left*2))/3 > > fig = plt.figure(figsize=(10,4)) > > ax1 = fig.add_axes((left, bottom, axwidth, top)) > ax1.set_title('Title') > #ax1.tick_params(labelleft=False) > > ax2 = fig.add_axes((left+axwidth, bottom, axwidth, top), > sharex=ax1, sharey=ax1) > ax2.tick_params(labelleft=False) > > ax3 = fig.add_axes((left+axwidth*2, bottom, axwidth, top), > sharex=ax1, sharey=ax1) > ax3.tick_params(labelleft=False) > > fig.savefig('junk.pdf', format='pdf') > fig.savefig('junk2.png') > ####### > > Obviously, the bottom+top that I've selected is >1, so the axes should go > off the top of the figure. (Stupid, I know...) The axes in both the PDF and > PNG formatted files are clipped by the top of the figure as you would > expect; however, the figure that is displayed in the Notebook looks just > fine. In addition, if you add a title to one of the axes, the figure in > IPython suddenly creates more space for the text. Maybe it is rearranging > the axes information behind the scenes? > > I'm curious why this design decision was made. I would say this is a bug. > Now that I know about this behavior, I can easily fix it. But new users > will be baffled when their saved figure looks nothing like the displayed > figure in the notebook. > > Ryan > > _______________________________________________ > 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 rnelsonchem at gmail.com Fri Mar 13 22:52:27 2015 From: rnelsonchem at gmail.com (Ryan Nelson) Date: Fri, 13 Mar 2015 22:52:27 -0400 Subject: [IPython-dev] IPython's matplotlib inline magic is really magic? Actually it might resets axes bounds... In-Reply-To: References: Message-ID: Okay. I figured out the problem. You need to pass a dictionary to the config magic. Here is the relevant code: %config InlineBackend.print_figure_kwargs = {'bbox_inches':None} I created a PR with IPython (https://github.com/ipython/ipython/pull/8051) to add this information to the %matplotlib documentation, so this doesn't cause confusion for others. Thanks to all the IPython and MPL devs for these great tools! On Fri, Mar 13, 2015 at 7:07 PM, Wes Turner wrote: > Ryan, > > > http://wrdrd.github.io/docs/consulting/data-science.html#data-visualization-tools > On Mar 13, 2015 1:59 PM, "Ryan Nelson" wrote: > >> I'm constructing a multi-plot figure using an IPython notebook (v3) and >> matplotlib (v1.4.3) inline magic. I was manually setting the axes bounds, >> and I ended up with something like the following: >> >> ######## >> import matplotlib.pyplot as plt >> %matplotlib inline >> >> bottom = 0.12 >> top = 0.9 >> left = 0.12 >> axwidth = (1-(left*2))/3 >> >> fig = plt.figure(figsize=(10,4)) >> >> ax1 = fig.add_axes((left, bottom, axwidth, top)) >> ax1.set_title('Title') >> #ax1.tick_params(labelleft=False) >> >> ax2 = fig.add_axes((left+axwidth, bottom, axwidth, top), >> sharex=ax1, sharey=ax1) >> ax2.tick_params(labelleft=False) >> >> ax3 = fig.add_axes((left+axwidth*2, bottom, axwidth, top), >> sharex=ax1, sharey=ax1) >> ax3.tick_params(labelleft=False) >> >> fig.savefig('junk.pdf', format='pdf') >> fig.savefig('junk2.png') >> ####### >> >> Obviously, the bottom+top that I've selected is >1, so the axes should go >> off the top of the figure. (Stupid, I know...) The axes in both the PDF and >> PNG formatted files are clipped by the top of the figure as you would >> expect; however, the figure that is displayed in the Notebook looks just >> fine. In addition, if you add a title to one of the axes, the figure in >> IPython suddenly creates more space for the text. Maybe it is rearranging >> the axes information behind the scenes? >> >> I'm curious why this design decision was made. I would say this is a bug. >> Now that I know about this behavior, I can easily fix it. But new users >> will be baffled when their saved figure looks nothing like the displayed >> figure in the notebook. >> >> Ryan >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 crocha at ucsd.edu Mon Mar 16 04:03:39 2015 From: crocha at ucsd.edu (Cesar B Rocha) Date: Mon, 16 Mar 2015 01:03:39 -0700 Subject: [IPython-dev] multiple figures in notebook Message-ID: I'm plotting multiple figures in the same notebook (v3) cell (I'm using chrome). The figures correctly appear inline in the output box. But when I scroll up some of the figures overshadow the previous cell. The figures used to stay in the box in v2. Is this a bug? import numpy as np from numpy import pi,cos import matplotlib.pyplot as plt %matplotlib inline x = np.linspace(0,1,100) k = 2*pi*np.arange(10) for i in range(k.size): plt.figure() plt.plot(x,cos(k[i]*x)) -------------- next part -------------- An HTML attachment was scrubbed... URL: From roalexan at microsoft.com Mon Mar 16 09:55:23 2015 From: roalexan at microsoft.com (Robert Alexander) Date: Mon, 16 Mar 2015 13:55:23 +0000 Subject: [IPython-dev] how to prevent spam, ddos, etc. from IPython notebooks Message-ID: Do people have any advice/experience on how to prevent spam, ddos, etc. from users' IPython notebooks? Since arbitrary Python code is what IPython notebook is all about (see: http://ipython.org/ipython-doc/dev/notebook/security.html), this might be difficult to achieve. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wstein at gmail.com Mon Mar 16 10:14:00 2015 From: wstein at gmail.com (William Stein) Date: Mon, 16 Mar 2015 07:14:00 -0700 Subject: [IPython-dev] how to prevent spam, ddos, etc. from IPython notebooks In-Reply-To: References: Message-ID: On Mon, Mar 16, 2015 at 6:55 AM, Robert Alexander wrote: > Do people have any advice/experience on how to prevent spam, ddos, etc. from > users' IPython notebooks? Since arbitrary Python code is what IPython > notebook is all about (see: > http://ipython.org/ipython-doc/dev/notebook/security.html), this might be > difficult to achieve. For SageMathCloud (https://cloud.sagemath.com), which hosts IPython notebook servers, by default I use a firewall to disable most outside network access by default. Uses can write to me to explain what they are doing and request network access. Last year I was having fairly regular problems with people using SageMathCloud to launch hacking attacks against targets, which resulted in complaints from those targets. I also had problems with people downloading content, e.g., from MathSciNet, which violated their terms of usage (this was an unintentional mistake by a grad student). Basically, SageMathCloud would regularly get flagged by University of Washington Netops. Once I setup a firewall with a small *whitelist* (including, e.g., github), I haven't had one single problem like this. -- William > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- William (http://wstein.org) From benjaminrk at gmail.com Mon Mar 16 12:49:34 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 16 Mar 2015 10:49:34 -0600 Subject: [IPython-dev] how to prevent spam, ddos, etc. from IPython notebooks In-Reply-To: References: Message-ID: tmpnb (try.jupyter.org) takes a similar, if more restrictive, approach to SageMathCloud. User containers simply have no network access. We should probably adopt a strict whitelist of services like William has done. -MinRK On Mon, Mar 16, 2015 at 8:14 AM, William Stein wrote: > On Mon, Mar 16, 2015 at 6:55 AM, Robert Alexander > wrote: > > Do people have any advice/experience on how to prevent spam, ddos, etc. > from > > users' IPython notebooks? Since arbitrary Python code is what IPython > > notebook is all about (see: > > http://ipython.org/ipython-doc/dev/notebook/security.html), this might > be > > difficult to achieve. > > For SageMathCloud (https://cloud.sagemath.com), which hosts IPython > notebook servers, by default I use a firewall to disable most outside > network access by default. Uses can write to me to explain what they > are doing and request network access. > > Last year I was having fairly regular problems with people using > SageMathCloud to launch hacking attacks against targets, which > resulted in complaints from those targets. I also had problems with > people downloading content, e.g., from MathSciNet, which violated > their terms of usage (this was an unintentional mistake by a grad > student). Basically, SageMathCloud would regularly get flagged by > University of Washington Netops. Once I setup a firewall with a small > *whitelist* (including, e.g., github), I haven't had one single > problem like this. > > -- William > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > William (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 wstein at gmail.com Mon Mar 16 12:58:43 2015 From: wstein at gmail.com (William Stein) Date: Mon, 16 Mar 2015 09:58:43 -0700 Subject: [IPython-dev] how to prevent spam, ddos, etc. from IPython notebooks In-Reply-To: References: Message-ID: On Monday, March 16, 2015, MinRK wrote: > tmpnb (try.jupyter.org) takes a similar, if more restrictive, approach to > SageMathCloud. User containers simply have no network access. We should > probably adopt a strict whitelist of services like William has done. > > Do people complain? > -MinRK > > On Mon, Mar 16, 2015 at 8:14 AM, William Stein > wrote: > >> On Mon, Mar 16, 2015 at 6:55 AM, Robert Alexander >> > > wrote: >> > Do people have any advice/experience on how to prevent spam, ddos, etc. >> from >> > users' IPython notebooks? Since arbitrary Python code is what IPython >> > notebook is all about (see: >> > http://ipython.org/ipython-doc/dev/notebook/security.html), this might >> be >> > difficult to achieve. >> >> For SageMathCloud (https://cloud.sagemath.com), which hosts IPython >> notebook servers, by default I use a firewall to disable most outside >> network access by default. Uses can write to me to explain what they >> are doing and request network access. >> >> Last year I was having fairly regular problems with people using >> SageMathCloud to launch hacking attacks against targets, which >> resulted in complaints from those targets. I also had problems with >> people downloading content, e.g., from MathSciNet, which violated >> their terms of usage (this was an unintentional mistake by a grad >> student). Basically, SageMathCloud would regularly get flagged by >> University of Washington Netops. Once I setup a firewall with a small >> *whitelist* (including, e.g., github), I haven't had one single >> problem like this. >> >> -- William >> >> > >> > >> > _______________________________________________ >> > IPython-dev mailing list >> > IPython-dev at scipy.org >> >> > http://mail.scipy.org/mailman/listinfo/ipython-dev >> > >> >> >> >> -- >> William (http://wstein.org) >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > -- William (http://wstein.org) -------------- next part -------------- An HTML attachment was scrubbed... URL: From raymond.yee at gmail.com Mon Mar 16 13:03:51 2015 From: raymond.yee at gmail.com (Raymond Yee) Date: Mon, 16 Mar 2015 10:03:51 -0700 Subject: [IPython-dev] how to prevent spam, ddos, etc. from IPython notebooks In-Reply-To: References: Message-ID: <55070CF7.9080705@gmail.com> re whitelisting, a possibly useful model is what pythonanywhere does: https://www.pythonanywhere.com/wiki/403ForbiddenError (you can ask for sites to be put on the whitelist) https://www.pythonanywhere.com/whitelist/ (sites free users can access) -Raymond On 3/16/15 9:58 AM, William Stein wrote: > > > On Monday, March 16, 2015, MinRK > wrote: > > tmpnb (try.jupyter.org ) takes a similar, > if more restrictive, approach to SageMathCloud. User containers > simply have no network access. We should probably adopt a strict > whitelist of services like William has done. > > > Do people complain? > > > -MinRK > > On Mon, Mar 16, 2015 at 8:14 AM, William Stein > wrote: > > On Mon, Mar 16, 2015 at 6:55 AM, Robert Alexander > > wrote: > > Do people have any advice/experience on how to prevent spam, > ddos, etc. from > > users' IPython notebooks? Since arbitrary Python code is > what IPython > > notebook is all about (see: > > http://ipython.org/ipython-doc/dev/notebook/security.html), > this might be > > difficult to achieve. > > For SageMathCloud (https://cloud.sagemath.com), which hosts > IPython > notebook servers, by default I use a firewall to disable most > outside > network access by default. Uses can write to me to explain > what they > are doing and request network access. > > Last year I was having fairly regular problems with people using > SageMathCloud to launch hacking attacks against targets, which > resulted in complaints from those targets. I also had > problems with > people downloading content, e.g., from MathSciNet, which violated > their terms of usage (this was an unintentional mistake by a grad > student). Basically, SageMathCloud would regularly get > flagged by > University of Washington Netops. Once I setup a firewall with > a small > *whitelist* (including, e.g., github), I haven't had one single > problem like this. > > -- William > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > William (http://wstein.org) > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > -- > William (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 benjaminrk at gmail.com Mon Mar 16 13:27:14 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 16 Mar 2015 11:27:14 -0600 Subject: [IPython-dev] how to prevent spam, ddos, etc. from IPython notebooks In-Reply-To: References: Message-ID: On Mon, Mar 16, 2015 at 10:58 AM, William Stein wrote: > > > On Monday, March 16, 2015, MinRK wrote: > >> tmpnb (try.jupyter.org) takes a similar, if more restrictive, approach >> to SageMathCloud. User containers simply have no network access. We should >> probably adopt a strict whitelist of services like William has done. >> >> > Do people complain? > I think we've had a question or two, but not much that I'm aware of. Unlike SMC, try.jupyter is really for doing quick demos of the notebook itself, not a hosted place to do actual work, which I think results in a big difference in expectations of what should be possible or allowed. The network lockdown emphasizes that, as does the ephemeral nature of the containers. -MinRK > > >> -MinRK >> >> On Mon, Mar 16, 2015 at 8:14 AM, William Stein wrote: >> >>> On Mon, Mar 16, 2015 at 6:55 AM, Robert Alexander >>> wrote: >>> > Do people have any advice/experience on how to prevent spam, ddos, >>> etc. from >>> > users' IPython notebooks? Since arbitrary Python code is what IPython >>> > notebook is all about (see: >>> > http://ipython.org/ipython-doc/dev/notebook/security.html), this >>> might be >>> > difficult to achieve. >>> >>> For SageMathCloud (https://cloud.sagemath.com), which hosts IPython >>> notebook servers, by default I use a firewall to disable most outside >>> network access by default. Uses can write to me to explain what they >>> are doing and request network access. >>> >>> Last year I was having fairly regular problems with people using >>> SageMathCloud to launch hacking attacks against targets, which >>> resulted in complaints from those targets. I also had problems with >>> people downloading content, e.g., from MathSciNet, which violated >>> their terms of usage (this was an unintentional mistake by a grad >>> student). Basically, SageMathCloud would regularly get flagged by >>> University of Washington Netops. Once I setup a firewall with a small >>> *whitelist* (including, e.g., github), I haven't had one single >>> problem like this. >>> >>> -- William >>> >>> > >>> > >>> > _______________________________________________ >>> > IPython-dev mailing list >>> > IPython-dev at scipy.org >>> > http://mail.scipy.org/mailman/listinfo/ipython-dev >>> > >>> >>> >>> >>> -- >>> William (http://wstein.org) >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >> >> > > -- > William (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 bussonniermatthias at gmail.com Mon Mar 16 13:29:24 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 16 Mar 2015 10:29:24 -0700 Subject: [IPython-dev] how to prevent spam, ddos, etc. from IPython notebooks In-Reply-To: References: Message-ID: <3099F657-B7B9-4F55-A2E0-F4AA240EEA14@gmail.com> Le 16 mars 2015 ? 09:58, William Stein a ?crit : > > > On Monday, March 16, 2015, MinRK wrote: > tmpnb (try.jupyter.org) takes a similar, if more restrictive, approach to SageMathCloud. User containers simply have no network access. We should probably adopt a strict whitelist of services like William has done. > > > Do people complain? No, but some do report bug that requests or url lib does not work. In the other hand, we don't persist user notebooks, so people probably don't push the server as far as with SageMath. -- M > > -MinRK > > On Mon, Mar 16, 2015 at 8:14 AM, William Stein wrote: > On Mon, Mar 16, 2015 at 6:55 AM, Robert Alexander > wrote: > > Do people have any advice/experience on how to prevent spam, ddos, etc. from > > users' IPython notebooks? Since arbitrary Python code is what IPython > > notebook is all about (see: > > http://ipython.org/ipython-doc/dev/notebook/security.html), this might be > > difficult to achieve. > > For SageMathCloud (https://cloud.sagemath.com), which hosts IPython > notebook servers, by default I use a firewall to disable most outside > network access by default. Uses can write to me to explain what they > are doing and request network access. > > Last year I was having fairly regular problems with people using > SageMathCloud to launch hacking attacks against targets, which > resulted in complaints from those targets. I also had problems with > people downloading content, e.g., from MathSciNet, which violated > their terms of usage (this was an unintentional mistake by a grad > student). Basically, SageMathCloud would regularly get flagged by > University of Washington Netops. Once I setup a firewall with a small > *whitelist* (including, e.g., github), I haven't had one single > problem like this. > > -- William > > > > > > > _______________________________________________ > > IPython-dev mailing list > > IPython-dev at scipy.org > > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > -- > William (http://wstein.org) > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > -- > William (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 wstein at gmail.com Mon Mar 16 13:32:14 2015 From: wstein at gmail.com (William Stein) Date: Mon, 16 Mar 2015 10:32:14 -0700 Subject: [IPython-dev] how to prevent spam, ddos, etc. from IPython notebooks In-Reply-To: References: Message-ID: On Monday, March 16, 2015, MinRK wrote: > > > On Mon, Mar 16, 2015 at 10:58 AM, William Stein > wrote: > >> >> >> On Monday, March 16, 2015, MinRK > > wrote: >> >>> tmpnb (try.jupyter.org) takes a similar, if more restrictive, approach >>> to SageMathCloud. User containers simply have no network access. We should >>> probably adopt a strict whitelist of services like William has done. >>> >>> >> Do people complain? >> > > I think we've had a question or two, but not much that I'm aware of. > Unlike SMC, try.jupyter is really for doing quick demos of the notebook > itself, not a hosted place to do actual work, which I think results in a > big difference in expectations of what should be possible or allowed. The > network lockdown emphasizes that, as does the ephemeral nature of the > containers. > I just looked around the try.jupyter site (on a tablet) and couldn't even find an email or feedback link. So that might slightly reduce the amount of feedback you get. > > -MinRK > > >> >> >>> -MinRK >>> >>> On Mon, Mar 16, 2015 at 8:14 AM, William Stein wrote: >>> >>>> On Mon, Mar 16, 2015 at 6:55 AM, Robert Alexander >>>> wrote: >>>> > Do people have any advice/experience on how to prevent spam, ddos, >>>> etc. from >>>> > users' IPython notebooks? Since arbitrary Python code is what IPython >>>> > notebook is all about (see: >>>> > http://ipython.org/ipython-doc/dev/notebook/security.html), this >>>> might be >>>> > difficult to achieve. >>>> >>>> For SageMathCloud (https://cloud.sagemath.com), which hosts IPython >>>> notebook servers, by default I use a firewall to disable most outside >>>> network access by default. Uses can write to me to explain what they >>>> are doing and request network access. >>>> >>>> Last year I was having fairly regular problems with people using >>>> SageMathCloud to launch hacking attacks against targets, which >>>> resulted in complaints from those targets. I also had problems with >>>> people downloading content, e.g., from MathSciNet, which violated >>>> their terms of usage (this was an unintentional mistake by a grad >>>> student). Basically, SageMathCloud would regularly get flagged by >>>> University of Washington Netops. Once I setup a firewall with a small >>>> *whitelist* (including, e.g., github), I haven't had one single >>>> problem like this. >>>> >>>> -- William >>>> >>>> > >>>> > >>>> > _______________________________________________ >>>> > IPython-dev mailing list >>>> > IPython-dev at scipy.org >>>> > http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> > >>>> >>>> >>>> >>>> -- >>>> William (http://wstein.org) >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>> >>> >> >> -- >> William (http://wstein.org) >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > -- William (http://wstein.org) -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Mon Mar 16 13:46:20 2015 From: benjaminrk at gmail.com (MinRK) Date: Mon, 16 Mar 2015 11:46:20 -0600 Subject: [IPython-dev] how to prevent spam, ddos, etc. from IPython notebooks In-Reply-To: References: Message-ID: On Mon, Mar 16, 2015 at 11:32 AM, William Stein wrote: > > > On Monday, March 16, 2015, MinRK wrote: > >> >> >> On Mon, Mar 16, 2015 at 10:58 AM, William Stein wrote: >> >>> >>> >>> On Monday, March 16, 2015, MinRK wrote: >>> >>>> tmpnb (try.jupyter.org) takes a similar, if more restrictive, approach >>>> to SageMathCloud. User containers simply have no network access. We should >>>> probably adopt a strict whitelist of services like William has done. >>>> >>>> >>> Do people complain? >>> >> >> I think we've had a question or two, but not much that I'm aware of. >> Unlike SMC, try.jupyter is really for doing quick demos of the notebook >> itself, not a hosted place to do actual work, which I think results in a >> big difference in expectations of what should be possible or allowed. The >> network lockdown emphasizes that, as does the ephemeral nature of the >> containers. >> > > > I just looked around the try.jupyter site (on a tablet) and couldn't even > find an email or feedback link. So that might slightly reduce the amount of > feedback you get. > That's certainly one way to curtail feedback. We should put a link to the mailing list somewhere discoverable (currently it's only on jupyter.org, nowhere on try that I know of). -MinRK > >> -MinRK >> >> >>> >>> >>>> -MinRK >>>> >>>> On Mon, Mar 16, 2015 at 8:14 AM, William Stein >>>> wrote: >>>> >>>>> On Mon, Mar 16, 2015 at 6:55 AM, Robert Alexander >>>>> wrote: >>>>> > Do people have any advice/experience on how to prevent spam, ddos, >>>>> etc. from >>>>> > users' IPython notebooks? Since arbitrary Python code is what IPython >>>>> > notebook is all about (see: >>>>> > http://ipython.org/ipython-doc/dev/notebook/security.html), this >>>>> might be >>>>> > difficult to achieve. >>>>> >>>>> For SageMathCloud (https://cloud.sagemath.com), which hosts IPython >>>>> notebook servers, by default I use a firewall to disable most outside >>>>> network access by default. Uses can write to me to explain what they >>>>> are doing and request network access. >>>>> >>>>> Last year I was having fairly regular problems with people using >>>>> SageMathCloud to launch hacking attacks against targets, which >>>>> resulted in complaints from those targets. I also had problems with >>>>> people downloading content, e.g., from MathSciNet, which violated >>>>> their terms of usage (this was an unintentional mistake by a grad >>>>> student). Basically, SageMathCloud would regularly get flagged by >>>>> University of Washington Netops. Once I setup a firewall with a small >>>>> *whitelist* (including, e.g., github), I haven't had one single >>>>> problem like this. >>>>> >>>>> -- William >>>>> >>>>> > >>>>> > >>>>> > _______________________________________________ >>>>> > IPython-dev mailing list >>>>> > IPython-dev at scipy.org >>>>> > http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> > >>>>> >>>>> >>>>> >>>>> -- >>>>> William (http://wstein.org) >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>> >>>> >>> >>> -- >>> William (http://wstein.org) >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> > > -- > William (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 mkpaustin at gmail.com Mon Mar 16 17:24:27 2015 From: mkpaustin at gmail.com (taleb brost) Date: Mon, 16 Mar 2015 14:24:27 -0700 Subject: [IPython-dev] best way to strip output cells for a v4 notebook? Message-ID: I'm using code from https://github.com/petered/plato/blob/fb2f4e252f50c79768920d0e47b870a8d799e92b/notebooks/config/strip_notebook_output to filter my notebooks when they're committed to github. Is this the best approach, or would something that uses ClearOutputPreprocessor.enabled=True be preferable? Thanks, Phil Austin -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan12343 at gmail.com Mon Mar 16 17:30:22 2015 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Mon, 16 Mar 2015 14:30:22 -0700 Subject: [IPython-dev] best way to strip output cells for a v4 notebook? In-Reply-To: References: Message-ID: On Mon, Mar 16, 2015 at 2:24 PM, taleb brost wrote: > I'm using code from > > > https://github.com/petered/plato/blob/fb2f4e252f50c79768920d0e47b870a8d799e92b/notebooks/config/strip_notebook_output > > to filter my notebooks when they're committed to github. > > Is this the best approach, or would something that uses > > ClearOutputPreprocessor.enabled=True > > Given that the IPython devs can and do change the notebook format, it would probably be preferable to use the ClearOutputPreprocessor, if only because it will be easier to maintain and less likely to break due to internal changes in IPython or the notebook format. > be preferable? > > Thanks, Phil Austin > > > _______________________________________________ > 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 itissid at gmail.com Mon Mar 16 18:28:56 2015 From: itissid at gmail.com (Sid) Date: Mon, 16 Mar 2015 18:28:56 -0400 Subject: [IPython-dev] Future of the IPython widget system Message-ID: Hi, Could one of the devs comment on the direction and motivations of the widget system. I understand that the widget system was probably invented for IPython to communicate to the browser for its own UI needs. But: 1 What are the plans for its stability vis-a-vis its usability to general end users? 2 What APIs are likely to change post 3.0 if we assume that the current system API is stable in its current form. OR 3 Are there alternatives being considered to replace the extant system in case a total revamp is planned for the API. -Regards Sid -------------- next part -------------- An HTML attachment was scrubbed... URL: From mkpaustin at gmail.com Mon Mar 16 19:53:54 2015 From: mkpaustin at gmail.com (taleb brost) Date: Mon, 16 Mar 2015 16:53:54 -0700 Subject: [IPython-dev] best way to strip output cells for a v4 notebook? In-Reply-To: References: Message-ID: On Mon, Mar 16, 2015 at 2:30 PM, Nathan Goldbaum wrote: > > Given that the IPython devs can and do change the notebook format, it > would probably be preferable to use the ClearOutputPreprocessor, if only > because it will be easier to maintain and less likely to break due to > internal changes in IPython or the notebook format. > For the record, this seems to work: https://gist.github.com/phaustin/32c29f7f1a7684bab255 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Mar 16 20:06:26 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 16 Mar 2015 17:06:26 -0700 Subject: [IPython-dev] Future of the IPython widget system In-Reply-To: References: Message-ID: <48A5451B-DB0E-4F76-8169-33581C95877E@gmail.com> Le 16 mars 2015 ? 15:28, Sid a ?crit : > Hi, > Could one of the devs comment on the direction and motivations of the widget system. > > I understand that the widget system was probably invented for IPython to communicate to the browser for its own UI needs. Technically there are comms and widgets as twi difference abstractions. For widgets: > But: > > 1 What are the plans for its stability vis-a-vis its usability to general end users? Basic library, someone could build on top. > > 2 What APIs are likely to change post 3.0 if we assume that the current system API is stable in its current form. Lot can change, it will be split into its own package soon-ish. > > OR > > 3 Are there alternatives being considered to replace the extant system in case a total revamp is planned for the API. Always iterating and searching for better API/libs to be used with. -- M > > > -Regards > Sid > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From ana at ananelson.com Wed Mar 18 12:11:58 2015 From: ana at ananelson.com (Ana Nelson) Date: Wed, 18 Mar 2015 09:11:58 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook Message-ID: I'm creating notebooks via nbformat following the pattern of Fernando's v4 gist: http://nbviewer.ipython.org/gist/fperez/b3ab79a32b0e4777a646 (BTW it might be helpful to link to the new gist from the older version here http://nbviewer.ipython.org/gist/fperez/9716279) I'd like to run a command line script to populate the outputs in this notebook so that when a user opens the generated notebook, it has already been run. I thought that might have been the intention of the ipython -c '%run test.ipynb' command, but that doesn't seem to have any effect. Am I doing something wrong or is there some other command I should be calling? -------------- next part -------------- An HTML attachment was scrubbed... URL: From maplabs at light42.com Wed Mar 18 12:13:09 2015 From: maplabs at light42.com (=?utf-8?b?QnJpYW4gTSBIYW1saW4=?=) Date: Wed, 18 Mar 2015 09:13:09 -0700 Subject: [IPython-dev] GSOC candidate project on OSGeo Live Message-ID: <20150318091309.kt2e4a3r400c40kg@webmail.light42.com> fyi - ??? http://wiki.osgeo.org/wiki/Live_GIS_GSoC_2015 -- Brian M Hamlin OSGeo California Chapter blog.light42.com From zvoros at gmail.com Wed Mar 18 12:17:32 2015 From: zvoros at gmail.com (=?UTF-8?B?Wm9sdMOhbiBWw7Zyw7Zz?=) Date: Wed, 18 Mar 2015 17:17:32 +0100 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: Hi Ana, You could use Thomas' runipy project for this. I have to say that it is really handy for problems like this. I hope this helps, Zolt?n On 18 Mar 2015 17:12, "Ana Nelson" wrote: > I'm creating notebooks via nbformat following the pattern of Fernando's v4 > gist: > http://nbviewer.ipython.org/gist/fperez/b3ab79a32b0e4777a646 > > (BTW it might be helpful to link to the new gist from the older version > here http://nbviewer.ipython.org/gist/fperez/9716279) > > I'd like to run a command line script to populate the outputs in this > notebook so that when a user opens the generated notebook, it has already > been run. > > I thought that might have been the intention of the ipython -c '%run > test.ipynb' command, but that doesn't seem to have any effect. Am I doing > something wrong or is there some other command I should be calling? > > _______________________________________________ > 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 ana at ananelson.com Wed Mar 18 12:27:24 2015 From: ana at ananelson.com (Ana Nelson) Date: Wed, 18 Mar 2015 09:27:24 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: I was looking at that and wondering if that was the way to go. I'll give that a try, thanks. It might be worth adding a link to that and also clarifying what the run command does here http://nbviewer.ipython.org/gist/fperez/b3ab79a32b0e4777a646 (and also the 'live notebook' link gives a 404). On Wed, Mar 18, 2015 at 9:17 AM, Zolt?n V?r?s wrote: > Hi Ana, > > You could use Thomas' runipy project for this. I have to say that it is > really handy for problems like this. > > I hope this helps, > > Zolt?n > On 18 Mar 2015 17:12, "Ana Nelson" wrote: > >> I'm creating notebooks via nbformat following the pattern of Fernando's >> v4 gist: >> http://nbviewer.ipython.org/gist/fperez/b3ab79a32b0e4777a646 >> >> (BTW it might be helpful to link to the new gist from the older version >> here http://nbviewer.ipython.org/gist/fperez/9716279) >> >> I'd like to run a command line script to populate the outputs in this >> notebook so that when a user opens the generated notebook, it has already >> been run. >> >> I thought that might have been the intention of the ipython -c '%run >> test.ipynb' command, but that doesn't seem to have any effect. Am I doing >> something wrong or is there some other command I should be calling? >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 anand.prabhakar.patil at gmail.com Wed Mar 18 12:47:12 2015 From: anand.prabhakar.patil at gmail.com (Anand Patil) Date: Wed, 18 Mar 2015 09:47:12 -0700 Subject: [IPython-dev] [ANN] Sense.io launch Message-ID: Hi everyone, Just a quick note to announce the official launch of Sense.io, a collaborative platform to accelerate data science from exploration to production. Sense makes it easier for teams and enterprises to collaborate using powerful open-source data science tools like IPython and the SciPy/NumPy ecosystem. Please check out http://blog.sense.io/introducing-sense-a-platform-for-data-science/ to learn more! Anand From takowl at gmail.com Wed Mar 18 13:03:22 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 18 Mar 2015 10:03:22 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: Nbconvert now includes an execute preprocessor which executes a notebook, recording the outputs back into that notebook. This is based on runipy, which Zolt?n mentioned, and you can use it either from Python code or at the command line (ipython nbconvert --execute ...). https://github.com/ipython/ipython/blob/master/IPython/nbconvert/preprocessors/execute.py Thomas On 18 March 2015 at 09:11, Ana Nelson wrote: > I'm creating notebooks via nbformat following the pattern of Fernando's v4 > gist: > http://nbviewer.ipython.org/gist/fperez/b3ab79a32b0e4777a646 > > (BTW it might be helpful to link to the new gist from the older version > here http://nbviewer.ipython.org/gist/fperez/9716279) > > I'd like to run a command line script to populate the outputs in this > notebook so that when a user opens the generated notebook, it has already > been run. > > I thought that might have been the intention of the ipython -c '%run > test.ipynb' command, but that doesn't seem to have any effect. Am I doing > something wrong or is there some other command I should be calling? > > _______________________________________________ > 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 ana at ananelson.com Wed Mar 18 13:15:02 2015 From: ana at ananelson.com (Ana Nelson) Date: Wed, 18 Mar 2015 10:15:02 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: Yes, thanks. Prefer a builtin tool so it stays in sync. runipy doesn't seem to be nbformat v4 compatible (at this time). Currently calling it like this: subprocess.check_output([ 'ipython', 'nbconvert', '--execute', '--to', 'notebook', '--output', nbPath, nbPath ]) On Wed, Mar 18, 2015 at 10:03 AM, Thomas Kluyver wrote: > Nbconvert now includes an execute preprocessor which executes a notebook, > recording the outputs back into that notebook. This is based on runipy, > which Zolt?n mentioned, and you can use it either from Python code or at > the command line (ipython nbconvert --execute ...). > > > https://github.com/ipython/ipython/blob/master/IPython/nbconvert/preprocessors/execute.py > > Thomas > > On 18 March 2015 at 09:11, Ana Nelson wrote: > >> I'm creating notebooks via nbformat following the pattern of Fernando's >> v4 gist: >> http://nbviewer.ipython.org/gist/fperez/b3ab79a32b0e4777a646 >> >> (BTW it might be helpful to link to the new gist from the older version >> here http://nbviewer.ipython.org/gist/fperez/9716279) >> >> I'd like to run a command line script to populate the outputs in this >> notebook so that when a user opens the generated notebook, it has already >> been run. >> >> I thought that might have been the intention of the ipython -c '%run >> test.ipynb' command, but that doesn't seem to have any effect. Am I doing >> something wrong or is there some other command I should be calling? >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 zvoros at gmail.com Wed Mar 18 13:33:28 2015 From: zvoros at gmail.com (=?UTF-8?B?Wm9sdMOhbiBWw7Zyw7Zz?=) Date: Wed, 18 Mar 2015 18:33:28 +0100 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: On Wed, Mar 18, 2015 at 6:15 PM, Ana Nelson wrote: > Yes, thanks. Prefer a builtin tool so it stays in sync. runipy doesn't > seem to be nbformat v4 compatible (at this time). > > In the sense that it produces a v3 output. But it can still process v4 inputs. By the way, I have just noticed that ipython3 creates v3 notebooks, while ipython2 creates v4. Is this by accident? > Currently calling it like this: > > subprocess.check_output([ > 'ipython', > 'nbconvert', > '--execute', > '--to', 'notebook', > '--output', nbPath, > nbPath > ]) > > > > On Wed, Mar 18, 2015 at 10:03 AM, Thomas Kluyver wrote: > >> Nbconvert now includes an execute preprocessor which executes a notebook, >> recording the outputs back into that notebook. This is based on runipy, >> which Zolt?n mentioned, and you can use it either from Python code or at >> the command line (ipython nbconvert --execute ...). >> >> >> https://github.com/ipython/ipython/blob/master/IPython/nbconvert/preprocessors/execute.py >> >> Thomas >> >> On 18 March 2015 at 09:11, Ana Nelson wrote: >> >>> I'm creating notebooks via nbformat following the pattern of Fernando's >>> v4 gist: >>> http://nbviewer.ipython.org/gist/fperez/b3ab79a32b0e4777a646 >>> >>> (BTW it might be helpful to link to the new gist from the older version >>> here http://nbviewer.ipython.org/gist/fperez/9716279) >>> >>> I'd like to run a command line script to populate the outputs in this >>> notebook so that when a user opens the generated notebook, it has already >>> been run. >>> >>> I thought that might have been the intention of the ipython -c '%run >>> test.ipynb' command, but that doesn't seem to have any effect. Am I doing >>> something wrong or is there some other command I should be calling? >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://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 Mar 18 13:51:41 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 18 Mar 2015 10:51:41 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: On 18 March 2015 at 10:15, Ana Nelson wrote: > Currently calling it like this: > > subprocess.check_output([ > 'ipython', > 'nbconvert', > '--execute', > '--to', 'notebook', > '--output', nbPath, > nbPath > ]) > For the record, if you need to make it more efficient, it should be fairly simple to do the same thing in-process, rather than running a separate IPython process to do it. Something like: nb = nbformat.read(nbPath, as_version=4) ExecutePreprocessor().preprocess(nb) nbformat.write(nb, nbPath) (Untested) > By the way, I have just noticed that ipython3 creates v3 notebooks, while ipython2 creates v4. Is this by accident? How did you get that? IPython 3 should create v4 notebooks, and IPython 2 should create v3 notebooks. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From zvoros at gmail.com Wed Mar 18 14:01:42 2015 From: zvoros at gmail.com (=?UTF-8?B?Wm9sdMOhbiBWw7Zyw7Zz?=) Date: Wed, 18 Mar 2015 19:01:42 +0100 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: Hi Thomas, > By the way, I have just noticed that ipython3 creates v3 notebooks, while ipython2 creates v4. Is this by accident? How did you get that? IPython 3 should create v4 notebooks, and IPython 2 > should create v3 notebooks. > Well, I was simply wrong, sorry. What tripped me was that I launched a python2 kernel, while the server was actually running on python3, and then I just looked at the kernel specs in the notebook. You are right, the notebook is version 4, irrespective of the actual kernel type. Zolt?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From ana at ananelson.com Wed Mar 18 14:13:42 2015 From: ana at ananelson.com (Ana Nelson) Date: Wed, 18 Mar 2015 11:13:42 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: It wanted a resources argument, an empty dict seems to work. ExecutePreprocessor().preprocess(nb, {}) On Wed, Mar 18, 2015 at 10:51 AM, Thomas Kluyver wrote: > On 18 March 2015 at 10:15, Ana Nelson wrote: > >> Currently calling it like this: >> >> subprocess.check_output([ >> 'ipython', >> 'nbconvert', >> '--execute', >> '--to', 'notebook', >> '--output', nbPath, >> nbPath >> ]) >> > > For the record, if you need to make it more efficient, it should be fairly > simple to do the same thing in-process, rather than running a separate > IPython process to do it. Something like: > > nb = nbformat.read(nbPath, as_version=4) > ExecutePreprocessor().preprocess(nb) > nbformat.write(nb, nbPath) > > (Untested) > > > By the way, I have just noticed that ipython3 creates v3 notebooks, > while ipython2 creates v4. Is this by accident? > > How did you get that? IPython 3 should create v4 notebooks, and IPython 2 > should create v3 notebooks. > > 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 Mar 18 14:17:08 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 18 Mar 2015 11:17:08 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: On 18 March 2015 at 11:13, Ana Nelson wrote: > It wanted a resources argument, an empty dict seems to work. > > ExecutePreprocessor().preprocess(nb, {}) > Looking at the code, you may want to pass it {'metadata': {'path': nbPath}} - that will run the kernel with the cwd set to the directory containing the notebook. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Mar 18 16:50:55 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 18 Mar 2015 13:50:55 -0700 Subject: [IPython-dev] [ANN] Sense.io launch In-Reply-To: References: Message-ID: Thanks, And good luck for the launch. IIRC, you did announce sens roughly a year ago and it was named sens platform right ? It's nice to see things moving forward! -- MD Le 18 mars 2015 ? 09:47, Anand Patil a ?crit : > Hi everyone, > > Just a quick note to announce the official launch of Sense.io, a > collaborative platform to accelerate data science from exploration to > production. Sense makes it easier for teams and enterprises to > collaborate using powerful open-source data science tools like IPython > and the SciPy/NumPy ecosystem. > > Please check out > http://blog.sense.io/introducing-sense-a-platform-for-data-science/ to > learn more! > > Anand > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From rawlins at gmail.com Wed Mar 18 18:10:30 2015 From: rawlins at gmail.com (Kyle Rawlins) Date: Wed, 18 Mar 2015 18:10:30 -0400 Subject: [IPython-dev] question about command line options In-Reply-To: References: Message-ID: <015A0792-160E-4F82-94F7-033EE8D28386@gmail.com> On Mar 13, 2015, at 1:00 PM, ipython-dev-request at scipy.org wrote: > Date: Thu, 12 Mar 2015 15:51:30 -0700 > From: Thomas Kluyver > Subject: Re: [IPython-dev] question about command line options > To: IPython developers list > Message-ID: > > Content-Type: text/plain; charset="utf-8" > > On 12 March 2015 at 14:35, Kyle Rawlins wrote: > >> Also, perhaps if this is the answer, you should consider not letting it >> ever work. Right now setting IPKernelApp.exec_lines via command line >> mostly does do something, so the command line is still getting to >> IPKernelApp somehow, and it fails only in these complicated circumstances >> apparently relating to the automatic insertion of quotes. I think >> sometimes it is pretty hard for those of us who haven't been steeped in the >> internals to understand exactly what can and should be configured when and >> how, because configuration is so flexible in IPython... > > > The only thing to remember is that the notebook config (command line > options and the ipython_notebook_config.py file) don't affect kernels. Just to double check, part of what was throwing me is that the following _does_ cause something to be printed in IPython 3: ipython notebook --'IPKernelApp.exec_lines=[print(23)]? Not sure why this would work given this discussion, and it doesn?t get printed exactly when I?d expect (but that is also true for IPython 2, where the effects of this trait set via the command line or an initial config on the app do percolate down to kernels). > You > can workaround this by creating a kernelspec with extra command line > arguments for the kernel, but there isn't a way to do it purely at the > command line. Thanks, this was the hint that I needed. The command line issue was just a distillation of how I was starting a very lightly branded version of the notebook app via a script in IPython 2 (based originally on a recipe from several versions ago). I ended up dynamically generating a kernel spec and installing it on the fly using the kernel spec API ? as overkill(/crazy) as this might seem, it is fairly easy to do this and it seems to work well for my purposes. -kyle -- Kyle Rawlins http://sites.krieger.jhu.edu/rawlins/ Department of Cognitive Science Johns Hopkins University From takowl at gmail.com Wed Mar 18 18:32:34 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 18 Mar 2015 15:32:34 -0700 Subject: [IPython-dev] question about command line options In-Reply-To: <015A0792-160E-4F82-94F7-033EE8D28386@gmail.com> References: <015A0792-160E-4F82-94F7-033EE8D28386@gmail.com> Message-ID: On 18 March 2015 at 15:10, Kyle Rawlins wrote: > Just to double check, part of what was throwing me is that the following > _does_ cause something to be printed in IPython 3: > ipython notebook --'IPKernelApp.exec_lines=[print(23)]? Yep, that's a bizarre side effect of the way we handle command line options (the print call actually gets evaluated as we parse the options). It should be fixed in 3.1 by this PR: https://github.com/ipython/ipython/pull/8030 -------------- next part -------------- An HTML attachment was scrubbed... URL: From anand.prabhakar.patil at gmail.com Wed Mar 18 19:46:29 2015 From: anand.prabhakar.patil at gmail.com (Anand Patil) Date: Wed, 18 Mar 2015 16:46:29 -0700 Subject: [IPython-dev] [ANN] Sense.io launch In-Reply-To: References: Message-ID: Hi Matthias, Thanks for the wishing us luck! You are correct, we did announce a public beta roughly a year ago, and it was senseplatform then. IPython is still the foundation of our Python engine. In addition, since the last announcement, we've worked harder at integrating with the visualization libraries in the IPython ecosystem. Anyone who signs up for a new account will see some examples. ;) Cheers, Anand On Wed, Mar 18, 2015 at 1:50 PM, Matthias Bussonnier wrote: > Thanks, > > And good luck for the launch. > > IIRC, you did announce sens roughly a year ago and it was named sens platform right ? > It's nice to see things moving forward! > -- > MD > > > Le 18 mars 2015 ? 09:47, Anand Patil a ?crit : > >> Hi everyone, >> >> Just a quick note to announce the official launch of Sense.io, a >> collaborative platform to accelerate data science from exploration to >> production. Sense makes it easier for teams and enterprises to >> collaborate using powerful open-source data science tools like IPython >> and the SciPy/NumPy ecosystem. >> >> Please check out >> http://blog.sense.io/introducing-sense-a-platform-for-data-science/ to >> learn more! >> >> Anand >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 jlstevens at ed.ac.uk Thu Mar 19 13:35:05 2015 From: jlstevens at ed.ac.uk (Jean-Luc Stevens) Date: Thu, 19 Mar 2015 17:35:05 +0000 Subject: [IPython-dev] ANN: HoloViews 1.0 released Message-ID: <550B08C9.7040309@ed.ac.uk> We are pleased to announce the first public release of HoloViews, a Python package for scientific and engineering data visualization: http://ioam.github.io/holoviews HoloViews provides composable, sliceable, declarative data structures for building even complex visualizations easily. It's designed to exploit the rich ecosystem of scientific Python tools already available, using Numpy for data storage, matplotlib and mpld3 as plotting backends, and integrating fully with IPython Notebook to make your data instantly visible. If you look at the website for just about any other visualization package, you'll see a long list of pretty pictures, each one of which has a page or two of code putting it together. There are pretty pictures in HoloViews too, but there is *no* hidden code -- *all* of the steps needed to build a given figure are shown right before the HoloViews plot, with just a few lines needed for nearly all of our examples, even complex multi-figure subplots and animations. This concise but flexible specification makes it practical to explore and analyze your data interactively, while leaving a full record for later reproducibility in the notebook. It may sound like magic, but it's not -- HoloViews simply lets you annotate your data with appropriate metadata, and then the data can display itself! HoloViews provides a set of general, compositional, multidimensional data structures suitable for both discrete and continuous real-world data, and pairs them with separate customizable plotting classes to visualize them without extensive coding. A large collection of continuously tested IPython Notebook tutorials accompanies HoloViews, showing you precisely the small number of steps required to generate any of the plots. Some of the most important features: - Freely available under a BSD license - Python 2 and 3 compatible - Minimal external dependencies -- easy to integrate into your workflow - Builds figures by slicing, sampling, and composing your data - Builds web-embeddable animations without any extra coding - Easily customizable without obscuring the underlying data objects - Includes interfaces to pandas and Seaborn - Winner of the 2015 UK Open Source Award For the rest, check out ioam.github.io/holoviews! Jean-Luc Stevens Philipp Rudiger James A. Bednar -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From bussonniermatthias at gmail.com Thu Mar 19 13:58:06 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 19 Mar 2015 10:58:06 -0700 Subject: [IPython-dev] ANN: HoloViews 1.0 released In-Reply-To: <550B08C9.7040309@ed.ac.uk> References: <550B08C9.7040309@ed.ac.uk> Message-ID: <94203D5B-DE4A-4F4E-AD44-0DA7875D964C@gmail.com> Hi Jean-Luc. I've seen that the other day, It's nice. I've seen in particular that you are building docs as notebook. We plan to do the same for IPython, any plan to make this part more standalone / pip-installable ? Or is it already ? Thanks ! -- M Le 19 mars 2015 ? 10:35, Jean-Luc Stevens a ?crit : > We are pleased to announce the first public release of HoloViews, a > Python package for scientific and engineering data visualization: > > http://ioam.github.io/holoviews > > HoloViews provides composable, sliceable, declarative data structures > for building even complex visualizations easily. > > It's designed to exploit the rich ecosystem of scientific Python tools > already available, using Numpy for data storage, matplotlib and mpld3 > as plotting backends, and integrating fully with IPython Notebook to > make your data instantly visible. > > If you look at the website for just about any other visualization > package, you'll see a long list of pretty pictures, each one of which > has a page or two of code putting it together. There are pretty > pictures in HoloViews too, but there is *no* hidden code -- *all* of > the steps needed to build a given figure are shown right before the > HoloViews plot, with just a few lines needed for nearly all of our > examples, even complex multi-figure subplots and animations. This > concise but flexible specification makes it practical to explore and > analyze your data interactively, while leaving a full record for later > reproducibility in the notebook. > > It may sound like magic, but it's not -- HoloViews simply lets you > annotate your data with appropriate metadata, and then the data can > display itself! HoloViews provides a set of general, compositional, > multidimensional data structures suitable for both discrete and > continuous real-world data, and pairs them with separate customizable > plotting classes to visualize them without extensive coding. A > large collection of continuously tested IPython Notebook tutorials > accompanies HoloViews, showing you precisely the small number of steps > required to generate any of the plots. > > Some of the most important features: > > - Freely available under a BSD license > - Python 2 and 3 compatible > - Minimal external dependencies -- easy to integrate into your workflow > - Builds figures by slicing, sampling, and composing your data > - Builds web-embeddable animations without any extra coding > - Easily customizable without obscuring the underlying data objects > - Includes interfaces to pandas and Seaborn > - Winner of the 2015 UK Open Source Award > > For the rest, check out ioam.github.io/holoviews! > > Jean-Luc Stevens > Philipp Rudiger > James A. Bednar > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev From wstein at gmail.com Thu Mar 19 14:24:21 2015 From: wstein at gmail.com (William Stein) Date: Thu, 19 Mar 2015 11:24:21 -0700 Subject: [IPython-dev] ANN: HoloViews 1.0 released In-Reply-To: <550B08C9.7040309@ed.ac.uk> References: <550B08C9.7040309@ed.ac.uk> Message-ID: On Thu, Mar 19, 2015 at 10:35 AM, Jean-Luc Stevens wrote: > We are pleased to announce the first public release of HoloViews, a > Python package for scientific and engineering data visualization: > > http://ioam.github.io/holoviews > > HoloViews provides composable, sliceable, declarative data structures > for building even complex visualizations easily. Nice. I've added holoviews so it is available by default for all projects on SageMathCloud (https://cloud.sagemath.com). Here's an example IPython notebook: https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-03-19-111401-holoviews.html and Sage worksheet: https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-03-19-111407-holoviews.sagews -- William > > It's designed to exploit the rich ecosystem of scientific Python tools > already available, using Numpy for data storage, matplotlib and mpld3 > as plotting backends, and integrating fully with IPython Notebook to > make your data instantly visible. > > If you look at the website for just about any other visualization > package, you'll see a long list of pretty pictures, each one of which > has a page or two of code putting it together. There are pretty > pictures in HoloViews too, but there is *no* hidden code -- *all* of > the steps needed to build a given figure are shown right before the > HoloViews plot, with just a few lines needed for nearly all of our > examples, even complex multi-figure subplots and animations. This > concise but flexible specification makes it practical to explore and > analyze your data interactively, while leaving a full record for later > reproducibility in the notebook. > > It may sound like magic, but it's not -- HoloViews simply lets you > annotate your data with appropriate metadata, and then the data can > display itself! HoloViews provides a set of general, compositional, > multidimensional data structures suitable for both discrete and > continuous real-world data, and pairs them with separate customizable > plotting classes to visualize them without extensive coding. A > large collection of continuously tested IPython Notebook tutorials > accompanies HoloViews, showing you precisely the small number of steps > required to generate any of the plots. > > Some of the most important features: > > - Freely available under a BSD license > - Python 2 and 3 compatible > - Minimal external dependencies -- easy to integrate into your workflow > - Builds figures by slicing, sampling, and composing your data > - Builds web-embeddable animations without any extra coding > - Easily customizable without obscuring the underlying data objects > - Includes interfaces to pandas and Seaborn > - Winner of the 2015 UK Open Source Award > > For the rest, check out ioam.github.io/holoviews! > > Jean-Luc Stevens > Philipp Rudiger > James A. Bednar > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- William (http://wstein.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2015-03-19 at 11.24.04 AM.png Type: image/png Size: 841338 bytes Desc: not available URL: From jlstevens at ed.ac.uk Thu Mar 19 14:44:09 2015 From: jlstevens at ed.ac.uk (Jean-Luc Stevens) Date: Thu, 19 Mar 2015 18:44:09 +0000 Subject: [IPython-dev] ANN: HoloViews 1.0 released In-Reply-To: References: <550B08C9.7040309@ed.ac.uk> Message-ID: <550B18F9.3070104@ed.ac.uk> Thank you very much! We already had a go testing HoloViews on SageMathCloud to check it all worked correctly. Having it available by default will be wonderful though! Jean-Luc On 19/03/15 18:24, William Stein wrote: > On Thu, Mar 19, 2015 at 10:35 AM, Jean-Luc Stevens wrote: >> We are pleased to announce the first public release of HoloViews, a >> Python package for scientific and engineering data visualization: >> >> http://ioam.github.io/holoviews >> >> HoloViews provides composable, sliceable, declarative data structures >> for building even complex visualizations easily. > > Nice. I've added holoviews so it is available by default for all > projects on SageMathCloud (https://cloud.sagemath.com). Here's an > example IPython notebook: > > https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-03-19-111401-holoviews.html > > and Sage worksheet: > > https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-03-19-111407-holoviews.sagews > > -- William > >> >> It's designed to exploit the rich ecosystem of scientific Python tools >> already available, using Numpy for data storage, matplotlib and mpld3 >> as plotting backends, and integrating fully with IPython Notebook to >> make your data instantly visible. >> >> If you look at the website for just about any other visualization >> package, you'll see a long list of pretty pictures, each one of which >> has a page or two of code putting it together. There are pretty >> pictures in HoloViews too, but there is *no* hidden code -- *all* of >> the steps needed to build a given figure are shown right before the >> HoloViews plot, with just a few lines needed for nearly all of our >> examples, even complex multi-figure subplots and animations. This >> concise but flexible specification makes it practical to explore and >> analyze your data interactively, while leaving a full record for later >> reproducibility in the notebook. >> >> It may sound like magic, but it's not -- HoloViews simply lets you >> annotate your data with appropriate metadata, and then the data can >> display itself! HoloViews provides a set of general, compositional, >> multidimensional data structures suitable for both discrete and >> continuous real-world data, and pairs them with separate customizable >> plotting classes to visualize them without extensive coding. A >> large collection of continuously tested IPython Notebook tutorials >> accompanies HoloViews, showing you precisely the small number of steps >> required to generate any of the plots. >> >> Some of the most important features: >> >> - Freely available under a BSD license >> - Python 2 and 3 compatible >> - Minimal external dependencies -- easy to integrate into your workflow >> - Builds figures by slicing, sampling, and composing your data >> - Builds web-embeddable animations without any extra coding >> - Easily customizable without obscuring the underlying data objects >> - Includes interfaces to pandas and Seaborn >> - Winner of the 2015 UK Open Source Award >> >> For the rest, check out ioam.github.io/holoviews! >> >> Jean-Luc Stevens >> Philipp Rudiger >> James A. Bednar >> >> -- >> The University of Edinburgh is a charitable body, registered in >> Scotland, with registration number SC005336. >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From P.Rudiger at ed.ac.uk Thu Mar 19 16:27:37 2015 From: P.Rudiger at ed.ac.uk (PhilippJFR) Date: Thu, 19 Mar 2015 13:27:37 -0700 (PDT) Subject: [IPython-dev] ANN: HoloViews 1.0 released In-Reply-To: <94203D5B-DE4A-4F4E-AD44-0DA7875D964C@gmail.com> References: <550B08C9.7040309@ed.ac.uk> <94203D5B-DE4A-4F4E-AD44-0DA7875D964C@gmail.com> Message-ID: <1426796857942-5089815.post@n6.nabble.com> Matthias Bussonnier wrote > I've seen in particular that you are building docs as notebook. > We plan to do the same for IPython, any plan to make this > part more standalone / pip-installable ? > Or is it already ? Hi Matthias, The notebook doc building is based on Nathan Goldbaum's NotebookDirective for Sphinx. You can look at our version here , but it's far from ready for distribution. The only real changes I made were to switch to the basic html template and change some the hackery that's required to clean up conflicting css and strip html tags so that it is suitable for Sphinx. Additionally, thanks to Jean-Luc it hooks into a testing system to capture our output, which allows us to dynamically generate data and display comparisons as unit tests. Presumably the part of the code that deals with cleaning up the nbconvert output for Sphinx should be reimplemented as a nbconvert Postprocessor for you to use. If you are also interested in our testing facilities, it would be great to integrate that more tightly with IPython. We have recently added an exporting system for notebooks, allowing you to save the data and display output for each cell, which can be used either for archival purposes or to set up test comparisons. If you're at all in interested in something like that it would be great to chat about it at some point. Philipp -- View this message in context: http://python.6.x6.nabble.com/ANN-HoloViews-1-0-released-tp5089805p5089815.html Sent from the IPython - Development mailing list archive at Nabble.com. From nathan12343 at gmail.com Thu Mar 19 16:36:20 2015 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Thu, 19 Mar 2015 13:36:20 -0700 Subject: [IPython-dev] ANN: HoloViews 1.0 released In-Reply-To: <1426796857942-5089815.post@n6.nabble.com> References: <550B08C9.7040309@ed.ac.uk> <94203D5B-DE4A-4F4E-AD44-0DA7875D964C@gmail.com> <1426796857942-5089815.post@n6.nabble.com> Message-ID: On Thu, Mar 19, 2015 at 1:27 PM, PhilippJFR wrote: > Matthias Bussonnier wrote > > I've seen in particular that you are building docs as notebook. > > We plan to do the same for IPython, any plan to make this > > part more standalone / pip-installable ? > > Or is it already ? > > Hi Matthias, > > The notebook doc building is based on Nathan Goldbaum's NotebookDirective > < > https://bitbucket.org/ngoldbaum/yt-samfork/src/601247197187c1814a073d3bca831bf4e6cd5db7/doc/extensions/notebook_sphinxext.py?at=yt > > > for Sphinx. You can look at our version here > , but > it's far from ready for distribution. The only real changes I made were to > switch to the basic html template and change some the hackery that's > required to clean up conflicting css and strip html tags so that it is > suitable for Sphinx. Additionally, thanks to Jean-Luc it hooks into a > testing system to capture our output, which allows us to dynamically > generate data and display comparisons as unit tests. > > Presumably the part of the code that deals with cleaning up the nbconvert > output for Sphinx should be reimplemented as a nbconvert Postprocessor for > you to use. If you are also interested in our testing facilities, it would > be great to integrate that more tightly with IPython. We have recently > added > an exporting system for notebooks, allowing you to save the data and > display > output for each cell, which can be used either for archival purposes or to > set up test comparisons. If you're at all in interested in something like > that it would be great to chat about it at some point. > > Hi Philipp I put this up on github a while ago. I'd love to get a PR for any changes you made. https://github.com/ngoldbaum/runnotebook I'd really love it if you (or maybe one of the IPython devs if they're interested in this sort of thing) figured out how to use the jinja2 templates so I don't have to run silly regexes on the CSS. -Nathan > Philipp > > > > -- > View this message in context: > http://python.6.x6.nabble.com/ANN-HoloViews-1-0-released-tp5089805p5089815.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Thu Mar 19 17:16:17 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 19 Mar 2015 14:16:17 -0700 Subject: [IPython-dev] ANN: HoloViews 1.0 released In-Reply-To: References: <550B08C9.7040309@ed.ac.uk> <94203D5B-DE4A-4F4E-AD44-0DA7875D964C@gmail.com> <1426796857942-5089815.post@n6.nabble.com> Message-ID: Hi all. Yes we are interested. In the next few month, we will be breaking IPython in a lot of smaller repos, to allow faster evolution of each individual components. So if there are a few people interested in working on notebook conversion integration process we can do a working group, and/or a single repo in one organisation to prototype discuss. -- M Le 19 mars 2015 ? 13:36, Nathan Goldbaum a ?crit : > > > On Thu, Mar 19, 2015 at 1:27 PM, PhilippJFR wrote: > Matthias Bussonnier wrote > > I've seen in particular that you are building docs as notebook. > > We plan to do the same for IPython, any plan to make this > > part more standalone / pip-installable ? > > Or is it already ? > > Hi Matthias, > > The notebook doc building is based on Nathan Goldbaum's NotebookDirective > > for Sphinx. You can look at our version here > , but > it's far from ready for distribution. The only real changes I made were to > switch to the basic html template and change some the hackery that's > required to clean up conflicting css and strip html tags so that it is > suitable for Sphinx. Additionally, thanks to Jean-Luc it hooks into a > testing system to capture our output, which allows us to dynamically > generate data and display comparisons as unit tests. > > Presumably the part of the code that deals with cleaning up the nbconvert > output for Sphinx should be reimplemented as a nbconvert Postprocessor for > you to use. If you are also interested in our testing facilities, it would > be great to integrate that more tightly with IPython. We have recently added > an exporting system for notebooks, allowing you to save the data and display > output for each cell, which can be used either for archival purposes or to > set up test comparisons. If you're at all in interested in something like > that it would be great to chat about it at some point. > > > Hi Philipp > > I put this up on github a while ago. I'd love to get a PR for any changes you made. > > https://github.com/ngoldbaum/runnotebook > > I'd really love it if you (or maybe one of the IPython devs if they're interested in this sort of thing) figured out how to use the jinja2 templates so I don't have to run silly regexes on the CSS. > > -Nathan > > > Philipp > > > > -- > View this message in context: http://python.6.x6.nabble.com/ANN-HoloViews-1-0-released-tp5089805p5089815.html > Sent from the IPython - Development mailing list archive at Nabble.com. > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan12343 at gmail.com Thu Mar 19 17:18:49 2015 From: nathan12343 at gmail.com (Nathan Goldbaum) Date: Thu, 19 Mar 2015 14:18:49 -0700 Subject: [IPython-dev] ANN: HoloViews 1.0 released In-Reply-To: References: <550B08C9.7040309@ed.ac.uk> <94203D5B-DE4A-4F4E-AD44-0DA7875D964C@gmail.com> <1426796857942-5089815.post@n6.nabble.com> Message-ID: On Thu, Mar 19, 2015 at 2:16 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Hi all. > > Yes we are interested. > > In the next few month, we will be breaking IPython in a lot of smaller > repos, > to allow faster evolution of each individual components. > So if there are a few people interested in working on notebook conversion > integration process > we can do a working group, and/or a single repo in one organisation to > prototype discuss. > > Assuming it happens after my thesis defense in May, I'd be up to participate in this. -- > M > > > Le 19 mars 2015 ? 13:36, Nathan Goldbaum a ?crit : > > > > On Thu, Mar 19, 2015 at 1:27 PM, PhilippJFR wrote: > >> Matthias Bussonnier wrote >> > I've seen in particular that you are building docs as notebook. >> > We plan to do the same for IPython, any plan to make this >> > part more standalone / pip-installable ? >> > Or is it already ? >> >> Hi Matthias, >> >> The notebook doc building is based on Nathan Goldbaum's NotebookDirective >> < >> https://bitbucket.org/ngoldbaum/yt-samfork/src/601247197187c1814a073d3bca831bf4e6cd5db7/doc/extensions/notebook_sphinxext.py?at=yt >> > >> for Sphinx. You can look at our version here >> , but >> it's far from ready for distribution. The only real changes I made were to >> switch to the basic html template and change some the hackery that's >> required to clean up conflicting css and strip html tags so that it is >> suitable for Sphinx. Additionally, thanks to Jean-Luc it hooks into a >> testing system to capture our output, which allows us to dynamically >> generate data and display comparisons as unit tests. >> >> Presumably the part of the code that deals with cleaning up the nbconvert >> output for Sphinx should be reimplemented as a nbconvert Postprocessor for >> you to use. If you are also interested in our testing facilities, it would >> be great to integrate that more tightly with IPython. We have recently >> added >> an exporting system for notebooks, allowing you to save the data and >> display >> output for each cell, which can be used either for archival purposes or to >> set up test comparisons. If you're at all in interested in something like >> that it would be great to chat about it at some point. >> >> > Hi Philipp > > I put this up on github a while ago. I'd love to get a PR for any changes > you made. > > https://github.com/ngoldbaum/runnotebook > > I'd really love it if you (or maybe one of the IPython devs if they're > interested in this sort of thing) figured out how to use the jinja2 > templates so I don't have to run silly regexes on the CSS. > > -Nathan > > > >> Philipp >> >> >> >> -- >> View this message in context: >> http://python.6.x6.nabble.com/ANN-HoloViews-1-0-released-tp5089805p5089815.html >> Sent from the IPython - Development mailing list archive at Nabble.com. >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > 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 Mar 19 17:23:16 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 19 Mar 2015 14:23:16 -0700 Subject: [IPython-dev] ANN: HoloViews 1.0 released In-Reply-To: References: <550B08C9.7040309@ed.ac.uk> <94203D5B-DE4A-4F4E-AD44-0DA7875D964C@gmail.com> <1426796857942-5089815.post@n6.nabble.com> Message-ID: <2D8B7D53-A903-46D2-8073-796D2DF16211@gmail.com> Le 19 mars 2015 ? 14:18, Nathan Goldbaum a ?crit : > Assuming it happens after my thesis defense in May, Seem to be a habit to slack and do useful stuff during PhD... Why are you here on this mailing list and not writing ? :-) No hurry, the splitting of repos will take some time. -- M > I'd be up to participate in this. > > -- > M > > > Le 19 mars 2015 ? 13:36, Nathan Goldbaum a ?crit : > >> >> >> On Thu, Mar 19, 2015 at 1:27 PM, PhilippJFR wrote: >> Matthias Bussonnier wrote >> > I've seen in particular that you are building docs as notebook. >> > We plan to do the same for IPython, any plan to make this >> > part more standalone / pip-installable ? >> > Or is it already ? >> >> Hi Matthias, >> >> The notebook doc building is based on Nathan Goldbaum's NotebookDirective >> >> for Sphinx. You can look at our version here >> , but >> it's far from ready for distribution. The only real changes I made were to >> switch to the basic html template and change some the hackery that's >> required to clean up conflicting css and strip html tags so that it is >> suitable for Sphinx. Additionally, thanks to Jean-Luc it hooks into a >> testing system to capture our output, which allows us to dynamically >> generate data and display comparisons as unit tests. >> >> Presumably the part of the code that deals with cleaning up the nbconvert >> output for Sphinx should be reimplemented as a nbconvert Postprocessor for >> you to use. If you are also interested in our testing facilities, it would >> be great to integrate that more tightly with IPython. We have recently added >> an exporting system for notebooks, allowing you to save the data and display >> output for each cell, which can be used either for archival purposes or to >> set up test comparisons. If you're at all in interested in something like >> that it would be great to chat about it at some point. >> >> >> Hi Philipp >> >> I put this up on github a while ago. I'd love to get a PR for any changes you made. >> >> https://github.com/ngoldbaum/runnotebook >> >> I'd really love it if you (or maybe one of the IPython devs if they're interested in this sort of thing) figured out how to use the jinja2 templates so I don't have to run silly regexes on the CSS. >> >> -Nathan >> >> >> Philipp >> >> >> >> -- >> View this message in context: http://python.6.x6.nabble.com/ANN-HoloViews-1-0-released-tp5089805p5089815.html >> Sent from the IPython - Development mailing list archive at Nabble.com. >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://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 Thu Mar 19 20:45:06 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 19 Mar 2015 17:45:06 -0700 Subject: [IPython-dev] Upcoming major changes to IPython repository Message-ID: Hi all, Over the next few weeks, we're planning to split up the IPython repository into a number of smaller repositories. This is going to be rather disruptive for development, and for anyone running from master, so please be patient - we'll try to get through this as quickly as we can. We'll try to merge as many as possible of the outstanding PRs before we start this refactoring, but any that we can't merge will probably have to be re-made against the new repositories - we apologise in advance if this affects you. If you're planning to make some changes to IPython, please consider holding off for a few weeks to avoid having to make them twice. We're splitting things up in this way for a number of reasons. IPython currently includes components that change at very different rates, and it will be easier to accommodate this if they can have separate release schedules. We hope that having smaller, more modular codebases will also make it easier for new developers to get involved. And as we're expanding the IPython ecosystem with kernels for other languages and extensions to change the notebook behaviour, we think that forcing ourselves to rely on public APIs between pieces of our own project will ultimately make those APIs better. Thanks Thomas, on behalf of the IPython core team -------------- next part -------------- An HTML attachment was scrubbed... URL: From P.Rudiger at ed.ac.uk Thu Mar 19 21:27:01 2015 From: P.Rudiger at ed.ac.uk (Philipp Rudiger) Date: Fri, 20 Mar 2015 01:27:01 +0000 Subject: [IPython-dev] ANN: HoloViews 1.0 released In-Reply-To: References: <550B08C9.7040309@ed.ac.uk> <94203D5B-DE4A-4F4E-AD44-0DA7875D964C@gmail.com> <1426796857942-5089815.post@n6.nabble.com> Message-ID: <550B7765.9030503@ed.ac.uk> On 19/03/15 21:16, Matthias Bussonnier wrote: > Hi all. > > Yes we are interested. > > In the next few month, we will be breaking IPython in a lot of smaller > repos, > to allow faster evolution of each individual components. > So if there are a few people interested in working on notebook > conversion integration process > we can do a working group, and/or a single repo in one organisation to > prototype discuss. > That sounds good and I'll find some time to contribute in between my futile attempts at finishing my PhD. Let us know when things settle down after the big split and you're ready to turn your eye to documentation. Philipp > > Le 19 mars 2015 ? 13:36, Nathan Goldbaum > a ?crit : > >> >> >> On Thu, Mar 19, 2015 at 1:27 PM, PhilippJFR > > wrote: >> >> Matthias Bussonnier wrote >> > I've seen in particular that you are building docs as notebook. >> > We plan to do the same for IPython, any plan to make this >> > part more standalone / pip-installable ? >> > Or is it already ? >> >> Hi Matthias, >> >> The notebook doc building is based on Nathan Goldbaum's >> NotebookDirective >> >> for Sphinx. You can look at our version here >> , >> but >> it's far from ready for distribution. The only real changes I >> made were to >> switch to the basic html template and change some the hackery that's >> required to clean up conflicting css and strip html tags so that >> it is >> suitable for Sphinx. Additionally, thanks to Jean-Luc it hooks into a >> testing system to capture our output, which allows us to dynamically >> generate data and display comparisons as unit tests. >> >> Presumably the part of the code that deals with cleaning up the >> nbconvert >> output for Sphinx should be reimplemented as a nbconvert >> Postprocessor for >> you to use. If you are also interested in our testing facilities, >> it would >> be great to integrate that more tightly with IPython. We have >> recently added >> an exporting system for notebooks, allowing you to save the data >> and display >> output for each cell, which can be used either for archival >> purposes or to >> set up test comparisons. If you're at all in interested in >> something like >> that it would be great to chat about it at some point. >> >> >> Hi Philipp >> >> I put this up on github a while ago. I'd love to get a PR for any >> changes you made. >> >> https://github.com/ngoldbaum/runnotebook >> >> I'd really love it if you (or maybe one of the IPython devs if >> they're interested in this sort of thing) figured out how to use the >> jinja2 templates so I don't have to run silly regexes on the CSS. >> >> -Nathan >> >> Philipp >> >> >> >> -- >> View this message in context: >> http://python.6.x6.nabble.com/ANN-HoloViews-1-0-released-tp5089805p5089815.html >> Sent from the IPython - Development mailing list archive at >> Nabble.com . >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > 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 -------------- An embedded and charset-unspecified text was scrubbed... Name: not available URL: From damianavila at gmail.com Fri Mar 20 13:40:19 2015 From: damianavila at gmail.com (=?UTF-8?Q?Dami=C3=A1n_Avila?=) Date: Fri, 20 Mar 2015 14:40:19 -0300 Subject: [IPython-dev] Slides on nbviewer!!! Message-ID: Hi all, Thanks to the great work of Nicholas (@bollwyvl) who "resuscitate" (and actually make a better implementation) an old PR I did several months ago in the nbviewer repo, we now have the slides support in nbviewer!!! How to use it? Simple... you use it like nbviewer but you just "say" to the system to render the notebook as an slideshow. For instance, I have a notebook from an old talk here: http://nbviewer.ipython.org/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb But in fact, I made this talk using the slideshow capabilities of the notebook, so instead of converting to slides and upload the resulting html file to the web, I can just press the "present" button at the top bar ? and voila!! You have a working slideshow in just 1 seconds ;-) http://nbviewer.ipython.org/format/slides/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb#/ Previously, there was an unofficial implementation of this feature called Slideviewer (based on my old PR) which would be deprecated in favour of this new great machinery inside the official nbviewer site. Thanks again to @bollwyvl who push this forward (and all the IPython team for the discussion of this functionality) and I hope you continue enjoying (and using) the IPython slides. Finally, to answer some of the upcoming questions, you CAN NOT execute code in this "static" slides. If you want to try a "live" implementation of the revealjs-based slides where you can actually *execute* code, you need to check RISE: https://github.com/damianavila/RISE, and use it locally (we can later talk about a *cloud* deployment, but that's another discussion ;-) Thanks. -- *Dami?n* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: slides.png Type: image/png Size: 13583 bytes Desc: not available URL: From ocefpaf at gmail.com Fri Mar 20 14:50:31 2015 From: ocefpaf at gmail.com (Filipe Pires Alvarenga Fernandes) Date: Fri, 20 Mar 2015 15:50:31 -0300 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: Hi Dami\u00e1n Avila ;-) That is really cool, but I noticed that you used unicode representations to get a properly rendered version of your HTML. Did you do that by hand or do you have an automated way of substituting the accents for unicode code? Without that the non-English slides look awful: http://nbviewer.ipython.org/format/slides/gist/ocefpaf/cf023a8db7097bd9fe92 Thanks, -Filipe On Fri, Mar 20, 2015 at 2:40 PM, Dami?n Avila wrote: > Hi all, > > Thanks to the great work of Nicholas (@bollwyvl) who "resuscitate" (and > actually make a better implementation) an old PR I did several months ago > in the nbviewer repo, we now have the slides support in nbviewer!!! > > How to use it? Simple... you use it like nbviewer but you just "say" to > the system to render the notebook as an slideshow. > > For instance, I have a notebook from an old talk here: > > > http://nbviewer.ipython.org/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb > > But in fact, I made this talk using the slideshow capabilities of the > notebook, so instead of converting to slides and upload the resulting html > file to the web, I can just press the "present" button at the top bar > > > ? > > and voila!! You have a working slideshow in just 1 seconds ;-) > > > http://nbviewer.ipython.org/format/slides/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb#/ > > Previously, there was an unofficial implementation of this feature called > Slideviewer (based on my old PR) which would be deprecated in favour of > this new great machinery inside the official nbviewer site. > > Thanks again to @bollwyvl who push this forward (and all the IPython team > for the discussion of this functionality) and I hope you continue enjoying > (and using) the IPython slides. > > Finally, to answer some of the upcoming questions, you CAN NOT execute > code in this "static" slides. If you want to try a "live" implementation of > the revealjs-based slides where you can actually *execute* code, you need > to check RISE: https://github.com/damianavila/RISE, and use it locally > (we can later talk about a *cloud* deployment, but that's another > discussion ;-) > > Thanks. > > -- > *Dami?n* > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: slides.png Type: image/png Size: 13583 bytes Desc: not available URL: From tritemio at gmail.com Fri Mar 20 15:00:18 2015 From: tritemio at gmail.com (Antonino Ingargiola) Date: Fri, 20 Mar 2015 12:00:18 -0700 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: That's an amazing work thanks! The ability to turn notebooks into presentations and, now, to share those slides seamlessly through nbviewer.org is a *big* selling point for the ipython/jupiter project. I only have a minor request. Is there a way to disable the slide-to-slide animation, I (and some other colleagues) find it quite distracting? Finally, if I have to dream, having the possibility to dump the slides into a powerpoint/libreoffice presentation would really integrate in a bigger workflow of creating presentations and reports, not necessary (or completely) computationally centered. I recently started using IguanaTex[1] and it allows me to copy/paste latex equations from the notebook into powerpoint and it is huge time saver for me since I write the equations in a notebook while writing the code and then I can copy them to powerpoint and have latex-grade output. This same approach could allow a simple notebook to powerpoint/libreoffice converter. Antonio [1] http://www.jonathanleroux.org/software/iguanatex/ On Fri, Mar 20, 2015 at 10:40 AM, Dami?n Avila wrote: > Hi all, > > Thanks to the great work of Nicholas (@bollwyvl) who "resuscitate" (and > actually make a better implementation) an old PR I did several months ago > in the nbviewer repo, we now have the slides support in nbviewer!!! > > How to use it? Simple... you use it like nbviewer but you just "say" to > the system to render the notebook as an slideshow. > > For instance, I have a notebook from an old talk here: > > > http://nbviewer.ipython.org/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb > > But in fact, I made this talk using the slideshow capabilities of the > notebook, so instead of converting to slides and upload the resulting html > file to the web, I can just press the "present" button at the top bar > > > ? > > and voila!! You have a working slideshow in just 1 seconds ;-) > > > http://nbviewer.ipython.org/format/slides/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb#/ > > Previously, there was an unofficial implementation of this feature called > Slideviewer (based on my old PR) which would be deprecated in favour of > this new great machinery inside the official nbviewer site. > > Thanks again to @bollwyvl who push this forward (and all the IPython team > for the discussion of this functionality) and I hope you continue enjoying > (and using) the IPython slides. > > Finally, to answer some of the upcoming questions, you CAN NOT execute > code in this "static" slides. If you want to try a "live" implementation of > the revealjs-based slides where you can actually *execute* code, you need > to check RISE: https://github.com/damianavila/RISE, and use it locally > (we can later talk about a *cloud* deployment, but that's another > discussion ;-) > > Thanks. > > -- > *Dami?n* > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: slides.png Type: image/png Size: 13583 bytes Desc: not available URL: From bussonniermatthias at gmail.com Fri Mar 20 15:10:06 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Fri, 20 Mar 2015 12:10:06 -0700 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: <3F863A40-E784-4C2E-B185-B1657ED53BB2@gmail.com> Le 20 mars 2015 ? 11:50, Filipe Pires Alvarenga Fernandes a ?crit : > Hi Dami\u00e1n Avila ;-) > > That is really cool, but I noticed that you used unicode representations to get a properly rendered version of your HTML. Did you do that by hand or do you have an automated way of substituting the accents for unicode code? > > Without that the non-English slides look awful: > > http://nbviewer.ipython.org/format/slides/gist/ocefpaf/cf023a8db7097bd9fe92 > > Thanks, > > -Filipe Seem this might be a bug in nbconvert. The characters are escaped too soon. Can you open a bug report ? -- M > > On Fri, Mar 20, 2015 at 2:40 PM, Dami?n Avila wrote: > Hi all, > > Thanks to the great work of Nicholas (@bollwyvl) who "resuscitate" (and actually make a better implementation) an old PR I did several months ago in the nbviewer repo, we now have the slides support in nbviewer!!! > > How to use it? Simple... you use it like nbviewer but you just "say" to the system to render the notebook as an slideshow. > > For instance, I have a notebook from an old talk here: > > http://nbviewer.ipython.org/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb > > But in fact, I made this talk using the slideshow capabilities of the notebook, so instead of converting to slides and upload the resulting html file to the web, I can just press the "present" button at the top bar > > > ? > > and voila!! You have a working slideshow in just 1 seconds ;-) > > http://nbviewer.ipython.org/format/slides/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb#/ > > Previously, there was an unofficial implementation of this feature called Slideviewer (based on my old PR) which would be deprecated in favour of this new great machinery inside the official nbviewer site. > > Thanks again to @bollwyvl who push this forward (and all the IPython team for the discussion of this functionality) and I hope you continue enjoying (and using) the IPython slides. > > Finally, to answer some of the upcoming questions, you CAN NOT execute code in this "static" slides. If you want to try a "live" implementation of the revealjs-based slides where you can actually *execute* code, you need to check RISE: https://github.com/damianavila/RISE, and use it locally (we can later talk about a *cloud* deployment, but that's another discussion ;-) > > Thanks. > > -- > Dami?n > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://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 nick.bollweg at gmail.com Fri Mar 20 17:03:29 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Fri, 20 Mar 2015 17:03:29 -0400 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: Filipe: Thanks! Since this isn't occurring from nbconvert by itself, we'll have to assume this is an nbviewer bug. I've added it here: https://github.com/jupyter/nbviewer/issues/431 I think there is a nickle fix, but we'll have to see.. and test! On Fri, Mar 20, 2015 at 2:50 PM, Filipe Pires Alvarenga Fernandes < ocefpaf at gmail.com> wrote: > Hi Dami\u00e1n Avila ;-) > > That is really cool, but I noticed that you used unicode representations > to get a properly rendered version of your HTML. Did you do that by hand > or do you have an automated way of substituting the accents for unicode > code? > > Without that the non-English slides look awful: > > http://nbviewer.ipython.org/format/slides/gist/ocefpaf/cf023a8db7097bd9fe92 > > Thanks, > > -Filipe > > On Fri, Mar 20, 2015 at 2:40 PM, Dami?n Avila > wrote: > >> Hi all, >> >> Thanks to the great work of Nicholas (@bollwyvl) who "resuscitate" (and >> actually make a better implementation) an old PR I did several months ago >> in the nbviewer repo, we now have the slides support in nbviewer!!! >> >> How to use it? Simple... you use it like nbviewer but you just "say" to >> the system to render the notebook as an slideshow. >> >> For instance, I have a notebook from an old talk here: >> >> >> http://nbviewer.ipython.org/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb >> >> But in fact, I made this talk using the slideshow capabilities of the >> notebook, so instead of converting to slides and upload the resulting html >> file to the web, I can just press the "present" button at the top bar >> >> >> ? >> >> and voila!! You have a working slideshow in just 1 seconds ;-) >> >> >> http://nbviewer.ipython.org/format/slides/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb#/ >> >> Previously, there was an unofficial implementation of this feature called >> Slideviewer (based on my old PR) which would be deprecated in favour of >> this new great machinery inside the official nbviewer site. >> >> Thanks again to @bollwyvl who push this forward (and all the IPython >> team for the discussion of this functionality) and I hope you continue >> enjoying (and using) the IPython slides. >> >> Finally, to answer some of the upcoming questions, you CAN NOT execute >> code in this "static" slides. If you want to try a "live" implementation of >> the revealjs-based slides where you can actually *execute* code, you need >> to check RISE: https://github.com/damianavila/RISE, and use it locally >> (we can later talk about a *cloud* deployment, but that's another >> discussion ;-) >> >> Thanks. >> >> -- >> *Dami?n* >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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: -------------- next part -------------- A non-text attachment was scrubbed... Name: slides.png Type: image/png Size: 13583 bytes Desc: not available URL: From ocefpaf at gmail.com Fri Mar 20 17:12:22 2015 From: ocefpaf at gmail.com (Filipe Pires Alvarenga Fernandes) Date: Fri, 20 Mar 2015 18:12:22 -0300 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: Thanks Nicholas and Matthias! On Fri, Mar 20, 2015 at 6:03 PM, Nicholas Bollweg wrote: > Filipe: > Thanks! Since this isn't occurring from nbconvert by itself, we'll have to > assume this is an nbviewer bug. > > I've added it here: > https://github.com/jupyter/nbviewer/issues/431 > > I think there is a nickle fix, but we'll have to see.. and test! > > On Fri, Mar 20, 2015 at 2:50 PM, Filipe Pires Alvarenga Fernandes < > ocefpaf at gmail.com> wrote: > >> Hi Dami\u00e1n Avila ;-) >> >> That is really cool, but I noticed that you used unicode representations >> to get a properly rendered version of your HTML. Did you do that by hand >> or do you have an automated way of substituting the accents for unicode >> code? >> >> Without that the non-English slides look awful: >> >> >> http://nbviewer.ipython.org/format/slides/gist/ocefpaf/cf023a8db7097bd9fe92 >> >> Thanks, >> >> -Filipe >> >> On Fri, Mar 20, 2015 at 2:40 PM, Dami?n Avila >> wrote: >> >>> Hi all, >>> >>> Thanks to the great work of Nicholas (@bollwyvl) who "resuscitate" (and >>> actually make a better implementation) an old PR I did several months ago >>> in the nbviewer repo, we now have the slides support in nbviewer!!! >>> >>> How to use it? Simple... you use it like nbviewer but you just "say" to >>> the system to render the notebook as an slideshow. >>> >>> For instance, I have a notebook from an old talk here: >>> >>> >>> http://nbviewer.ipython.org/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb >>> >>> But in fact, I made this talk using the slideshow capabilities of the >>> notebook, so instead of converting to slides and upload the resulting html >>> file to the web, I can just press the "present" button at the top bar >>> >>> >>> ? >>> >>> and voila!! You have a working slideshow in just 1 seconds ;-) >>> >>> >>> http://nbviewer.ipython.org/format/slides/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb#/ >>> >>> Previously, there was an unofficial implementation of this feature >>> called Slideviewer (based on my old PR) which would be deprecated in favour >>> of this new great machinery inside the official nbviewer site. >>> >>> Thanks again to @bollwyvl who push this forward (and all the IPython >>> team for the discussion of this functionality) and I hope you continue >>> enjoying (and using) the IPython slides. >>> >>> Finally, to answer some of the upcoming questions, you CAN NOT execute >>> code in this "static" slides. If you want to try a "live" implementation of >>> the revealjs-based slides where you can actually *execute* code, you need >>> to check RISE: https://github.com/damianavila/RISE, and use it locally >>> (we can later talk about a *cloud* deployment, but that's another >>> discussion ;-) >>> >>> Thanks. >>> >>> -- >>> *Dami?n* >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://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: -------------- next part -------------- A non-text attachment was scrubbed... Name: slides.png Type: image/png Size: 13583 bytes Desc: not available URL: From nick.bollweg at gmail.com Fri Mar 20 17:26:26 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Fri, 20 Mar 2015 17:26:26 -0400 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: > I only have a minor request. Is there a way to disable the slide-to-slide animation, I (and some other colleagues) find it quite distracting? With the two-dimensional scrolling, I find that helps orient a bit, but yeah, the animation is pretty "cute". Short answer: No. Medium answer: Yes... IF you are hosting your own nbviewer, AND hack the underlying template slides.reveal.tpl. Long answer: In addition to transition, reveal has a huge number of configuration options. I kind of doubt we'll make any UI on nbviewer to allow one to hack these at runtime, not least because reveal takes over the location.hash for providing anchors to slides. We should change the nbconvert template soon to allow a raw metadata configuration of what you describe. This would still leave the power in the hands of the content owner, which is probably how it should be. However, we need to look at some notebook UI/UX options for getting access to all of the configuration features (might as well), which does present a bit of a challenge. On Fri, Mar 20, 2015 at 3:00 PM, Antonino Ingargiola wrote: > That's an amazing work thanks! > > The ability to turn notebooks into presentations and, now, to share those > slides seamlessly through nbviewer.org is a *big* selling point for the > ipython/jupiter project. > > I only have a minor request. Is there a way to disable the slide-to-slide > animation, I (and some other colleagues) find it quite distracting? > > Finally, if I have to dream, having the possibility to dump the slides > into a powerpoint/libreoffice presentation would really integrate in a > bigger workflow of creating presentations and reports, not necessary (or > completely) computationally centered. > > I recently started using IguanaTex[1] and it allows me to copy/paste latex > equations from the notebook into powerpoint and it is huge time saver for > me since I write the equations in a notebook while writing the code and > then I can copy them to powerpoint and have latex-grade output. This same > approach could allow a simple notebook to powerpoint/libreoffice converter. > > Antonio > > [1] http://www.jonathanleroux.org/software/iguanatex/ > > > On Fri, Mar 20, 2015 at 10:40 AM, Dami?n Avila > wrote: > >> Hi all, >> >> Thanks to the great work of Nicholas (@bollwyvl) who "resuscitate" (and >> actually make a better implementation) an old PR I did several months ago >> in the nbviewer repo, we now have the slides support in nbviewer!!! >> >> How to use it? Simple... you use it like nbviewer but you just "say" to >> the system to render the notebook as an slideshow. >> >> For instance, I have a notebook from an old talk here: >> >> >> http://nbviewer.ipython.org/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb >> >> But in fact, I made this talk using the slideshow capabilities of the >> notebook, so instead of converting to slides and upload the resulting html >> file to the web, I can just press the "present" button at the top bar >> >> >> ? >> >> and voila!! You have a working slideshow in just 1 seconds ;-) >> >> >> http://nbviewer.ipython.org/format/slides/github/damianavila/hackperiodismo/blob/master/Hackeando_el_periodismo.ipynb#/ >> >> Previously, there was an unofficial implementation of this feature called >> Slideviewer (based on my old PR) which would be deprecated in favour of >> this new great machinery inside the official nbviewer site. >> >> Thanks again to @bollwyvl who push this forward (and all the IPython >> team for the discussion of this functionality) and I hope you continue >> enjoying (and using) the IPython slides. >> >> Finally, to answer some of the upcoming questions, you CAN NOT execute >> code in this "static" slides. If you want to try a "live" implementation of >> the revealjs-based slides where you can actually *execute* code, you need >> to check RISE: https://github.com/damianavila/RISE, and use it locally >> (we can later talk about a *cloud* deployment, but that's another >> discussion ;-) >> >> Thanks. >> >> -- >> *Dami?n* >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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: -------------- next part -------------- A non-text attachment was scrubbed... Name: slides.png Type: image/png Size: 13583 bytes Desc: not available URL: From tritemio at gmail.com Fri Mar 20 17:37:47 2015 From: tritemio at gmail.com (Antonino Ingargiola) Date: Fri, 20 Mar 2015 14:37:47 -0700 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: On Fri, Mar 20, 2015 at 2:26 PM, Nicholas Bollweg wrote: > > I only have a minor request. Is there a way to disable the > slide-to-slide animation, I (and some other colleagues) find it quite > distracting? > > With the two-dimensional scrolling, I find that helps orient a bit, but > yeah, the animation is pretty "cute". > Right, I just tend to do linear (not 2D) presentations, subslides maybe useful for additional details showed if required by questions. So the animation does not convey any information, and since is so fancy it is actually distracting ;). And in the back of my mind, it looks like the animation is a kind of unprofessional childish showing-off kind of thing. > Short answer: No. > > Medium answer: Yes... IF you are hosting your own nbviewer, AND hack the > underlying template slides.reveal.tpl. > > Long answer: In addition to transition, reveal has a huge number of > configuration options. I kind of doubt we'll make any UI on nbviewer to > allow one to hack these at runtime, not least because reveal takes over the > location.hash for providing anchors to slides. > As a first step I would like to disable the animation in livereveal/RISE, I can live with the animation on nbviewer.I'll try to look into slides.reveal.tpl, thanks for the pointer. > We should change the nbconvert template soon to allow a raw metadata > configuration of what you describe. This would still leave the power in the > hands of the content owner, which is probably how it should be. However, we > need to look at some notebook UI/UX options for getting access to all of > the configuration features (might as well), which does present a bit of a > challenge. > Are you still referring to the animation or to the powerpoint/libreoffice conversion here? Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Fri Mar 20 18:20:58 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Fri, 20 Mar 2015 18:20:58 -0400 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: > > And in the back of my mind, it looks like the animation is a kind of > unprofessional childish showing-off kind of thing. > Yeah, we are serving a lot of masters here. One the one hand, there's your use case: sounds very hard science. Definitely want to meet your level of expectations. Some folk have been successful publishing whole books out of notebooks, but we still have pretty far to go, I think, to get to a general purpose publishing option, but I would see open formats being target before the office crowd. On the other, we're trying to make scientific content more accessible to a broader audience... and if it needs a bit of cartoonishness to help engage people, then I want really good cartoons. Like 80s saturday morning cartoons. > As a first step I would like to disable the animation in livereveal/RISE, > I can live with the animation on nbviewer.I'll try to look into > slides.reveal.tpl, thanks for the pointer. > Yeah, while the nbconvert template that will respect slideshow-level metadata (here ) needs to be changed in ipython/ipython, we should play with the UX in livreveal first. Are you still referring to the animation or to the powerpoint/libreoffice > conversion here? > Was talking about the ability to do any kind of reveal configuration... hadn't responded to the powerpoint thing. But since you mention it... If we're talking about dreams, mine is to kill powerpoint :P Aside from Pandoc, which is already available, there is python-pptx , which could serve as a baseline for building an nbconvert formatter. Perhaps a smarter application of pandoc to the slides is the best bet to get to where you want to go... I would be very surprised if someone hadn't done this before! -------------- next part -------------- An HTML attachment was scrubbed... URL: From tritemio at gmail.com Fri Mar 20 19:23:19 2015 From: tritemio at gmail.com (Antonino Ingargiola) Date: Fri, 20 Mar 2015 16:23:19 -0700 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: On Fri, Mar 20, 2015 at 3:20 PM, Nicholas Bollweg wrote: > > As a first step I would like to disable the animation in livereveal/RISE, >> I can live with the animation on nbviewer.I'll try to look into >> slides.reveal.tpl, thanks for the pointer. >> > > Yeah, while the nbconvert template that will respect slideshow-level > metadata (here > ) > needs to be changed in ipython/ipython, we should play with the UX in > livreveal first. > link saved ;). > Are you still referring to the animation or to the powerpoint/libreoffice >> conversion here? >> > > Was talking about the ability to do any kind of reveal configuration... > hadn't responded to the powerpoint thing. But since you mention it... > > If we're talking about dreams, mine is to kill powerpoint :P > I was thinking like this a few years ago, doing presentation in beamer and so on. But then I found that in the every-day practice of presentations (at least in science), you continuously do a mix&match work copying slides from old presentations (yours and colleagues, and for many powerpoint is the standard), fixing errors and annotating slides during talks and so on, there is no much time for the slides, adding an arrow or a circle to highlight something must be immediate. The powerpoint/libreoffice approach here has an edge. Right now I have 6 notebooks open with similar analysis on different data files. I need to make a report presentation. Do you think I will make another notebook? It is just faster if I dump everything (I mean figures and latex formulas) in powerpoint and add just a few words for create a logical story. The notebook is fantastic tool to create another kind of presentations in which you show in dept a computational process. Aside from Pandoc, which is already available, there is python-pptx > , which could serve as a baseline > for building an nbconvert formatter. Perhaps a smarter application of > pandoc to the slides is the best bet to get to where you want to go... I > would be very surprised if someone hadn't done this before! > Pandoc is powerful but close to impossible to install on windows. python-pptx on the contrary looks a really interesting project, thanks for mentioning it :). Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From damianavila at gmail.com Fri Mar 20 20:51:38 2015 From: damianavila at gmail.com (=?UTF-8?Q?Dami=C3=A1n_Avila?=) Date: Fri, 20 Mar 2015 21:51:38 -0300 Subject: [IPython-dev] Embedded Videos in Slideshows In-Reply-To: References: Message-ID: A little late ;-) but finally answering... >Since I fixed the playback problem, I'm just curious. I did not notice any of that, but I did not make to much presentations with audio.... are you still seeing the same on the latest release? Thanks, and sorry for the delay, it gets lost between a mountain of emails... 2014-03-21 0:02 GMT-03:00 Damon Allen : > Dami?n, > > I have one more question on the topic. I noticed if I have an cell at the > top of the notebook that is set to be skipped in the presentation, it > messes up the audio control's autoplay. Specifically the automatic pause > of playback when I move on to the next slide. Has this been noticed > elsewhere? > > I noticed that the top cell was getting switched to a markdown cell from a > Heading 1, and so I added a cell at the top to act as a buffer at the top. > Once I started the slideshow, the audio controls would start playing > correctly but they would keep playing once I advanced to the next slide. > However when I removed the skipped cell at the top the problem went away. > > As for the top cell switching from Heading 1 to markdown, I cannot rule > out that the cause was that my mouse accidentally clicking on the drop down > menu since I haven't reproduced it. > > Since I fixed the playback problem, I'm just curious. > > Thanks, > > Damon > > Damon T. Allen Ph.D. > Adjunct Professor > (352) 234-3266 > damontallen at gmail.com > 344 Rinker Hall > College of Construction Management > University of Florida > > > On Tue, Mar 18, 2014 at 8:42 PM, Damon Allen > wrote: > >> Thanks for answering my question so promptly. I'll tell my students to >> use Chrome if it is an issue for them. >> >> >> >> Damon T. Allen Ph.D. >> Adjunct Professor >> (352) 234-3266 >> damontallen at gmail.com >> 344 Rinker Hall >> College of Construction Management >> University of Florida >> >> >> On Tue, Mar 18, 2014 at 8:11 PM, Dami?n Avila >> wrote: >> >>> I ask to google... and I found I have already answered myself... ja ja >>> >>> https://github.com/damianavila/live_reveal/issues/4 >>> >>> not a good sign, I think ;-) >>> >>> >>> 2014-03-18 19:20 GMT-03:00 Damon Allen : >>> >>> The notebook is at: >>>> >>>> >>>> http://nbviewer.ipython.org/github/damontallen/Construction-Lectures/blob/master/Week%200%20-%20Greetings.ipynb >>>> >>>> The slideshow is at: >>>> >>>> >>>> http://damontallen.github.io/Construction-Lectures/Week%200%20-%20Greetings.slides.html#/ >>>> >>>> And this problem also occurs when I use >>>> >>>> ipython nbconvert "Week 0 - Greetings.ipynb" --to slides --post serve >>>> >>>> Thanks for looking into it. >>>> >>>> >>>> >>>> Damon T. Allen Ph.D. >>>> Adjunct Professor >>>> (352) 234-3266 >>>> damontallen at gmail.com >>>> 344 Rinker Hall >>>> College of Construction Management >>>> University of Florida >>>> >>>> >>>> On Tue, Mar 18, 2014 at 6:13 PM, Dami?n Avila >>>> wrote: >>>> >>>>> Have you seen this problem using the slideshow generated with >>>>> IPython.nbconvert? >>>>> It can be an issue with reveal.js itself... can you provided me with >>>>> an example notebook to study the case? >>>>> >>>>> Thanks. >>>>> >>>>> >>>>> >>>>> >>>>> 2014-03-18 18:56 GMT-03:00 Damon Allen : >>>>> >>>>>> Hi, >>>>>> >>>>>> Does running a slideshow force embedded YouTube videos to play in >>>>>> flash instead of HTML5? I've found that in while running Firefox in Ubuntu >>>>>> I cannot play YouTube videos in a slideshow. I can watch the video in >>>>>> Firefox if it isn't in a slideshow and if I the slideshow runs in Chrome >>>>>> everything works. >>>>>> >>>>>> This isn't a big deal since most of my students are running Windows >>>>>> and they will be able to use up-to-date versions of the flashplayer, but I >>>>>> am curious if there could be a fix to either reveal or nbconvert that would >>>>>> correct this. >>>>>> >>>>>> As it stands, I need to switch my development from using Firefox to >>>>>> Chrome. >>>>>> >>>>>> I'm still using IPython 1.2.1. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Damon >>>>>> >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Dami?n Avila >>>>> Scientific Python Developer >>>>> Quantitative Finance Analyst >>>>> Statistics, Biostatistics and Econometrics Consultant >>>>> Biochemist >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> >>> -- >>> Dami?n Avila >>> Scientific Python Developer >>> Quantitative Finance Analyst >>> Statistics, Biostatistics and Econometrics Consultant >>> Biochemist >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- *Dami?n* -------------- next part -------------- An HTML attachment was scrubbed... URL: From damianavila at gmail.com Fri Mar 20 21:37:04 2015 From: damianavila at gmail.com (=?UTF-8?Q?Dami=C3=A1n_Avila?=) Date: Fri, 20 Mar 2015 22:37:04 -0300 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: >However, we need to look at some notebook UI/UX options for getting access to all of the configuration features (might as well), which does present a bit of a challenge. That's the key... the UI/UX to make the config available without making the "configuration" a mess ;-) > As a first step I would like to disable the animation in livereveal/RISE, I can live with the animation on nbviewer.I'll try to look into slides.reveal.tpl, thanks for the pointer. Modifying slides_reveal.tpl will let you "config" things in nbconverted slides... but if you want to modify this in RISE, you need to set up the config in other way... check this: https://github.com/damianavila/RISE#configure-your-own-options Remember that RISE and IPython slides are related but different things: * RISE is a notebook changed on the fly to render as a reveal.js-based slideshow... but it is LIVE as the notebook is... because it is a notebook ;-) * IPython slides are just STATIC html/js/css generated by the IPython.nbconvert machinery using reveal.js as part of the machinery to render the STATIC slides an a slideshow... but the code can no be run there. Finally, the slides on nbviewer are just another way to experience the STATIC slides ;-) Probably you know that... but I take to opportunity to make the clarification so people do not confuse one with the other one. Cheers. 2015-03-20 20:23 GMT-03:00 Antonino Ingargiola : > > On Fri, Mar 20, 2015 at 3:20 PM, Nicholas Bollweg > wrote: >> >> As a first step I would like to disable the animation in livereveal/RISE, >>> I can live with the animation on nbviewer.I'll try to look into >>> slides.reveal.tpl, thanks for the pointer. >>> >> >> Yeah, while the nbconvert template that will respect slideshow-level >> metadata (here >> ) >> needs to be changed in ipython/ipython, we should play with the UX in >> livreveal first. >> > > link saved ;). > > >> Are you still referring to the animation or to the powerpoint/libreoffice >>> conversion here? >>> >> >> Was talking about the ability to do any kind of reveal configuration... >> hadn't responded to the powerpoint thing. But since you mention it... >> >> If we're talking about dreams, mine is to kill powerpoint :P >> > > I was thinking like this a few years ago, doing presentation in beamer and > so on. But then I found that in the every-day practice of presentations > (at least in science), you continuously do a mix&match work copying slides > from old presentations (yours and colleagues, and for many powerpoint is > the standard), fixing errors and annotating slides during talks and so on, > there is no much time for the slides, adding an arrow or a circle to > highlight something must be immediate. The powerpoint/libreoffice approach > here has an edge. > > Right now I have 6 notebooks open with similar analysis on different data > files. I need to make a report presentation. Do you think I will make > another notebook? It is just faster if I dump everything (I mean figures > and latex formulas) in powerpoint and add just a few words for create a > logical story. > > The notebook is fantastic tool to create another kind of presentations in > which you show in dept a computational process. > > Aside from Pandoc, which is already available, there is python-pptx >> , which could serve as a baseline >> for building an nbconvert formatter. Perhaps a smarter application of >> pandoc to the slides is the best bet to get to where you want to go... I >> would be very surprised if someone hadn't done this before! >> > > Pandoc is powerful but close to impossible to install on windows. > python-pptx on the contrary looks a really interesting project, thanks for > mentioning it :). > > Antonio > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- *Dami?n* -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonian.7 at buckeyemail.osu.edu Sat Mar 21 14:38:30 2015 From: simonian.7 at buckeyemail.osu.edu (Gregory Simonian) Date: Sat, 21 Mar 2015 14:38:30 -0400 Subject: [IPython-dev] IPython console crashes when interrupted in routine Message-ID: <550DBAA6.9060807@buckeyemail.osu.edu> Hey everyone, I think I ran into a regression in IPython 3.0 where whenever I interrupt running code, the IPython console and kernel crash. Probably the easiest way I know to reproduce this is: $ ipython console In [1]: for i in range(1000000): ...: print i ...: And then press Ctrl-C during execution. I expect that it will catch a KeyboardInterrupt exception and then go back to an IPython prompt. However, instead it outputs: Out [1]: 1 2 <...> 41654^CTraceback (most recent call last): File "/usr/custom/Anaconda-2.0.1/bin/ipython", line 6, in sys.exit(start_ipython()) File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/__init__.py", line 120, in start_ipython return launch_new_instance(argv=argv, **kwargs) File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/config/application.py", line 574, in launch_instance app.start() File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 367, in start return self.subapp.start() File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 371, in start self.shell.mainloop() File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", line 407, in mainloop self.interact(display_banner=display_banner) File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", line 568, in interact self.run_cell(source_raw) File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", line 168, in run_cell self.handle_input_request(msg_id, timeout=0.05) File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", line 373, in handle_input_request req = self.client.stdin_channel.get_msg(timeout=timeout) File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/kernel/blocking/channels.py", line 50, in get_msg ready = self.socket.poll(timeout) File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/zmq/sugar/socket.py", line 448, in poll evts = dict(p.poll(timeout)) File "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/zmq/sugar/poll.py", line 101, in poll return zmq_poll(self.sockets, timeout=timeout) File "zmq/backend/cython/_poll.pyx", line 115, in zmq.backend.cython._poll.zmq_poll (zmq/backend/cython/_poll.c:1586) File "zmq/backend/cython/checkrc.pxd", line 21, in zmq.backend.cython.checkrc._check_rc (zmq/backend/cython/_poll.c:2016) raise ZMQError(errno) ZMQError: Interrupted system call If you suspect this is an IPython bug, please report it at: https://github.com/ipython/ipython/issues or send an email to the mailing list at ipython-dev at scipy.org You can print a more detailed traceback right now with "%tb", or use "%debug" to interactively debug it. Extra-detailed tracebacks for bug-reporting purposes can be enabled via: %config Application.verbose_crash=True $ Dropping me back at the shell. This doesn't occur in just running plain "$ ipython", so the kernel should have something to do with it. I am running IPython 3.0 through Anaconda on CentOS 6.6.I hadn't encountered this bug in IPython 2. Maybe other people can confirm if it occurs for them. And if so, what additional info I would need to file a bug report. Thanks! Gregory Simonian -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: OpenPGP digital signature URL: From takowl at gmail.com Sat Mar 21 14:48:26 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Sat, 21 Mar 2015 11:48:26 -0700 Subject: [IPython-dev] IPython console crashes when interrupted in routine In-Reply-To: <550DBAA6.9060807@buckeyemail.osu.edu> References: <550DBAA6.9060807@buckeyemail.osu.edu> Message-ID: Hi Gregory, I can reproduce this - please file an issue so we don't lose track of it. Thanks, Thomas On 21 March 2015 at 11:38, Gregory Simonian wrote: > Hey everyone, > > I think I ran into a regression in IPython 3.0 where whenever I interrupt > running code, the IPython console and kernel crash. Probably the easiest > way I know to reproduce this is: > $ ipython console > In [1]: for i in range(1000000): > ...: print i > ...: > And then press Ctrl-C during execution. > > I expect that it will catch a KeyboardInterrupt exception and then go back > to an IPython prompt. However, instead it outputs: > Out [1]: 1 > 2 > <...> > 41654^CTraceback (most recent call last): > File "/usr/custom/Anaconda-2.0.1/bin/ipython", line 6, in > sys.exit(start_ipython()) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/__init__.py", > line 120, in start_ipython > return launch_new_instance(argv=argv, **kwargs) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/config/application.py", > line 574, in launch_instance > app.start() > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/ipapp.py", > line 367, in start > return self.subapp.start() > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/ipapp.py", > line 371, in start > self.shell.mainloop() > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", > line 407, in mainloop > self.interact(display_banner=display_banner) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", > line 568, in interact > self.run_cell(source_raw) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", > line 168, in run_cell > self.handle_input_request(msg_id, timeout=0.05) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", > line 373, in handle_input_request > req = self.client.stdin_channel.get_msg(timeout=timeout) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/kernel/blocking/channels.py", > line 50, in get_msg > ready = self.socket.poll(timeout) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/zmq/sugar/socket.py", > line 448, in poll > evts = dict(p.poll(timeout)) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/zmq/sugar/poll.py", > line 101, in poll > return zmq_poll(self.sockets, timeout=timeout) > File "zmq/backend/cython/_poll.pyx", line 115, in > zmq.backend.cython._poll.zmq_poll (zmq/backend/cython/_poll.c:1586) > File "zmq/backend/cython/checkrc.pxd", line 21, in > zmq.backend.cython.checkrc._check_rc (zmq/backend/cython/_poll.c:2016) > raise ZMQError(errno) > ZMQError: Interrupted system call > > If you suspect this is an IPython bug, please report it at: > https://github.com/ipython/ipython/issues > or send an email to the mailing list at ipython-dev at scipy.org > > You can print a more detailed traceback right now with "%tb", or use > "%debug" > to interactively debug it. > > Extra-detailed tracebacks for bug-reporting purposes can be enabled via: > %config Application.verbose_crash=True > $ > > Dropping me back at the shell. This doesn't occur in just running plain "$ > ipython", so the kernel should have something to do with it. > > I am running IPython 3.0 through Anaconda on CentOS 6.6.I hadn't > encountered this bug in IPython 2. Maybe other people can confirm if it > occurs for them. And if so, what additional info I would need to file a bug > report. Thanks! > > Gregory > Simonian > > _______________________________________________ > 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 simonian.7 at buckeyemail.osu.edu Sat Mar 21 15:20:51 2015 From: simonian.7 at buckeyemail.osu.edu (Gregory Simonian) Date: Sat, 21 Mar 2015 15:20:51 -0400 Subject: [IPython-dev] IPython console crashes when interrupted in routine In-Reply-To: References: <550DBAA6.9060807@buckeyemail.osu.edu> Message-ID: <550DC493.2050509@buckeyemail.osu.edu> Great. Did so here! Thanks! https://github.com/ipython/ipython/issues/8105 On 03/21/2015 02:48 PM, Thomas Kluyver wrote: > Hi Gregory, > > I can reproduce this - please file an issue so we don't lose track of it. > > Thanks, > Thomas > > On 21 March 2015 at 11:38, Gregory Simonian > > wrote: > > Hey everyone, > > I think I ran into a regression in IPython 3.0 where whenever I > interrupt running code, the IPython console and kernel crash. > Probably the easiest way I know to reproduce this is: > $ ipython console > In [1]: for i in range(1000000): > ...: print i > ...: > And then press Ctrl-C during execution. > > I expect that it will catch a KeyboardInterrupt exception and then > go back to an IPython prompt. However, instead it outputs: > Out [1]: 1 > 2 > <...> > 41654^CTraceback (most recent call last): > File "/usr/custom/Anaconda-2.0.1/bin/ipython", line 6, in > sys.exit(start_ipython()) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/__init__.py", > line 120, in start_ipython > return launch_new_instance(argv=argv, **kwargs) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/config/application.py", > line 574, in launch_instance > app.start() > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/ipapp.py", > line 367, in start > return self.subapp.start() > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/ipapp.py", > line 371, in start > self.shell.mainloop() > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", > line 407, in mainloop > self.interact(display_banner=display_banner) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", > line 568, in interact > self.run_cell(source_raw) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", > line 168, in run_cell > self.handle_input_request(msg_id, timeout=0.05) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py", > line 373, in handle_input_request > req = self.client.stdin_channel.get_msg(timeout=timeout) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/kernel/blocking/channels.py", > line 50, in get_msg > ready = self.socket.poll(timeout) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/zmq/sugar/socket.py", > line 448, in poll > evts = dict(p.poll(timeout)) > File > "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/zmq/sugar/poll.py", > line 101, in poll > return zmq_poll(self.sockets, timeout=timeout) > File "zmq/backend/cython/_poll.pyx", line 115, in > zmq.backend.cython._poll.zmq_poll (zmq/backend/cython/_poll.c:1586) > File "zmq/backend/cython/checkrc.pxd", line 21, in > zmq.backend.cython.checkrc._check_rc (zmq/backend/cython/_poll.c:2016) > raise ZMQError(errno) > ZMQError: Interrupted system call > > If you suspect this is an IPython bug, please report it at: > https://github.com/ipython/ipython/issues > or send an email to the mailing list at ipython-dev at scipy.org > > > You can print a more detailed traceback right now with "%tb", or > use "%debug" > to interactively debug it. > > Extra-detailed tracebacks for bug-reporting purposes can be > enabled via: > %config Application.verbose_crash=True > $ > > Dropping me back at the shell. This doesn't occur in just running > plain "$ ipython", so the kernel should have something to do with it. > > I am running IPython 3.0 through Anaconda on CentOS 6.6.I hadn't > encountered this bug in IPython 2. Maybe other people can confirm > if it occurs for them. And if so, what additional info I would > need to file a bug report. Thanks! > > > Gregory Simonian > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://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: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: OpenPGP digital signature URL: From damontallen at gmail.com Sun Mar 22 08:53:36 2015 From: damontallen at gmail.com (Damon Allen) Date: Sun, 22 Mar 2015 08:53:36 -0400 Subject: [IPython-dev] Embedded Videos in Slideshows In-Reply-To: References: Message-ID: Dami?n, Actually once I got the existing slide shows working I went to work on the underlying libraries that I wrote for the course. A side from a few updates, that I verified did not break anything, I have not touched them. I am planning on developing on a second course soon so if I see the problem again I'll let you know. Regards, Damon On Fri, Mar 20, 2015 at 8:51 PM, Dami?n Avila wrote: > A little late ;-) but finally answering... > > >Since I fixed the playback problem, I'm just curious. > > I did not notice any of that, but I did not make to much presentations > with audio.... are you still seeing the same on the latest release? > > Thanks, and sorry for the delay, it gets lost between a mountain of > emails... > > 2014-03-21 0:02 GMT-03:00 Damon Allen : > > Dami?n, >> >> I have one more question on the topic. I noticed if I have an cell at >> the top of the notebook that is set to be skipped in the presentation, it >> messes up the audio control's autoplay. Specifically the automatic pause >> of playback when I move on to the next slide. Has this been noticed >> elsewhere? >> >> I noticed that the top cell was getting switched to a markdown cell from >> a Heading 1, and so I added a cell at the top to act as a buffer at the >> top. Once I started the slideshow, the audio controls would start playing >> correctly but they would keep playing once I advanced to the next slide. >> However when I removed the skipped cell at the top the problem went away. >> >> As for the top cell switching from Heading 1 to markdown, I cannot rule >> out that the cause was that my mouse accidentally clicking on the drop down >> menu since I haven't reproduced it. >> >> Since I fixed the playback problem, I'm just curious. >> >> Thanks, >> >> Damon >> >> Damon T. Allen Ph.D. >> Adjunct Professor >> (352) 234-3266 >> damontallen at gmail.com >> 344 Rinker Hall >> College of Construction Management >> University of Florida >> >> >> On Tue, Mar 18, 2014 at 8:42 PM, Damon Allen >> wrote: >> >>> Thanks for answering my question so promptly. I'll tell my students to >>> use Chrome if it is an issue for them. >>> >>> >>> >>> Damon T. Allen Ph.D. >>> Adjunct Professor >>> (352) 234-3266 >>> damontallen at gmail.com >>> 344 Rinker Hall >>> College of Construction Management >>> University of Florida >>> >>> >>> On Tue, Mar 18, 2014 at 8:11 PM, Dami?n Avila >>> wrote: >>> >>>> I ask to google... and I found I have already answered myself... ja ja >>>> >>>> https://github.com/damianavila/live_reveal/issues/4 >>>> >>>> not a good sign, I think ;-) >>>> >>>> >>>> 2014-03-18 19:20 GMT-03:00 Damon Allen : >>>> >>>> The notebook is at: >>>>> >>>>> >>>>> http://nbviewer.ipython.org/github/damontallen/Construction-Lectures/blob/master/Week%200%20-%20Greetings.ipynb >>>>> >>>>> The slideshow is at: >>>>> >>>>> >>>>> http://damontallen.github.io/Construction-Lectures/Week%200%20-%20Greetings.slides.html#/ >>>>> >>>>> And this problem also occurs when I use >>>>> >>>>> ipython nbconvert "Week 0 - Greetings.ipynb" --to slides --post serve >>>>> >>>>> Thanks for looking into it. >>>>> >>>>> >>>>> >>>>> Damon T. Allen Ph.D. >>>>> Adjunct Professor >>>>> (352) 234-3266 >>>>> damontallen at gmail.com >>>>> 344 Rinker Hall >>>>> College of Construction Management >>>>> University of Florida >>>>> >>>>> >>>>> On Tue, Mar 18, 2014 at 6:13 PM, Dami?n Avila >>>>> wrote: >>>>> >>>>>> Have you seen this problem using the slideshow generated with >>>>>> IPython.nbconvert? >>>>>> It can be an issue with reveal.js itself... can you provided me with >>>>>> an example notebook to study the case? >>>>>> >>>>>> Thanks. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 2014-03-18 18:56 GMT-03:00 Damon Allen : >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Does running a slideshow force embedded YouTube videos to play in >>>>>>> flash instead of HTML5? I've found that in while running Firefox in Ubuntu >>>>>>> I cannot play YouTube videos in a slideshow. I can watch the video in >>>>>>> Firefox if it isn't in a slideshow and if I the slideshow runs in Chrome >>>>>>> everything works. >>>>>>> >>>>>>> This isn't a big deal since most of my students are running Windows >>>>>>> and they will be able to use up-to-date versions of the flashplayer, but I >>>>>>> am curious if there could be a fix to either reveal or nbconvert that would >>>>>>> correct this. >>>>>>> >>>>>>> As it stands, I need to switch my development from using Firefox to >>>>>>> Chrome. >>>>>>> >>>>>>> I'm still using IPython 1.2.1. >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Damon >>>>>>> >>>>>>> _______________________________________________ >>>>>>> IPython-dev mailing list >>>>>>> IPython-dev at scipy.org >>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Dami?n Avila >>>>>> Scientific Python Developer >>>>>> Quantitative Finance Analyst >>>>>> Statistics, Biostatistics and Econometrics Consultant >>>>>> Biochemist >>>>>> >>>>>> _______________________________________________ >>>>>> IPython-dev mailing list >>>>>> IPython-dev at scipy.org >>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> IPython-dev mailing list >>>>> IPython-dev at scipy.org >>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> Dami?n Avila >>>> Scientific Python Developer >>>> Quantitative Finance Analyst >>>> Statistics, Biostatistics and Econometrics Consultant >>>> Biochemist >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > *Dami?n* > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From damontallen at gmail.com Sun Mar 22 09:10:20 2015 From: damontallen at gmail.com (Damon Allen) Date: Sun, 22 Mar 2015 09:10:20 -0400 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: Dami?n, I developed a series of slide shows for a course I teach and host them on github.io since it was the best option at the time. One of the thing that I liked about the slide shows over PowerPoint was that if a slide contained more information than would fit on a screen then it would have a vertical scroll bar show up. This allowed me to have large images and tables show up with the relevant text. I just tested one of these slides on nbviewer and that feature does not work. Was this a design choice or is it a bug? ( Example - sorry about the autoplay audio.) Regards, Damon On Fri, Mar 20, 2015 at 9:37 PM, Dami?n Avila wrote: > >However, we need to look at some notebook UI/UX options for getting > access to all of the configuration features (might as well), which does > present a bit of a challenge. > > That's the key... the UI/UX to make the config available without making > the "configuration" a mess ;-) > > > As a first step I would like to disable the animation in > livereveal/RISE, I can live with the animation on nbviewer.I'll try to look > into slides.reveal.tpl, thanks for the pointer. > > Modifying slides_reveal.tpl will let you "config" things in nbconverted > slides... but if you want to modify this in RISE, you need to set up the > config in other way... check this: > https://github.com/damianavila/RISE#configure-your-own-options > > Remember that RISE and IPython slides are related but different things: > > * RISE is a notebook changed on the fly to render as a reveal.js-based > slideshow... but it is LIVE as the notebook is... because it is a notebook > ;-) > > * IPython slides are just STATIC html/js/css generated by the > IPython.nbconvert machinery using reveal.js as part of the machinery to > render the STATIC slides an a slideshow... but the code can no be run > there. Finally, the slides on nbviewer are just another way to experience > the STATIC slides ;-) > > Probably you know that... but I take to opportunity to make the > clarification so people do not confuse one with the other one. > > Cheers. > > > 2015-03-20 20:23 GMT-03:00 Antonino Ingargiola : > >> >> On Fri, Mar 20, 2015 at 3:20 PM, Nicholas Bollweg > > wrote: >>> >>> As a first step I would like to disable the animation in >>>> livereveal/RISE, I can live with the animation on nbviewer.I'll try to look >>>> into slides.reveal.tpl, thanks for the pointer. >>>> >>> >>> Yeah, while the nbconvert template that will respect slideshow-level >>> metadata (here >>> ) >>> needs to be changed in ipython/ipython, we should play with the UX in >>> livreveal first. >>> >> >> link saved ;). >> >> >>> Are you still referring to the animation or to the >>>> powerpoint/libreoffice conversion here? >>>> >>> >>> Was talking about the ability to do any kind of reveal configuration... >>> hadn't responded to the powerpoint thing. But since you mention it... >>> >>> If we're talking about dreams, mine is to kill powerpoint :P >>> >> >> I was thinking like this a few years ago, doing presentation in beamer >> and so on. But then I found that in the every-day practice of >> presentations (at least in science), you continuously do a mix&match work >> copying slides from old presentations (yours and colleagues, and for many >> powerpoint is the standard), fixing errors and annotating slides during >> talks and so on, there is no much time for the slides, adding an arrow or a >> circle to highlight something must be immediate. The powerpoint/libreoffice >> approach here has an edge. >> >> Right now I have 6 notebooks open with similar analysis on different data >> files. I need to make a report presentation. Do you think I will make >> another notebook? It is just faster if I dump everything (I mean figures >> and latex formulas) in powerpoint and add just a few words for create a >> logical story. >> >> The notebook is fantastic tool to create another kind of presentations in >> which you show in dept a computational process. >> >> Aside from Pandoc, which is already available, there is python-pptx >>> , which could serve as a baseline >>> for building an nbconvert formatter. Perhaps a smarter application of >>> pandoc to the slides is the best bet to get to where you want to go... I >>> would be very surprised if someone hadn't done this before! >>> >> >> Pandoc is powerful but close to impossible to install on windows. >> python-pptx on the contrary looks a really interesting project, thanks for >> mentioning it :). >> >> Antonio >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > *Dami?n* > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From maximilian.albert at gmail.com Mon Mar 23 08:41:07 2015 From: maximilian.albert at gmail.com (Maximilian Albert) Date: Mon, 23 Mar 2015 12:41:07 +0000 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output Message-ID: Hi all, I know this has been brought up a few times before on various forums, but I'm getting a bit lost in all the recent changes to nbconvert, templating, etc., and most of the info I can find online is somewhat out of date. Is there currently a way to convert a notebook to PDF which removes all the input code cells *and* omits the "Out[]" prompts in the converted output? Removing the input code cells is easy: the edited version of this answer [1] on StackOverflow works beautifully. However, the converted output still has the "Out[]" prompts. I tried to fiddle with the template but didn't manage to get rid of it. Am I missing something or is this currently not easily possible? Many thanks, Max P.S.: It's already been a little while, but I'd like to extend a huge thanks to the dev team for their awesome work on the 3.0 release. Fantastic job, everyone!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From damianavila at gmail.com Mon Mar 23 08:49:43 2015 From: damianavila at gmail.com (=?UTF-8?Q?Dami=C3=A1n_Avila?=) Date: Mon, 23 Mar 2015 09:49:43 -0300 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: Probably something we lost in the integration, can you open an issue in the nbviewer repo to track this... this should be working IMHO 2015-03-22 10:10 GMT-03:00 Damon Allen : > Dami?n, > > I developed a series of slide shows for a course I teach and host them on > github.io since it was the best option at the time. One of the thing > that I liked about the slide shows over PowerPoint was that if a slide > contained more information than would fit on a screen then it would have a > vertical scroll bar show up. This allowed me to have large images and > tables show up with the relevant text. I just tested one of these slides > on nbviewer and that feature does not work. Was this a design choice or is > it a bug? (Example > > - sorry about the autoplay audio.) > > Regards, > Damon > > > On Fri, Mar 20, 2015 at 9:37 PM, Dami?n Avila > wrote: > >> >However, we need to look at some notebook UI/UX options for getting >> access to all of the configuration features (might as well), which does >> present a bit of a challenge. >> >> That's the key... the UI/UX to make the config available without making >> the "configuration" a mess ;-) >> >> > As a first step I would like to disable the animation in >> livereveal/RISE, I can live with the animation on nbviewer.I'll try to look >> into slides.reveal.tpl, thanks for the pointer. >> >> Modifying slides_reveal.tpl will let you "config" things in nbconverted >> slides... but if you want to modify this in RISE, you need to set up the >> config in other way... check this: >> https://github.com/damianavila/RISE#configure-your-own-options >> >> Remember that RISE and IPython slides are related but different things: >> >> * RISE is a notebook changed on the fly to render as a reveal.js-based >> slideshow... but it is LIVE as the notebook is... because it is a notebook >> ;-) >> >> * IPython slides are just STATIC html/js/css generated by the >> IPython.nbconvert machinery using reveal.js as part of the machinery to >> render the STATIC slides an a slideshow... but the code can no be run >> there. Finally, the slides on nbviewer are just another way to experience >> the STATIC slides ;-) >> >> Probably you know that... but I take to opportunity to make the >> clarification so people do not confuse one with the other one. >> >> Cheers. >> >> >> 2015-03-20 20:23 GMT-03:00 Antonino Ingargiola : >> >>> >>> On Fri, Mar 20, 2015 at 3:20 PM, Nicholas Bollweg < >>> nick.bollweg at gmail.com> wrote: >>>> >>>> As a first step I would like to disable the animation in >>>>> livereveal/RISE, I can live with the animation on nbviewer.I'll try to look >>>>> into slides.reveal.tpl, thanks for the pointer. >>>>> >>>> >>>> Yeah, while the nbconvert template that will respect slideshow-level >>>> metadata (here >>>> ) >>>> needs to be changed in ipython/ipython, we should play with the UX in >>>> livreveal first. >>>> >>> >>> link saved ;). >>> >>> >>>> Are you still referring to the animation or to the >>>>> powerpoint/libreoffice conversion here? >>>>> >>>> >>>> Was talking about the ability to do any kind of reveal configuration... >>>> hadn't responded to the powerpoint thing. But since you mention it... >>>> >>>> If we're talking about dreams, mine is to kill powerpoint :P >>>> >>> >>> I was thinking like this a few years ago, doing presentation in beamer >>> and so on. But then I found that in the every-day practice of >>> presentations (at least in science), you continuously do a mix&match work >>> copying slides from old presentations (yours and colleagues, and for many >>> powerpoint is the standard), fixing errors and annotating slides during >>> talks and so on, there is no much time for the slides, adding an arrow or a >>> circle to highlight something must be immediate. The powerpoint/libreoffice >>> approach here has an edge. >>> >>> Right now I have 6 notebooks open with similar analysis on different >>> data files. I need to make a report presentation. Do you think I will make >>> another notebook? It is just faster if I dump everything (I mean figures >>> and latex formulas) in powerpoint and add just a few words for create a >>> logical story. >>> >>> The notebook is fantastic tool to create another kind of presentations >>> in which you show in dept a computational process. >>> >>> Aside from Pandoc, which is already available, there is python-pptx >>>> , which could serve as a >>>> baseline for building an nbconvert formatter. Perhaps a smarter application >>>> of pandoc to the slides is the best bet to get to where you want to go... I >>>> would be very surprised if someone hadn't done this before! >>>> >>> >>> Pandoc is powerful but close to impossible to install on windows. >>> python-pptx on the contrary looks a really interesting project, thanks for >>> mentioning it :). >>> >>> Antonio >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> >> -- >> *Dami?n* >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- *Dami?n* -------------- next part -------------- An HTML attachment was scrubbed... URL: From damontallen at gmail.com Mon Mar 23 11:48:04 2015 From: damontallen at gmail.com (Damon Allen) Date: Mon, 23 Mar 2015 11:48:04 -0400 Subject: [IPython-dev] Slides on nbviewer!!! In-Reply-To: References: Message-ID: It looks like #433 is that issue. Regards, Damon On Mon, Mar 23, 2015 at 8:49 AM, Dami?n Avila wrote: > Probably something we lost in the integration, can you open an issue in > the nbviewer repo to track this... this should be working IMHO > > 2015-03-22 10:10 GMT-03:00 Damon Allen : > > Dami?n, >> >> I developed a series of slide shows for a course I teach and host them on >> github.io since it was the best option at the time. One of the thing >> that I liked about the slide shows over PowerPoint was that if a slide >> contained more information than would fit on a screen then it would have a >> vertical scroll bar show up. This allowed me to have large images and >> tables show up with the relevant text. I just tested one of these slides >> on nbviewer and that feature does not work. Was this a design choice or is >> it a bug? (Example >> >> - sorry about the autoplay audio.) >> >> Regards, >> Damon >> >> >> On Fri, Mar 20, 2015 at 9:37 PM, Dami?n Avila >> wrote: >> >>> >However, we need to look at some notebook UI/UX options for getting >>> access to all of the configuration features (might as well), which does >>> present a bit of a challenge. >>> >>> That's the key... the UI/UX to make the config available without making >>> the "configuration" a mess ;-) >>> >>> > As a first step I would like to disable the animation in >>> livereveal/RISE, I can live with the animation on nbviewer.I'll try to look >>> into slides.reveal.tpl, thanks for the pointer. >>> >>> Modifying slides_reveal.tpl will let you "config" things in nbconverted >>> slides... but if you want to modify this in RISE, you need to set up the >>> config in other way... check this: >>> https://github.com/damianavila/RISE#configure-your-own-options >>> >>> Remember that RISE and IPython slides are related but different things: >>> >>> * RISE is a notebook changed on the fly to render as a reveal.js-based >>> slideshow... but it is LIVE as the notebook is... because it is a notebook >>> ;-) >>> >>> * IPython slides are just STATIC html/js/css generated by the >>> IPython.nbconvert machinery using reveal.js as part of the machinery to >>> render the STATIC slides an a slideshow... but the code can no be run >>> there. Finally, the slides on nbviewer are just another way to experience >>> the STATIC slides ;-) >>> >>> Probably you know that... but I take to opportunity to make the >>> clarification so people do not confuse one with the other one. >>> >>> Cheers. >>> >>> >>> 2015-03-20 20:23 GMT-03:00 Antonino Ingargiola : >>> >>>> >>>> On Fri, Mar 20, 2015 at 3:20 PM, Nicholas Bollweg < >>>> nick.bollweg at gmail.com> wrote: >>>>> >>>>> As a first step I would like to disable the animation in >>>>>> livereveal/RISE, I can live with the animation on nbviewer.I'll try to look >>>>>> into slides.reveal.tpl, thanks for the pointer. >>>>>> >>>>> >>>>> Yeah, while the nbconvert template that will respect slideshow-level >>>>> metadata (here >>>>> ) >>>>> needs to be changed in ipython/ipython, we should play with the UX in >>>>> livreveal first. >>>>> >>>> >>>> link saved ;). >>>> >>>> >>>>> Are you still referring to the animation or to the >>>>>> powerpoint/libreoffice conversion here? >>>>>> >>>>> >>>>> Was talking about the ability to do any kind of reveal >>>>> configuration... hadn't responded to the powerpoint thing. But since you >>>>> mention it... >>>>> >>>>> If we're talking about dreams, mine is to kill powerpoint :P >>>>> >>>> >>>> I was thinking like this a few years ago, doing presentation in beamer >>>> and so on. But then I found that in the every-day practice of >>>> presentations (at least in science), you continuously do a mix&match work >>>> copying slides from old presentations (yours and colleagues, and for many >>>> powerpoint is the standard), fixing errors and annotating slides during >>>> talks and so on, there is no much time for the slides, adding an arrow or a >>>> circle to highlight something must be immediate. The powerpoint/libreoffice >>>> approach here has an edge. >>>> >>>> Right now I have 6 notebooks open with similar analysis on different >>>> data files. I need to make a report presentation. Do you think I will make >>>> another notebook? It is just faster if I dump everything (I mean figures >>>> and latex formulas) in powerpoint and add just a few words for create a >>>> logical story. >>>> >>>> The notebook is fantastic tool to create another kind of presentations >>>> in which you show in dept a computational process. >>>> >>>> Aside from Pandoc, which is already available, there is python-pptx >>>>> , which could serve as a >>>>> baseline for building an nbconvert formatter. Perhaps a smarter application >>>>> of pandoc to the slides is the best bet to get to where you want to go... I >>>>> would be very surprised if someone hadn't done this before! >>>>> >>>> >>>> Pandoc is powerful but close to impossible to install on windows. >>>> python-pptx on the contrary looks a really interesting project, thanks for >>>> mentioning it :). >>>> >>>> Antonio >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> >>> -- >>> *Dami?n* >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > *Dami?n* > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Mon Mar 23 14:40:50 2015 From: kikocorreoso at gmail.com (Kiko) Date: Mon, 23 Mar 2015 19:40:50 +0100 Subject: [IPython-dev] Jupytor notebook extension Message-ID: Hi all, I'm teaching some python to people with very few programming experience and I created a dummy extension to embed pythontutor on the jupyter notebook. It provides a cell magic and the code cell will be executed within an IFrame with pythontutor. Here you can find an example: http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/Jupytor.ipynb The repo is here: https://github.com/kikocorreoso/jupytor I hope it could be useful to someone. Best. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jared at jaredforsyth.com Mon Mar 23 15:01:54 2015 From: jared at jaredforsyth.com (Jared Forsyth) Date: Mon, 23 Mar 2015 19:01:54 +0000 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: That's super cool! Definitely useful. I wonder how easy it would be to just use pythontutor on the plugin-side and avoid needing the iframe. On Mon, Mar 23, 2015 at 12:41 PM Kiko wrote: > Hi all, > > I'm teaching some python to people with very few programming experience > and I created a dummy extension to embed pythontutor on the jupyter > notebook. > > It provides a cell magic and the code cell will be executed within an > IFrame with pythontutor. > > Here you can find an example: > http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/Jupytor.ipynb > > The repo is here: https://github.com/kikocorreoso/jupytor > > I hope it could be useful to someone. > > Best. > _______________________________________________ > 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 Mar 23 15:06:17 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 23 Mar 2015 12:06:17 -0700 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output In-Reply-To: References: Message-ID: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> Hey ! Le 23 mars 2015 ? 05:41, Maximilian Albert a ?crit : > Hi all, > > I know this has been brought up a few times before on various forums, but I'm getting a bit lost in all the recent changes to nbconvert, templating, etc., and most of the info I can find online is somewhat out of date. > > Is there currently a way to convert a notebook to PDF which removes all the input code cells *and* omits the "Out[]" prompts in the converted output? Removing the input code cells is easy: the edited version of this answer [1] on StackOverflow works beautifully. However, the converted output still has the "Out[]" prompts. I tried to fiddle with the template but didn't manage to get rid of it. Am I missing something or is this currently not easily possible? I guess you need to inherit the following block : ((* block execute_result scoped *)) ((*- for type in output.data | filter_data_type -*)) ((*- if type in ['text/plain']*)) ((( add_prompt(output.data['text/plain'] | escape_latex, cell, 'Out', 'outcolor') ))) ((* else -*)) \texttt{\color{outcolor}Out[{\color{outcolor}((( cell.execution_count )))}]:}((( super() ))) ((*- endif -*)) ((*- endfor -*)) ((* endblock execute_result *)) form IPython/nbconvert/templates/latex/style_ipython.tplx And replace by what you wish. You did it for input cells, so you should achieve it here :-) > Many thanks, > Max > > P.S.: It's already been a little while, but I'd like to extend a huge thanks to the dev team for their awesome work on the 3.0 release. Fantastic job, everyone!! Thanks ! -- M From chaugan at visi.com Mon Mar 23 17:24:22 2015 From: chaugan at visi.com (Carl Haugan) Date: Mon, 23 Mar 2015 16:24:22 -0500 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook References: Message-ID: An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Mar 23 17:35:39 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 23 Mar 2015 14:35:39 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: Hi Carl, On 23 March 2015 at 14:24, Carl Haugan wrote: > I can work around this by editing the timeout in my local copy of > execute.py, but it would be nice to do this programmatically. The timeout value is a configurable, so you should be able to pass it a value at the command line with something like "--ExecutePreprocessor.timeout None". Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.blank at gmail.com Mon Mar 23 17:51:14 2015 From: doug.blank at gmail.com (Doug Blank) Date: Mon, 23 Mar 2015 17:51:14 -0400 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: That is definitely an improvement over my simply version that I put together last week: http://jupyter.cs.brynmawr.edu/hub/dblank/public/Examples/Online%20Python%20Tutor.ipynb Not sure about the name "jupytor" though... "tutor" would be easier for beginners (at least in English). Thanks for developing and sharing this! -Doug On Mon, Mar 23, 2015 at 2:40 PM, Kiko wrote: > Hi all, > > I'm teaching some python to people with very few programming experience > and I created a dummy extension to embed pythontutor on the jupyter > notebook. > > It provides a cell magic and the code cell will be executed within an > IFrame with pythontutor. > > Here you can find an example: > http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/Jupytor.ipynb > > The repo is here: https://github.com/kikocorreoso/jupytor > > I hope it could be useful to someone. > > Best. > > _______________________________________________ > 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 chaugan at visi.com Mon Mar 23 18:05:25 2015 From: chaugan at visi.com (Carl Haugan) Date: Mon, 23 Mar 2015 17:05:25 -0500 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From tritemio at gmail.com Mon Mar 23 18:12:05 2015 From: tritemio at gmail.com (Antonino Ingargiola) Date: Mon, 23 Mar 2015 15:12:05 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: On Mon, Mar 23, 2015 at 3:05 PM, Carl Haugan wrote: > Hi Thomas, > Thank you for the pointer, I used > > subprocess.Popen('ipython nbconvert --ExecutePreprocessor.timeout=120 > --execute --to notebook --output out.ipynb in.ipynb') > > and it all works perfectly. > Sorry for jumping in, for completeness sake (and future reference), how do we change the timeout in same thread when using ExecutePreprocessor()? Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Mon Mar 23 18:30:16 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Mon, 23 Mar 2015 15:30:16 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: <63ADCE35-A25E-4842-B179-B3AF2D307DAB@gmail.com> Le 23 mars 2015 ? 15:12, Antonino Ingargiola a ?crit : > Sorry for jumping in, for completeness sake (and future reference), how do we change the timeout in same thread when using ExecutePreprocessor()? What do you mean by "in same thread" ? -- M -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Mon Mar 23 18:38:41 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 23 Mar 2015 15:38:41 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: On 23 March 2015 at 15:12, Antonino Ingargiola wrote: > Sorry for jumping in, for completeness sake (and future reference), how do > we change the timeout in same thread when using ExecutePreprocessor()? > You can pass in timeout= as a keyword argument when creating it, or set it as an attribute on the preprocessor instance. E.g. nb = nbformat.read(nbPath, as_version=4) ep = ExecutePreprocessor(timeout=None) # Option 1 ep.timeout = 60 # Option 2 ep.preprocess(nb, {'metadata': {'path': nbPath}}) nbformat.write(nb, nbPath) Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From tritemio at gmail.com Mon Mar 23 19:13:03 2015 From: tritemio at gmail.com (Antonino Ingargiola) Date: Mon, 23 Mar 2015 16:13:03 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: References: Message-ID: On Mon, Mar 23, 2015 at 3:38 PM, Thomas Kluyver wrote: > On 23 March 2015 at 15:12, Antonino Ingargiola wrote: > >> Sorry for jumping in, for completeness sake (and future reference), how >> do we change the timeout in same thread when using ExecutePreprocessor()? >> > > You can pass in timeout= as a keyword argument when creating it, or set it > as an attribute on the preprocessor instance. > > E.g. > > nb = nbformat.read(nbPath, as_version=4) > ep = ExecutePreprocessor(timeout=None) # Option 1 > ep.timeout = 60 # Option 2 > ep.preprocess(nb, {'metadata': {'path': nbPath}}) > nbformat.write(nb, nbPath) > > Thomas > Great thanks! I'm going to use it to replace runipy in a script that batch execute all the notebooks involved for a paper. Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From tritemio at gmail.com Mon Mar 23 19:14:46 2015 From: tritemio at gmail.com (Antonino Ingargiola) Date: Mon, 23 Mar 2015 16:14:46 -0700 Subject: [IPython-dev] running/getting output into a new programmatically-generated notebook In-Reply-To: <63ADCE35-A25E-4842-B179-B3AF2D307DAB@gmail.com> References: <63ADCE35-A25E-4842-B179-B3AF2D307DAB@gmail.com> Message-ID: On Mon, Mar 23, 2015 at 3:30 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 23 mars 2015 ? 15:12, Antonino Ingargiola a ?crit > : > > Sorry for jumping in, for completeness sake (and future reference), how do > we change the timeout in same thread when using ExecutePreprocessor()? > > > What do you mean by "in same thread" ? > Sorry, I meant same process, without using popen. Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From maximilian.albert at gmail.com Mon Mar 23 21:08:25 2015 From: maximilian.albert at gmail.com (Maximilian Albert) Date: Tue, 24 Mar 2015 01:08:25 +0000 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output In-Reply-To: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> References: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> Message-ID: 2015-03-23 19:06 GMT+00:00 Matthias Bussonnier : > > I guess you need to inherit the following block : > > > ((* block execute_result scoped *)) > ((*- for type in output.data | filter_data_type -*)) > ((*- if type in ['text/plain']*)) > ((( add_prompt(output.data['text/plain'] | escape_latex, cell, > 'Out', 'outcolor') ))) > ((* else -*)) > \texttt{\color{outcolor}Out[{\color{outcolor}((( cell.execution_count > )))}]:}((( super() ))) > ((*- endif -*)) > ((*- endfor -*)) > ((* endblock execute_result *)) > > > form IPython/nbconvert/templates/latex/style_ipython.tplx > > And replace by what you wish. > Thanks for the suggestion! That's precisely what I tried, but the problem seems to be that the call to super() somehow adds an additional Out[] prompt. I'll try to dig deeper into this when I get the time (and/or make a minimal example available so that it can easily be reproduced), but if anyone has any quick ideas I'm happy to hear them. Cheers, Max P.S.: I noticed I forgot to include the link to the StackOverflow question I mentioned in my original email. Here it is: http://stackoverflow.com/questions/19524554/suppress-code-in-nbconvert-ipython -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Tue Mar 24 03:24:27 2015 From: kikocorreoso at gmail.com (Kiko) Date: Tue, 24 Mar 2015 08:24:27 +0100 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: 2015-03-23 20:01 GMT+01:00 Jared Forsyth : > That's super cool! Definitely useful. I wonder how easy it would be to > just use pythontutor on > the plugin-side and avoid needing the iframe. > It would need deeper research to integrate pythontutor in IPython. I've never dived into the pythontutor code. My version is the poor man version :-P > > On Mon, Mar 23, 2015 at 12:41 PM Kiko wrote: > >> Hi all, >> >> I'm teaching some python to people with very few programming experience >> and I created a dummy extension to embed pythontutor on the jupyter >> notebook. >> >> It provides a cell magic and the code cell will be executed within an >> IFrame with pythontutor. >> >> Here you can find an example: >> http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/Jupytor.ipynb >> >> The repo is here: https://github.com/kikocorreoso/jupytor >> >> I hope it could be useful to someone. >> >> Best. >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 Tue Mar 24 03:28:52 2015 From: kikocorreoso at gmail.com (Kiko) Date: Tue, 24 Mar 2015 08:28:52 +0100 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: 2015-03-23 22:51 GMT+01:00 Doug Blank : > That is definitely an improvement over my simply version that I put > together last week: > > > http://jupyter.cs.brynmawr.edu/hub/dblank/public/Examples/Online%20Python%20Tutor.ipynb > Hey, I didn't know you had this!! My version does basically the same. > > > Not sure about the name "jupytor" though... "tutor" would be easier for > beginners (at least in English). > > Thanks for developing and sharing this! > Jupytor comes from JUPYter + pythontuTOR. I know it is an ugly name and if someone wants to provide a new name it will be welcome. Tutor could be a possibility. Best. > > -Doug > > On Mon, Mar 23, 2015 at 2:40 PM, Kiko wrote: > >> Hi all, >> >> I'm teaching some python to people with very few programming experience >> and I created a dummy extension to embed pythontutor on the jupyter >> notebook. >> >> It provides a cell magic and the code cell will be executed within an >> IFrame with pythontutor. >> >> Here you can find an example: >> http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/Jupytor.ipynb >> >> The repo is here: https://github.com/kikocorreoso/jupytor >> >> I hope it could be useful to someone. >> >> Best. >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 aaron.oleary at gmail.com Tue Mar 24 06:35:31 2015 From: aaron.oleary at gmail.com (Aaron O'Leary) Date: Tue, 24 Mar 2015 10:35:31 +0000 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output In-Reply-To: References: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> Message-ID: Hi Max, This is what you need: ((*- extends 'article.tplx' -*)) % Disable input cells ((* block input_group *)) ((* endblock input_group *)) % Disable output cells ((* block output_group *)) ((* endblock output_group *)) You need to use 'output_group' instead of 'execute_result'. There are quite a number of elements in the output and 'output_group' is the block that covers all of them. You can get an overview of the block hierarchy by looking at 'IPython/nbconvert/templates/latex/skeleton/null.tplx'. aaron On 24 March 2015 at 01:08, Maximilian Albert wrote: > 2015-03-23 19:06 GMT+00:00 Matthias Bussonnier < > bussonniermatthias at gmail.com>: > >> >> I guess you need to inherit the following block : >> >> >> ((* block execute_result scoped *)) >> ((*- for type in output.data | filter_data_type -*)) >> ((*- if type in ['text/plain']*)) >> ((( add_prompt(output.data['text/plain'] | escape_latex, >> cell, 'Out', 'outcolor') ))) >> ((* else -*)) >> \texttt{\color{outcolor}Out[{\color{outcolor}((( cell.execution_count >> )))}]:}((( super() ))) >> ((*- endif -*)) >> ((*- endfor -*)) >> ((* endblock execute_result *)) >> >> >> form IPython/nbconvert/templates/latex/style_ipython.tplx >> >> And replace by what you wish. >> > > > Thanks for the suggestion! That's precisely what I tried, but the problem > seems to be that the call to super() somehow adds an additional Out[] > prompt. I'll try to dig deeper into this when I get the time (and/or make a > minimal example available so that it can easily be reproduced), but if > anyone has any quick ideas I'm happy to hear them. > > Cheers, > Max > > P.S.: I noticed I forgot to include the link to the StackOverflow question > I mentioned in my original email. Here it is: > > > http://stackoverflow.com/questions/19524554/suppress-code-in-nbconvert-ipython > > > _______________________________________________ > 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 aaron.oleary at gmail.com Tue Mar 24 07:27:33 2015 From: aaron.oleary at gmail.com (Aaron O'Leary) Date: Tue, 24 Mar 2015 11:27:33 +0000 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output In-Reply-To: References: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> Message-ID: Sorry, I misread your question! You only want to remove the output prompts, not the whole output. Try this: ((*- extends 'article.tplx' -*)) % Disable input cells ((* block input_group *)) ((* endblock input_group *)) ((* block execute_result scoped *)) ((*- for type in output.data | filter_data_type -*)) ((*- if type in ['text/plain']*)) ((( output.data['text/plain'] | escape_latex ))) ((* else -*)) ((( super() ))) ((*- endif -*)) ((*- endfor -*)) ((* endblock execute_result *)) i.e. get rid of both the call to add_prompt and the manual prompt creation. On 24 March 2015 at 10:35, Aaron O'Leary wrote: > Hi Max, > > This is what you need: > > ((*- extends 'article.tplx' -*)) > > % Disable input cells > ((* block input_group *)) > ((* endblock input_group *)) > > % Disable output cells > ((* block output_group *)) > ((* endblock output_group *)) > > > You need to use 'output_group' instead of 'execute_result'. There are > quite a number of elements in the output and 'output_group' is the block > that covers all of them. > > You can get an overview of the block hierarchy by looking at > 'IPython/nbconvert/templates/latex/skeleton/null.tplx'. > > aaron > > > On 24 March 2015 at 01:08, Maximilian Albert > wrote: > >> 2015-03-23 19:06 GMT+00:00 Matthias Bussonnier < >> bussonniermatthias at gmail.com>: >> >>> >>> I guess you need to inherit the following block : >>> >>> >>> ((* block execute_result scoped *)) >>> ((*- for type in output.data | filter_data_type -*)) >>> ((*- if type in ['text/plain']*)) >>> ((( add_prompt(output.data['text/plain'] | escape_latex, >>> cell, 'Out', 'outcolor') ))) >>> ((* else -*)) >>> \texttt{\color{outcolor}Out[{\color{outcolor}((( cell.execution_count >>> )))}]:}((( super() ))) >>> ((*- endif -*)) >>> ((*- endfor -*)) >>> ((* endblock execute_result *)) >>> >>> >>> form IPython/nbconvert/templates/latex/style_ipython.tplx >>> >>> And replace by what you wish. >>> >> >> >> Thanks for the suggestion! That's precisely what I tried, but the problem >> seems to be that the call to super() somehow adds an additional Out[] >> prompt. I'll try to dig deeper into this when I get the time (and/or make a >> minimal example available so that it can easily be reproduced), but if >> anyone has any quick ideas I'm happy to hear them. >> >> Cheers, >> Max >> >> P.S.: I noticed I forgot to include the link to the StackOverflow >> question I mentioned in my original email. Here it is: >> >> >> http://stackoverflow.com/questions/19524554/suppress-code-in-nbconvert-ipython >> >> >> _______________________________________________ >> 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 Tue Mar 24 07:51:28 2015 From: markbak at gmail.com (Mark Bakker) Date: Tue, 24 Mar 2015 12:51:28 +0100 Subject: [IPython-dev] How to set state of widget in IPython3? Message-ID: Hello list. I am trying to set the state of a DropdownWidget (Or RadioButton) in IPython3. You didn't have to do that in the past, but even if I specify the value, it gives me an error. Simple example: This works: def plot_line(c='b'): plt.plot([0,1],color=c) interact(plot_line,c=['b','r','g']); This works in IPython2, but not in IPython3. In IPython3 it passes c=None to the function on initialization. def plot_line(c='b'): plt.plot([0,1],color=c) interact(plot_line,c=DropdownWidget(values=['b','r','g'])); Even when specifying the value, for example def plot_line(c='b'): plt.plot([0,1],color=c) interact(plot_line,c=DropdownWidget(value='r',values=['b','r','g'])); I get an error: KeyError: 'r'. Any thoughts on how to set the state when creating a DropwdownWidget (or RadioButtonWidget) using interact? Or is this a bug? Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Tue Mar 24 10:19:36 2015 From: kikocorreoso at gmail.com (Kiko) Date: Tue, 24 Mar 2015 15:19:36 +0100 Subject: [IPython-dev] How to set state of widget in IPython3? In-Reply-To: References: Message-ID: 2015-03-24 12:51 GMT+01:00 Mark Bakker : > Hello list. I am trying to set the state of a DropdownWidget (Or > RadioButton) in IPython3. You didn't have to do that in the past, but even > if I specify the value, it gives me an error. Simple example: > > This works: > > def plot_line(c='b'): > plt.plot([0,1],color=c) > interact(plot_line,c=['b','r','g']); > > This works in IPython2, but not in IPython3. In IPython3 it passes c=None > to the function on initialization. > > def plot_line(c='b'): > plt.plot([0,1],color=c) > interact(plot_line,c=DropdownWidget(values=['b','r','g'])); > > Even when specifying the value, for example > > def plot_line(c='b'): > plt.plot([0,1],color=c) > interact(plot_line,c=DropdownWidget(value='r',values=['b','r','g'])); > > I get an error: KeyError: 'r'. > > Any thoughts on how to set the state when creating a DropwdownWidget (or > RadioButtonWidget) using interact? Or is this a bug? > Hi, check this: http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Interactive%20Widgets/Widget%20List.ipynb In your example: w = widgets.Dropdown( options=['b', 'r', 'g'], value='r', description='Line Color:', ) def plot_line(c='b'): plt.figure() plt.plot([0,1],color=c) interact(plot_line, c = w) > > Thanks, > > Mark > > > > _______________________________________________ > 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 Tue Mar 24 11:52:24 2015 From: markbak at gmail.com (Mark Bakker) Date: Tue, 24 Mar 2015 16:52:24 +0100 Subject: [IPython-dev] How to set state of widget in IPython3? Message-ID: Thanks, Kiko. I should have noticed that the 'values' keyword had changed to the much better 'options' keyword in IPython3. Got a follow up question if you don't mind. When I use the same example, but with RadioButtons rather than a Dropdown widget, the radio buttons overlap with the descriptor (Line Color:). Any way to specify the distance between the descriptor and radio buttons? I think the default should probably not overlap the two. Here's an example: w = widgets.RadioButtons( options=['b', 'r', 'g'], value='r', description='Line Color:' ) def plot_line(c='b'): plt.figure() plt.plot([0,1],color=c) interact(plot_line, c = w); From: Kiko > Subject: Re: [IPython-dev] How to set state of widget in IPython3? > To: IPython developers list > Message-ID: > < > CAB-sx61bM7o+SU5jETDGhco9O1vt3EMvO6_ThR5WPvrmzO6snA at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > 2015-03-24 12:51 GMT+01:00 Mark Bakker : > > > Hello list. I am trying to set the state of a DropdownWidget (Or > > RadioButton) in IPython3. You didn't have to do that in the past, but > even > > if I specify the value, it gives me an error. Simple example: > > > > This works: > > > > def plot_line(c='b'): > > plt.plot([0,1],color=c) > > interact(plot_line,c=['b','r','g']); > > > > This works in IPython2, but not in IPython3. In IPython3 it passes c=None > > to the function on initialization. > > > > def plot_line(c='b'): > > plt.plot([0,1],color=c) > > interact(plot_line,c=DropdownWidget(values=['b','r','g'])); > > > > Even when specifying the value, for example > > > > def plot_line(c='b'): > > plt.plot([0,1],color=c) > > interact(plot_line,c=DropdownWidget(value='r',values=['b','r','g'])); > > > > I get an error: KeyError: 'r'. > > > > Any thoughts on how to set the state when creating a DropwdownWidget (or > > RadioButtonWidget) using interact? Or is this a bug? > > > > Hi, check this: > > http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Interactive%20Widgets/Widget%20List.ipynb > > In your example: > w = widgets.Dropdown( > options=['b', 'r', 'g'], > value='r', > description='Line Color:', > ) > > def plot_line(c='b'): > plt.figure() > plt.plot([0,1],color=c) > interact(plot_line, c = w) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jared at jaredforsyth.com Tue Mar 24 12:14:16 2015 From: jared at jaredforsyth.com (Jared Forsyth) Date: Tue, 24 Mar 2015 16:14:16 +0000 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: Tupytor :P On Tue, Mar 24, 2015 at 1:28 AM Kiko wrote: > 2015-03-23 22:51 GMT+01:00 Doug Blank : > >> That is definitely an improvement over my simply version that I put >> together last week: >> >> >> http://jupyter.cs.brynmawr.edu/hub/dblank/public/Examples/Online%20Python%20Tutor.ipynb >> > > Hey, I didn't know you had this!! My version does basically the same. > >> >> >> Not sure about the name "jupytor" though... "tutor" would be easier for >> beginners (at least in English). >> >> Thanks for developing and sharing this! >> > > Jupytor comes from JUPYter + pythontuTOR. I know it is an ugly name and if > someone wants to provide a new name it will be welcome. Tutor could be a > possibility. > > Best. > > >> >> -Doug >> >> On Mon, Mar 23, 2015 at 2:40 PM, Kiko wrote: >> >>> Hi all, >>> >>> I'm teaching some python to people with very few programming experience >>> and I created a dummy extension to embed pythontutor on the jupyter >>> notebook. >>> >>> It provides a cell magic and the code cell will be executed within an >>> IFrame with pythontutor. >>> >>> Here you can find an example: >>> http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/Jupytor.ipynb >>> >>> The repo is here: https://github.com/kikocorreoso/jupytor >>> >>> I hope it could be useful to someone. >>> >>> Best. >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://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 steve at holdenweb.com Tue Mar 24 13:10:05 2015 From: steve at holdenweb.com (Steve Holden) Date: Tue, 24 Mar 2015 17:10:05 +0000 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: <668C8D99-B781-472F-A2FF-089F6442B430@holdenweb.com> "Embdedded pytutor"? Sorry, can't help being literal sometimes. S On Mar 24, 2015, at 4:14 PM, Jared Forsyth wrote: > Tupytor :P > > On Tue, Mar 24, 2015 at 1:28 AM Kiko wrote: > 2015-03-23 22:51 GMT+01:00 Doug Blank : > That is definitely an improvement over my simply version that I put together last week: > > http://jupyter.cs.brynmawr.edu/hub/dblank/public/Examples/Online%20Python%20Tutor.ipynb > > Hey, I didn't know you had this!! My version does basically the same. > > > Not sure about the name "jupytor" though... "tutor" would be easier for beginners (at least in English). > > Thanks for developing and sharing this! > > Jupytor comes from JUPYter + pythontuTOR. I know it is an ugly name and if someone wants to provide a new name it will be welcome. Tutor could be a possibility. > > Best. > > > -Doug > > On Mon, Mar 23, 2015 at 2:40 PM, Kiko wrote: > Hi all, > > I'm teaching some python to people with very few programming experience and I created a dummy extension to embed pythontutor on the jupyter notebook. > > It provides a cell magic and the code cell will be executed within an IFrame with pythontutor. > > Here you can find an example: http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/Jupytor.ipynb > > The repo is here: https://github.com/kikocorreoso/jupytor > > I hope it could be useful to someone. > > Best. > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev -- Steve Holden steve at holdenweb.com / +1 571 484 6266 / +44 113 320 2335 / @holdenweb -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Tue Mar 24 13:15:02 2015 From: kikocorreoso at gmail.com (Kiko) Date: Tue, 24 Mar 2015 18:15:02 +0100 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: 2015-03-24 17:14 GMT+01:00 Jared Forsyth : > Tupytor :P > > Bad, in spanish it may sound like yourdickR >_< > On Tue, Mar 24, 2015 at 1:28 AM Kiko wrote: > >> 2015-03-23 22:51 GMT+01:00 Doug Blank : >> >>> That is definitely an improvement over my simply version that I put >>> together last week: >>> >>> >>> http://jupyter.cs.brynmawr.edu/hub/dblank/public/Examples/Online%20Python%20Tutor.ipynb >>> >> >> Hey, I didn't know you had this!! My version does basically the same. >> >>> >>> >>> Not sure about the name "jupytor" though... "tutor" would be easier for >>> beginners (at least in English). >>> >>> Thanks for developing and sharing this! >>> >> >> Jupytor comes from JUPYter + pythontuTOR. I know it is an ugly name and >> if someone wants to provide a new name it will be welcome. Tutor could be a >> possibility. >> >> Best. >> >> >>> >>> -Doug >>> >>> On Mon, Mar 23, 2015 at 2:40 PM, Kiko wrote: >>> >>>> Hi all, >>>> >>>> I'm teaching some python to people with very few programming experience >>>> and I created a dummy extension to embed pythontutor on the jupyter >>>> notebook. >>>> >>>> It provides a cell magic and the code cell will be executed within an >>>> IFrame with pythontutor. >>>> >>>> Here you can find an example: >>>> http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/Jupytor.ipynb >>>> >>>> The repo is here: https://github.com/kikocorreoso/jupytor >>>> >>>> I hope it could be useful to someone. >>>> >>>> Best. >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gaitan at gmail.com Tue Mar 24 13:21:08 2015 From: gaitan at gmail.com (=?UTF-8?B?TWFydMOtbiBHYWl0w6Fu?=) Date: Tue, 24 Mar 2015 14:21:08 -0300 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: On Tue, Mar 24, 2015 at 4:28 AM, Kiko wrote: > >> Not sure about the name "jupytor" though... "tutor" would be easier for >> beginners (at least in English). >> >> Thanks for developing and sharing this! >> > > Jupytor comes from JUPYter + pythontuTOR. I know it is an ugly name and if > someone wants to provide a new name it will be welcome. Tutor could be a > possibility. > what about simply "jupytutor" ? -- mgaitan.github.io textosypretextos.com.ar -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Tue Mar 24 19:48:57 2015 From: benjaminrk at gmail.com (MinRK) Date: Tue, 24 Mar 2015 16:48:57 -0700 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= Message-ID: We have begun the process of splitting IPython into component repos. If you are living on master, it might be a good time to switch to the 3.x maintenance branch, because master is going to be a bit volatile. We will be aiming for a development install (pip install -e) to keep working during most of this time, but regular installs of IPython from master will definitely be broken while this is in-flight. -MinRK ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Tue Mar 24 20:16:54 2015 From: wes.turner at gmail.com (Wes Turner) Date: Tue, 24 Mar 2015 19:16:54 -0500 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= In-Reply-To: References: Message-ID: A suggestion: keep the master branch relatively stable and work on a develop branch? The HubFlow (GitFlow) branching model solves for this: http://datasift.github.io/gitflow/IntroducingGitFlow.html +1 for faster tests. On Mar 24, 2015 6:49 PM, "MinRK" wrote: > We have begun the process of splitting IPython into component repos. If > you are living on master, it might be a good time to switch to the 3.x > maintenance branch, because master is going to be a bit volatile. We will > be aiming for a development install (pip install -e) to keep working > during most of this time, but regular installs of IPython from master will > definitely be broken while this is in-flight. > > -MinRK > ? > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminrk at gmail.com Tue Mar 24 20:25:57 2015 From: benjaminrk at gmail.com (MinRK) Date: Tue, 24 Mar 2015 17:25:57 -0700 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= In-Reply-To: References: Message-ID: On Tue, Mar 24, 2015 at 5:16 PM, Wes Turner wrote: > A suggestion: keep the master branch relatively stable and work on a > develop branch? > That is not how we are going to be doing it. Doing it that way would mean blocking everything on master, and essentially freezing it while the development happens, because every PR against master conflicts with the refactor. We went over the various options, and found doing it in master to be the least painful prospect. -MinRK > The HubFlow (GitFlow) branching model solves for this: > http://datasift.github.io/gitflow/IntroducingGitFlow.html > > +1 for faster tests. > On Mar 24, 2015 6:49 PM, "MinRK" wrote: > >> We have begun the process of splitting IPython into component repos. If >> you are living on master, it might be a good time to switch to the 3.x >> maintenance branch, because master is going to be a bit volatile. We will >> be aiming for a development install (pip install -e) to keep working >> during most of this time, but regular installs of IPython from master will >> definitely be broken while this is in-flight. >> >> -MinRK >> ? >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Wed Mar 25 00:50:09 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 24 Mar 2015 21:50:09 -0700 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: Hi Kiko, Thanks for posting about your Jupytor extension. We're fans of Python Tutor, and having it embedded in the notebook makes a really attractive tool for helping people understand how executing code works. However, we're concerned that the name *Jupytor* might confuse people, because it's so similar to *Jupyter*. We've already seen a couple of accidental misspellings of Jupyter. Please can we ask you to rename your extension to make the difference clearer? This will probably make it easier to tell people about the extension too. It's important to understand that, at least under US copyright law, projects and entities *must* protect their trademarks in order to claim rights to them. While we haven't yet filed for a registered trademark for Jupyter, we will, and we do have usage rights to the Jupyter trademark, having introduced it and associated it with the project. For example, these are the guidelines for how to use the Python trademark: https://www.python.org/psf/trademarks. We try to largely follow the spirit of how Python lays out its policies. In particular, we do need to avoid having closely related projects whose name is derivative/similar enough to cause potential confusion. We hope you will understand our position, and that by finding a more uniquely identifying name for your project, it will actually help you establish it as its own independent entity. Thanks, Fernando, on behalf of the IPython/Jupyter core team. On Mon, Mar 23, 2015 at 11:40 AM, Kiko wrote: > Hi all, > > I'm teaching some python to people with very few programming experience > and I created a dummy extension to embed pythontutor on the jupyter > notebook. > > It provides a cell magic and the code cell will be executed within an > IFrame with pythontutor. > > Here you can find an example: > http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/Jupytor.ipynb > > The repo is here: https://github.com/kikocorreoso/jupytor > > I hope it could be useful to someone. > > Best. > > _______________________________________________ > 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 kikocorreoso at gmail.com Wed Mar 25 04:31:00 2015 From: kikocorreoso at gmail.com (Kiko) Date: Wed, 25 Mar 2015 09:31:00 +0100 Subject: [IPython-dev] tutormagic notebook extension [was: Jupytor notebook extension] Message-ID: [Reload] Hi all, I'm teaching some python to people with very few programming experience and I created a dummy extension to embed pythontutor on the jupyter notebook. It provides a cell magic and the code cell will be executed within an IFrame with pythontutor. Here you can find an example: http://nbviewer.ipython.org/github/Pybonacci/notebooks/blob/master/tutormagic.ipynb The repo is here: https://github.com/kikocorreoso/t utormagic I hope it could be useful to someone. Best. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikocorreoso at gmail.com Wed Mar 25 04:35:49 2015 From: kikocorreoso at gmail.com (Kiko) Date: Wed, 25 Mar 2015 09:35:49 +0100 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: 2015-03-25 5:50 GMT+01:00 Fernando Perez : > Hi Kiko, > > Thanks for posting about your Jupytor extension. We're fans of Python > Tutor, and having it embedded in the notebook makes a really attractive > tool for helping people understand how executing code works. > > However, we're concerned that the name *Jupytor* might confuse people, > because it's so similar to *Jupyter*. We've already seen a couple of > accidental misspellings of Jupyter. Please can we ask you to rename your > extension to make the difference clearer? This will probably make it easier > to tell people about the extension too. > Fernando, you are totally right. I never think in this kind of potential problems. I've updated the repo on github and removed the package from pypi (I will upload the new package this afternoon from home). Please, go to http://mail.scipy.org/pipermail/ipython-dev/2015-March/016232.html if someone wants to add something. Doug, I've used your proposal for the magic function name. Thanks. Best. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelle.varoquaux at gmail.com Wed Mar 25 06:57:40 2015 From: nelle.varoquaux at gmail.com (Nelle Varoquaux) Date: Wed, 25 Mar 2015 11:57:40 +0100 Subject: [IPython-dev] Fwd: ANN: SciPy (Scientific Python) 2015 Call for Proposals & Registration Open - tutorial & talk submissions due April 1st In-Reply-To: <44e64802-74d6-4294-ae8d-29b2e5bdd283@googlegroups.com> References: <44e64802-74d6-4294-ae8d-29b2e5bdd283@googlegroups.com> Message-ID: Hello everyone, (I apologize for the cross posting). This is a quick reminder that the call for submission for Scipy 2015 is open but due April 1st! There is only 7 days left to submit a proposal. Thanks, Nelle ---------- Forwarded message ---------- From: Courtenay Godshall Date: 19 March 2015 at 04:46 Subject: ANN: SciPy (Scientific Python) 2015 Call for Proposals & Registration Open - tutorial & talk submissions due April 1st To: python-list at python.org **SciPy 2015 Conference (Scientific Computing with Python) Call for Proposals: Submit Your Tutorial and Talk Ideas by April 1, 2015 at http://scipy2015.scipy.org.** SciPy 2015, the fourteenth annual Scientific Computing with Python conference, will be held July 6-12, 2015 in Austin, Texas. SciPy is a community dedicated to the advancement of scientific computing through open source Python software for mathematics, science, and engineering. The annual SciPy Conference brings together over 500 participants from industry, academia, and government to showcase their latest projects, learn from skilled users and developers, and collaborate on code development. The full program will consist of two days of tutorials by followed by three days of presentations, and concludes with two days of developer sprints. More info available on the conference website at http://scipy2015.scipy.org; you can also sign up on the website for mailing list updates or follow @scipyconf on Twitter. We hope you'll join us - early bird registration is open until May 15, 2015 at http://scipy2015.scipy.org/ehome/115969/259272/?& We encourage you to submit tutorial or talk proposals in the categories below; please also share with others who you'd like to see participate! Submit via the conference website @ http://scipy2015.scipy.org. *SCIPY TUTORIAL SESSION PROPOSALS - DEADLINE EXTENDED TO WED APRIL 1, 2015* The SciPy experience kicks off with two days of tutorials. These sessions provide extremely affordable access to expert training, and consistently receive fantastic feedback from participants. We're looking for submissions on topics from introductory to advanced - we'll have attendees across the gamut looking to learn. Whether you are a major contributor to a scientific Python library or an expert-level user, this is a great opportunity to share your knowledge and stipends are available. Submit Your Tutorial Proposal on the SciPy 2015 website: http://scipy2015.scipy.org *SCIPY TALK AND POSTER SUBMISSIONS - DUE April 1, 2015* SciPy 2015 will include 3 major topic tracks and 7 mini-symposia tracks. Submit Your Talk Proposal on the SciPy 2015 website: http://scipy2015.scipy.org Major topic tracks include: - Scientific Computing in Python (General track) - Python in Data Science - Quantitative and Computational Social Sciences Mini-symposia will include the applications of Python in: - Astronomy and astrophysics - Computational life and medical sciences - Engineering - Geographic information systems (GIS) - Geophysics - Oceanography and meteorology - Visualization, vision and imaging If you have any questions or comments, feel free to contact us at: scipy-organizers at scipy.org. -- https://mail.python.org/mailman/listinfo/python-list From ccordoba12 at gmail.com Wed Mar 25 10:59:50 2015 From: ccordoba12 at gmail.com (=?UTF-8?B?Q2FybG9zIEPDs3Jkb2Jh?=) Date: Wed, 25 Mar 2015 09:59:50 -0500 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= In-Reply-To: References: Message-ID: <5512CD66.4040608@gmail.com> Hi Min, Could you explain a bit more how this is going to work? I say it because I see that you're moving the repos inside the IPython one instead of moving them directly out of it. Thanks, Carlos El 24/03/15 a las 19:25, MinRK escribi?: > > > On Tue, Mar 24, 2015 at 5:16 PM, Wes Turner > wrote: > > A suggestion: keep the master branch relatively stable and work on > a develop branch? > > > That is not how we are going to be doing it. Doing it that way would > mean blocking everything on master, and essentially freezing it while > the development happens, because every PR against master conflicts > with the refactor. We went over the various options, and found doing > it in master to be the least painful prospect. > > -MinRK > > The HubFlow (GitFlow) branching model solves for this: > http://datasift.github.io/gitflow/IntroducingGitFlow.html > > +1 for faster tests. > > On Mar 24, 2015 6:49 PM, "MinRK" > wrote: > > We have begun the process of splitting IPython into component > repos. If you are living on master, it might be a good time to > switch to the 3.x maintenance branch, because master is going > to be a bit volatile. We will be aiming for a development > install (|pip install -e|) to keep working during most of this > time, but regular installs of IPython from master will > definitely be broken while this is in-flight. > > -MinRK > > ? > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://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 jamalumaja at gmail.com Wed Mar 25 12:04:06 2015 From: jamalumaja at gmail.com (Ja Lu) Date: Wed, 25 Mar 2015 17:04:06 +0100 Subject: [IPython-dev] Executing on Kernel as if CodeCell was executed Message-ID: Hello all, running code using `IPython.notebook.kernel.execute()` is not necessarily equivalent to running code from a notebook codecell. I have some interactive plots embedded in the notebook (Bokeh) and they only refresh if code is executed from a codecell. This is not due to the parameters/callbacks passed to `kernel.execute()`. My aim is to execute my command through Javascript, as if I had ran a codecell. In `IPython/html/static/notebook/js/codecell.js`, I saw that after `kernel.execution()` there are calls to `.render()` and `.events.trigger('execute.CodeCell', ..)`. My guess would be, if I would somehow evoke these commands after `kernel.execute()` things would work out. Am I on the right track? Could someone help me on how to do that exactly through the JS API? From the "outside" I do not have the reference to `this`. Thanks a lot, Jan From bw at activustech.com Wed Mar 25 12:11:59 2015 From: bw at activustech.com (Brian Wolf) Date: Wed, 25 Mar 2015 12:11:59 -0400 Subject: [IPython-dev] unsubscribe Message-ID: <5512DE4F.5020206@activustech.com> unsubscribe Thank you. Brian ------------------------------------------------------------------------ * Activus Technologies * Brian Wolf * Phone: 410.367.2958 * ? Recurring payment solutions * ? Custom software development -------------- next part -------------- An HTML attachment was scrubbed... URL: From bw at activustech.com Wed Mar 25 12:23:01 2015 From: bw at activustech.com (Brian Wolf) Date: Wed, 25 Mar 2015 12:23:01 -0400 Subject: [IPython-dev] unsubscribe Message-ID: <5512E0E5.1000606@activustech.com> unsubscribe Thank you. Brian ------------------------------------------------------------------------ * Activus Technologies * Brian Wolf * Phone: 410.367.2958 * ? Recurring payment solutions * ? Custom software development -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Wed Mar 25 12:37:14 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Wed, 25 Mar 2015 09:37:14 -0700 Subject: [IPython-dev] Jupytor notebook extension In-Reply-To: References: Message-ID: On Wed, Mar 25, 2015 at 1:35 AM, Kiko wrote: > Fernando, you are totally right. I never think in this kind of potential > problems. > > I've updated the repo on github and removed the package from pypi (I will > upload the new package this afternoon from home). > > wonderful, thanks so much! We look forward to your project growing alongside the rest of the Jupyter constellation :) 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 Wed Mar 25 13:00:04 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 25 Mar 2015 10:00:04 -0700 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= In-Reply-To: <5512CD66.4040608@gmail.com> References: <5512CD66.4040608@gmail.com> Message-ID: On 25 March 2015 at 07:59, Carlos C?rdoba wrote: > Could you explain a bit more how this is going to work? I say it because I > see that you're moving the repos inside the IPython one instead of moving > them directly out of it. That's only a temporary step, so that we can move files between components while preserving the git history. Once we've got the pieces satisfactorily separated inside the IPython repository, we will split it up into one repository for each component. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From takowl at gmail.com Wed Mar 25 13:02:00 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 25 Mar 2015 10:02:00 -0700 Subject: [IPython-dev] unsubscribe In-Reply-To: <5512E0E5.1000606@activustech.com> References: <5512E0E5.1000606@activustech.com> Message-ID: You can unsubscribe from this page: http://mail.scipy.org/mailman/listinfo/ipython-dev On 25 March 2015 at 09:23, Brian Wolf wrote: > unsubscribe > > Thank you. > Brian > > ------------------------------ > > > - Activus Technologies > - Brian Wolf > - Phone: 410.367.2958 > - ? Recurring payment solutions > - ? Custom software development > > > _______________________________________________ > 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 nick.bollweg at gmail.com Wed Mar 25 13:08:50 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Wed, 25 Mar 2015 13:08:50 -0400 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= In-Reply-To: References: <5512CD66.4040608@gmail.com> Message-ID: I saw some discussion on gitter of pep8... if we're getting new history, it really would be a lovely time to apply the Hammer of Whitespace and make source quality a part of the automation process. On Wed, Mar 25, 2015 at 1:00 PM, Thomas Kluyver wrote: > On 25 March 2015 at 07:59, Carlos C?rdoba wrote: > >> Could you explain a bit more how this is going to work? I say it because >> I see that you're moving the repos inside the IPython one instead of moving >> them directly out of it. > > > That's only a temporary step, so that we can move files between components > while preserving the git history. Once we've got the pieces satisfactorily > separated inside the IPython repository, we will split it up into one > repository for each component. > > 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 benjaminrk at gmail.com Wed Mar 25 13:10:45 2015 From: benjaminrk at gmail.com (MinRK) Date: Wed, 25 Mar 2015 10:10:45 -0700 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= In-Reply-To: References: <5512CD66.4040608@gmail.com> Message-ID: On Wed, Mar 25, 2015 at 10:08 AM, Nicholas Bollweg wrote: > I saw some discussion on gitter of pep8... if we're getting new history, > it really would be a lovely time to apply the Hammer of Whitespace and make > source quality a part of the automation process. > That's exactly what we aren't getting. No new history, and we don't enforce pep8, even on new projects. -MinRK > > On Wed, Mar 25, 2015 at 1:00 PM, Thomas Kluyver wrote: > >> On 25 March 2015 at 07:59, Carlos C?rdoba wrote: >> >>> Could you explain a bit more how this is going to work? I say it because >>> I see that you're moving the repos inside the IPython one instead of moving >>> them directly out of it. >> >> >> That's only a temporary step, so that we can move files between >> components while preserving the git history. Once we've got the pieces >> satisfactorily separated inside the IPython repository, we will split it up >> into one repository for each component. >> >> 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 takowl at gmail.com Wed Mar 25 13:17:26 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Wed, 25 Mar 2015 10:17:26 -0700 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= In-Reply-To: References: <5512CD66.4040608@gmail.com> Message-ID: On 25 March 2015 at 10:08, Nicholas Bollweg wrote: > it really would be a lovely time to apply the Hammer of Whitespace and > make source quality a part of the automation process. > I don't want us to do that, regardless of the timing. PEP8 is a fine set of guidelines, but having those guidelines rigidly enforced by automated tools just forces people to spend time satisfying the linter. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Wed Mar 25 13:40:07 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Wed, 25 Mar 2015 13:40:07 -0400 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= In-Reply-To: References: <5512CD66.4040608@gmail.com> Message-ID: > > enforced by automated tools just forces people to spend time satisfying > the linter. > Well, I guess you're either spending time satisfying the linter, or spending two people's time satisfying the reviewer who sees the sea of -'s when someone changes one line in several files and their tool strips whitespace, explaining the non-policy, then has to go back through their commits and remove the hunks that make whitespace changes... But anyhow... No new history > So all of the new repos will be carrying the entire history of IPython, or is there dark filter-branch foo happening? Exciting either way! Good luck! On Wed, Mar 25, 2015 at 1:17 PM, Thomas Kluyver wrote: > On 25 March 2015 at 10:08, Nicholas Bollweg > wrote: > >> it really would be a lovely time to apply the Hammer of Whitespace and >> make source quality a part of the automation process. >> > > I don't want us to do that, regardless of the timing. PEP8 is a fine set > of guidelines, but having those guidelines rigidly enforced by automated > tools just forces people to spend time satisfying the linter. > > 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 benjaminrk at gmail.com Wed Mar 25 13:46:18 2015 From: benjaminrk at gmail.com (MinRK) Date: Wed, 25 Mar 2015 10:46:18 -0700 Subject: [IPython-dev] =?utf-8?q?The_Big_Split=E2=84=A2_has_begun?= In-Reply-To: References: <5512CD66.4040608@gmail.com> Message-ID: On Wed, Mar 25, 2015 at 10:40 AM, Nicholas Bollweg wrote: > enforced by automated tools just forces people to spend time satisfying >> the linter. >> > > Well, I guess you're either spending time satisfying the linter, or > spending two people's time satisfying the reviewer who sees the sea of -'s > when someone changes one line in several files and their tool strips > whitespace, explaining the non-policy, then has to go back through their > commits and remove the hunks that make whitespace changes... > > But anyhow... > > No new history >> > So all of the new repos will be carrying the entire history of IPython, or > is there dark filter-branch foo happening? Exciting either way! Good luck! > Thanks! There will be a small amount of filter-branching to strip files that aren't part of the new repos, but that's it. Nothing too dark or mysterious. -MinRK > > On Wed, Mar 25, 2015 at 1:17 PM, Thomas Kluyver wrote: > >> On 25 March 2015 at 10:08, Nicholas Bollweg >> wrote: >> >>> it really would be a lovely time to apply the Hammer of Whitespace and >>> make source quality a part of the automation process. >>> >> >> I don't want us to do that, regardless of the timing. PEP8 is a fine set >> of guidelines, but having those guidelines rigidly enforced by automated >> tools just forces people to spend time satisfying the linter. >> >> 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 jhamrick at berkeley.edu Wed Mar 25 15:36:35 2015 From: jhamrick at berkeley.edu (Jessica B. Hamrick) Date: Wed, 25 Mar 2015 12:36:35 -0700 Subject: [IPython-dev] Deploying JupyterHub for Education Message-ID: Hi all, Over the past few months I've set up a deployment of JupyterHub backed by Docker and Docker Swarm for a class that I'm teaching this spring. I wrote a blog post about it over on the Rackspace developer blog, if you're interested: https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ Thanks to people who helped out with this, especially Min and Kyle! Cheers, Jess -- UC Berkeley, Department of Psychology Computational Cognitive Science Lab http://www.jesshamrick.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Wed Mar 25 20:15:31 2015 From: bussonniermatthias at gmail.com (bussonniermatthias) Date: Wed, 25 Mar 2015 17:15:31 -0700 (PDT) Subject: [IPython-dev] Jupyter-drive 1.1 Message-ID: <0f630d19-3b73-4ba1-ba09-17521223087e@googlegroups.com> Hi all, A few days ago I released[2] Jupyter-Drive 1.1 which allow you to access your notebook on Google-Drive. The MixedContentManager is more stable and have a few bugfixes in this version. It should be relatively easy now to browse in the same interface both your local files as well as the one on Google drive. The MixedContentManager should also work with alternate content manager, I think in particular to Scott Sanderson who is working at Quantopian on a Postgress Backend. I'll be happy to get some feedback if any of you have Postgress backend install on how well it works once integrated with local and google drive. I'm already working on integrating the real-time API of google drive into text-editors. The beginning seem promising, with minimal patches on IPython we can already have many user editting the same text file. If you are interested in joining, you can find some of our try as PRs[1] on jupyterdrive repo. If anyone is interested in adding DropBox/Github/Bitbucket/S3 direct integration, you are also welcome to join. Huge thanks Kester Tong from Google without whom I wouldn't progress that fast, and has been of great advice and help. -- M [1]: https://github.com/jupyter/jupyter-drive/pull/90 [2]: https://twitter.com/Mbussonn/status/579066126518226944 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Thu Mar 26 00:13:00 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Wed, 25 Mar 2015 21:13:00 -0700 Subject: [IPython-dev] Deploying JupyterHub for Education In-Reply-To: References: Message-ID: Congrats on the excellent work and blog post! Cheers, Brian On Wed, Mar 25, 2015 at 12:36 PM, Jessica B. Hamrick wrote: > Hi all, > > Over the past few months I've set up a deployment of JupyterHub backed by > Docker and Docker Swarm for a class that I'm teaching this spring. I wrote > a blog post about it over on the Rackspace developer blog, if you're > interested: > > https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ > > Thanks to people who helped out with this, especially Min and Kyle! > > Cheers, > Jess > > -- > UC Berkeley, Department of Psychology > Computational Cognitive Science Lab > http://www.jesshamrick.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.gibiansky at gmail.com Thu Mar 26 01:24:47 2015 From: andrew.gibiansky at gmail.com (Andrew Gibiansky) Date: Wed, 25 Mar 2015 22:24:47 -0700 Subject: [IPython-dev] IHaskell on Jupyter Message-ID: Hey all, I'm pleased to announce IHaskell 0.6, which finally supports (and requires) IPython 3.0. It also includes many multitudes of bugfixes and usability improvements, and some preliminary support for GHC 7.10, the upcoming version of the Haskell compiler. IHaskell 0.6 is on Github master and Hackage . Many thanks to everyone who helped in this release by filing issues, testing, and of course submitting PRs. -- Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Thu Mar 26 01:28:10 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Wed, 25 Mar 2015 22:28:10 -0700 Subject: [IPython-dev] IHaskell on Jupyter In-Reply-To: References: Message-ID: <5AE8F615-C1AF-47DF-894F-98FD315934A5@gmail.com> Hi Andrew, Le 25 mars 2015 ? 22:24, Andrew Gibiansky a ?crit : > Hey all, > > I'm pleased to announce IHaskell 0.6, which finally supports (and requires) IPython 3.0. It also includes many multitudes of bugfixes and usability improvements, and some preliminary support for GHC 7.10, the upcoming version of the Haskell compiler. > > IHaskell 0.6 is on Github master and Hackage. > > Many thanks to everyone who helped in this release by filing issues, testing, and of course submitting PRs. Great ! Happy to hear that ! I suppose we will soon get a PR to have it on try.jupyter.org ? I cc the Jupyter Mailing List as this is not Python only :-) -- M > > -- Andrew > _______________________________________________ > 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 maximilian.albert at gmail.com Thu Mar 26 07:32:26 2015 From: maximilian.albert at gmail.com (Maximilian Albert) Date: Thu, 26 Mar 2015 11:32:26 +0000 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output In-Reply-To: References: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> Message-ID: Hi Aaron, Thanks a lot for your suggestion! This is actually exactly what I tried before sending my email to the list, and it does indeed work in certain cases, but some of my notebooks didn't convert correctly with it. I've put up a minimal example here: https://github.com/maxalbert/nbconvert-templating-issue If you type "make" it will use different templates to generate three pdf documents from the notebook "minimal_example.ipynb" (more information on what the templates do is in the README of the repo). You will see that for the cell containing the image with the musical note, the "Out[]" prompt is retained. The notebook "sample_notebook.ipynb" has a slightly longer example, comparing with some other types of output cells for which the "Out[]" prompt is indeed removed. I won't have time to dig into this before the weekend, and my jinja-fu is almost zero, so if anyone has a quick idea what's going on here I'd appreciate it. Many thanks! Max 2015-03-24 11:27 GMT+00:00 Aaron O'Leary : > Sorry, I misread your question! You only want to remove the output > prompts, not the whole output. > > Try this: > > ((*- extends 'article.tplx' > -*)) > > > > % Disable input > cells > > ((* block input_group > *)) > > ((* endblock input_group > *)) > > > > ((* block execute_result scoped > *)) > > ((*- for type in output.data | filter_data_type > -*)) > > ((*- if type in > ['text/plain']*)) > > ((( output.data['text/plain'] | escape_latex > ))) > > ((* else > -*)) > > ((( super() > ))) > > ((*- endif > -*)) > > ((*- endfor > -*)) > > ((* endblock execute_result *)) > > > i.e. get rid of both the call to add_prompt and the manual prompt creation. > > On 24 March 2015 at 10:35, Aaron O'Leary wrote: > >> Hi Max, >> >> This is what you need: >> >> ((*- extends 'article.tplx' -*)) >> >> % Disable input cells >> ((* block input_group *)) >> ((* endblock input_group *)) >> >> % Disable output cells >> ((* block output_group *)) >> ((* endblock output_group *)) >> >> >> You need to use 'output_group' instead of 'execute_result'. There are >> quite a number of elements in the output and 'output_group' is the block >> that covers all of them. >> >> You can get an overview of the block hierarchy by looking at >> 'IPython/nbconvert/templates/latex/skeleton/null.tplx'. >> >> aaron >> >> >> On 24 March 2015 at 01:08, Maximilian Albert > > wrote: >> >>> 2015-03-23 19:06 GMT+00:00 Matthias Bussonnier < >>> bussonniermatthias at gmail.com>: >>> >>>> >>>> I guess you need to inherit the following block : >>>> >>>> >>>> ((* block execute_result scoped *)) >>>> ((*- for type in output.data | filter_data_type -*)) >>>> ((*- if type in ['text/plain']*)) >>>> ((( add_prompt(output.data['text/plain'] | escape_latex, >>>> cell, 'Out', 'outcolor') ))) >>>> ((* else -*)) >>>> \texttt{\color{outcolor}Out[{\color{outcolor}((( cell.execution_count >>>> )))}]:}((( super() ))) >>>> ((*- endif -*)) >>>> ((*- endfor -*)) >>>> ((* endblock execute_result *)) >>>> >>>> >>>> form IPython/nbconvert/templates/latex/style_ipython.tplx >>>> >>>> And replace by what you wish. >>>> >>> >>> >>> Thanks for the suggestion! That's precisely what I tried, but the >>> problem seems to be that the call to super() somehow adds an additional >>> Out[] prompt. I'll try to dig deeper into this when I get the time (and/or >>> make a minimal example available so that it can easily be reproduced), but >>> if anyone has any quick ideas I'm happy to hear them. >>> >>> Cheers, >>> Max >>> >>> P.S.: I noticed I forgot to include the link to the StackOverflow >>> question I mentioned in my original email. Here it is: >>> >>> >>> http://stackoverflow.com/questions/19524554/suppress-code-in-nbconvert-ipython >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://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 nick.bollweg at gmail.com Thu Mar 26 08:30:37 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Thu, 26 Mar 2015 08:30:37 -0400 Subject: [IPython-dev] IHaskell on Jupyter In-Reply-To: <5AE8F615-C1AF-47DF-894F-98FD315934A5@gmail.com> References: <5AE8F615-C1AF-47DF-894F-98FD315934A5@gmail.com> Message-ID: Congrats! What is the PR (repo, requirements) process for getting something up on try.j.o? I've been bumbling around with getting hy_kernel ready for a real-ish release, and would love to be able to get it up there. On Thu, Mar 26, 2015 at 1:28 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Hi Andrew, > > Le 25 mars 2015 ? 22:24, Andrew Gibiansky a > ?crit : > > Hey all, > > I'm pleased to announce IHaskell 0.6, which finally supports (and > requires) IPython 3.0. It also includes many multitudes of bugfixes and > usability improvements, and some preliminary support for GHC 7.10, the > upcoming version of the Haskell compiler. > > IHaskell 0.6 is on Github master and > Hackage . > > Many thanks to everyone who helped in this release by filing issues, > testing, and of course submitting PRs. > > > > Great ! Happy to hear that ! > > I suppose we will soon get a PR to have it on try.jupyter.org ? > > I cc the Jupyter Mailing List as this is not Python only :-) > -- > M > > > -- Andrew > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://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 doug.blank at gmail.com Thu Mar 26 09:00:55 2015 From: doug.blank at gmail.com (Doug Blank) Date: Thu, 26 Mar 2015 09:00:55 -0400 Subject: [IPython-dev] IHaskell on Jupyter In-Reply-To: References: <5AE8F615-C1AF-47DF-894F-98FD315934A5@gmail.com> Message-ID: On Thu, Mar 26, 2015 at 8:30 AM, Nicholas Bollweg wrote: > Congrats! > > What is the PR (repo, requirements) process for getting something up on > try.j.o? I've been bumbling around with getting hy_kernel > ready for a real-ish release, and > would love to be able to get it up there. > Would love to make try.jupyter.org a general place for trying different kernels! Now would be a great time to talk about some conventions. I can think of a couple: 1. First help link for a kernel: "Getting Started" with simple code examples, and pointers to full doc on using language in notebook 2. Another help link: "Installing X Kernel" with instructions on how to install kernel on your own system Also, what criteria for including a kernel on try.jupyter? Easy install? Robust? Specific licenses only? Commercial kernels? How will new versions of a kernel (or its dependencies) get included? How often will it be updated? -Doug > > On Thu, Mar 26, 2015 at 1:28 AM, Matthias Bussonnier < > bussonniermatthias at gmail.com> wrote: > >> Hi Andrew, >> >> Le 25 mars 2015 ? 22:24, Andrew Gibiansky a >> ?crit : >> >> Hey all, >> >> I'm pleased to announce IHaskell 0.6, which finally supports (and >> requires) IPython 3.0. It also includes many multitudes of bugfixes and >> usability improvements, and some preliminary support for GHC 7.10, the >> upcoming version of the Haskell compiler. >> >> IHaskell 0.6 is on Github master and >> Hackage . >> >> Many thanks to everyone who helped in this release by filing issues, >> testing, and of course submitting PRs. >> >> >> >> Great ! Happy to hear that ! >> >> I suppose we will soon get a PR to have it on try.jupyter.org ? >> >> I cc the Jupyter Mailing List as this is not Python only :-) >> -- >> M >> >> >> -- Andrew >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://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 paad.ruslan.korniichuk at gmail.com Thu Mar 26 10:43:23 2015 From: paad.ruslan.korniichuk at gmail.com (Ruslan Korniichuk) Date: Thu, 26 Mar 2015 15:43:23 +0100 Subject: [IPython-dev] Kernels, located on the remote machines, in ipython-notebook Message-ID: Hi all, I'm trying to solve the task of *adding the kernel, located on a remote machine*, on the menu *Kernel->Change kernel* of the Jupyter (IPython) Notebook for scientific needs. The visual example HERE: http://goo.gl/pA3QRG Otherwise it can be named as *$ ipython notebook --existing*. I know that can to add the kernel, located on a local machine, on this menu, for example, like this: 1. Create the folder for kernels: */home/user-ruslan/.ipython/kernels* 2. Inside the previous folder, create the folder for Python 3 kernel: */home/user-ruslan/.ipython/kernels/python3* 3. In the */home/user-ruslan/.ipython/kernels/python3* folder, create the JSON file: *{* * "display_name": "Python 3", * * "language": "python", * * "argv": [* * "python3", * * "-c", * * "from IPython.kernel.zmq.kernelapp import main; main()", * * "-f", * * "{connection_file}"* * ],* * "codemirror_mode": {* * "version": 2, * * "name": "ipython"* * }* * }* But in my task, probably, need to run a kernel on a remote server via SSH, and after this step copy a *kernel-????.json* file using *scp*. Likewise, in IPython for parallel computing (starting the IPython controller and engines in SSH mode). *Critically important that the functional of addition the kernels, located on the remote machines MUST work after the Jupyter (IPython) Notebook update. Therefore, I must ask you:* *Does this not contradict to the philosophy and the way of the Jupyter (IPython) project?* For this definition, this task is OK: "IPython is a tool for managing the entire lifecycle of a scientific idea":) *In addition, please answer why the Jupyter (IPython) Notebook, necessarily, MUST run kernel when starts (no empty ipython-notebook w/o own kernel)?* *Who can help me find good algorithm for this task?* My skype: ruslan.korniichuk --- Best regards, Ruslan Korniichuk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: kernels_550px.png Type: image/png Size: 40184 bytes Desc: not available URL: From bussonniermatthias at gmail.com Thu Mar 26 11:20:57 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 26 Mar 2015 08:20:57 -0700 Subject: [IPython-dev] [jupyter] Re: IHaskell on Jupyter In-Reply-To: References: <5AE8F615-C1AF-47DF-894F-98FD315934A5@gmail.com> Message-ID: <095EA2AD-DC8B-4A0D-A8F3-61C2BD11B635@gmail.com> Le 26 mars 2015 ? 06:00, Doug Blank a ?crit : > On Thu, Mar 26, 2015 at 8:30 AM, Nicholas Bollweg wrote: > Congrats! > > What is the PR (repo, requirements) process for getting something up on try.j.o? I've been bumbling around with getting hy_kernel ready for a real-ish release, and would love to be able to get it up there. > PR against https://github.com/jupyter/docker-demo-images IIRC deployment is automatic. Otherwise it should be made automatic :-) > Would love to make try.jupyter.org a general place for trying different kernels! Now would be a great time to talk about some conventions. I can think of a couple: > > 1. First help link for a kernel: "Getting Started" with simple code examples, and pointers to full doc on using language in notebook We have `Welcomme ` each language can do its notebook ! > > 2. Another help link: "Installing X Kernel" with instructions on how to install kernel on your own system I would put that in the welcome notebook too. > Also, what criteria for including a kernel on try.jupyter? > > Easy install? I guess if you can install with Docker... and the kernel not dead in the water you could install it. But depends on community and if people help with the deployment. > Robust? Robust to what ?? > Specific licenses only? We don't derive anything from the project so I don't see any restriction on Licenses > Commercial kernels? Well, this is hosted for free[1], so commercial project might be required some "contribution" to get hosted to be fair. > How will new versions of a kernel (or its dependencies) get included? PR. But depends on community and if people help with the deployment. > How often will it be updated? Depends on community and if people help with the deployment. And on the rhythm of PR. Does that make sens ? Back to [1], the server is on a machine we "borrow" from Rackspace. So in the end what get into the server have to be vetted by Rackspace. We do our best for "Fair" usage, and not to make them un-happy. It would also be great to have a nice website, all responsive and good design that list the kernels and make some better promotion of the notebook. If any of you want to do that, or have a web designer student looking for a project :-) In conclusion, the project is to everyone as soon as you participate. And we'll be happy to give you more rights on github if we see you making contribution/maintenance relatively often. -- M > -Doug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wes.turner at gmail.com Thu Mar 26 11:24:24 2015 From: wes.turner at gmail.com (Wes Turner) Date: Thu, 26 Mar 2015 10:24:24 -0500 Subject: [IPython-dev] Kernels, located on the remote machines, in ipython-notebook In-Reply-To: References: Message-ID: Are there documentation and source links for this functionality? On Thu, Mar 26, 2015 at 9:43 AM, Ruslan Korniichuk < paad.ruslan.korniichuk at gmail.com> wrote: > Hi all, > > I'm trying to solve the task of *adding the kernel, located on a remote > machine*, on the menu *Kernel->Change kernel* of the Jupyter (IPython) > Notebook for scientific needs. The visual example HERE: > http://goo.gl/pA3QRG > Otherwise it can be named as *$ ipython notebook --existing*. > > I know that can to add the kernel, located on a local machine, on this > menu, for example, like this: > 1. Create the folder for kernels: > */home/user-ruslan/.ipython/kernels* > 2. Inside the previous folder, create the folder for Python 3 kernel: > */home/user-ruslan/.ipython/kernels/python3* > 3. In the */home/user-ruslan/.ipython/kernels/python3* folder, create > the JSON file: > *{* > * "display_name": "Python 3", * > * "language": "python", * > * "argv": [* > * "python3", * > * "-c", * > * "from IPython.kernel.zmq.kernelapp import main; main()", * > * "-f", * > * "{connection_file}"* > * ],* > * "codemirror_mode": {* > * "version": 2, * > * "name": "ipython"* > * }* > * }* > > But in my task, probably, need to run a kernel on a remote server via SSH, > and after this step copy a *kernel-????.json* file using *scp*. Likewise, > in IPython for parallel computing (starting the IPython controller and > engines in SSH mode). > > *Critically important that the functional of addition the kernels, located > on the remote machines MUST work after the Jupyter (IPython) Notebook > update. Therefore, I must ask you:* > *Does this not contradict to the philosophy and the way of the Jupyter > (IPython) project?* For this definition, this task is OK: "IPython is a > tool for managing the entire lifecycle of a scientific idea":) > > *In addition, please answer why the Jupyter (IPython) Notebook, > necessarily, MUST run kernel when starts (no empty ipython-notebook w/o own > kernel)?* > > *Who can help me find good algorithm for this task?* > > My skype: ruslan.korniichuk > --- > Best regards, > Ruslan Korniichuk > > _______________________________________________ > 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 Mar 26 11:32:05 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 26 Mar 2015 08:32:05 -0700 Subject: [IPython-dev] Kernels, located on the remote machines, in ipython-notebook In-Reply-To: References: Message-ID: Hi, Le 26 mars 2015 ? 07:43, Ruslan Korniichuk a ?crit : > Hi all, > > I'm trying to solve the task of adding the kernel, located on a remote machine, on the menu Kernel->Change kernel of the Jupyter (IPython) Notebook for scientific needs. The visual example HERE: http://goo.gl/pA3QRG > Otherwise it can be named as $ ipython notebook --existing. --existing will not work with notebook. > I know that can to add the kernel, located on a local machine, on this menu, for example, like this: > 1. Create the folder for kernels: > /home/user-ruslan/.ipython/kernels > 2. Inside the previous folder, create the folder for Python 3 kernel: > /home/user-ruslan/.ipython/kernels/python3 > 3. In the /home/user-ruslan/.ipython/kernels/python3 folder, create the JSON file: > { > "display_name": "Python 3", > "language": "python", > "argv": [ > "python3", > "-c", > "from IPython.kernel.zmq.kernelapp import main; main()", > "-f", > "{connection_file}" > ], > "codemirror_mode": { > "version": 2, > "name": "ipython" > } > } > > But in my task, probably, need to run a kernel on a remote server via SSH, and after this step copy a kernel-????.json file using scp. Likewise, in IPython for parallel computing (starting the IPython controller and engines in SSH mode). I would replace argv [.....] by a call to a bash script that does all what is needed. SSH, copy file etc. You might need to have a little bit involved script than usual kernel. > > Critically important that the functional of addition the kernels, located on the remote machines MUST work after the Jupyter (IPython) Notebook update. Therefore, I must ask you: > Does this not contradict to the philosophy and the way of the Jupyter (IPython) project? For this definition, this task is OK: "IPython is a tool for managing the entire lifecycle of a scientific idea":) We do our best. The "still working after upgrade" is tricky. Is this a long running computation ? I can see the need, but I'm not sure it is easy to have kernels that can run and reconnect after full and large scale IPython upgrade, if message spec changes. Right now, you should be able to shutdown and restart the server, nothing technically prevent it to reconnect to kernels. We just enforce them to shut-down. > > In addition, please answer why the Jupyter (IPython) Notebook, necessarily, MUST run kernel when starts (no empty ipython-notebook w/o own kernel)? This is a technical limitation for now. Notebook without kernels make sens. We "just" need to implement them. (With "Just" being a few month of work full time) > Who can help me find good algorithm for this task? > > My skype: ruslan.korniichuk > --- > Best regards, > Ruslan Korniichuk > _______________________________________________ > 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 Mar 26 11:33:29 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 26 Mar 2015 08:33:29 -0700 Subject: [IPython-dev] Kernels, located on the remote machines, in ipython-notebook In-Reply-To: References: Message-ID: <6CAE1ADC-853E-47CC-A5F4-AD43DEF33FB6@gmail.com> Le 26 mars 2015 ? 08:24, Wes Turner a ?crit : > Are there documentation and source links for this functionality? Probably in our doc. But we are bad at doc. We would be happy when people figure things out like that, that they jump in our doc and write a paragraph on it. -- M From wes.turner at gmail.com Thu Mar 26 11:52:57 2015 From: wes.turner at gmail.com (Wes Turner) Date: Thu, 26 Mar 2015 10:52:57 -0500 Subject: [IPython-dev] Kernels, located on the remote machines, in ipython-notebook In-Reply-To: <6CAE1ADC-853E-47CC-A5F4-AD43DEF33FB6@gmail.com> References: <6CAE1ADC-853E-47CC-A5F4-AD43DEF33FB6@gmail.com> Message-ID: IPython Documentation and Source Links * BLD: https://registry.hub.docker.com/u/ipython/scipyserver/ * BLD: https://github.com/ipython/ipython-ansible-jenkins * DOC: https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages#creating-new-ipython-kernels * DOC: http://ipython.org/ipython-doc/dev/development/kernels.html * DOC: http://ipython.org/ipython-doc/dev/development/wrapperkernels.html * SRC: https://github.com/ipython/ipython/blob/master/IPython/kernel/__init__.py [ ... ] I guess right now you could configure nodes with a configuration management tool. https://en.wikipedia.org/wiki/Comparison_of_open-source_configuration_management_software * https://github.com/saltstack/salt * https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.sh * https://github.com/westurner/ipython-formula (TODO) On Thu, Mar 26, 2015 at 10:33 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > > Le 26 mars 2015 ? 08:24, Wes Turner a ?crit : > > > Are there documentation and source links for this functionality? > > > Probably in our doc. > But we are bad at doc. > We would be happy when people figure things out like that, that they jump > in our doc and write a paragraph on it. > > -- > 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 jg3705a at student.american.edu Thu Mar 26 19:40:18 2015 From: jg3705a at student.american.edu (Justin) Date: Thu, 26 Mar 2015 16:40:18 -0700 Subject: [IPython-dev] Cannot connect to kernel when not using localhost In-Reply-To: References: <6CAE1ADC-853E-47CC-A5F4-AD43DEF33FB6@gmail.com> Message-ID: <551498E2.3060207@student.american.edu> Hello list, I recently explored setting up a notebook that I can share over the web with one other user. I followed the directions on https://ipython.org/ipython-doc/dev/notebook/public_server.html exactly. I can access the nbserver from the web but when I open a notebook, I cannot connect to the kernel, though I do believe the kernel is started since I see [I 16:00:26.023 NotebookApp] Kernel started: a23ba8fa-16dd-41e9-9b60-b1785c872387 in my terminal. In the notebook I see the error message: "A connection to the notebook server could not be established. The notebook will continue trying to reconnect, but until it does, you will NOT be able to run code. Check your network connection or notebook server configuration." I am using ubuntu and ipython 3.0 with the new jupyter notebook. Note that I can edit markdown and raw text cells, I just cannot execute code. The problem is reproducible in both firefox and chrome. I do not see this problem when I start the notebook on localhost. On another note, it takes a very long time (~ 1 minute) for my browser to connect to https://.9999/ Not sure if this is part of the issue but I thought it might be useful. I saw this issue reported before but it was basically for people running windows with antivirus and I do not have either. I'm fairly certain that it is me that is doing something wrong but I cannot for the life of me figure it out. Thanks for any input you might have, Justin From takowl at gmail.com Thu Mar 26 20:37:43 2015 From: takowl at gmail.com (Thomas Kluyver) Date: Thu, 26 Mar 2015 17:37:43 -0700 Subject: [IPython-dev] Cannot connect to kernel when not using localhost In-Reply-To: <551498E2.3060207@student.american.edu> References: <6CAE1ADC-853E-47CC-A5F4-AD43DEF33FB6@gmail.com> <551498E2.3060207@student.american.edu> Message-ID: On 26 March 2015 at 16:40, Justin wrote: > Note that I can edit markdown and raw text cells, I just cannot execute > code. > This sounds like websockets are getting blocked somewhere - is there any proxy involved? If you have a proxy set up for other internet access, you may need to specifically tell it to let local IPs go through directly. > On another note, it takes a very long time (~ 1 minute) for my browser to > connect to https://.9999/ Not sure if this is part of the issue > but I thought > it might be useful. > Timeouts of ~1 minute can be related to DNS - it's trying something until it times out, and then falling back to another thing which succeeds. I don't know why that would come up when you're going directly to an IP address, though. Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From paad.ruslan.korniichuk at gmail.com Fri Mar 27 09:59:40 2015 From: paad.ruslan.korniichuk at gmail.com (Ruslan Korniichuk) Date: Fri, 27 Mar 2015 14:59:40 +0100 Subject: [IPython-dev] Kernels, located on the remote machines, in ipython-notebook Message-ID: Hi everyone, Personal thanks to Matthias for answer about Notebook w/o kernels, and to Wes for documentation and source links. All history of this subject is available HERE: http://goo.gl/WuMfeJ I'm so sorry, I must express my task more clearly. First of all, I already read next materials, proposed by Wes: http://ipython.org/ipython-doc/dev/development/kernels.html http://ipython.org/ipython-doc/dev/development/wrapperkernels.html It's important to note that, currently, we need to create new notebooks ONLY with python2 and python3 kernels. BUT we have other needs. The first of them, that we don't want install ipython on a few nodes in a cluster and after run on each node ipython-notebook with only local python2 and python3 kernels availability. We want provide for our PhD students and employees the capability to select one of all available kernels on a cluster via one ipython-notebook. Nodes in a cluster have different performance and computing load. Once again, my visual example HERE: http://goo.gl/pA3QRG Now let's talk about an update. from: Matthias Bussonnier > Is this a long running computation ? NO, we don't want update Jupyter (IPython) with the running kernels. But, for example, Jupyter (IPython) update from ver. 3.1.0-dev-5b6d047 to ver. 4.0.0-dev-5e861d2 must work w/o special further actions (save menu with remote python2 and python3 kernels and functional for work with this kernels). If we just hack ipython source code, that after first Jupyter (IPython) update, it is possible to predict mass hysteria. --- Best regards, Ruslan Korniichuk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: kernels_550px.png Type: image/png Size: 40184 bytes Desc: not available URL: From jg3705a at student.american.edu Fri Mar 27 10:26:34 2015 From: jg3705a at student.american.edu (Justin) Date: Fri, 27 Mar 2015 07:26:34 -0700 Subject: [IPython-dev] Cannot connect to kernel when not using localhost In-Reply-To: References: <6CAE1ADC-853E-47CC-A5F4-AD43DEF33FB6@gmail.com> <551498E2.3060207@student.american.edu> Message-ID: <5515689A.50509@student.american.edu> On 03/26/2015 05:37 PM, Thomas Kluyver wrote: > On 26 March 2015 at 16:40, Justin > wrote: > > Note that I can edit markdown and raw text cells, I just cannot > execute > code. > > > This sounds like websockets are getting blocked somewhere - is there > any proxy involved? If you have a proxy set up for other internet > access, you may need to specifically tell it to let local IPs go > through directly. Thanks for the reply. I do not believe (I know almost nothing about networking so I can never be 100% sure) I have any proxies set up. I do have my machine setup so that I can ssh into it from my laptop but I don't think that is related. Is there any procedure I can follow to see if the websockets are getting blocked and how to specifically tell it to let local IPs go through directly? > On another note, it takes a very long time (~ 1 minute) for my > browser to > connect to https://.9999/ Not sure if this is part of the issue > but I thought > it might be useful. > > > Timeouts of ~1 minute can be related to DNS - it's trying something > until it times out, and then falling back to another thing which > succeeds. I don't know why that would come up when you're going > directly to an IP address, though. > > 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 jg3705a at student.american.edu Fri Mar 27 10:44:12 2015 From: jg3705a at student.american.edu (Justin) Date: Fri, 27 Mar 2015 07:44:12 -0700 Subject: [IPython-dev] Cannot connect to kernel when not using localhost In-Reply-To: References: <6CAE1ADC-853E-47CC-A5F4-AD43DEF33FB6@gmail.com> <551498E2.3060207@student.american.edu> Message-ID: <55156CBC.6020908@student.american.edu> Ok, I got it to work. In case anyone else is having this problem, I had to go into my router settings (att) and enable IP passthrough (DHCPS-fixed mode) and point it to the machine running the notebook. After that voila, no problems. Thanks for the help. On 03/26/2015 05:37 PM, Thomas Kluyver wrote: > On 26 March 2015 at 16:40, Justin > wrote: > > Note that I can edit markdown and raw text cells, I just cannot > execute > code. > > > This sounds like websockets are getting blocked somewhere - is there > any proxy involved? If you have a proxy set up for other internet > access, you may need to specifically tell it to let local IPs go > through directly. > > On another note, it takes a very long time (~ 1 minute) for my > browser to > connect to https://.9999/ Not sure if this is part of the issue > but I thought > it might be useful. > > > Timeouts of ~1 minute can be related to DNS - it's trying something > until it times out, and then falling back to another thing which > succeeds. I don't know why that would come up when you're going > directly to an IP address, though. > > 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 jg3705a at student.american.edu Fri Mar 27 21:30:13 2015 From: jg3705a at student.american.edu (Justin) Date: Fri, 27 Mar 2015 18:30:13 -0700 Subject: [IPython-dev] Cannot connect to kernel when not using localhost In-Reply-To: <55156CBC.6020908@student.american.edu> References: <6CAE1ADC-853E-47CC-A5F4-AD43DEF33FB6@gmail.com> <551498E2.3060207@student.american.edu> <55156CBC.6020908@student.american.edu> Message-ID: <55160425.6070309@student.american.edu> On 03/27/2015 07:44 AM, Justin wrote: > Ok, I got it to work. > > In case anyone else is having this problem, I had to go into my router > settings (att) > and enable IP passthrough (DHCPS-fixed mode) and point it to the > machine running > the notebook. Sorry, I jumped the gun here. Doing the above change allows me to execute notebook cells but only on the machine (my home desktop) that is running the notebook server. When I try from my laptop (also on my home network), I still cannot execute code cells. I guess this is not really an IPython/Jupyter issue, but I was wondering if there are any known troubleshooting steps I can take to get a better idea of what's going on. > > After that voila, no problems. > > Thanks for the help. > > > On 03/26/2015 05:37 PM, Thomas Kluyver wrote: >> On 26 March 2015 at 16:40, Justin > > wrote: >> >> Note that I can edit markdown and raw text cells, I just cannot >> execute >> code. >> >> >> This sounds like websockets are getting blocked somewhere - is there >> any proxy involved? If you have a proxy set up for other internet >> access, you may need to specifically tell it to let local IPs go >> through directly. >> >> On another note, it takes a very long time (~ 1 minute) for my >> browser to >> connect to https://.9999/ Not sure if this is part of the issue >> but I thought >> it might be useful. >> >> >> Timeouts of ~1 minute can be related to DNS - it's trying something >> until it times out, and then falling back to another thing which >> succeeds. I don't know why that would come up when you're going >> directly to an IP address, though. >> >> 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 damianavila at gmail.com Sat Mar 28 09:11:59 2015 From: damianavila at gmail.com (=?UTF-8?Q?Dami=C3=A1n_Avila?=) Date: Sat, 28 Mar 2015 10:11:59 -0300 Subject: [IPython-dev] Deploying JupyterHub for Education In-Reply-To: References: Message-ID: Thanks for sharing your experience with all of us, Jessica! Cheers! 2015-03-26 1:13 GMT-03:00 Brian Granger : > Congrats on the excellent work and blog post! > > Cheers, > > Brian > > On Wed, Mar 25, 2015 at 12:36 PM, Jessica B. Hamrick < > jhamrick at berkeley.edu> wrote: > >> Hi all, >> >> Over the past few months I've set up a deployment of JupyterHub backed by >> Docker and Docker Swarm for a class that I'm teaching this spring. I wrote >> a blog post about it over on the Rackspace developer blog, if you're >> interested: >> >> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >> >> Thanks to people who helped out with this, especially Min and Kyle! >> >> Cheers, >> Jess >> >> -- >> UC Berkeley, Department of Psychology >> Computational Cognitive Science Lab >> http://www.jesshamrick.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 > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- *Dami?n* -------------- next part -------------- An HTML attachment was scrubbed... URL: From yanghatespam at gmail.com Sun Mar 29 04:44:00 2015 From: yanghatespam at gmail.com (Yang Zhang) Date: Sun, 29 Mar 2015 01:44:00 -0700 Subject: [IPython-dev] Controlling prioritization in IPython Parallel Message-ID: Can one specify any sort of prioritization to tasks submitted to an IPython Cluster? The only hack I know of to accomplish something like this is to carefully maintain a DAG of task dependencies and then, whenever submitting a new prioritized tasks, you'd need to abort all (non-started) tasks, reconstruct the DAG, and submit all the tasks again. -------------- next part -------------- An HTML attachment was scrubbed... URL: From maximilian.albert at gmail.com Sun Mar 29 06:30:37 2015 From: maximilian.albert at gmail.com (Maximilian Albert) Date: Sun, 29 Mar 2015 11:30:37 +0100 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output In-Reply-To: References: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> Message-ID: Ok, I had time to look a bit more into this and the following does what I want: ==> ((*- extends 'article.tplx' -*)) % Disable input cells ((* block input_group *)) ((* endblock input_group *)) ((* block execute_result scoped *)) ((*- for type in output.data | filter_data_type -*)) ((*- if type in ['text/plain']*)) \begin{Verbatim}[commandchars=\\\{\}] ((( output.data['text/plain'] | escape_latex ))) \end{Verbatim} ((* else -*)) ((* block data_priority scoped *)) ((( super() ))) ((* endblock *)) ((*- endif -*)) ((*- endfor -*)) ((* endblock execute_result *)) <== The problem with the previous suggestion was that the call to super() would call the block "execute_result" in style_ipython.tplx, which would re-add the Out[] prompt that had just been stripped. What we really want is to call the "grandparent" instead of the parent block. So copying the execute_result block from templates/latex/base.tplx (which is what style_ipython.tplx inherits from) works. The other minor problem was that some of the output wasn't formatted correctly. This is because the "add_prompt" filter in style_ipython.tplx doesn't just add the prompt but also wraps the cell contents in \begin{Verbatim} ... \end{Verbatim}. So once I added this to my custom template it also works correctly. Even though this achieves what I need it's obviously not ideal because it may break if something in the IPython templates changes or gets rearranged. If I find the time I may try to have a look at how they can be refactored so that less copying of template snippets is needed. Many thanks again to Matthias and Aaron for their help which got me on the right track! Cheers, Max 2015-03-26 11:32 GMT+00:00 Maximilian Albert : > Hi Aaron, > > Thanks a lot for your suggestion! This is actually exactly what I tried > before sending my email to the list, and it does indeed work in certain > cases, but some of my notebooks didn't convert correctly with it. I've put > up a minimal example here: > > https://github.com/maxalbert/nbconvert-templating-issue > > If you type "make" it will use different templates to generate three pdf > documents from the notebook "minimal_example.ipynb" (more information on > what the templates do is in the README of the repo). You will see that for > the cell containing the image with the musical note, the "Out[]" prompt is > retained. The notebook "sample_notebook.ipynb" has a slightly longer > example, comparing with some other types of output cells for which the > "Out[]" prompt is indeed removed. > > I won't have time to dig into this before the weekend, and my jinja-fu is > almost zero, so if anyone has a quick idea what's going on here I'd > appreciate it. > > Many thanks! > Max > > 2015-03-24 11:27 GMT+00:00 Aaron O'Leary : > >> Sorry, I misread your question! You only want to remove the output >> prompts, not the whole output. >> >> Try this: >> >> ((*- extends 'article.tplx' >> -*)) >> >> >> >> % Disable input >> cells >> >> ((* block input_group >> *)) >> >> ((* endblock input_group >> *)) >> >> >> >> ((* block execute_result scoped >> *)) >> >> ((*- for type in output.data | filter_data_type >> -*)) >> >> ((*- if type in >> ['text/plain']*)) >> >> ((( output.data['text/plain'] | escape_latex >> ))) >> >> ((* else >> -*)) >> >> ((( super() >> ))) >> >> ((*- endif >> -*)) >> >> ((*- endfor >> -*)) >> >> ((* endblock execute_result *)) >> >> >> i.e. get rid of both the call to add_prompt and the manual prompt >> creation. >> >> On 24 March 2015 at 10:35, Aaron O'Leary wrote: >> >>> Hi Max, >>> >>> This is what you need: >>> >>> ((*- extends 'article.tplx' -*)) >>> >>> % Disable input cells >>> ((* block input_group *)) >>> ((* endblock input_group *)) >>> >>> % Disable output cells >>> ((* block output_group *)) >>> ((* endblock output_group *)) >>> >>> >>> You need to use 'output_group' instead of 'execute_result'. There are >>> quite a number of elements in the output and 'output_group' is the block >>> that covers all of them. >>> >>> You can get an overview of the block hierarchy by looking at >>> 'IPython/nbconvert/templates/latex/skeleton/null.tplx'. >>> >>> aaron >>> >>> >>> On 24 March 2015 at 01:08, Maximilian Albert < >>> maximilian.albert at gmail.com> wrote: >>> >>>> 2015-03-23 19:06 GMT+00:00 Matthias Bussonnier < >>>> bussonniermatthias at gmail.com>: >>>> >>>>> >>>>> I guess you need to inherit the following block : >>>>> >>>>> >>>>> ((* block execute_result scoped *)) >>>>> ((*- for type in output.data | filter_data_type -*)) >>>>> ((*- if type in ['text/plain']*)) >>>>> ((( add_prompt(output.data['text/plain'] | escape_latex, >>>>> cell, 'Out', 'outcolor') ))) >>>>> ((* else -*)) >>>>> \texttt{\color{outcolor}Out[{\color{outcolor}((( cell.execution_count >>>>> )))}]:}((( super() ))) >>>>> ((*- endif -*)) >>>>> ((*- endfor -*)) >>>>> ((* endblock execute_result *)) >>>>> >>>>> >>>>> form IPython/nbconvert/templates/latex/style_ipython.tplx >>>>> >>>>> And replace by what you wish. >>>>> >>>> >>>> >>>> Thanks for the suggestion! That's precisely what I tried, but the >>>> problem seems to be that the call to super() somehow adds an additional >>>> Out[] prompt. I'll try to dig deeper into this when I get the time (and/or >>>> make a minimal example available so that it can easily be reproduced), but >>>> if anyone has any quick ideas I'm happy to hear them. >>>> >>>> Cheers, >>>> Max >>>> >>>> P.S.: I noticed I forgot to include the link to the StackOverflow >>>> question I mentioned in my original email. Here it is: >>>> >>>> >>>> http://stackoverflow.com/questions/19524554/suppress-code-in-nbconvert-ipython >>>> >>>> >>>> _______________________________________________ >>>> IPython-dev mailing list >>>> IPython-dev at scipy.org >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>>> >>>> >>> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Sun Mar 29 15:11:43 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Sun, 29 Mar 2015 12:11:43 -0700 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output In-Reply-To: References: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> Message-ID: On Sun, Mar 29, 2015 at 3:30 AM, Maximilian Albert < maximilian.albert at gmail.com> wrote: > Even though this achieves what I need it's obviously not ideal because it > may break if something in the IPython templates changes or gets rearranged. > If I find the time I may try to have a look at how they can be refactored > so that less copying of template snippets is needed. We certainly would *love* to have more hands working on making these kinds of work much easier and cleaner. Any and all contributions of this kind will be very welcome, 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 benjaminrk at gmail.com Sun Mar 29 16:12:13 2015 From: benjaminrk at gmail.com (MinRK) Date: Sun, 29 Mar 2015 13:12:13 -0700 Subject: [IPython-dev] Controlling prioritization in IPython Parallel In-Reply-To: References: Message-ID: IPython.parallel currently has no support for task priority. -MinRK On Sun, Mar 29, 2015 at 1:44 AM, Yang Zhang wrote: > Can one specify any sort of prioritization to tasks submitted to an > IPython Cluster? > > The only hack I know of to accomplish something like this is to carefully > maintain a DAG of task dependencies and then, whenever submitting a new > prioritized tasks, you'd need to abort all (non-started) tasks, reconstruct > the DAG, and submit all the tasks again. > > _______________________________________________ > 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 maximilian.albert at gmail.com Sun Mar 29 17:23:27 2015 From: maximilian.albert at gmail.com (Maximilian Albert) Date: Sun, 29 Mar 2015 22:23:27 +0100 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output In-Reply-To: References: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> Message-ID: 2015-03-29 20:11 GMT+01:00 Fernando Perez : > > On Sun, Mar 29, 2015 at 3:30 AM, Maximilian Albert < > maximilian.albert at gmail.com> wrote: > >> Even though this achieves what I need it's obviously not ideal because it >> may break if something in the IPython templates changes or gets rearranged. >> If I find the time I may try to have a look at how they can be refactored >> so that less copying of template snippets is needed. > > > We certainly would *love* to have more hands working on making these kinds > of work much easier and cleaner. Any and all contributions of this kind > will be very welcome, thanks!! > Sure, I'm more than happy to take a look. I'll wait until the repo reorganisation/splitting is over, though. Best wishes, Max -------------- next part -------------- An HTML attachment was scrubbed... URL: From fperez.net at gmail.com Sun Mar 29 17:26:39 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Sun, 29 Mar 2015 14:26:39 -0700 Subject: [IPython-dev] Controlling prioritization in IPython Parallel In-Reply-To: References: Message-ID: On Sun, Mar 29, 2015 at 1:12 PM, MinRK wrote: > IPython.parallel currently has no support for task priority. > And as usual, if anyone has cycles to put into it, we'd be very happy to receive contributions on that front! -- 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 Sun Mar 29 17:27:12 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Sun, 29 Mar 2015 14:27:12 -0700 Subject: [IPython-dev] Removing "Out[]" prompts in nbconvert PDF output In-Reply-To: References: <443B4B8C-748A-41F5-96DE-03FD42745E4A@gmail.com> Message-ID: On Sun, Mar 29, 2015 at 2:23 PM, Maximilian Albert < maximilian.albert at gmail.com> wrote: > I'll wait until the repo reorganisation/splitting is over, though. Certainly! Looking forward to having you contribute after the dust settles. -- 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 Sun Mar 29 21:05:09 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Sun, 29 Mar 2015 18:05:09 -0700 Subject: [IPython-dev] Welcoming Jessica Hamrick to the Jupyter Steering Council Message-ID: Hi all, I'd like to welcome Jess to the Steering Council. After discussion of her nomination with the Council, she agreed to join the team. Jess has been contributing to multiple aspects of the project for a while now, most recently via her amazing work on nbgrader + jupyterhub, which she detailed in the great blog post many of you probably read: https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ We look forward to having her continue to engage the project not only as an active developer but also as a member of the Council. Congrats, Jess! Fernando, on behalf of the Jupyter Steering Council. -- 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 ellisonbg at gmail.com Sun Mar 29 21:14:30 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Sun, 29 Mar 2015 18:14:30 -0700 Subject: [IPython-dev] [jupyter] Welcoming Jessica Hamrick to the Jupyter Steering Council In-Reply-To: References: Message-ID: Congrats Jess! This is well deserved! Cheers, Brian On Sun, Mar 29, 2015 at 6:05 PM, Fernando Perez wrote: > Hi all, > > I'd like to welcome Jess to the Steering Council. After discussion of her > nomination with the Council, she agreed to join the team. > > Jess has been contributing to multiple aspects of the project for a while > now, most recently via her amazing work on nbgrader + jupyterhub, which she > detailed in the great blog post many of you probably read: > > https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ > > We look forward to having her continue to engage the project not only as > an active developer but also as a member of the Council. > > Congrats, Jess! > > Fernando, on behalf of the Jupyter Steering Council. > > -- > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jupyter+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/CAHAreOoj7%2B62Qw3z4mnKuESyfxonCoJt6QeLgt-HZLMmiDzE%2Bw%40mail.gmail.com > > . > For more options, visit https://groups.google.com/d/optout. > -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rgbkrk at gmail.com Sun Mar 29 21:16:03 2015 From: rgbkrk at gmail.com (Kyle Kelley) Date: Sun, 29 Mar 2015 19:16:03 -0600 Subject: [IPython-dev] [jupyter] Welcoming Jessica Hamrick to the Jupyter Steering Council In-Reply-To: References: Message-ID: Congrats Jess! Great to have you! -- Kyle On Sunday, March 29, 2015, Brian Granger wrote: > Congrats Jess! This is well deserved! > > Cheers, > > Brian > > On Sun, Mar 29, 2015 at 6:05 PM, Fernando Perez > wrote: > >> Hi all, >> >> I'd like to welcome Jess to the Steering Council. After discussion of >> her nomination with the Council, she agreed to join the team. >> >> Jess has been contributing to multiple aspects of the project for a while >> now, most recently via her amazing work on nbgrader + jupyterhub, which she >> detailed in the great blog post many of you probably read: >> >> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >> >> We look forward to having her continue to engage the project not only as >> an active developer but also as a member of the Council. >> >> Congrats, Jess! >> >> Fernando, on behalf of the Jupyter Steering Council. >> >> -- >> 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 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Project Jupyter" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jupyter+unsubscribe at googlegroups.com >> . >> To post to this group, send email to jupyter at googlegroups.com >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/CAHAreOoj7%2B62Qw3z4mnKuESyfxonCoJt6QeLgt-HZLMmiDzE%2Bw%40mail.gmail.com >> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Brian E. Granger > Cal Poly State University, San Luis Obispo > @ellisonbg on Twitter and GitHub > bgranger at calpoly.edu > and > ellisonbg at gmail.com > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jupyter+unsubscribe at googlegroups.com > . > To post to this group, send email to jupyter at googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/CAH4pYpTnB8SOtqu-tDXmrravfVvzzcaagTGks%3DjWHXHrK1Nipw%40mail.gmail.com > > . > For more options, visit https://groups.google.com/d/optout. > -- Kyle Kelley (@rgbkrk ; lambdaops.com, developer.rackspace.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: From damianavila at gmail.com Sun Mar 29 21:38:36 2015 From: damianavila at gmail.com (=?UTF-8?Q?Dami=C3=A1n_Avila?=) Date: Sun, 29 Mar 2015 22:38:36 -0300 Subject: [IPython-dev] [jupyter] Welcoming Jessica Hamrick to the Jupyter Steering Council In-Reply-To: References: Message-ID: Congratulations! Jess! Nice to have you on board! ;-) Cheers. 2015-03-29 22:16 GMT-03:00 Kyle Kelley : > Congrats Jess! Great to have you! > > -- Kyle > > > On Sunday, March 29, 2015, Brian Granger wrote: > >> Congrats Jess! This is well deserved! >> >> Cheers, >> >> Brian >> >> On Sun, Mar 29, 2015 at 6:05 PM, Fernando Perez >> wrote: >> >>> Hi all, >>> >>> I'd like to welcome Jess to the Steering Council. After discussion of >>> her nomination with the Council, she agreed to join the team. >>> >>> Jess has been contributing to multiple aspects of the project for a >>> while now, most recently via her amazing work on nbgrader + jupyterhub, >>> which she detailed in the great blog post many of you probably read: >>> >>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>> >>> We look forward to having her continue to engage the project not only as >>> an active developer but also as a member of the Council. >>> >>> Congrats, Jess! >>> >>> Fernando, on behalf of the Jupyter Steering Council. >>> >>> -- >>> 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 >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Project Jupyter" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to jupyter+unsubscribe at googlegroups.com. >>> To post to this group, send email to jupyter at googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jupyter/CAHAreOoj7%2B62Qw3z4mnKuESyfxonCoJt6QeLgt-HZLMmiDzE%2Bw%40mail.gmail.com >>> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Brian E. Granger >> Cal Poly State University, San Luis Obispo >> @ellisonbg on Twitter and GitHub >> bgranger at calpoly.edu and ellisonbg at gmail.com >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Project Jupyter" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jupyter+unsubscribe at googlegroups.com. >> To post to this group, send email to jupyter at googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/CAH4pYpTnB8SOtqu-tDXmrravfVvzzcaagTGks%3DjWHXHrK1Nipw%40mail.gmail.com >> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Kyle Kelley (@rgbkrk ; lambdaops.com, > developer.rackspace.com) > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > http://mail.scipy.org/mailman/listinfo/ipython-dev > > -- *Dami?n* -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Sun Mar 29 21:58:11 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Sun, 29 Mar 2015 18:58:11 -0700 Subject: [IPython-dev] [jupyter] Welcoming Jessica Hamrick to the Jupyter Steering Council In-Reply-To: References: Message-ID: Congratulation to you Jess, You are a worthy part of the team, and don't take this nomination as one more excuse not to work on your PhD ! On Sun, Mar 29, 2015 at 6:38 PM, Dami?n Avila wrote: > Congratulations! Jess! > Nice to have you on board! ;-) > > Cheers. > > 2015-03-29 22:16 GMT-03:00 Kyle Kelley : > >> Congrats Jess! Great to have you! >> >> -- Kyle >> >> >> On Sunday, March 29, 2015, Brian Granger wrote: >> >>> Congrats Jess! This is well deserved! >>> >>> Cheers, >>> >>> Brian >>> >>> On Sun, Mar 29, 2015 at 6:05 PM, Fernando Perez >>> wrote: >>> >>>> Hi all, >>>> >>>> I'd like to welcome Jess to the Steering Council. After discussion of >>>> her nomination with the Council, she agreed to join the team. >>>> >>>> Jess has been contributing to multiple aspects of the project for a >>>> while now, most recently via her amazing work on nbgrader + jupyterhub, >>>> which she detailed in the great blog post many of you probably read: >>>> >>>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>>> >>>> We look forward to having her continue to engage the project not only >>>> as an active developer but also as a member of the Council. >>>> >>>> Congrats, Jess! >>>> >>>> Fernando, on behalf of the Jupyter Steering Council. >>>> >>>> -- >>>> 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 >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Project Jupyter" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to jupyter+unsubscribe at googlegroups.com. >>>> To post to this group, send email to jupyter at googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jupyter/CAHAreOoj7%2B62Qw3z4mnKuESyfxonCoJt6QeLgt-HZLMmiDzE%2Bw%40mail.gmail.com >>>> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Brian E. Granger >>> Cal Poly State University, San Luis Obispo >>> @ellisonbg on Twitter and GitHub >>> bgranger at calpoly.edu and ellisonbg at gmail.com >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Project Jupyter" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to jupyter+unsubscribe at googlegroups.com. >>> To post to this group, send email to jupyter at googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jupyter/CAH4pYpTnB8SOtqu-tDXmrravfVvzzcaagTGks%3DjWHXHrK1Nipw%40mail.gmail.com >>> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> -- >> Kyle Kelley (@rgbkrk ; lambdaops.com, >> developer.rackspace.com) >> >> >> _______________________________________________ >> IPython-dev mailing list >> IPython-dev at scipy.org >> http://mail.scipy.org/mailman/listinfo/ipython-dev >> >> > > > -- > *Dami?n* > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jupyter+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/CAH%2BmRR2B%2BQRqPxk8cZRCG7p6tFmRUWdCiWPMe%2BSkxEtwec6Jhg%40mail.gmail.com > > . > > For more options, visit https://groups.google.com/d/optout. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhamrick at berkeley.edu Mon Mar 30 09:45:00 2015 From: jhamrick at berkeley.edu (Jessica B. Hamrick) Date: Mon, 30 Mar 2015 06:45:00 -0700 Subject: [IPython-dev] [jupyter] Welcoming Jessica Hamrick to the Jupyter Steering Council In-Reply-To: References: Message-ID: Thanks, everyone! I'm super psyched to be part of the team :-) Jess -- UC Berkeley, Department of Psychology Computational Cognitive Science Lab http://www.jesshamrick.com On Sun, Mar 29, 2015 at 6:58 PM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Congratulation to you Jess, > > You are a worthy part of the team, and don't take this nomination as one > more excuse not to work on your PhD ! > > > > On Sun, Mar 29, 2015 at 6:38 PM, Dami?n Avila > wrote: > >> Congratulations! Jess! >> Nice to have you on board! ;-) >> >> Cheers. >> >> 2015-03-29 22:16 GMT-03:00 Kyle Kelley : >> >>> Congrats Jess! Great to have you! >>> >>> -- Kyle >>> >>> >>> On Sunday, March 29, 2015, Brian Granger wrote: >>> >>>> Congrats Jess! This is well deserved! >>>> >>>> Cheers, >>>> >>>> Brian >>>> >>>> On Sun, Mar 29, 2015 at 6:05 PM, Fernando Perez >>>> wrote: >>>> >>>>> Hi all, >>>>> >>>>> I'd like to welcome Jess to the Steering Council. After discussion of >>>>> her nomination with the Council, she agreed to join the team. >>>>> >>>>> Jess has been contributing to multiple aspects of the project for a >>>>> while now, most recently via her amazing work on nbgrader + jupyterhub, >>>>> which she detailed in the great blog post many of you probably read: >>>>> >>>>> >>>>> https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ >>>>> >>>>> We look forward to having her continue to engage the project not only >>>>> as an active developer but also as a member of the Council. >>>>> >>>>> Congrats, Jess! >>>>> >>>>> Fernando, on behalf of the Jupyter Steering Council. >>>>> >>>>> -- >>>>> 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 >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Project Jupyter" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to jupyter+unsubscribe at googlegroups.com. >>>>> To post to this group, send email to jupyter at googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/jupyter/CAHAreOoj7%2B62Qw3z4mnKuESyfxonCoJt6QeLgt-HZLMmiDzE%2Bw%40mail.gmail.com >>>>> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Brian E. Granger >>>> Cal Poly State University, San Luis Obispo >>>> @ellisonbg on Twitter and GitHub >>>> bgranger at calpoly.edu and ellisonbg at gmail.com >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Project Jupyter" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to jupyter+unsubscribe at googlegroups.com. >>>> To post to this group, send email to jupyter at googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jupyter/CAH4pYpTnB8SOtqu-tDXmrravfVvzzcaagTGks%3DjWHXHrK1Nipw%40mail.gmail.com >>>> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> -- >>> Kyle Kelley (@rgbkrk ; lambdaops.com, >>> developer.rackspace.com) >>> >>> >>> _______________________________________________ >>> IPython-dev mailing list >>> IPython-dev at scipy.org >>> http://mail.scipy.org/mailman/listinfo/ipython-dev >>> >>> >> >> >> -- >> *Dami?n* >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Project Jupyter" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jupyter+unsubscribe at googlegroups.com. >> To post to this group, send email to jupyter at googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/CAH%2BmRR2B%2BQRqPxk8cZRCG7p6tFmRUWdCiWPMe%2BSkxEtwec6Jhg%40mail.gmail.com >> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jupyter+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/CANJQusWnqvjA%2BJk-S6hF0Eo64GodkXPD80ne8dssW%3DL3g8jS%2Bw%40mail.gmail.com > > . > > For more options, visit https://groups.google.com/d/optout. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick.bollweg at gmail.com Mon Mar 30 11:05:43 2015 From: nick.bollweg at gmail.com (Nicholas Bollweg) Date: Mon, 30 Mar 2015 11:05:43 -0400 Subject: [IPython-dev] [jupyter] Re: IHaskell on Jupyter In-Reply-To: <095EA2AD-DC8B-4A0D-A8F3-61C2BD11B635@gmail.com> References: <5AE8F615-C1AF-47DF-894F-98FD315934A5@gmail.com> <095EA2AD-DC8B-4A0D-A8F3-61C2BD11B635@gmail.com> Message-ID: Sounding good. I had a look at docker-demo-images . It seems very monolithic right now, and was very hard to get to build completely, though this is likely due to the ongoing github vs nation state issues. My first question is whether, before asking people to start hacking on it, to modularize it a bit more... basically, have everyone that wants a kernel have one place where they PR, and have an agreed-upon structure: - Dockerfile ... ADD kernels /srv/kernels RUN find /srv/kernels -name install.sh -exec bash {} \; ... USER joyvan ... RUN cp -r /srv/kernels - kernels - Julia - install.sh - Welcome.ipynb - R - install.sh - Welcome.ipynb The larger question, though is: why have one image to rule them all? This base image, is already many gigabytes, and only has the three kernels, and a (heaping) handful of notebooks. As we add more kernels and notebooks, it will only get slower to build and more fragile w/r/t dependencies. If we're already requiring a kernel author to understand docker (which they should, presumably), perhaps an approach where we allow kernel authors to provider a link to a Docker image, preferrably as automated official builds, we be more beneficial, as then the images themselves would be usable outside of try/tmpnb. I don't know what this would take, and whether dockerspawner could handle it anyway. Thoughts? -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjamin.ninassi at inria.fr Tue Mar 31 09:37:44 2015 From: benjamin.ninassi at inria.fr (Benjamin Ninassi) Date: Tue, 31 Mar 2015 15:37:44 +0200 (CEST) Subject: [IPython-dev] [jupyter]News from a French Mooc about Python with ipython In-Reply-To: References: Message-ID: <341582656.3823540.1427809064291.JavaMail.zimbra@inria.fr> Hi all, Months ago I told you about our purpose to use ipython notebooks on a web plateform (without requiring students to install anything on their computer) in a Mooc about python programming on the governmental french Mooc plateform https://www.france-universite-numerique-mooc.fr/ . The mooc ( https://www.france-universite-numerique-mooc.fr/courses/inria/41001/Trimestre_4_2014/about ) took place between november and december 2014, featuring 111 ipython notebooks (+ videos, quizz and other contents). On this occasion we have developed an application infrastructure around ipython notebooks. This infrastructure allows, through a URL containing a student identifier and a notebook name : - to dynamically create student accounts on the server - to copy the teacher's notebook to the student directory, and create access to some resources (data, media) - to dynamically launch an ipython dedicated web server for the student (assuming it's not already running) so that it can use its versions of the notebooks in a mastered context (for security issues) Some other features have been developed and integrated (eg deployment management of the teacher notebooks), the possibility to reset notebook (get the latest version of the teacher), the ability to generate a static html version deployed in the student space, allowing him to share its results with other students (through eg forum), etc. The GUI has also been slightly customized to access these features and limit feasible actions by students who do not know the keyboard shortcuts. A xBlock for OpenEdx was created so as to include these notebooks in the MOOC platform through an iframe to completely integrate the course complements the platform. The developments were largely made in php / Symfony2 + some shell scripts, the server-side security was mostly made with AppArmor. The MOOC went very well (over 9,000 enrolled students) and feedbacks on the notebooks were extremely positive! This application will be reused in a robotics MOOC before this summer, and the python programming MOOC will be replayed next fall. We had no time to properly package the developments or write anything on the subject, but as I discover https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ , I feel JupyterHub was Developed to meet a similar need, any feedback on its use in a Mooc or any massive environnement with hundreds of students at a time would be interesting ! Feel free to come back to me with any questions ! Best regards, Benjamin -- Benjamin Ninassi SEISM - Development Team & Mooclab INRIA T?l. (+33) 02 99 84 73 43 benjamin.ninassi at inria.fr ----- Mail original ----- De: "Jessica B. Hamrick" ?: jupyter at googlegroups.com Cc: "IPython developers list" Envoy?: Lundi 30 Mars 2015 15:45:00 Objet: Re: [IPython-dev] [jupyter] Welcoming Jessica Hamrick to the Jupyter Steering Council Thanks, everyone! I'm super psyched to be part of the team :-) Jess -- UC Berkeley, Department of Psychology Computational Cognitive Science Lab http://www.jesshamrick.com On Sun, Mar 29, 2015 at 6:58 PM, Matthias Bussonnier < bussonniermatthias at gmail.com > wrote:
Congratulation to you Jess, You are a worthy part of the team, and don't take this nomination as one more excuse not to work on your PhD ! On Sun, Mar 29, 2015 at 6:38 PM, Dami?n Avila < damianavila at gmail.com > wrote:
Congratulations! Jess! Nice to have you on board! ;-) Cheers. 2015-03-29 22:16 GMT-03:00 Kyle Kelley < rgbkrk at gmail.com > :
Congrats Jess! Great to have you! -- Kyle On Sunday, March 29, 2015, Brian Granger < ellisonbg at gmail.com > wrote:
Congrats Jess! This is well deserved! Cheers, Brian On Sun, Mar 29, 2015 at 6:05 PM, Fernando Perez < fperez.net at gmail.com > wrote:
Hi all, I'd like to welcome Jess to the Steering Council. After discussion of her nomination with the Council, she agreed to join the team. Jess has been contributing to multiple aspects of the project for a while now, most recently via her amazing work on nbgrader + jupyterhub, which she detailed in the great blog post many of you probably read: https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ We look forward to having her continue to engage the project not only as an active developer but also as a member of the Council. Congrats, Jess! Fernando, on behalf of the Jupyter Steering Council. -- 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 -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe at googlegroups.com . To post to this group, send email to jupyter at googlegroups.com . To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAHAreOoj7%2B62Qw3z4mnKuESyfxonCoJt6QeLgt-HZLMmiDzE%2Bw%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout . -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe at googlegroups.com . To post to this group, send email to jupyter at googlegroups.com . To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAH4pYpTnB8SOtqu-tDXmrravfVvzzcaagTGks%3DjWHXHrK1Nipw%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout .
-- Kyle Kelley ( @rgbkrk ; lambdaops.com , developer.rackspace.com ) _______________________________________________ IPython-dev mailing list IPython-dev at scipy.org http://mail.scipy.org/mailman/listinfo/ipython-dev
-- Dami?n -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe at googlegroups.com . To post to this group, send email to jupyter at googlegroups.com . To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAH%2BmRR2B%2BQRqPxk8cZRCG7p6tFmRUWdCiWPMe%2BSkxEtwec6Jhg%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout .
-- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe at googlegroups.com . To post to this group, send email to jupyter at googlegroups.com . To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CANJQusWnqvjA%2BJk-S6hF0Eo64GodkXPD80ne8dssW%3DL3g8jS%2Bw%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout .
_______________________________________________ IPython-dev mailing list IPython-dev at scipy.org http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Tue Mar 31 13:59:29 2015 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Tue, 31 Mar 2015 10:59:29 -0700 Subject: [IPython-dev] [jupyter]News from a French Mooc about Python with ipython In-Reply-To: <341582656.3823540.1427809064291.JavaMail.zimbra@inria.fr> References: <341582656.3823540.1427809064291.JavaMail.zimbra@inria.fr> Message-ID: Bonjour Benjamin, Le 31 mars 2015 ? 06:37, Benjamin Ninassi a ?crit : > Hi all, > > Months ago I told you about our purpose to use ipython notebooks on a web plateform (without requiring students to install anything on their computer) in a Mooc about python programming on the governmental french Mooc plateform https://www.france-universite-numerique-mooc.fr/. > > The mooc (https://www.france-universite-numerique-mooc.fr/courses/inria/41001/Trimestre_4_2014/about) took place between november and december 2014, featuring 111 ipython notebooks (+ videos, quizz and other contents). That's great to hear, and we really appreciate you coming back to us with such information, it is a really helpful to know what are the usage of IPython. > > On this occasion we have developed an application infrastructure around ipython notebooks. > This infrastructure allows, through a URL containing a student identifier and a notebook name : > - to dynamically create student accounts on the server > - to copy the teacher's notebook to the student directory, and create access to some resources (data, media) > - to dynamically launch an ipython dedicated web server for the student (assuming it's not already running) so that it can use its versions of the notebooks in a mastered context (for security issues) > > Some other features have been developed and integrated (eg deployment management of the teacher notebooks), the possibility to reset notebook (get the latest version of the teacher), the ability to generate a static html version deployed in the student space, allowing him to share its results with other students (through eg forum), etc. The GUI has also been slightly customized to access these features and limit feasible actions by students who do not know the keyboard shortcuts. A xBlock for OpenEdx was created so as to include these notebooks in the MOOC platform through an iframe to completely integrate the course complements the platform. > The developments were largely made in php / Symfony2 + some shell scripts, the server-side security was mostly made with AppArmor. > > The MOOC went very well (over 9,000 enrolled students) and feedbacks on the notebooks were extremely positive! > This application will be reused in a robotics MOOC before this summer, and the python programming MOOC will be replayed next fall. > > We had no time to properly package the developments or write anything on the subject, but as I discover https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ , I feel JupyterHub was Developed to meet a similar need, any feedback on its use in a Mooc or any massive environnement with hundreds of students at a time would be interesting ! That's awesome, I suppose the decision to not develop that completely in the open is not yours, and I hope that this was not too much re-inventing the same things both on our and your side. I don't know how much you can share that, but it would be nice to compare the workflow of your platform and yours too see where we can improve both. Maybe it would be possible to at least share that in private ? Or get thoughts on security or challenges you had ? As you have probably seen in Jess email, we are going release things relatively soon (though they are already available on github) and we will continue to develop and push things forward. we would really appreciate your contribution, and listen to your needs to get something reusable. > Feel free to come back to me with any questions ! Have you talk to / hear of the mood of Lorena Barbara, i think they are also integrating with EDX. Any chance you can share some feedback/analytics of how students are using the notebooks ? We might develop a extension that collect some of students behavior like which keyboard shortcut/button they use. Would you be interested in using it ? Thanks, keep us informed, and looking forward to more collaboration. -- M -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellisonbg at gmail.com Tue Mar 31 14:47:47 2015 From: ellisonbg at gmail.com (Brian Granger) Date: Tue, 31 Mar 2015 11:47:47 -0700 Subject: [IPython-dev] [jupyter]News from a French Mooc about Python with ipython In-Reply-To: References: <341582656.3823540.1427809064291.JavaMail.zimbra@inria.fr> Message-ID: Benjamin, Thanks for sharing this. JupyterHub is definitely being built for this type of things exactly - although deploying it at scale is definitely non-trivial. We would love to have you help on JupyterHub in any way you are able! Cheers, Brian On Tue, Mar 31, 2015 at 10:59 AM, Matthias Bussonnier < bussonniermatthias at gmail.com> wrote: > Bonjour Benjamin, > > > Le 31 mars 2015 ? 06:37, Benjamin Ninassi a > ?crit : > > Hi all, > > Months ago I told you about our purpose to use ipython notebooks on a web > plateform (without requiring students to install anything on their > computer) in a Mooc about python programming on the governmental french > Mooc plateform https://www.france-universite-numerique-mooc.fr/. > > The mooc ( > https://www.france-universite-numerique-mooc.fr/courses/inria/41001/Trimestre_4_2014/about) > took place between november and december 2014, featuring 111 ipython > notebooks (+ videos, quizz and other contents). > > > > That's great to hear, and we really appreciate you coming back to us with > such information, > it is a really helpful to know what are the usage of IPython. > > > On this occasion we have developed an application infrastructure around > ipython notebooks. > This infrastructure allows, through a URL containing a student identifier > and a notebook name : > - to dynamically create student accounts on the server > - to copy the teacher's notebook to the student directory, and create > access to some resources (data, media) > - to dynamically launch an ipython dedicated web server for the student > (assuming it's not already running) so that it can use its versions of the > notebooks in a mastered context (for security issues) > > Some other features have been developed and integrated (eg deployment > management of the teacher notebooks), the possibility to reset notebook > (get the latest version of the teacher), the ability to generate a static > html version deployed in the student space, allowing him to share its > results with other students (through eg forum), etc. The GUI has also been > slightly customized to access these features and limit feasible actions by > students who do not know the keyboard shortcuts. A xBlock for OpenEdx was > created so as to include these notebooks in the MOOC platform through an > iframe to completely integrate the course complements the platform. > The developments were largely made in php / Symfony2 + some shell scripts, > the server-side security was mostly made with AppArmor. > > The MOOC went very well (over 9,000 enrolled students) and feedbacks on > the notebooks were extremely positive! > This application will be reused in a robotics MOOC before this summer, and > the python programming MOOC will be replayed next fall. > > We had no time to properly package the developments or write anything on > the subject, but as I discover > https://developer.rackspace.com/blog/deploying-jupyterhub-for-education/ > , I feel JupyterHub was Developed to meet a similar need, any feedback on > its use in a Mooc or any massive environnement with hundreds of students at > a time would be interesting ! > > > > That's awesome, I suppose the decision to not develop that completely in > the open is not yours, and I hope that this was not too much re-inventing > the same things both on our and your side. > > I don't know how much you can share that, but it would be nice to compare > the workflow of your platform and yours too see where we can improve both. > Maybe it would be possible to at least share that in private ? Or get > thoughts on security or challenges you had ? > > As you have probably seen in Jess email, we are going release things > relatively soon (though they are already available on github) and we will > continue to develop and push things forward. we would really appreciate > your contribution, and listen to your needs to get something reusable. > > > Feel free to come back to me with any questions ! > > > > Have you talk to / hear of the mood of Lorena Barbara, i think they are > also integrating with EDX. > > Any chance you can share some feedback/analytics of how students are using > the notebooks ? > We might develop a extension that collect some of students behavior like > which keyboard shortcut/button they use. > Would you be interested in using it ? > > > Thanks, keep us informed, and looking forward to more collaboration. > -- > M > > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jupyter+unsubscribe at googlegroups.com. > To post to this group, send email to jupyter at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/AD7305A5-D667-4AA6-BD9F-AC8F22CC463A%40gmail.com > > . > For more options, visit https://groups.google.com/d/optout. > -- Brian E. Granger Cal Poly State University, San Luis Obispo @ellisonbg on Twitter and GitHub bgranger at calpoly.edu and ellisonbg at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nordin at byu.edu Tue Mar 31 20:38:12 2015 From: nordin at byu.edu (Greg Nordin) Date: Tue, 31 Mar 2015 17:38:12 -0700 (PDT) Subject: [IPython-dev] Equation numbering Message-ID: <1427848692720-5091129.post@n6.nabble.com> I'm wondering with the move to Jupyter and breaking it up into smaller modules, is there a plan for equation numbering in markdown cells? I know ngoldbaum opened Issue #4113 on this question, but I haven't seen any recent information. For many of us who are developing course materials based on ipython notebooks, this is a critical issue. -- View this message in context: http://python.6.x6.nabble.com/Equation-numbering-tp5091129.html Sent from the IPython - Development mailing list archive at Nabble.com. From fperez.net at gmail.com Tue Mar 31 20:39:49 2015 From: fperez.net at gmail.com (Fernando Perez) Date: Tue, 31 Mar 2015 17:39:49 -0700 Subject: [IPython-dev] [jupyter]News from a French Mooc about Python with ipython In-Reply-To: <341582656.3823540.1427809064291.JavaMail.zimbra@inria.fr> References: <341582656.3823540.1427809064291.JavaMail.zimbra@inria.fr> Message-ID: Bonjour Benjamin, On Tue, Mar 31, 2015 at 6:37 AM, Benjamin Ninassi wrote: > Months ago I told you about our purpose to use ipython notebooks on a web > plateform (without requiring students to install anything on their > computer) in a Mooc about python programming on the governmental french > Mooc plateform https://www.france-universite-numerique-mooc.fr/. > > The mooc ( > https://www.france-universite-numerique-mooc.fr/courses/inria/41001/Trimestre_4_2014/about) > took place between november and december 2014, featuring 111 ipython > notebooks (+ videos, quizz and other contents). > Many thanks for sharing this! As a perfect coincidence, an INRIA researcher was visiting our group at LBL as I was reading this message, and I was able to share your message with her. She is likely to teach a MOOC on the FUN platform this fall, so she might be in touch with you regarding some of this work (her area is systems research, so it's not 100% clear that IPython will help her yet). Excellent timing :) I do hope that in the long run, you'll be able to bring your experience and feedback into the rest of the project. We'd love to have your contributions! 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: