These are chat archives for ipython/ipython

19th
Feb 2015
Jason Grout
@jasongrout
Feb 19 2015 00:43
anyone home?
Tom Neyland
@TomNeyland
Feb 19 2015 01:45
better to just ask a question, rather than ask to ask
Jason Grout
@jasongrout
Feb 19 2015 15:21
the question was: anyone home? It was unusually quiet yesterday.
Jason Grout
@jasongrout
Feb 19 2015 15:47
(but thanks for the advice; you answered my question too... :)
Kyle Kelley
@rgbkrk
Feb 19 2015 16:21
Howdy
I'm home and have a question for you @jasongrout
:)
Is there a way for me to accept ndarrays and lists on the same widget
TraitError: The 'data' trait of a BitWidget instance must be a list or None, but a value of class 'numpy.ndarray' (i.e. array([ True, False,  True], dtype=bool)) was specified.
Jason Grout
@jasongrout
Feb 19 2015 16:28
Yes, use a Union traitlet
or just make an ndarray widget which automatically casts lists
Kyle Kelley
@rgbkrk
Feb 19 2015 16:28
I'd rather not make people have to have numpy
Jason Grout
@jasongrout
Feb 19 2015 16:28
I tried to get something like that merged in, but it was rejected as non-core material
okay, so then just use a union traitlet
Kyle Kelley
@rgbkrk
Feb 19 2015 16:29
Sylvain added the Union?
Jason Grout
@jasongrout
Feb 19 2015 16:29
Yes...
Kyle Kelley
@rgbkrk
Feb 19 2015 16:29
I remember that now
Jason Grout
@jasongrout
Feb 19 2015 16:29
List(..) | Instance(ndarray...)
Kyle Kelley
@rgbkrk
Feb 19 2015 16:29
Ok, great.
Next question
Is there a way for me to expose a "view" of an ndarray/bytearray
as bits
Or do I actually need to do the shifting into a whole array
Jason Grout
@jasongrout
Feb 19 2015 16:33
expose a view on python or in js?
(are we talking about a widget here?)
Kyle Kelley
@rgbkrk
Feb 19 2015 16:33
Yeah
Jason Grout
@jasongrout
Feb 19 2015 16:33
I'm not sure what you mean by shifting into a whole array
but numpy arrays support the buffer interface, so memoryview(array) gives a view as a block of memory
memoryview(array).tobytes() gives a byte string, for example
but what are you trying to do?
I want to view binary files with a canvas widget
Jason Grout
@jasongrout
Feb 19 2015 16:36
so basically you want to transfer all the bits to js, and then view it as a bitstring in js on canvas?
Kyle Kelley
@rgbkrk
Feb 19 2015 16:37
yup
Jason Grout
@jasongrout
Feb 19 2015 16:37
so the binary messages is probably interesting to you: ipython/ipython#7757
that also lets you have custom serializers on the js side.
Kyle Kelley
@rgbkrk
Feb 19 2015 16:38
Now that I'm getting up to speed with the widgets, I think I'll be better able to review and help with that
Jason Grout
@jasongrout
Feb 19 2015 16:38
but for now, you can base64 encode the numpy array bytes, and on js decode the base64, make an ArrayBuffer, and use that.
but I think it will be a lot easier after that PR gets in...
Kyle Kelley
@rgbkrk
Feb 19 2015 16:39
ah ok
Seems like for now I have to continue to pass boolean arrays
Jason Grout
@jasongrout
Feb 19 2015 16:39
ouch.
I'd at least base64 encode it (so 33% more space, instead of 200% or 300% more space)
but then again, maybe the data transfer isn't a bottleneck, so you don't care anyway
Kyle Kelley
@rgbkrk
Feb 19 2015 16:40
Eventually I'll care
Right now it's a toy with the canvas
I'd like to be able to view an entire memory mapped file, at an offset
Kyle Kelley
@rgbkrk
Feb 19 2015 16:49
Thanks for all your help @jasongrout. It was good for me to check out the relevant PRs.
Petra Chong
@rekcahpassyla
Feb 19 2015 17:09
Is there a way, with an IPython.parallel.Client, to tell if the cluster it's connected to has gone away?
If I try to call any functions on a client attached to a nonexistent cluster (eg. rc.queue_status()) they hang indefinitely.
(which is not unreasonable, I just wondered if I had a way of telling)
Jonathan Frederic
@jdfreder
Feb 19 2015 17:17
@SylvainCorlay sorry I've been away for a few days. This weekend I spent doing non-programming stuff and the past few days I've been preoccupied with Strata. I wasn't planning on opening a PR right now, no.
@minrk @takluyver I'm not giving a talk today (but I will be a part of a panel in the PM), so I have some bandwidth to help move the 3.0 release along. Is there anything blocking on me that I can expedite?
Jason Grout
@jasongrout
Feb 19 2015 17:28
ah, strata - that makes sense
Jonathan Frederic
@jdfreder
Feb 19 2015 17:41
It's crazy here
Kyle Kelley
@rgbkrk
Feb 19 2015 17:41
@jdfreder we're at the speaker lounge now
Jonathan Frederic
@jdfreder
Feb 19 2015 17:41
I heard someone say there was 4000 people ! :O
@rgbkrk ? Speaker lounge* ?
Kyle Kelley
@rgbkrk
Feb 19 2015 17:42
Yup
Jonathan Frederic
@jdfreder
Feb 19 2015 17:42
k
Kyle Kelley
@rgbkrk
Feb 19 2015 17:42
Do you know when our panel is?
Jonathan Frederic
@jdfreder
Feb 19 2015 17:42
I'm down stairs sitting at the round table near the entrance you walked in in the afternoon
Yes, it's in the room next to the one we talked in.
Kyle Kelley
@rgbkrk
Feb 19 2015 17:42
Not where, when
Jonathan Frederic
@jdfreder
Feb 19 2015 17:43
Oh I texted that to you, 2:20
Jason Grout
@jasongrout
Feb 19 2015 17:44
is IPython getting a lot of love there?
Kyle Kelley
@rgbkrk
Feb 19 2015 17:44
Eh
This is a very enterprisey conference
I think today will tell us more
Jon and I only gave an introductory tutorial
Jonathan Frederic
@jdfreder
Feb 19 2015 17:49
I'd say IPython is getting ~99% of the love pydata gets.
Which ~80/4000 = 2% of the attendees.
Damian Avila
@damianavila
Feb 19 2015 17:50
jaja...
Jason Grout
@jasongrout
Feb 19 2015 17:50
so...is spark getting all the love?
Damian Avila
@damianavila
Feb 19 2015 17:51
probably..
Jason Grout
@jasongrout
Feb 19 2015 17:51
any julia fans there?
Jonathan Frederic
@jdfreder
Feb 19 2015 17:51
That's what it seems like, I hear "spark" a lot in the conversations I hear people having.
I haven't been exposed to the Julia fans yet.
Jason Grout
@jasongrout
Feb 19 2015 17:52
at the strata last year, and this next Sept., we'll (or did) have a pydata meetup the same night as a spark meetup, with a joint reception
so pydata and spark people can mix and mingle
Jonathan Frederic
@jdfreder
Feb 19 2015 17:53
They may be their own small subset, I haven't heard "Julia" being said except amongst the Python crowd.
Jason Grout
@jasongrout
Feb 19 2015 17:53
so 2% * 2%...
Jonathan Frederic
@jdfreder
Feb 19 2015 17:53
yes lol
People are aware of IPython though, or they pretend to be.
Jason Grout
@jasongrout
Feb 19 2015 17:54
especially when they see the IPython sticker on your badge, I bet
Jonathan Frederic
@jdfreder
Feb 19 2015 17:55
Exactly
stonebig
@stonebig
Feb 19 2015 18:26
@jasongrout at least one person in strata conf 2014 Europe spoke about (IPython) "Notebooks" with great lyrics https://www.youtube.com/watch?v=Js02AoYWM_8&list=PL055Epbe6d5Y8aARKdXVVtJnEttlhsRyf#t=262
( at 4'21")
Andreas Klostermann
@akloster
Feb 19 2015 18:46
"wikis for analytics" is both so wrong and so right at the same time.
Jason Grout
@jasongrout
Feb 19 2015 18:52
@stonebig - thanks! that was really interesting
stonebig
@stonebig
Feb 19 2015 19:03
@jasongrout about Julia, wasn't there a possibility that Jeff Besancon would join the Jupyter team this spring ?
Jason Grout
@jasongrout
Feb 19 2015 19:06
I don't know. That would be cool.
Matthias Bussonnier
@Carreau
Feb 19 2015 19:28
test, this is not me
this keyboard is weird @SylvainCorlay
this is @jdfreder on q french keyboqrd```
Jonathan Frederic
@jdfreder
Feb 19 2015 19:29
Jon is having fun with a french keyboard
Matthias Bussonnier
@Carreau
Feb 19 2015 19:29
keyboard*
Min RK
@minrk
Feb 19 2015 19:29
Try typing 'pyzmq'
Matthias Bussonnier
@Carreau
Feb 19 2015 19:29
py,wa``
Jonathan Frederic
@jdfreder
Feb 19 2015 19:29
pyzmq
that's easy
I can type on 2 keyboards.
Matthias Bussonnier
@Carreau
Feb 19 2015 19:30
pyzmq (looking qt the keyboqrd
ugh
keyboard*
Jonathan Frederic
@jdfreder
Feb 19 2015 19:30
you can edit your message after :-) like that you see easy
Matthias Bussonnier
@Carreau
Feb 19 2015 19:30
its better to leqve them
Jonathan Frederic
@jdfreder
Feb 19 2015 19:30
leave*
Matthias Bussonnier
@Carreau
Feb 19 2015 19:30
so everyone can see hoz bad I am at this
Jonathan Frederic
@jdfreder
Feb 19 2015 19:30
how*
try numbers
Matthias Bussonnier
@Carreau
Feb 19 2015 19:31
1234567890
§
ù££
Jonathan Frederic
@jdfreder
Feb 19 2015 19:31
Matthias Bussonnier
@Carreau
Feb 19 2015 19:31
£$$
^
¨
¨¨¨¨¨¨¨¨
¨qs
Jonathan Frederic
@jdfreder
Feb 19 2015 19:32
try ls | grep
Matthias Bussonnier
@Carreau
Feb 19 2015 19:32
|
Jonathan Frederic
@jdfreder
Feb 19 2015 19:32
:-)
Matthias Bussonnier
@Carreau
Feb 19 2015 19:32
ÍΩÎ∑ı∫›Ÿ√⁄™Å¢‚Æfl√⁄∑
Ok, back to "Clavier en français"
Jonathan Frederic
@jdfreder
Feb 19 2015 19:33
My identity has be restored.
Sylvain Corlay
@SylvainCorlay
Feb 19 2015 21:54
anyone around?
Matthias Bussonnier
@Carreau
Feb 19 2015 22:27
I am now.