These are chat archives for ipython/ipython

8th
Oct 2015
saqibullah
@saqibullah
Oct 08 2015 14:11
i m using IPython 4.0 with conda how can I add Interactive HTML Widgets
Min RK
@minrk
Oct 08 2015 14:20
conda install ipywidgets
saqibullah
@saqibullah
Oct 08 2015 14:36

ipywidgets is installed but still unable to find out ipywidget

ImportError Traceback (most recent call last)

<ipython-input-1-5780c52a9bc5> in <module>()
----> 1 import ipywidgets as widgets
2 widgets.Widget.widget_types.values()

/opt/anaconda/lib/python2.7/site-packages/ipywidgets/init.py in <module>()
3 from IPython import get_ipython
4 from .version import versioninfo, __version
----> 5 from .widgets import *

Min RK
@minrk
Oct 08 2015 14:38
What do you get from conda list?
saqibullah
@saqibullah
Oct 08 2015 14:39
ipywidgets 4.0.3 py27_0
Min RK
@minrk
Oct 08 2015 14:39
The whole thing
saqibullah
@saqibullah
Oct 08 2015 14:40
installation was completed successfully and after conda list i m getting complete list installed packages
Min RK
@minrk
Oct 08 2015 14:41
That's good. Can you provide the list?
saqibullah
@saqibullah
Oct 08 2015 14:42

sure

conda list

packages in environment at /opt/anaconda:

#
_license 1.1 py27_0
abstract-rendering 0.5.1 np19py27_0
alabaster 0.7.3 py27_0
anaconda 2.3.0 np19py27_0
argcomplete 0.9.0 py27_0
astropy 1.0.4 np19py27_0
babel 1.3 py27_0
backports.ssl-match-hostname 3.4.0.2 <pip>
bcolz 0.10.0 np19py27_0
beautiful-soup 4.3.2 py27_0
beautifulsoup4 4.3.2 <pip>
binstar 0.12 2
bitarray 0.8.1 py27_0
blaze 0.8.2 <pip>
blaze-core 0.8.2 np19py27_0
blz 0.6.2 np19py27_1
bokeh 0.9.3 np19py27_0
boto 2.38.0 py27_0
bottleneck 1.0.0 np19py27_0
cairo 1.12.18 4
cdecimal 2.3 py27_0
certifi 14.05.14 py27_0
cffi 1.1.2 py27_0
clyent 0.4.0 py27_0
colorama 0.3.3 py27_0
conda 3.18.1 py27_0
conda-build 1.17.0 py27_0
conda-env 2.4.2 py27_0
configobj 5.0.6 py27_0
cryptography 0.9.3 py27_0
curl 7.43.0 1
cython 0.23.1 py27_0
cytoolz 0.7.3 py27_0
databench 0.3.18 <pip>
datashape 0.4.6 np19py27_0
decorator 4.0.4 py27_0
docutils 0.12 py27_0
dynd-python 0.6.5 np19py27_0
enum34 1.0.4 py27_0
fastcache 1.0.2 py27_0
flask 0.10.1 py27_1
flask-markdown 0.3 <pip>
flask-sockets 0.1 <pip>
fontconfig 2.11.1 4
freetype 2.5.2 2
funcsigs 0.4 py27_0
gevent 1.0.1 py27_0
gevent-websocket 0.9.3 py27_0
greenlet 0.4.7 py27_0
grin 1.2.1 py27_1
h5py 2.5.0 np19py27_3
hdf5 1.8.15.1 1
idna 2.0 py27_0
ipaddress 1.0.7 py27_0
ipykernel 4.0.3 py27_0
ipython 3.2.1 py27_0
ipython-genutils 0.1.0 <pip>
ipython-notebook 4.0.4 py27_0
ipython-qtconsole 4.0.1 py27_0
ipython_genutils 0.1.0 py27_0
ipywidgets 4.0.3 py27_0
itsdangerous 0.24 py27_0
jdcal 1.0 py27_0
jedi 0.9.0 py27_0
jinja2 2.8 py27_0
jinja2-highlight 0.5.1 <pip>

