These are chat archives for ipython/ipython

4th
Nov 2014
Kyle Kelley
@rgbkrk
Nov 04 2014 03:28
Apparently I have a missed notification from this chat, but the iOS client doesn't give a good way of finding it
Jason Grout
@jasongrout
Nov 04 2014 15:38
@takluyver - do you know where the code is for the global kernels directory?
Kyle Kelley
@rgbkrk
Nov 04 2014 15:59
Something is definitely slower about notebook startup recently
From master
Kyle Kelley
@rgbkrk
Nov 04 2014 17:33
Is there a way to specify a URL for loading IPython's static resources from?
Set torando's static_url?
Jonathan Frederic
@jdfreder
Nov 04 2014 17:35
@rgbkrk the page template sets all the require.js options
but that only affects requirejs loaded stuff
I'm not sure about the {{static_url(...)}}, someone else may know
Jason Grout
@jasongrout
Nov 04 2014 17:42
thanks @takluyver. It would be great if there were some way to specify some directories to be installed in nbextensions (either system directories or personal directories if --user is given, or something) at install time, probably via some custom keyword arguments to setup() or something. I might look at this later.
of course, we need system nbextension directories first, so thanks for pointing out that code
Thomas Kluyver
@takluyver
Nov 04 2014 19:22
@/all #6778 is the backport of nbformat 4 to 2.x. I think it's looking good, and the nbformat 4 code obviously got a lot of review.
Shall we push the button on it, or do people want to go through it more carefully?
Jonathan Frederic
@jdfreder
Nov 04 2014 21:17
Ugh, JS test working fine on local machine, script error on Travis.
Thomas Kluyver
@takluyver
Nov 04 2014 21:29
script error usually seems to mean 404, in my experience
not sure why
Jonathan Frederic
@jdfreder
Nov 04 2014 21:29
If so, that's infuriating
it says it's checking out the right submodule commit
I have no idea how the file could just not be there
Am I suppose to whitelist it somewhere? Like in our setup files?
Thomas Kluyver
@takluyver
Nov 04 2014 21:33
if you've added a new directory or something, it may need to be in package_data
Jason Grout
@jasongrout
Nov 04 2014 23:05
in this line: https://github.com/ipython/ipython/blob/master/IPython/html/notebookapp.py#L141, it looks like it is possible to override the template_path setting. Does anyone know how to actually specify this template path? Does it require a config file (i.e., profile), or can it currently be done via the command line when launching a notebook server?
Thomas Kluyver
@takluyver
Nov 04 2014 23:10
Yep, specify tornado_settings
anything you can specify in a config file, you can specify at the command line
Jason Grout
@jasongrout
Nov 04 2014 23:11
how do I specify a dict at the command line?
Thomas Kluyver
@takluyver
Nov 04 2014 23:11
lots of quoting, probably
Jason Grout
@jasongrout
Nov 04 2014 23:12
huh, it wasn't working before, but just now it did.
ipython notebook --NotebookApp.tornado_settings='{"template_path": "."}'
ah, before I was using jinja_environment_options
Jonathan Frederic
@jdfreder
Nov 04 2014 23:28
Mission success, casperjs printing Error objects thrown in the remote context:
PASS _dom_classes can be used to remove a class.
PASS Display container child executed with correct output.
PASS Parent container not displayed.
FAIL Child displayed.
#    type: assert
#    file: /home/jon/ipython/IPython/html/tests/widgets/widget_box.js:78
#    code: 'Child displayed.');
#    subject: false

Captured console.log:
    Default extension for cell metadata editing loaded.
    Raw Cell Format toolbar preset loaded.
    Slideshow extension for metadata editing loaded.
    no checkpoint done
    Session: kernel_created (c2660f88-d30c-4968-8d70-025ac1f50220)
    Starting WebSockets: ws://127.0.0.1:8888/api/kernels/a5ab36f0-764d-4d48-a592-83727e889593
    Kernel: kernel_connected (a5ab36f0-764d-4d48-a592-83727e889593)
    Kernel: kernel_starting (a5ab36f0-764d-4d48-a592-83727e889593)
    Kernel: kernel_starting (a5ab36f0-764d-4d48-a592-83727e889593)
    Kernel: kernel_ready (a5ab36f0-764d-4d48-a592-83727e889593)
    Kernel: kernel_ready (a5ab36f0-764d-4d48-a592-83727e889593)
    Error {
      "message": "Couldn't process display msg for model id 'd6c660a3cc49410196c5748f07f3d00b'",
      "error_stack": [
          "message": "Class undefined not found in registry "
          "message": "Couldn't create a view for model id 'd6c660a3cc49410196c5748f07f3d00b'"
          "message": "Could not display view"
          "message": "Couldn't process display msg for model id 'd6c660a3cc49410196c5748f07f3d00b'"
      ]
    }
The output before:
PASS _dom_classes can be used to remove a class.
PASS Display container child executed with correct output.
PASS Parent container not displayed.
FAIL Child displayed.
#    type: assert
#    file: /home/jon/ipython/IPython/html/tests/widgets/widget_box.js:78
#    code: 'Child displayed.');
#    subject: false

Captured console.log:
    Default extension for cell metadata editing loaded.
    Raw Cell Format toolbar preset loaded.
    Slideshow extension for metadata editing loaded.
    no checkpoint done
    Session: kernel_created (c2660f88-d30c-4968-8d70-025ac1f50220)
    Starting WebSockets: ws://127.0.0.1:8888/api/kernels/a5ab36f0-764d-4d48-a592-83727e889593
    Kernel: kernel_connected (a5ab36f0-764d-4d48-a592-83727e889593)
    Kernel: kernel_starting (a5ab36f0-764d-4d48-a592-83727e889593)
    Kernel: kernel_starting (a5ab36f0-764d-4d48-a592-83727e889593)
    Kernel: kernel_ready (a5ab36f0-764d-4d48-a592-83727e889593)
    Kernel: kernel_ready (a5ab36f0-764d-4d48-a592-83727e889593)
    [Object object]
This should make debugging the tests much easier!
Thomas Kluyver
@takluyver
Nov 04 2014 23:31
awesome!
Scott Sanderson
@ssanderson
Nov 04 2014 23:59
@jasongrout I just opened a PR about making it easier to override templates
ipython/ipython#6856