[jupyter] Handling the Runtime error cause by Cell execution Time out inside a python program (python 2.7)

2016-10-14 Thread Sreehari S
Hello! I was working on writing a script that can test ipython notebooks. I need to catch the Error that is raised when a cell execution times out and continue executing the remaining cells. For python 3+, I can simply do this as: except TimeoutError as e: But in python 2.6/2.7, a RuntimeErr

Re: [jupyter] JupyterLab Migration

2016-10-14 Thread MinRK
This means that really all Jupyter javascript is actually called "juptyerlab" now, yes? Any new Jupyter js would go on the jupyterlab org, even if it's not to do with jupyterlab (e.g. services)? -Min On Thu, Oct 13, 2016 at 3:20 PM, Steven Silvester wrote: > Hi all, > > Yesterday we moved Jupyt

Re: [jupyter] Handling the Runtime error cause by Cell execution Time out inside a python program (python 2.7)

2016-10-14 Thread Thomas Kluyver
On 14 October 2016 at 11:30, Sreehari S wrote: > But in python 2.6/2.7, a RuntimeError results (as documented here : > https://github.com/jupyter/nbconvert/blob/master/nbconvert/preprocessors/ > execute.py#L48 ) > > How do I handle this? > Catch RuntimeError? You can also set no timeout if that

Re: [jupyter] JupyterLab Migration

2016-10-14 Thread Brian Granger
Great question! We talked about this and I can provide some of the reasoning...more than willing to reconsider if needed... * From the versioning perspective, we are releasing juptyerlab and jupyter-js-service is lock step. * From a "who is working on what" it is the same group of folks working on

Re: [jupyter] JupyterLab Migration

2016-10-14 Thread MinRK
On Fri, Oct 14, 2016 at 3:41 PM, Brian Granger wrote: > Great question! We talked about this and I can provide some of the > reasoning...more than willing to reconsider if needed... > > * From the versioning perspective, we are releasing juptyerlab and > jupyter-js-service is lock step. > * From

Re: [jupyter] JupyterLab Migration

2016-10-14 Thread Brian Granger
It is interesting that the downsides of adding more orgs is relatively small, whereas the downsides of adding more repos feels more significant...although I am not proposing an org per repo ;-) On Fri, Oct 14, 2016 at 9:51 AM, MinRK wrote: > > > On Fri, Oct 14, 2016 at 3:41 PM, Brian Granger wro

Re: [jupyter] JupyterLab Migration

2016-10-14 Thread MinRK
On Fri, Oct 14, 2016 at 4:04 PM, Brian Granger wrote: > It is interesting that the downsides of adding more orgs is relatively > small, whereas the downsides of adding more repos feels more > significant...although I am not proposing an org per repo ;-) > I think there's a hierarchy effect. All

Re: [jupyter] Handling the Runtime error cause by Cell execution Time out inside a python program (python 2.7)

2016-10-14 Thread Sreehari S
Just got this to work! What I was looking for was a way to differentiate this one particular Runtime errors from the other runtime errors: except RuntimeError as e: if "Cell execution timed out" in e.message: print(e) else:

Re: [jupyter] Jupyter commands

2016-10-14 Thread Matthias Bussonnier
It's kind of a hackish way but in classical notebooks you can do the following in a Js Console: >>> Object.keys(IPython.notebook.keyboard_manager.command_shortcuts.actions._actions) Which for me give the following: ["jupyter-notebook:restart-kernel", "jupyter-notebook:confirm-restart-kernel", "j

[jupyter] Jupyter + Matlab

2016-10-14 Thread Sam
Hi All, I am starting a project which involves the "matlab_kernel". The plan is to write 'MATLAB' code in Jupyter notebook and run it using online Matlab (instead of the local executable) which is hosted on some website/web-service. Any suggestion on how to proceed with this? Any inputs will be

[jupyter] Systemd Spawner for JupyterHub released

2016-10-14 Thread Yuvi Panda
Hello! I'm proud to announce the initial release of a Systemd Spawner for JupyterHub. You can install it from PyPI as `jupyterhub-systemdspawner`, and read the documentation at https://github.com/jupyterhub/systemdspawner If you want to use Linux Containers (Docker, rkt, etc) for isolation and se

[jupyter] Re: How does Jupyter Kernel Gateway Manages Multi-Tendency

2016-10-14 Thread Peter Parente
Hi T Wang, The kernel gateway is based on the same code as the notebook server which means its fundamentally a single-user service. Multitenancy is gained by running multiple gateways, authenticating users with an external service, routing all user traffic to the correct gateway instance and th

Re: [jupyter] Jupyter commands

2016-10-14 Thread Peter Cederholm
Thank you, Matthias (: Peter Den fredag den 14. oktober 2016 kl. 19.36.21 UTC+2 skrev Matthias Bussonnier: > > It's kind of a hackish way but in classical notebooks you can do the > following in a Js Console: > > >>> > Object.keys(IPython.notebook.keyboard_manager.command_shortcuts.actions._a