These are chat archives for ipython/ipython

3rd
Oct 2014
Min RK
@minrk
Oct 03 2014 00:11
I plan to fix some stuff in that PR - collapse the menu when it's small, rather than stack it
epifanio
@epifanio
Oct 03 2014 00:30
@minrk cool! .. i just borrowed an i[ad fpr testing . .. how do you hit “shif+enter” ?
Jessica B. Hamrick
@jhamrick
Oct 03 2014 00:37
In kernel.js there is a check for whether the execution state is dead, but accoding to the message spec docs (http://ipython.org/ipython-doc/dev/development/messaging.html#kernel-status), there is no dead state. Which is correct?
Same question about ‘restarting'
Thomas Kluyver
@takluyver
Oct 03 2014 00:49
@jhamrick I think the code is right. In the server code, I see calls sending both status 'dead' and status 'restarting'
though I haven't checked that they can be reached
see IPython.html.services.kernels.handlers
Jessica B. Hamrick
@jhamrick
Oct 03 2014 00:50
Cool, thanks!
Thomas Kluyver
@takluyver
Oct 03 2014 00:50
:)
Jessica B. Hamrick
@jhamrick
Oct 03 2014 00:52
Ahh interesting
So it’s not part of the message spec proper, only part of the rest api
Thomas Kluyver
@takluyver
Oct 03 2014 00:53
good point
the specified message spec are the bits going to and from the kernel
and the kernel itself can't say that it's dead or restarting
all the same, they should probably be documented somewhere
Jessica B. Hamrick
@jhamrick
Oct 03 2014 00:54
Yeah
Jonathan Frederic
@jdfreder
Oct 03 2014 14:27
@takluyver do you have any example kernels that use custom js? Trying to figure out how to get it to push to the front-end with a kernel implementation similar to your Bash kernel.
Jonathan Frederic
@jdfreder
Oct 03 2014 14:34
(kernelspec question)
I know where to look, IJulia does it
no they don't do it how I want to do it...
hmm
Matthias Bussonnier
@Carreau
Oct 03 2014 15:33
@jdfreder No, not implemented yet.
I am responsible for implementing it. Have an on-going PR.
but I have a question for kernelspec for @takluyver do things like help_linksreally should be in kernelspec json ? it does not make much sens to store them in notebook MD right ? So should we have a pat of kernelspec which is not stored in notebook ?
Jonathan Frederic
@jdfreder
Oct 03 2014 15:41
Ah thanks for the heads up @Carreau . I'll just fallback to using my custom.js for now... :disappointed: I think help_links is kernel specific, not notebook specific. But once you add the ability for kernels to specify custom JS, it probably makes sense to remove that key and instead make people use the JS API to add the help links.
Matthias Bussonnier
@Carreau
Oct 03 2014 15:43
in the spec help ink in is kernel.json, so if we do nothing it will be embeded in nb metadata.
so we shoudl change the spec at least.
Jonathan Frederic
@jdfreder
Oct 03 2014 15:45
Oh really? I was unaware that unhandled keys were just dumped into the nb metadata. Strange...
Matthias Bussonnier
@Carreau
Oct 03 2014 15:48
I think they are. I might be wrong.
Thomas Kluyver
@takluyver
Oct 03 2014 16:18
Yes, everything in kernel.json is stored in NB metadata, except for the argv and env used to launch the kernel
the question is: if you open a notebook and you don't have the kernel, does it make sense to show the relevant help links? I can imagine that it might - e.g. it might point you to how to install the kernel
but I can also see that it's an odd thing to have in the NB document
another question is whether help links should be part of a kernel info request, rather than in the kernel spec. That would make it possible to generate the links dynamically (e.g. according to loaded modules)
I think we thought about that before and decided it would be static for now, but we might revisit it later
Min RK
@minrk
Oct 03 2014 16:35
Should we consider a whitelist of things included in the document (just name and codemirror, for example)
Thomas Kluyver
@takluyver
Oct 03 2014 16:36
At the moment, there are more things we want included than things we don't, hence the blacklist approach
Fernando Perez
@fperez
Oct 03 2014 16:50
Hey guys, can one of you start the meeting? I'm at BIDS as I have another series of meetings here back-to-back...
We'll try to keep it as quick as possible (and should probably chat on the design room).
thx!
Min RK
@minrk
Oct 03 2014 16:53
sure
Thomas Kluyver
@takluyver
Oct 03 2014 16:53
@minrk how's your connection? Shall I host?
Min RK
@minrk
Oct 03 2014 16:53
My connection is fine
Thomas Kluyver
@takluyver
Oct 03 2014 16:53
ok then, go ahead
Fernando Perez
@fperez
Oct 03 2014 16:54
ok
thx
Brian E. Granger
@ellisonbg
Oct 03 2014 16:54
url?
Min RK
@minrk
Oct 03 2014 16:55
We want to jump in now, or wait for 10?
Brian E. Granger
@ellisonbg
Oct 03 2014 16:55
I am available now
Fernando Perez
@fperez
Oct 03 2014 16:59
I'm on
i.e. available
Matthias Bussonnier
@Carreau
Oct 03 2014 17:00
I'm not gonna make it. Trust you on decision.
Fernando Perez
@fperez
Oct 03 2014 17:00
ok
I'd like to start soon and keep it short. mad, mad, bad day.
Jonathan Frederic
@jdfreder
Oct 03 2014 18:13
@fperez it's friday
oh whoops
internet froze I missed all of that conversation
ignore me
Jonathan Frederic
@jdfreder
Oct 03 2014 21:13
@minrk I'm trying to add a custom handler for a specific ext. I'm looking in the /services/contents filemanager.py and handlers.py, and I'm bit confused, it seems like there is some magic going on here... Is the REST api derived from the "model" class (.type) being passed around?
Min RK
@minrk
Oct 03 2014 21:13
I don't know what you mean by "model" class
Why are you adding a custom handler?
Jonathan Frederic
@jdfreder
Oct 03 2014 21:15
I want to add a custom handler (super hack just for me) that copies a file before opening it
as a super hack
(not for master)
Min RK
@minrk
Oct 03 2014 21:15
ok
Jonathan Frederic
@jdfreder
Oct 03 2014 21:16
"model" is the name of the *dict I think (not class) that gets passed around for each file
describing the file
Min RK
@minrk
Oct 03 2014 21:17
just look at the existing get handler, and instead of getting the notebook, call cm.copy(from, to), and self.redirect(new_url)
Jonathan Frederic
@jdfreder
Oct 03 2014 21:17
Thanks min
I'll take a look
Min RK
@minrk
Oct 03 2014 21:17
you shouldn't need to touch any models
Jonathan Frederic
@jdfreder
Oct 03 2014 21:18
awesome
well I created one called "template"
so I could sort it to the top