These are chat archives for ipython/ipython

31st
Mar 2015
Jonathan Frederic
@jdfreder
Mar 31 2015 16:26
@minrk @takluyver if you guys are pending on ipython/ipython#7757 , I can merge it and add the whatsnew.rst myself.
Jessica B. Hamrick
@jhamrick
Mar 31 2015 16:53
I will be missing the dev meeting today, unfortunately
Matthias Bussonnier
@Carreau
Mar 31 2015 16:53
We already miss U
Cedric GESTES
@cgestes
Mar 31 2015 16:57
do you know if there is a way to make call (with answer) from JS to an IPython kernel?
Min RK
@minrk
Mar 31 2015 16:58
Call kernel.execute and register callbacks for the replies.
Cedric GESTES
@cgestes
Mar 31 2015 16:58
  • using a codecell mean I have to encode arguments to string which seems error prone.
  • using comm I have to generate ids and map the promise etc... bymyself
kernel.execute take a string, do you have an efficient way to encode arguments?
Min RK
@minrk
Mar 31 2015 16:59
If you want to send structured messages, comms are the way to go.
Matthias Bussonnier
@Carreau
Mar 31 2015 17:00
Should start mertign without @fperez.
Min RK
@minrk
Mar 31 2015 17:00
ok, spinning up.
Cedric GESTES
@cgestes
Mar 31 2015 17:00
@minrk but then I cannot make calls?
(get answers to my specific call)
Min RK
@minrk
Mar 31 2015 17:01
Sure you can. It's entirely up to you how the comm message is handled.
It can be an RPC service, calling specific methods by name, with args, kwargs.
Cedric GESTES
@cgestes
Mar 31 2015 17:01
yep I have to code it by myself.
both side.
Min RK
@minrk
Mar 31 2015 17:02
Yup.
Cedric GESTES
@cgestes
Mar 31 2015 17:02
ok thanks.
I have another issue with comm.
I have a standalone application that connect to the same kernel as a notebook.
I want them to share some backbone model.
I use a IPython.html.widget for that.
but I dont exactly understand what to do to initialise the model in both webpage.
the two webpages use the same websocket address, so they receive msg not for them. (seems an issue but It's still working)
but I dont know how to init a backbone model once it have been init in one of the webpage.
(widget.close(); widget.open(); reinit the widget, but it destroy the one from the previous webpage... obviously...)
Damian Avila
@damianavila
Mar 31 2015 17:12
OK, /@all, just listening from here today... I could not join now, but I will try to join later...
Min RK
@minrk
Mar 31 2015 17:24
šŸ“Ž
ā˜
Jonathan Frederic
@jdfreder
Mar 31 2015 17:36
:paperclip:
:paperclip:
hmmm
tricky
    šŸ“Ž
success
Jessica B. Hamrick
@jhamrick
Mar 31 2015 18:06
Is the meeting still going?
Matthias Bussonnier
@Carreau
Mar 31 2015 18:08
Congratulation to be on the steering concil !
Cyrille Rossant
@rossant
Mar 31 2015 18:34
is it possible to expose a REST API from an IPython kernel? this would be to access a kernel from both a notebook and a webapp
Matthias Bussonnier
@Carreau
Mar 31 2015 18:34
To do what ? Execution ?
Kernel starting is already a REST API.
[{"id": "3c20f3d4-6722-4b5b-8dea-718598755695", "name": "python3"}]
Cyrille Rossant
@rossant
Mar 31 2015 18:38
for example, localhost/myapp/dothis calls dothis() and returns the result of the function. I'd like to have full control on the API
Matthias Bussonnier
@Carreau
Mar 31 2015 18:41
NAh, cause you have side effect like stdout/err/display
there is not only the returned value.
so you have to have websocket.
though you can embed kernel.js that talk to the API
(with websocket)
and get that but with call backs
Cyrille Rossant
@rossant
Mar 31 2015 18:45
what if I don't mind about side effects? can I have a regular JS client that just consumes a REST API with no IPython-specific JS code nor websocket?
Matthias Bussonnier
@Carreau
Mar 31 2015 18:53
No I don't think so. Issue is if long computation you will http timeout.
But that shoudln't be hard to build.
do you want kernel persistence ?
I think it would be easier to wrap IPython ZMQ in flask/REST than to modify IPython to do it .
fell more like custom RPC that trying to build on top of a repl.
especially if myapp as predefined methods, it looks definitively like a Flask quick things.
Sylvain Corlay
@SylvainCorlay
Mar 31 2015 18:57
hey, I tried using conda on windows with ipython 3.0 lately. did anyone experience issues with conda lately
Matthias Bussonnier
@Carreau
Mar 31 2015 18:58
nop but I don't use conda.
Sylvain Corlay
@SylvainCorlay
Mar 31 2015 18:59
I don't use it often
Matthias Bussonnier
@Carreau
Mar 31 2015 18:59
I know I'm useless
Cyrille Rossant
@rossant
Mar 31 2015 19:00
ok, thanks matthias. cc @cgestes
Min RK
@minrk
Mar 31 2015 19:02
@SylvainCorlay I use conda, but IPython from master.
Sylvain Corlay
@SylvainCorlay
Mar 31 2015 19:03
@Carreau not at all, thanks for the mental support :)
yes, it seems there is a conda issue unrelated to ipython. asking on the conda gitter chat
Sylvain Corlay
@SylvainCorlay
Mar 31 2015 19:41
the develop install of the master branch, is it supposed to work on windows?
doing anything with windows drives me crazy
Min RK
@minrk
Mar 31 2015 21:23
I have no idea. I don't see why it wouldn't, but I wouldn't consider it a problem if it doesn't.