These are chat archives for ipython/ipython

27th
Jan 2015
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 00:14
hello, I started playing with virtualenvs. Does it play well with IPython?
Min RK
@minrk
Jan 27 2015 00:14
yes, sure. Make sure to install IPython in the env.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 00:15
Ok, this was going to be my next question :)
Min RK
@minrk
Jan 27 2015 00:17
envs are about isolation, so make sure all your packages are installed in the env. This usually isn't too confusing, but packages with entrypoints (ipython, sphinx, etc.) can cause confusion because they are still available even if not in the env, but if you use them without installing them in the env, you won't be using the env.
That's how we get reports like "I installed this package, but when I run IPython, it's not available."
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 00:18
ok, pretty much what is happening to me.
but I got the IPython warning
playing with ev3dev.
Min RK
@minrk
Jan 27 2015 00:19
IPython warning about using IPython outside an env?
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 00:19
yes
Min RK
@minrk
Jan 27 2015 00:20
Yeah, if you see that message, you are not actually in the env.
if python -m IPython doesn't work, IPython isn't in the env.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 00:21
the notebook server works pretty hosted on the ev3 :)
Min RK
@minrk
Jan 27 2015 00:22
nice!
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 00:23
put it on a drone and it will be in the cloud, literally
speaking of, anyone experienced with browser support for joysticks ?
I would be happy to create a joystick widget :)
Min RK
@minrk
Jan 27 2015 00:29
Not joysticks in particular. I know Brian and Zach have done some interesting things with controls.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 00:34
I don't see anything in bryan's github - will start playing with chromium's gamepad API just to see how it works.
Nicholas Bollweg
@bollwyvl
Jan 27 2015 15:52
have done some hacking with IR voting clickers... nasty, proprietary mess, but would be very cool for certain applications
Doug Blank
@dsblank
Jan 27 2015 15:54
@bollwyvl I would be interested in seeing the connection to clickers... you have that publicly available?
Jessica B. Hamrick
@jhamrick
Jan 27 2015 16:36
Probably won't be able to make it to the meeting today
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 16:45
Hello, I am trying to unfolding the execution path of casperjs tests in IPython.
Where exactly is the IPython/html/test/utils.js called from?
Min RK
@minrk
Jan 27 2015 17:20
CLI args to casperjs
Nicholas Bollweg
@bollwyvl
Jan 27 2015 17:20
@dsblank no, never quite got it working, not sure of the legal status :P
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 17:22
ok, got it in iptestcontroller
Matthias Bussonnier
@Carreau
Jan 27 2015 17:28
meeting ?
Kyle Kelley
@rgbkrk
Jan 27 2015 17:32
I'm feeling miserably sick, I will not be at the meeting today.
:(
Matthias Bussonnier
@Carreau
Jan 27 2015 17:32
GO get better.
Doug Blank
@dsblank
Jan 27 2015 17:34
@bollwyvl I know what you mean... I did the same for an older one... had to disassemble the Java-compiled code to get the "secret" pass phrase. But I was thinking of a way to do clicker-style things just via notebooks. Something perhaps hooked up via a chat API (like xmpp)...
Min RK
@minrk
Jan 27 2015 17:34
@rgbkrk feel better, we'll hold down the fort.
Doug Blank
@dsblank
Jan 27 2015 17:35
@bollwyvl But maybe since I am on a server anyway (jupyterhub) it would be even easier...
Min RK
@minrk
Jan 27 2015 17:35
Nobody else is here, so I'll wait a bit to start the meeting.
Matthias Bussonnier
@Carreau
Jan 27 2015 17:35
hum...
ok
Damian Avila
@damianavila
Jan 27 2015 17:35
here
@rgbkrk I hope you feel better really soon...
Min RK
@minrk
Jan 27 2015 17:36
by here, I mean physically here - no Thomas or Fernando, yet.
Do we have @ellisonbg or @jdfreder?
Damian Avila
@damianavila
Jan 27 2015 17:37
jaja... thx for the clarification...
Matthias Bussonnier
@Carreau
Jan 27 2015 17:37
don't know.
@damianavila is last nikola supposed to work with IPython master ?
got weird error when buildong with travis.
and differen error locally
Do we start only the 3 of us ?
Min RK
@minrk
Jan 27 2015 17:39
Got Thomas
Matthias Bussonnier
@Carreau
Jan 27 2015 17:40
that makes 4 :-)
Damian Avila
@damianavila
Jan 27 2015 17:40
@Carreau, I did not tried the latest Nikola...
I will try to test it during the week, but probably I get some time to do it during the weekend...
Matthias Bussonnier
@Carreau
Jan 27 2015 17:41
hum...ok
I'm trying to have travis build and deploy my blog using nikolas to simplify things.
Damian Avila
@damianavila
Jan 27 2015 17:43
ah... nice idea... it could be something broken, things has changed a lot lately... I will try to take a look ASAP...
Matthias Bussonnier
@Carreau
Jan 27 2015 17:43
no hurry.
Jason Grout
@jasongrout
Jan 27 2015 17:44
sylvain and I are here to listen, at least
that's at least another half a person for each of us :)
Matthias Bussonnier
@Carreau
Jan 27 2015 17:44
maybe @minrk want to start then...
Min RK
@minrk
Jan 27 2015 17:46
I guess. I'm not sure how much we can actually resolve without any of @fperez, @ellisonbg, and @jdfreder.
Damian Avila
@damianavila
Jan 27 2015 17:47
ok... so maybe better to skip it?
@Carreau, probably it would be something easy to fix... for RISE, since the layout disappear I had to change a lot of things... but seems to work now... @jhamrick helped me a little bit too with a patch because she wanted to use it today :wink: and I did not have time to look at it until the weekend... Thanks again @jhamrick!
Will be @fperez and @ellisonbg available on Thursday?
Thomas Kluyver
@takluyver
Jan 27 2015 17:48
Let's hazard a guess that Fernando won't be
No idea about Brian
Min RK
@minrk
Jan 27 2015 17:49
I know Fernando had something all week last week, not sure if it's still going.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 17:51
yeah, we let everyone leave for lunch to quietly listen to you guys :)
Damian Avila
@damianavila
Jan 27 2015 17:51
Did you started?
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 17:52
now you can't cancel
Jason Grout
@jasongrout
Jan 27 2015 17:52
we braved the "historic" blizzard here to be here :)
Matthias Bussonnier
@Carreau
Jan 27 2015 17:52
:-P
Thomas Kluyver
@takluyver
Jan 27 2015 17:53
you should have seen the crazy storm we had here...it was like, a whole day of rain! ;-)
Jason Grout
@jasongrout
Jan 27 2015 17:53
us too! Except was cold and turned into 7 inches of snow (in NYC) and 18 inches of snow in Long Island.
they just opened the subway back up late this morning...
+1 to min's latest PR on the link stuff
Jonathan Frederic
@jdfreder
Jan 27 2015 17:57
I'm going to connect in a minute, still on bus :(
Jason Grout
@jasongrout
Jan 27 2015 18:03
@takluyver - can we add the install_nbextension discussion (whether it really should take a list, or just take a single extension to install)?
Thomas Kluyver
@takluyver
Jan 27 2015 18:03
yep
Jason Grout
@jasongrout
Jan 27 2015 18:05
Pro for having install_nbextension take a single extension: slightly less code complexity (e.g., remove a loop and a few other lines of code), much easier to specify installation destination (which is what my patch introduced). If we only installed one extension, the required argument would be the source, so backwards compatible with what we have now. If you wanted to specify a destination, it would be a keyword arg instead of a dictionary of sources.
Thomas Kluyver
@takluyver
Jan 27 2015 18:06
the agenda/meeting notes are here, by the way: https://ipython.hackpad.com/2015-Dev-Meetings-Part-1-3YJG5lv2Hws
Jason Grout
@jasongrout
Jan 27 2015 18:06
So basically, not only does the code complexity go down, but the calling complexity goes down quite a bit (from a singe source, or a list of sources, or a dict of sources, to a single source and an optional destination keyword argument). Besides, install_nbextension is singular anyway.
Yes, I see, thanks.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:07
@jdfreder I cannot reproduce the state inconsistency that you mention in the slider fix PR
Jessica B. Hamrick
@jhamrick
Jan 27 2015 18:08
@damianavila happy to help!
I am giving a lecture in my class today on Python and the IPython notebook so I figured it would be cool to do live slides from the IPython notebook too :smile:
Jonathan Frederic
@jdfreder
Jan 27 2015 18:09
@SylvainCorlay I'll investigate some more today
Matthias Bussonnier
@Carreau
Jan 27 2015 18:10

