These are chat archives for ipython/ipython

16th
Apr 2015
Jessica B. Hamrick
@jhamrick
Apr 16 2015 17:17
Does anybody have any wisdom on dealing with random javascript timeouts in travis tests?
I have one of two issues:
  1. If I use docker builds on travis, then I frequently just get random hangs where the tests will just hang indefinitely until travis kills them.
  2. If I use regular builds, then I get random timeouts like this: https://travis-ci.org/jupyter/nbgrader/jobs/58700951
I know IPython went through some similar issues with javascript tests, too
Min RK
@minrk
Apr 16 2015 17:27
A lot of our timeout issues came from failure to notice that an earlier action failed or had no effect because it fired before the page was ready
Jessica B. Hamrick
@jhamrick
Apr 16 2015 17:27
Hmm, ok
Min RK
@minrk
Apr 16 2015 17:27
e.g. $('#mybutton').click() will happily no-op if we call it before the page is fully loaded and events registered.
Jessica B. Hamrick
@jhamrick
Apr 16 2015 17:28
Right
Min RK
@minrk
Apr 16 2015 17:28
so a lot of our fixes came from the fact that our tests don't even run until a particular event is fired - it's either notebook_loaded or kernel_ready, which comes long after the page is all put together.
Jessica B. Hamrick
@jhamrick
Apr 16 2015 17:28
Ok, I’ll look into seeing if perhaps the page isn’t fully loaded yet
That is certainly possible
Min RK
@minrk
Apr 16 2015 17:29
It didn't help that most javascript errors that happen in the browser context are silently ignored. I don't know if that's the case in Selenium, but it may be.
ignored by casper/phantom that is, they would happily raise an exception, but the test suite wouldn't care.
Jessica B. Hamrick
@jhamrick
Apr 16 2015 17:30
I added some code which should cause it to print out javascript log messages, if there are some
So I should be seeing those if the test fails
Right
Yeah, they won’t raise an exception in selenium either but I should at least seem them in the logs if they’re happening
Oh, but maybe not for the nbextension tests
Jason Grout
@jasongrout
Apr 16 2015 18:36
@minrk - any idea of a time frame for splitting widgets from jupyter_notebook?
Min RK
@minrk
Apr 16 2015 18:37
Not exactly - we need to decide now it should be installed, first.
Not close enough that PRs should be blocked, if that's why you are asking.
S. Chris Colbert
@sccolbert
Apr 16 2015 18:41
@Carreau @jasongrout @ellisonbg @KesterTong I just finished and merged the shell module of Phosphor to master. This is the module which provides scaffolding for building pluggable applications. I've stubbed out a chat application example (placeholder content for now) which I'll continue working on as time permits. For now, it should be enough to get oriented with how things fit together overall.
https://github.com/phosphorjs/phosphor/tree/master/examples/chatapp
Jason Grout
@jasongrout
Apr 16 2015 18:42
Cool! I've been following your progress. Thanks!
Andreas Klostermann
@akloster
Apr 16 2015 18:56
does that have anything to do with IPython?
(just asking out of curiosity)
Min RK
@minrk
Apr 16 2015 19:00
phosphor will be the basis of the notebook UI in the future
Jonathan Frederic
@jdfreder
Apr 16 2015 19:44
@minrk @jasongrout - sorry I haven't been doing anything with the "small split" - I've been neck high in career fair stuff.
I'll be doing Jupyter notebook stuff Friday though
Min RK
@minrk
Apr 16 2015 19:46
great
Jonathan Frederic
@jdfreder
Apr 16 2015 19:46
And that's what I'm going to investigate
Friday - Tomorrow
@minrk I didn't get to read the end of your blog post yet.
I started reading it and then someone approached the booth
IIRC
I'll read it tomorrow too : )
(the draft)
Remi Rampin
@remram44
Apr 16 2015 19:51
Can I make a shortcut that only starts one ipython notebook?
Min RK
@minrk
Apr 16 2015 19:51
No problem. (it's not a draft anymore, since it's published)
Remi Rampin
@remram44
Apr 16 2015 19:51
Right now, I get a new one each time I click on it. I just want to open the browser.
Min RK
@minrk
Apr 16 2015 19:51
click on what?
Remi Rampin
@remram44
Apr 16 2015 19:51
The shortcut, that currently runs ipython-script.py notebook
Min RK
@minrk
Apr 16 2015 19:52
There's a tool called nbopen that might be what you are looking for.
It checks for a running server before launching a new one.
(ipython notebook should be doing this already, but we haven't gotten around to it)
Remi Rampin
@remram44
Apr 16 2015 19:56
just pip-install'd nbopen, can't run it. What's this, no Windows support?
yeah in addition to that, it only opens notebooks in the home directory, "for security reasons" (doesn't IPython already have a trust system?)
and cannot open a directory
S. Chris Colbert
@sccolbert
Apr 16 2015 20:10
should be g2g
Remi Rampin
@remram44
Apr 16 2015 20:12
list_running_servers() gets out of sync and everything breaks
Jason Grout
@jasongrout
Apr 16 2015 20:13
@sccolbert: thanks! I'll update my branch of IPython listing phosphor as a dependency and push it to github soon (later today or tomorrow)
Sylvain Corlay
@SylvainCorlay
Apr 16 2015 20:21
Are you going to keep the deprecated ...-ui and ...-core around?
S. Chris Colbert
@sccolbert
Apr 16 2015 20:23
shouldn't you be on a beach with a margarita or something?
no, I don't plan to keep them around
Jason Grout
@jasongrout
Apr 16 2015 20:28
@sccolbert - who says he isn't?
Sylvain Corlay
@SylvainCorlay
Apr 16 2015 20:29
I was earlier, just checking on my email :)
S. Chris Colbert
@sccolbert
Apr 16 2015 20:29
an island beach with usable wifi? sign me up!