These are chat archives for ipython/ipython

13th
May 2016
Tyler Reddy
@tylerjereddy
May 13 2016 08:51
@jasongrout Even with the nbextension enable command and ipywidgets 5.1.3, the Widget Javascript is not detected.
Tyler Reddy
@tylerjereddy
May 13 2016 09:39
Same issue if I remove the --sys-prefix parameter and / or use pip to install ipywidgets.
Sylvain Corlay
@SylvainCorlay
May 13 2016 13:05
Tyler can you give the result of
jupyter nbextension list?
Correction:
jupyter nbextensions list
Tyler Reddy
@tylerjereddy
May 13 2016 13:29
@SylvainCorlay Only the singular version of that command worked (!jupyter nbextension list):
Known nbextensions:
config dir: /home/jovyan/.jupyter/nbconfig
notebook section
jupyter-js-widgets/extension enabled
- Validating: problems found:
  - require?  X jupyter-js-widgets/extension```
Sylvain Corlay
@SylvainCorlay
May 13 2016 13:42
Yeah this command is a shell command.
So it seems that the extension is enabled but not correctly installed. Can you confirm the version of ipywidgets and widgetsnbextension from the notebook?
pip install ipywidgets should have done the job correctly for both...
Tyler Reddy
@tylerjereddy
May 13 2016 13:45
5.1.3 from:
import ipywidgets
ipywidgets.version
Sylvain Corlay
@SylvainCorlay
May 13 2016 13:46
And for widgetsnbextension?
Tyler Reddy
@tylerjereddy
May 13 2016 13:46
'1.2.2'
Sylvain Corlay
@SylvainCorlay
May 13 2016 13:48
Ok. That is weird. Everything should work. Was there any issue when installing it from pip? You should be able to pip uninstall and them pip install widgetsnbextension.
Which os, python distribution is this?
Btw i am interested in the files that are removed when you do pip uninstall widgetsnbextension.
It should be listed in your shell.
Tyler Reddy
@tylerjereddy
May 13 2016 13:50
The strange things about the setup are basically that it is in a docker container and the Jupyter notebook opens in read-only mode. The Dockerfile is in the root of the repo (https://github.com/tylerjereddy/pycon-2016) if you're a Docker person. I will try to perform the command you ask for.
For the uninstall command: "Cannot uninstall requirement widgetsnbextension, not installed
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command."
Sylvain Corlay
@SylvainCorlay
May 13 2016 13:53
Ah it must be a docker thing. So the wholr conda distrib is in the docker.
?
Tyler Reddy
@tylerjereddy
May 13 2016 13:54
Yeah, I've tried various permutations of conda / pip / and the jupyter enable command with little success inside the docker container. Works perfectly outside the container.
Sylvain Corlay
@SylvainCorlay
May 13 2016 13:54
Ok. In docker. Please try
jupyter nbextension install --py widgetsnbextension
(Install, not enable)
Tyler Reddy
@tylerjereddy
May 13 2016 13:56
In the current container it returns a traceback ending with: ImportError: No module named 'widgetsnbextension'
Sylvain Corlay
@SylvainCorlay
May 13 2016 13:57
Wiat I get it. You told me it was installed earlier.
S/get it/don't get it
Tyler my plane is about
Tyler Reddy
@tylerjereddy
May 13 2016 14:00
Yeah, I can still import it, but that is the traceback I get.
Sylvain Corlay
@SylvainCorlay
May 13 2016 14:01
I wonder if it is the same python install.
Tyler Reddy
@tylerjereddy
May 13 2016 14:01
Yeah, I'm concerned about python 3.5 vs. python 2
Sylvain Corlay
@SylvainCorlay
May 13 2016 14:01
You should check out "which python" "which jupyter"
Tyler Reddy
@tylerjereddy
May 13 2016 14:01
3.5 is used in the traceback
and I'm using 2
Sylvain Corlay
@SylvainCorlay
May 13 2016 14:02
Ok that is it.
My plane is taking off. Got to leave you. Cheers.
Tyler Reddy
@tylerjereddy
May 13 2016 14:03
Thanks.
epifanio
@epifanio
May 13 2016 18:29
hi, do you know It is possible to display horizontal line as output of a python cell ? .. i need to render an horizontal line as return, like we do in a markdown cell with the syntax : “---"
i was trying with latex output \hline or \midrule but is not understood
hoops .. it was under my eyes: Markdown("---")
Aaron Watters
@AaronWatters
May 13 2016 18:43
from IPython import display; display.display(display.HTML(""" <hr style="border-color:black"> """))
epifanio
@epifanio
May 13 2016 18:55
I’m using a file.ipy with some ipython specific functions
it works pretty well, one things i’m having trouble is the sequence of plot
if i have some matplotlib ficure to display , it is shown at end of the run
i use %run file.ipy