I am giving a lecture in my class today on Python and the IPython notebook so I figured it would be cool to do live slides from the IPython notebook too

Revert to earlier version of IPython :-)

Jason Grout
@jasongrout
Jan 27 2015 18:10
I would say the vast majority of the time, it will be called with a single source
if there's a generally positive attitude, I'll do the PR and then we can decide.
thanks!
Jessica B. Hamrick
@jhamrick
Jan 27 2015 18:12
@Carreau if they were using a 2.x version I’d do that, but they are using dev version for their assignments, so I wanted to use the same version as them in the lecture
Matthias Bussonnier
@Carreau
Jan 27 2015 18:12
:-P just bisect the error, and use last working version !
Min RK
@minrk
Jan 27 2015 18:12
@jasongrout thanks
Jessica B. Hamrick
@jhamrick
Jan 27 2015 18:13
Might as well just fix the problem at that point ;)
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:13
@minrk, corrected as per your comments
on code styling
Min RK
@minrk
Jan 27 2015 18:13
@SylvainCorlay thanks
Jason Grout
@jasongrout
Jan 27 2015 18:13
the boundary problem exposes an issue @sylvaincorlay posted an issue for changes to traitlets
Matthias Bussonnier
@Carreau
Jan 27 2015 18:14
@jhamrick just a question of time to do each. Lets run an experiment to see which is faster.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:14
on that regard, we were also thinking of removing the is_valid_for and value_for
what do you think of it?
it is not used anywhere.
Jessica B. Hamrick
@jhamrick
Jan 27 2015 18:15
Well, not just time, also utility. There is higher reward for having a working version moving forward rather than once, so even if it takes more time to fix it might still be worth it :)
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:15
would greatly shorten the code
in traitlets
Jason Grout
@jasongrout
Jan 27 2015 18:15
(probably cut out half of the validate function code in traitlets)
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:16
ok - fair enough :)
Min RK
@minrk
Jan 27 2015 18:16
Sounds great, not for 3.0.
Too late.
Jason Grout
@jasongrout
Jan 27 2015 18:16
feature freeze!
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:16
a jelly
(soft freeze)
Matthias Bussonnier
@Carreau
Jan 27 2015 18:17
Yeaaahhhhh ! Code slug.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:21
I want to test my custom widgets with casper, and I love your notebook utils to run cells and all. As code duplication is evil, it is probably clean to use your util.js, but it seems I will need my own iptestcontroller counterpart
OR, we can add a test controler for registered nbextensions to the jelly.
:cake:
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:26
nevermind :arrow_right: :door:
Nicholas Bollweg
@bollwyvl
Jan 27 2015 18:28
@SylvainCorlay I did exactly that for the cookiecutter with a subclass of JSController
perhaps you can adapt that your needs
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:29
this looks great
what is you license :)
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:31
this image is blocked by my corporate network.
@SylvainCorlay looks like that ships with BSD
please steal :)
also, here is a most aggressive use of that, which will take screenshots for visual regression:
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:33
thanks
@carreau, thanks for the picture, did not know this one
Matthias Bussonnier
@Carreau
Jan 27 2015 18:36
chrome crashed on me.
Capture d’écran 2015-01-27 à 19.31.30.png
love cloudy with a chance of meatball.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:38
yeah thanks, could see it with a special browser we have to see blocked content when necessary
Matthias Bussonnier
@Carreau
Jan 27 2015 18:40
:-P
you mean Tor ?
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 18:40
exactly, we have it standard on our desktop pc :)
Thomas Kluyver
@takluyver
Jan 27 2015 18:55
Would anyone like more time to review #7454, Min's PR to select an appropriate kernel if the one specified in the notebook is not found?
If not, I'll merge it so we can have it in use for a bit
Thomas Kluyver
@takluyver
Jan 27 2015 19:09
I shall take your silence for assent
Jessica B. Hamrick
@jhamrick
Jan 27 2015 19:13
Hmmmm, did the pager and documentation tooltip go away?
Thomas Kluyver
@takluyver
Jan 27 2015 19:15
no, they shouldn't have done
Min RK
@minrk
Jan 27 2015 19:15
@jhamrick no, I just horribly broke them.
#7605 should bring them back
Jessica B. Hamrick
@jhamrick
Jan 27 2015 19:16
Ah, cool
Well, it seems to bring the pager back, I still don’t see the tooltip though
Thomas Kluyver
@takluyver
Jan 27 2015 19:18
you know that it's shift-tab now instead of tab to get the tooltip, right?
Jessica B. Hamrick
@jhamrick
Jan 27 2015 19:19
Yeah
Oh interesting, so if I do shift-tab four times it pulls up the pager
So that part of it is working at least
Just fails to show the tooltip
Damian Avila
@damianavila
Jan 27 2015 19:23
yes, I experienced the same yesterday...
Thomas Kluyver
@takluyver
Jan 27 2015 19:29
anything in the JS console? Will try to reproduce.
Jessica B. Hamrick
@jhamrick
Jan 27 2015 19:31
Oh, wait, that’s bizarre, now it’s working
Thomas Kluyver
@takluyver
Jan 27 2015 19:31
I see the tooltip, but the positioning is off. Were you trying to summon it near the top or bottom of the page?
Jessica B. Hamrick
@jhamrick
Jan 27 2015 19:31
Ahhhh, yeah I bet that’s it
If I try it at the top of the page, it works
But in the middle of the notebook it doesn't
Probably it is appearing, just off screen
Thomas Kluyver
@takluyver
Jan 27 2015 19:34
I can replicate, except where I'm doing it, it works at the bottom of the screen
Jessica B. Hamrick
@jhamrick
Jan 27 2015 19:35
Heh, that’s weird
I can’t get it at the bottom of the screen
Thomas Kluyver
@takluyver
Jan 27 2015 19:35
I showed Min the issue on my screen, he thinks he knows what is going wrong
Jessica B. Hamrick
@jhamrick
Jan 27 2015 19:35
Ok, cool
Min RK
@minrk
Jan 27 2015 19:35
That doesn't mean I know how to fix it, but I'll poke around.
Jessica B. Hamrick
@jhamrick
Jan 27 2015 19:36
Ok
(Sorry, normally I would try to help debug more too, but I’ve got sooo much other stuff I have to get done today/this week)
Thomas Kluyver
@takluyver
Jan 27 2015 19:36
no worries
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 20:10
hey, I think that I found a bug in iptestcontroller.JSController.
cleanup is always called no matter what, and attempts to shut down the server even if no server was set up
Min RK
@minrk
Jan 27 2015 20:10
How can it run if it doesn't set up a server?
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 20:10
if you pass it a url
of an already running server, it does not set up a server
Min RK
@minrk
Jan 27 2015 20:11
Ah, ok. We never use it that way. I'd be fine removing that.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 20:12
ok, so remove the case where you connect to an existing one?
Min RK
@minrk
Jan 27 2015 20:12
Yeah, or keep track of whether we started a server. I'd be slightly more inclined to remove cases we don't actually use.
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 20:13
I just added an if hasattr(self, 'server') incleanup for now. No opinion of whether it is better
btw, weird unicode chars in iptestcontroller.py lines 276 and 277
Min RK
@minrk
Jan 27 2015 20:32
That's perfect, thanks.
Yup, unicode characters are needed for proper testing
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 20:44
Although, I am getting UnicodeEncodeErrors
Min RK
@minrk
Jan 27 2015 21:25
@SylvainCorlay there's a coding marker at the top, so that shouldn't be an issue, and isn't on Python 2 or 3. Perhaps your locale env is ascii only?
Jason Grout
@jasongrout
Jan 27 2015 21:42
Thanks, @minrk - that solves the problem (our locale env)
Sylvain Corlay
@SylvainCorlay
Jan 27 2015 21:54
breaks my VIM now
:(