These are chat archives for ipython/ipython

6th
Sep 2014
Jessica B. Hamrick
@jhamrick
Sep 06 2014 20:19
Is there a way to capture keyboard events from the celltoolbar ui? I'm trying to add a text box, when I try typing into it, the keypresses are still handled normally -- so if I try typing a 1, it will turn the cell into a header cell rather than typing a 1, etc.
Here's what the UI looks like that I'm trying to do:
Bah, can't post images easily.
Kyle Kelley
@rgbkrk
Sep 06 2014 20:21
Guh, yeah. You have to upload an image to imgur.
There is a nifty hack with GitHub that lets you use GitHub to post images
(From a cli tool)
Jessica B. Hamrick
@jhamrick
Sep 06 2014 20:21
There we go
Kyle Kelley
@rgbkrk
Sep 06 2014 20:22
sweet
That's cool
They type in the number of points then?
Jessica B. Hamrick
@jhamrick
Sep 06 2014 20:22
Yeah except it doesn't work for a lot of keys because the keyboard events are captured by the rest of the notebook interface before they get to the text box
Kyle Kelley
@rgbkrk
Sep 06 2014 20:24
That's too bad. After @Carreau gets through customs, I'm sure he'll have JavaScript guidance. ;) I'm a novice with our javascripts
Jessica B. Hamrick
@jhamrick
Sep 06 2014 20:24
Ok cool, I'll work on other things in the meantime :)
Thomas Kluyver
@takluyver
Sep 06 2014 20:29
I think there's a function called something like 'register_events' that you can call with an element, to say that the normal shortcuts should be disabled when it has focus.
Jessica B. Hamrick
@jhamrick
Sep 06 2014 20:35
Hmm ok, I'll look into that. Thanks!
Matthias Bussonnier
@Carreau
Sep 06 2014 20:36
I'll have a look too.
How are things?
Drag and drop for images work for me....
Jessica B. Hamrick
@jhamrick
Sep 06 2014 20:38
Oh I didn’t actually try dragging and dropping
Just pasting
Things are good, adding some cool nbgrader features :)
Matthias Bussonnier
@Carreau
Sep 06 2014 20:39
Almost to my gate. Looking four outlet.
Thomas Kluyver
@takluyver
Sep 06 2014 20:41
;0
:)
off by one fingers
Kyle Kelley
@rgbkrk
Sep 06 2014 20:42
whoa, you can drag and drop?
Matthias Bussonnier
@Carreau
Sep 06 2014 20:42
Yep.
Kyle Kelley
@rgbkrk
Sep 06 2014 20:42
IMG_1086.JPG
neat
Matthias Bussonnier
@Carreau
Sep 06 2014 20:43
Me found power. Me happy.
Kyle Kelley
@rgbkrk
Sep 06 2014 20:43
Me found power too. Airport not packed. Me drink Americano. Me very happy.
Matthias Bussonnier
@Carreau
Sep 06 2014 20:43
Yeah except it doesn't work for a lot of keys because the keyboard events are captured by the rest of the notebook interface before they get to the text box
you should open a bug
Kyle Kelley
@rgbkrk
Sep 06 2014 20:44
Brian looks angry in that photo
Matthias Bussonnier
@Carreau
Sep 06 2014 20:44
this shoudl not happend, or we shoudl document how to do it.
Jessica B. Hamrick
@jhamrick
Sep 06 2014 20:44
Ok will do
Matthias Bussonnier
@Carreau
Sep 06 2014 20:44
Brian always look angry.
Kyle Kelley
@rgbkrk
Sep 06 2014 20:44
I've seen him smile and laugh
:P
Matthias Bussonnier
@Carreau
Sep 06 2014 20:44
:-)
:-)
ok, boarding stats in one hour.
Jessica B. Hamrick
@jhamrick
Sep 06 2014 20:47
Alright, issue created #6426
Matthias Bussonnier
@Carreau
Sep 06 2014 20:47
thanks !
idea: a magic to create magics.
Jessica B. Hamrick
@jhamrick
Sep 06 2014 20:51
Metamagic!
Matthias Bussonnier
@Carreau
Sep 06 2014 21:25
I already miss you all guys !
Matthias Bussonnier
@Carreau
Sep 06 2014 21:58
Yeahhh we are below 40 open PRs. It is not an excuse to open new ones !
Matthias Bussonnier
@Carreau
Sep 06 2014 22:04
Flight boarding, leaving in a few minutes. See you soon !
Thomas Kluyver
@takluyver
Sep 06 2014 22:10
well done :)
have a good flight
Matthias Bussonnier
@Carreau
Sep 06 2014 22:12
Bye Guys !
Thomas Kluyver
@takluyver
Sep 06 2014 22:13
bye! & good luck
Matthias Bussonnier
@Carreau
Sep 06 2014 22:20
Pfffff last call and there is at least 100 people in the queue at the gate. I should'nt have left my outlet.
Kyle Kelley
@rgbkrk
Sep 06 2014 22:25
Haha, I opened one and I'll keep doing it because you can't stop me.
Have a good flight.
Mine is going well, except I can't update Ubuntu over the wifi for some reason.
;)
Matthias Bussonnier
@Carreau
Sep 06 2014 22:27
I just have one song for @rgbkrk "we ... The world , we ... The children the forest and the see so let is doing"
Ok this Time for real. Bye.
Kyle Kelley
@rgbkrk
Sep 06 2014 22:28
Have a great flight!
Thomas Kluyver
@takluyver
Sep 06 2014 22:29
Bye Matthias
Nicholas Bollweg
@bollwyvl
Sep 06 2014 23:18
@jhamrick i ran into the keyboard issue in working with handsontable: notebook
the gist (ha) was to call IPython.keyboard_manager.disable when knew you wanted to be typing there
(then put it back on blur)
probably not the right way, but it works
Thomas Kluyver
@takluyver
Sep 06 2014 23:20
I think our keyboard_manager.register_events() is the nicer way to achieve that
This message was deleted
sorry, wrong link
thanks gitter...
Nicholas Bollweg
@bollwyvl
Sep 06 2014 23:22
also, regarding reusing the casper stuff for testing widgets: i got something working by subclassing JSController
Thomas Kluyver
@takluyver
Sep 06 2014 23:22
nice, you can edit your messages within 10 minutes of sending
Nicholas Bollweg
@bollwyvl
Sep 06 2014 23:22
again, probably not the right, way, but WFM
Nicholas Bollweg
@bollwyvl
Sep 06 2014 23:28
also was pleased to find that casper supports .coffee files out of the box: templated multiline strings are worth the price of admission