jpeg 8d 0
jsonschema 2.4.0 py27_0
jupyter-client 4.0.0 <pip>
jupyter-core 4.0.6 <pip>
jupyter_client 4.0.0 py27_0
jupyter_core 4.0.6 py27_0
krb5 1.13.2 0
libdynd 0.6.5 0
libffi 3.0.13 0
libgfortran 1.0 0
libpng 1.6.17 0
libsodium 0.4.5 0
libtiff 4.0.2 1
libxml2 2.9.2 0
libxslt 1.1.28 0
llvmlite 0.6.0 py27_0
lxml 3.4.4 py27_0
markdown 2.6.2 <pip>
markupsafe 0.23 py27_0
matplotlib 1.4.3 np19py27_2
mistune 0.7.1 py27_0
mock 1.3.0 py27_0
mpld3 0.2 py27_1
mplexporter 0.0.1 py27_1
multipledispatch 0.4.8 py27_0
nbconvert 4.0.0 py27_0
nbformat 4.0.0 py27_0
networkx 1.10 py27_0
nltk 3.0.5 py27_0
nose 1.3.7 py27_0
notebook 4.0.5 py27_0
numba 0.20.0 np19py27_0
numexpr 2.4.3 np19py27_0
numpy 1.9.3 py27_0
odo 0.3.3 np19py27_0
openblas 0.2.14 3
openpyxl 2.0.2 py27_0
openssl 1.0.1k 1
pandas 0.16.2 np19py27_0
patchelf 0.6 0
path.py 7.6 py27_0
patsy 0.4.0 np19py27_0
pattern 2.6 <pip>
pbr 1.3.0 py27_0
pep8 1.6.2 py27_0
pexpect 3.3 py27_0
pickleshare 0.5 py27_0
pillow 2.9.0 py27_0
pip 7.1.2 py27_0
pixman 0.26.2 0
ply 3.6 py27_0
psutil 2.2.1 py27_0
ptyprocess 0.4 py27_0
py 1.4.30 py27_0
py2cairo 1.10.0 py27_2
pyasn1 0.1.7 py27_0
pycosat 0.6.1 py27_0
pycparser 2.14 py27_0
pycrypto 2.6.1 py27_0
pycurl 7.19.5.1 py27_2
pyflakes 0.9.2 py27_0
pygments 2.0.2 py27_0
pyopenssl 0.15.1 py27_1
pyparsing 2.0.3 py27_0
pyqt 4.11.3 py27_1
pytables 3.2.1.1 np19py27_0
pytest 2.7.2 py27_0
python 2.7.10 1
python-dateutil 2.4.2 py27_0
pytz 2015.6 py27_0
pyyaml 3.11 py27_1
pyzmq 14.7.0 py27_0
qt 4.8.6 3
qtconsole 4.0.1 py27_0
readline 6.2 2
redis 2.6.9 0
redis-py 2.10.3 py27_0
requests 2.8.0 py27_0
rope 0.9.4 py27_1
runipy 0.1.3 py27_0
scikit-image 0.11.3 np19py27_0
scikit-learn 0.16.1 np19py27_0
scipy 0.16.0 np19py27_1
seaborn 0.6.0 np19py27_0
setuptools 18.3.2 py27_0
simplegeneric 0.8.1 py27_0
sip 4.16.5 py27_0
six 1.9.0 py27_0
snowballstemmer 1.2.0 py27_0
sockjs-tornado 1.0.1 py27_0
sphinx 1.3.1 py27_0
sphinx-rtd-theme 0.1.7 <pip>
sphinx_rtd_theme 0.1.7 py27_0
spyder 2.3.6 py27_0
spyder-app 2.3.6 py27_0
sqlalchemy 1.0.8 py27_0
sqlite 3.8.4.1 1
ssl_match_hostname 3.4.0.2 py27_0
statsmodels 0.6.1 np19py27_0
sympy 0.7.6.1 py27_0
system 5.8 2
tables 3.2.1.1 <pip>
terminado 0.5 py27_0
theano 0.7.0 np19py27_0
Min RK
@minrk
Oct 08 2015 14:43
Hm, I'm not sure why it's not installing the correct versions of things. Try conda upgrade ipython
saqibullah
@saqibullah
Oct 08 2015 14:43
tk 8.5.18 0
toolz 0.7.4 py27_0
tornado 4.2.1 py27_0
traitlets 4.0.0 py27_0
ujson 1.33 py27_0
unicodecsv 0.13.0 py27_0
util-linux 2.21 0
werkzeug 0.10.4 py27_0
wheel 0.24.0 py27_0
xlrd 0.9.4 py27_0
xlsxwriter 0.7.3 py27_0
xlwt 1.0.0 py27_0
yaml 0.1.6 0
zeromq 4.0.5 0
zipstream 1.1.3 <pip>
zlib 1.2.8 0
ok
Min RK
@minrk
Oct 08 2015 14:43
and conda install notebook
You are somehow missing two packages that are dependencies of ipywidgets.
saqibullah
@saqibullah
Oct 08 2015 14:45
executed both commands
ipython 3.2.1 py27_0
notebook 4.0.5 py27_0
getting same error
Min RK
@minrk
Oct 08 2015 14:48
The problem is IPython 3.2
Current IPython is 4.0
conda upgrade ipython should get 4.0.
saqibullah
@saqibullah
Oct 08 2015 14:49
is there any other way to get update of IPython 4.0
Min RK
@minrk
Oct 08 2015 15:03
conda install ipython should do it, and so should conda update ipython. Maybe conda update conda first, if there's a bug in conda that's getting in the way.
saqibullah
@saqibullah
Oct 08 2015 15:19
bad luck unable to install update Ipython 4.0
its fail
saqibullah
@saqibullah
Oct 08 2015 15:37

