These are chat archives for ipython/ipython

2nd
Jun 2015
Alexey Berezutsky
@AlexeyBerezutsky
Jun 02 2015 10:52
Hi All. Do somebody know how to catch user activity in a notebook? I need to know if user do something there or not. If not my code should stop the kernel after some amount of time.
Anton Akhmerov
@akhmerov
Jun 02 2015 13:05
@AlexeyBerezutsky I second that. My use case would be to shutdown the parallel clusters if the user is inactive, and no computation is running. But perhaps on the mailing list you have a higher chance of getting a response.
Alexey Berezutsky
@AlexeyBerezutsky
Jun 02 2015 13:41
@akhmerov Yes. It seems that mailing list will be more convenient. Cheers=)
Jonathan Frederic
@jdfreder
Jun 02 2015 16:41
@takluyver @Carreau meeting today? I think @minrk is Europe, right? Not sure if he is going to join.
@AlexeyBerezutsky @akhmerov there is nothing built in to do that.
But you can use Javascript + (Server extension or comms, depending on where you need the info.)
Thomas Kluyver
@takluyver
Jun 02 2015 16:45
yep, I'd assume Min won't be there. Fernando said he'll be late and we should start without him
Jessica B. Hamrick
@jhamrick
Jun 02 2015 16:45
I will miss the meeting today I think; I have a paper deadine later this week that I need to work on
Anton Akhmerov
@akhmerov
Jun 02 2015 16:46
@jdfreder I actually thought that monitoring last Kernel event in a notebook is also good enough.
So probably I can just leave the javascript alone. (But not that I know how to get Kernel events right away)
Kyle Kelley
@rgbkrk
Jun 02 2015 16:49
No meeting for me, in a long meeting at work
same for Thursday for me too
Thomas Kluyver
@takluyver
Jun 02 2015 16:51
OK, it's going to be a small meeting
Jonathan Frederic
@jdfreder
Jun 02 2015 16:53
@akhmerov ah I misunderstood, I thought you we interested in whether or not the user was there, not whether or not they were executing code.
Anton Akhmerov
@akhmerov
Jun 02 2015 16:54
The two are comparable, but the former seems harder.
Damian Avila
@damianavila
Jun 02 2015 16:59
I can not attend neither gals and guys...
Jonathan Frederic
@jdfreder
Jun 02 2015 17:00
It is, but it's probably worth it, because I don't know about the general populus, but when I'm editing a notebook, there can be long periods where I'm not actually executing code. And I wouldn't want me kernel to get closed on me just because of that!
Matthias Bussonnier
@Carreau
Jun 02 2015 17:00
Fernando will be late but said to start without him
Jonathan Frederic
@jdfreder
Jun 02 2015 17:01
Do one of you UCB folks with high bandwidth university internet want to host?
Matthias Bussonnier
@Carreau
Jun 02 2015 17:02
I can do.
Jonathan Frederic
@jdfreder
Jun 02 2015 17:02
Thanks! : )
Matthias Bussonnier
@Carreau
Jun 02 2015 17:02
@takluyver want to connect from My computer? I'm still not on the org IIRC.
Anton Akhmerov
@akhmerov
Jun 02 2015 18:35
@jdfreder No, of course I'm not talking about the kernel, rather about ipython parallel cluster, because idling engines still count as running from the queueing system point of view.
And since our local cluster isn't very big, I prefer being conservative there.
Sebastian Benthall
@sbenthall
Jun 02 2015 21:01
Hello room. Just saying hello because I'm studying your email archives and chat logs for a research project. I'm a PhD Candidate at UC Berkeley School of Information. I'll mostly be lurking so I don't distract you.
Kyle Kelley
@rgbkrk
Jun 02 2015 21:41
@sbenthall That's ok, we know there are >360> 360 people watching.
If you want to go full blown crazy, there are like 100 rooms across most of our repos too.
;)
Sylvain Corlay
@SylvainCorlay
Jun 02 2015 22:02
There seems to be people logging the content as well interestingly.
Jonathan Frederic
@jdfreder
Jun 02 2015 22:09
How can you tell that they are logging it?
Sebastian Benthall
@sbenthall
Jun 02 2015 22:09
Gitter appears to keep track of the archives. i don't know if they are available through an API
but i'd hope other logging would be unnecessary
looks like they are available through the REST API
Sylvain Corlay
@SylvainCorlay
Jun 02 2015 22:11
There is only one user reading all the messages of everyone 24/7, right away. (Just look at the read-by field on any message)
Sebastian Benthall
@sbenthall
Jun 02 2015 22:13
i don't understand what you mean by that. i agree the 'unread' data is a very interesting field
i don't know any other service that provides that info via an api. a touch invasive. but maybe they are anticipating a gitter 'inbox' for an app or something
so much for lurking
Kyle Kelley
@rgbkrk
Jun 02 2015 23:09
Hehe
Sebastian Benthall
@sbenthall
Jun 02 2015 23:10
i see now. well, that narrows it down to @eerie @ljwolf @dalejung and myself
and i don't have logging set up (yet) i promise :)
i'm going to guess it's @eerie because 3k starred repositories looks like a bot to me
so...streaming API probably? is that what it takes for a bot to 'read' a message immediately?
Dale Jung
@dalejung
Jun 02 2015 23:50
it's probably me
I'm using the IRC bridge through znc, so it's always connected