These are chat archives for ipython/ipython

21st
Sep 2015
cel4
@cel4
Sep 21 2015 08:59
When I write a interactive function with the @interact decorator, it seems that after changing the function, re-evaluations of that particular cell will bring the interact widgets into a weird state. Instead of calling only the latest version, all previous versions of the functions appear to be called when moving my slider. Any ideas?
Min RK
@minrk
Sep 21 2015 09:05
Can you provide an example?
cel4
@cel4
Sep 21 2015 09:16
yes, I will try to do tonight.
the problem is, that I accidentally reused a slider. Still this is weird.
Scott Provost
@scottprovost
Sep 21 2015 12:09
Where is the instruction for installing a Cluster?
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 211, in main
status = self.run(options, args)
Min RK
@minrk
Sep 21 2015 12:15
@scottprovost the readme
IPython doesn't support Python 2.6
Scott Provost
@scottprovost
Sep 21 2015 12:16
oic Thanks. No Centos support then.
Min RK
@minrk
Sep 21 2015 12:17
If you want to use IPython with 2.6, you must install an old version: pip install 'ipython<2'
It's been a few years since even Python supported 2.6. The general recommendation on CentOS is to not use the system-provided 2.6, instead get 3.5 (or 2.7 for Legacy Python) from other sources, e.g. rpms or anaconda.
Scott Provost
@scottprovost
Sep 21 2015 12:18
We are not allowed to use any software that does not support standard distros. Probably hacked or substandard.
Min RK
@minrk
Sep 21 2015 12:19
Are official RedHat Software Collections not official enough?
Scott Provost
@scottprovost
Sep 21 2015 12:20
Python is integral to the OS
Min RK
@minrk
Sep 21 2015 12:21
It is indeed.
Python 2.6 has been EOL for a couple of years, now.
And rhscl allows you to have multiple Python versions on the system at once (as do conda, pythonbrew, virtualenv, etc.)
But if you are stuck with very old Python for institutional reasons, then you are also stuck with very old Python packages.
Scott Provost
@scottprovost
Sep 21 2015 12:24
No such things are mentioned in any install instructions.
Following the given instructions does not resuly in a working system on any common distro.
Unfit for public distobution or NSF use.
Min RK
@minrk
Sep 21 2015 12:26
I guess none of debian, ubuntu, fedora, gentoo, arch, suse, solaris, freebsd, etc. are common distros, then.
Scott Provost
@scottprovost
Sep 21 2015 12:26
We will be testing them all. So far, no joy.
Min RK
@minrk
Sep 21 2015 12:27
All of the above are known to work.
Scott Provost
@scottprovost
Sep 21 2015 12:28
REHEL and Centos both failed in more than one version. Thats 60% or the server OS's on the Web and almost 80% of the NSF Server farm.
Min RK
@minrk
Sep 21 2015 12:28
I'm running notebook servers on multiple CentOS 6 systems right now.
Scott Provost
@scottprovost
Sep 21 2015 12:29
But the standard CentOS python does not work and fails with no informative error and not prerequisit designation.
Min RK
@minrk
Sep 21 2015 12:31
I'm curious. Why is it prohibited to install another Python, but allowed to install the latest IPython with pip?
Scott Provost
@scottprovost
Sep 21 2015 12:32
To test uses the published install instructions. That why we ask for the official page to make sure we are using the correct instructions.
If the developers of the software can not write an install instruction page that works.
They are not qualified to maintain software used by government institutions.
Steven Silvester
@blink1073
Sep 21 2015 12:34
@scottprovost, I direct you to this post by one of the Python core developers: http://www.curiousefficiency.org/posts/2015/04/stop-supporting-python26.html
Scott Provost
@scottprovost
Sep 21 2015 12:35
Al lI do is the test. So far no joy.
Min RK
@minrk
Sep 21 2015 12:35
@scottprovost you are right that we should make it clearer that Python 2.6 is not supported.
Scott Provost
@scottprovost
Sep 21 2015 12:37
If there is an OS version you think will certainly work without diverging from the published install instructions. I will spin up a VM for it and give it a test.
Bastian Hoyer
@bastianh
Sep 21 2015 12:37
which documentation are you using?
first line of the page I found says: IPython requires Python 2.7 or ≥ 3.3.
installing a newer python version for your system is out of scope for the ipython documentation
it also contains a link to ipython 1.0 in line 2
Scott Provost
@scottprovost
Sep 21 2015 12:39
Bastian Hoyer
@bastianh
Sep 21 2015 12:41
ah.. I had still bookmarked the ipyhton documentation: https://ipython.org/ipython-doc/dev/install/install.html
Min RK
@minrk
Sep 21 2015 12:41
The Jupyter install docs are brand new, and there's definitely some info missing.
Scott Provost
@scottprovost
Sep 21 2015 12:42
My hands are tied. But with less energy than required to argue with me, some one could create functional install docs.
Min RK
@minrk
Sep 21 2015 12:43
There are some holes, and we are working on them. The install docs do work for the vast majority of user systems that have been encountered.
Damian Avila
@damianavila
Sep 21 2015 12:50

Where's the old example notebook?

Also here's my attempt at a 'bare' slides template: >http://antonakhmerov.org/misc/slides_reveal_bare.tpl

Great, I will take a look during the week...

