These are chat archives for ipython/ipython

2nd
Sep 2015
litaotao
@litaotao
Sep 02 2015 07:02
hi, guys
how do I know which ipython edition installed when type pip install "ipython[all]"
or how can I make it automatically install all dependencies for ipython 3.2.0 ?
cel4
@cel4
Sep 02 2015 09:34
@litaotao, are you looking for pip install ipython[all]==3.2.0?
Anton Akhmerov
@akhmerov
Sep 02 2015 14:36
@ellisonbg the computational physics materials don't seem to be online. May I access them somehow?
Brian E. Granger
@ellisonbg
Sep 02 2015 15:36
Which computational physics materials?
For the course I taught?
Marcin Staśko
@MarcinStasko
Sep 02 2015 15:36
Hello I am new at this group :)
This is just the lecture material - the assignments are in a private repo to protect the solutions from future students :)
Anton Akhmerov
@akhmerov
Sep 02 2015 17:22
@ellisonbg thanks! Do you mind giving me access to the assignments repo? By a coincidence my department now rekindles the discussion of improving the programming education quality, and I hope to not be stuck with Matlab for another 5 years.
Jason Grout
@jasongrout
Sep 02 2015 19:01
@rmorshea - thanks for working on the traitlets PR. I have to keep refreshing to keep up with your changes!
It's great!
Andreas Klostermann
@akloster
Sep 02 2015 23:11
Is there any way to open a comm channel between the kernel and the javascript side without using widgets? I figured out how to open a comm from the kernel, but I can't figure out how to connect javascript code to it without being a displayed widget
(I need it for communication that should be invisible, undestroyable and unique per kernel, unlike widgets)
Sylvain Corlay
@SylvainCorlay
Sep 02 2015 23:13
comms may be open independently of widgets. You can register other targets.
than ipython.widget
widgets bring a number of other things you may want to benefit from
Andreas Klostermann
@akloster
Sep 02 2015 23:14
yes I figured
but I don't know how ;-)
my usecase is bokeh plotting... I only need one comm per "page", because it can change any datasource on the page, but it would also be nice for the comm not to be destroyable by the user
Sylvain Corlay
@SylvainCorlay
Sep 02 2015 23:16
Besides, not all widgets are visual
Andreas Klostermann
@akloster
Sep 02 2015 23:16
in my understanding they all have at least one dom element, and an "x" beside them
Sylvain Corlay
@SylvainCorlay
Sep 02 2015 23:16
not really
Andreas Klostermann
@akloster
Sep 02 2015 23:17
ok
Never seen an example though
Sylvain Corlay
@SylvainCorlay
Sep 02 2015 23:17
The base Widget does not have a view
as soon as you instantiate it, a comm is open, and a widget model is created
Andreas Klostermann
@akloster
Sep 02 2015 23:17
oh
Sylvain Corlay
@SylvainCorlay
Sep 02 2015 23:17
the views are only created when the widget is displayed
another view-less widget is the jslink
Andreas Klostermann
@akloster
Sep 02 2015 23:18
ah
thanks for the clarification
Sylvain Corlay
@SylvainCorlay
Sep 02 2015 23:18
which is a widget to link widgets models with each other. it only has a model
Andreas Klostermann
@akloster
Sep 02 2015 23:18
I always assumed I had to display the widget
Sylvain Corlay
@SylvainCorlay
Sep 02 2015 23:18
you need to display the widget to run any javascript that is in the widget view
but not in the widget model
you may create custom models
the jslink is a good example
Andreas Klostermann
@akloster
Sep 02 2015 23:19
ok
running client side js in response to comm messages would be required
Sylvain Corlay
@SylvainCorlay
Sep 02 2015 23:19
sure
Andreas Klostermann
@akloster
Sep 02 2015 23:19
I'll take a look. Thank you!
Sylvain Corlay
@SylvainCorlay
Sep 02 2015 23:19
in the model
Jason Grout
@jasongrout
Sep 02 2015 23:30
Here is an example of a plain comm as well, in case you want it: https://gist.github.com/jasongrout/64d2548eff5f4cb41298
Andreas Klostermann
@akloster
Sep 02 2015 23:31
thank you
Andreas Klostermann
@akloster
Sep 02 2015 23:44
I tried to use a widget without displaying it, but in that case it won't even load the javascript
I'll probably go with jasongrout's method