following code in notebook

import IPython
IPython.version

'4.0.0'

saqibullah
@saqibullah
Oct 08 2015 15:54

following command is solution

conda install ipython=4.0.0

Sylvain Corlay
@SylvainCorlay
Oct 08 2015 18:01
@jasongrout @minrk @rmorshea do you think that we could make a release of traitlets?
I feel like we already changed a lot, and we have not figured out yet what would be the best replacement for the _**_default machinery.
Min RK
@minrk
Oct 08 2015 18:03
I'm not sure. How close do you think it is to ready? I keep seeing more changes coming in, so it doesn't seem ready to me. Making a release means committing to all of the APIs in master.
Sylvain Corlay
@SylvainCorlay
Oct 08 2015 18:04
We could wait a bit to deprecate _*_default. Besides, I am still unsure about defaulting to _trait_change instead of All for event types.
I can also start working on replacing some ipython_genutils calls, but it would probably be safer after the release.
Would it make sense to make a beta for this type of package now?
Sylvain Corlay
@SylvainCorlay
Oct 08 2015 18:22
And there are you three PRs.
btw, I made a comment on the change in the deprecation of MetaHasTraits
Robert T. McGibbon
@rmcgibbo
Oct 08 2015 18:52
Does anyone happen to know of any example projects that demonstrate hoe tp
Ehh. Let me try that again
Does anyone happen to know of any example projects that demonstrate how to package up a js-based notebook extension in a way that's pip-installable, and doesnt require any further activiation on the part of the user after installation?
I was just dusting off my emacs-style keybindings for the notebook, whicb previously were just 'packaged' as a custom.js file, but it would be nice to do it properly.
Nathan Goldbaum
@ngoldbaum
Oct 08 2015 19:00
@rmcgibbo maybe this is what you're looking for: https://github.com/jdfreder/jupyter-pip
Robert T. McGibbon
@rmcgibbo
Oct 08 2015 19:02
Oh great. That looks very useful.
Thanks!
Robert T. McGibbon
@rmcgibbo
Oct 08 2015 21:28
I think i've gotten it working. Try pip install jupyter-emacskeys (https://github.com/rmcgibbo/jupyter-emacskeys) for emacs style keybindings for the notebook, if anyone's interested.
john
@jcoady
Oct 08 2015 22:28
I created a custom jupyter kernel file to launch an ipython notebook with a custom profile with the following kernel.json file
{
"language": "python",
"argv": [
"python",
"-m",
"ipykernel",
"--profile=vpython",
"-f",
"{connection_file}"
],
"display_name": "VPython"
}
I would like for the profile file to be included in a python package distribution. Is it possible to have have a python package install the profile in an %APPDATA% path directory and have the kernel.json file get the ipython custom profile from the %APPDATA% directory.
Robert T. McGibbon
@rmcgibbo
Oct 08 2015 23:11
Essentially, in your setup.py, you want to run install_kernel_spec from jupyter_client.kernelspec, right?
It should essentially be very similar to https://github.com/jdfreder/jupyter-pip/tree/master/jupyterpip, except that instead of calling intall_nbextension, you want to call install_kernel_spec.
john
@jcoady
Oct 08 2015 23:26
OK thanks I will have a look at the install_kernel_spec to see if I can make sense of it.