These are chat archives for ipython/ipython

20th
Feb 2015
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 00:05
@jdfreder, ok with the minor styling fix?
Kyle Kelley
@rgbkrk
Feb 20 2015 05:20
Guh, I keep getting a WrappedError
Switching over to allowing Instance(ndarray, sync=True) is not working out
data = List(Int(), sync=True) | Instance(ndarray, sync=True)
Kyle Kelley
@rgbkrk
Feb 20 2015 05:26
I don't even know where to begin on that
I'll just work on other viz, see what people think in the morning
Working on custom widgets is not the easiest experience
Kyle Kelley
@rgbkrk
Feb 20 2015 05:34
eh, having trouble with bytearray too
Kyle Kelley
@rgbkrk
Feb 20 2015 05:42
Yeah, issues with the Union traitlet (or my use of it)
@SylvainCorlay are you around?
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 15:45
@rgbkrk I am back
A correction to Union just got merged. If you where using it in a container, like List(Int() | Bool()) it should work
like sync=True
Another tricky thing about Union is that it does not have metadata.
You must do
List(Int(sync=True) | Bool(sync=True))
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 15:58
rather than List(Int() | Bool(), sync=True)
Kyle Kelley
@rgbkrk
Feb 20 2015 16:22
Ohhhhhh
that clears it up
I'll pull from master and handle that
i just had to drop my list support
Min RK
@minrk
Feb 20 2015 16:29
You might be able to use Any with coercion from list->array (or vice versa) in _data_changed
Kyle Kelley
@rgbkrk
Feb 20 2015 16:34
Screenshot 2015-02-20 08.33.58.png
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 16:34
rgbk I meant Union(Int(sync=True) , Bool(sync=True))
cannot edit my message anymore
Kyle Kelley
@rgbkrk
Feb 20 2015 16:35
Using | doesn't make it implicitly a Union?
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 16:35
yes
Kyle Kelley
@rgbkrk
Feb 20 2015 16:35
I'm way too tired this morning
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 16:35
List(Foo() | Bar()) is a list of unions
Kyle Kelley
@rgbkrk
Feb 20 2015 16:35
When I couldn't sleep, I stayed up until 3 am working with widgets
Oh ok, so I'm game there
Jason Grout
@jasongrout
Feb 20 2015 16:36
do both List(Int()) and List(Int) work?
Kyle Kelley
@rgbkrk
Feb 20 2015 16:36
That pic above is /usr/bin/gcc as grayscale hex
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 16:36
@jasongrout yes
But Int | Bool does not
it is Int() | Bool()
which is equivalent to
Union(Int(), Bool())
Jason Grout
@jasongrout
Feb 20 2015 16:38
ah, I see where List automatically deals with Int or Int(): https://github.com/ipython/ipython/blob/master/IPython/utils/traitlets.py#L1427
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 16:38
and what I meant earlier, is that
Union(Int(sync=True), Bool(sync=True)) and Int(sync=True) | Bool(sync=True) are ok
but not
Union(Int(), Bool(), sync=True)
in the latter case, sync=True is not taken into account
Jason Grout
@jasongrout
Feb 20 2015 16:39
yes, I see. That's a little tricky
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 16:39
because the Union does not have metadata on its own, it switches between the metadata of its members
Jason Grout
@jasongrout
Feb 20 2015 16:39
yes, I remember our conversations about that
(but I'm glad you reminded us; others of course don't remember our conversations about it)
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 16:42
allow_none is a bit special in that it is not metadata
hence a Union may have its own allow_none
Matthias Bussonnier
@Carreau
Feb 20 2015 17:42
Is anybody already at strata today ?
Kyle Kelley
@rgbkrk
Feb 20 2015 17:44
yeah
Jon is in the speaker room
We're watching a talk from Jeffrey Heer
We being Brian and I
Matthias Bussonnier
@Carreau
Feb 20 2015 18:29
Stupid gitter. Receive response now....
Where are you now?
Jonathan Frederic
@jdfreder
Feb 20 2015 19:19
@SylvainCorlay thanks for the minor style PR
I just merged it
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 19:53
thanks, it was breaking my layout in some gui
Sylvain Corlay
@SylvainCorlay
Feb 20 2015 21:33
btw, currently using the notebook for teaching. Awesome.
I find the html-nbexported notebooks much nicer than their pdf counterparts
It sounds like we could nicely set up a kernel-to-telegram bridge/adaptor and get a lightweight mobile interface of sorts... Just an idle Friday afternoon thought.
Matthias Bussonnier
@Carreau
Feb 20 2015 23:01
Brian and I have not played with Telegram.
Fernando Perez
@fperez
Feb 20 2015 23:02
How are things at Strata? Wish I could have been there today...
Thomas Kluyver
@takluyver
Feb 20 2015 23:02
I installed it at some point, but didn't get beyond that
Fernando Perez
@fperez
Feb 20 2015 23:02
Nothing for now, it just sounded cute/interesting
Matthias Bussonnier
@Carreau
Feb 20 2015 23:05
DId a demo at rackspace booth.
had live people coding in R.
Trying to recruit.
Also, trying to network to have Elon use notebook.
Fernando Perez
@fperez
Feb 20 2015 23:59
Huh? Elon Musk from Tesla? Did Tesla have a booth?