Jason Grout
@jasongrout
Sep 21 2015 13:18
@minrk - what repo are the jupyter install docs in?
Scott Provost
@scottprovost
Sep 21 2015 13:19
2.6.32-573.3.1.el6.centos.plus.x86_64 #1 SMP Fri Aug 14 01:00:05 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Fail
3.10.0-229.11.1.el7.x86_64 #1 SMP Thu Aug 6 01:06:18 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Fail.
Jason Grout
@jasongrout
Sep 21 2015 13:20
@scottprovost - let's help you get up to speed, and then could you please submit a pull request to the docs at https://github.com/jupyter/jupyter/blob/master/docs/source/install.rst with corrections you see fit?
This is an open-source project - everyone helps
:)
To begin with, as you notice, there should be a line at the top saying that Jupyter only supports Python 2.7 or >= 3.3 (@minrk - is it still 3.3?)
Min RK
@minrk
Sep 21 2015 13:21
jupyter/jupyter#44 restores the note about 2.6/3.2
Jason Grout
@jasongrout
Sep 21 2015 13:22
Great; can I merge?
dumb question; I can.
Min RK
@minrk
Sep 21 2015 13:22
:+1:
Jason Grout
@jasongrout
Sep 21 2015 13:23
I should probably build the docs before merging. Don't think I've done that before
Scott Provost
@scottprovost
Sep 21 2015 13:23
Command "/usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-ZQL7me/pyzmq/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-rXxEI5-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ZQL7me/pyzmq
Min RK
@minrk
Sep 21 2015 13:26
You need the ability to build Python packages with extensions.
Scott Provost
@scottprovost
Sep 21 2015 13:26
Package python-setuptools-0.9.8-3.el7.noarch already installed and latest version
Seven OS Versions. No joy.
Min RK
@minrk
Sep 21 2015 13:27
That typically means a compiler and Python headers. These are provided by build-essential and python-dev on Debian/Ubuntu.
If setting up a Python environment is unfamiliar, I would recommend using Anaconda.
Jason Grout
@jasongrout
Sep 21 2015 13:30
IIRC, you can install just IPython without needing to build extensions, right? But to install the full jupyter project, you do.
Min RK
@minrk
Sep 21 2015 13:30
Yes, I doubt any of IPython's dependencies have extensions.
Scott Provost
@scottprovost
Sep 21 2015 13:32
'Development Tools' are installed an all test images. Not mentioned in any requirements.
Min RK
@minrk
Sep 21 2015 13:35
It's likely the absence of Python headers.
Scott Provost
@scottprovost
Sep 21 2015 13:38
Installed:
python-devel.x86_64 0:2.7.5-18.el7_1.1
Successfully installed functools32-3.2.3-2 ipykernel-4.0.3 ipython-4.0.0 ipywidgets-4.0.2 jinja2-2.8 jsonschema-2.5.1 jupyter-1.0.0 jupyter-client-4.0.0 jupyter-console-4.0.2 mistune-0.7.1 nbconvert-4.0.0 nbformat-4.0.0 notebook-4.0.4 path.py-8.1.1 pexpect-3.3 pickleshare-0.5 ptyprocess-0.5 pygments-2.0.2 pyzmq-14.7.0 qtconsole-4.0.1 simplegeneric-0.8.1 terminado-0.5
mcburton
@mcburton
Sep 21 2015 13:49
Hey, I don't know if this is the right forum for this question, but I'm having some problems with the GithubOAuthenticator on JupyterHub. I must have something configured wonky because instead of getting redirected to Github when I visit /hub/oauth_login I'm getting directed to my application (and a 404 obviously). If I manually direct myself to https://github.com/login/oauth/authorize with the correct parameters everything works. What am I missing?
Scott Provost
@scottprovost
Sep 21 2015 13:55
Are we certain this is the instructions for installing an IPython Cluster?
Where is the instruction for installing a Cluster?
Min RK
@minrk
Sep 21 2015 13:57
@scottprovost sorry, got lost due to following the jupyter installation instructions that were linked. IPython parallel is the package ipyparallel. If you run pip install ipyparallel now, you will have it.
Scott Provost
@scottprovost
Sep 21 2015 13:57
Will do.
Min RK
@minrk
Sep 21 2015 14:01
@scottprovost what's the name of the RH dev tools package?
I'll make sure that we mention the build-essential,python-dev dependendencies for Linux distros are noted when installing with pip.
mcburton
@mcburton
Sep 21 2015 14:09
ah, I think the problem is my proxy, not GithubOAuthenticator config. Thanks guys! :smile:
Scott Provost
@scottprovost
Sep 21 2015 14:36
yum install python-devel
Carlos Cordoba
@ccordoba12
Sep 21 2015 23:14
@minrk, could you tell me of which IPython/Jupyter package appnope is a dependency of?
Right now we're not packaging appnope in conda, and that's breaking the Matplotlib Qt backend in Mac.
Matthias Bussonnier
@Carreau
Sep 21 2015 23:23
@ccordoba12 at least ipython itself and ipykernel use it otherwise in some case OSX will put them to sleep.
Carlos Cordoba
@ccordoba12
Sep 21 2015 23:33
Thanks @Carreau!
I could find appnope as an ipykernel dependency in its setup.py
Sorry, s/could/couldn't/g
But I just saw it as an IPython dep. Thanks for your help :-)