These are chat archives for ipython/ipython

1st
Mar 2015
Kyle Kelley
@rgbkrk
Mar 01 2015 01:44
What's the best way to encapsulate a choice using Traitlets?
I want one of two values right now
1 and 8
Nothing else
This is for a widget, if that changes things
Oh there's an Enum!
Matthias Bussonnier
@Carreau
Mar 01 2015 01:57
OK, I can see the files of my githubs repository in the dashboard now.
Starting to be hungry. People have plan for tonight ?
Matthias Bussonnier
@Carreau
Mar 01 2015 02:55
@jhamrick restarting the tests.
Jessica B. Hamrick
@jhamrick
Mar 01 2015 02:55
Ok, thanks
Matthias Bussonnier
@Carreau
Mar 01 2015 02:56
In progress already.
Jessica B. Hamrick
@jhamrick
Mar 01 2015 02:56
Also, I missed your earlier message, but if you are still wanting to get dinner I’d join
Matthias Bussonnier
@Carreau
Mar 01 2015 02:57
Do you have a preference ?
I'm try to watch house of card for now, but internet is slooooowwww
Kyle Kelley
@rgbkrk
Mar 01 2015 03:12
Screenshot 2015-02-28 21.13.16.png
@jdfreder Is there a nice way to expose controls on a property of a widget?
Currently I do all the linking manually but would love to be able to have a dropdown widget for enums pretty easily (or radio buttons)
john
@jcoady
Mar 01 2015 16:44
I just installed IPython 3.0 and tried my IVisual python module on it and got the following error.
 34 package_dir = os.path.dirname(__file__)

---> 35 IPython.html.nbextensions.install_nbextension(files=[package_dir+"/data/jquery-ui.custom.min.js",package_dir+"/data/glow.1.1.min.js",package_dir+"/data/glowcomm.js"],overwrite=True,verbose=0)
36
37 object_registry = {} # GUID -> Instance

TypeError: install_nbextension() got an unexpected keyword argument 'files'

How do I fix this?
john
@jcoady
Mar 01 2015 18:21
What changes do I have to make to minrk's RPC notebook in order to get it to work on IPython 3.0
It generates the following error

<ipython-input-4-97b7bc7748bd> in <module>()
26 self.comm.send(dict(result=result, method=data['method']))
27
---> 28 get_ipython().comm_manager.register_target('rpc', RPC)

AttributeError: 'ZMQInteractiveShell' object has no attribute 'comm_manager'

Min RK
@minrk
Mar 01 2015 18:53
I think the comm_manager moved to the Kernel, so get_ipython().kernel.comm_manager should be one step
Michael Dweck
@mykeylynx
Mar 01 2015 20:53
I need help setting up python on my mac 10.8 no pip? and when i type python I get 2.9.5 after downloading home brew
help please?
Michael Dweck
@mykeylynx
Mar 01 2015 21:02
anyone home?
Kyle Kelley
@rgbkrk
Mar 01 2015 21:18
Hey @mykeylynx - depending on your use, I recommend installing the Anaconda python distribution
Otherwise, my pathway on a fairly fresh mac if using homebrew is:
brew install python
pip install ipython[all]
There's probably a step in there needing updates to path (brew will tell you)
Michael Dweck
@mykeylynx
Mar 01 2015 21:39

through homebrew I installed 2.7.9 but I cant figure out how to access it

when I run brew doctor I get this: Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
tower:~ contra06b$ pip install boto
Collecting boto
Downloading boto-2.36.0-py2.py3-none-any.whl (1.3MB)
100% |################################| 1.3MB 213kB/s
Installing collected packages: boto

Successfully installed boto-2.36.0

but I dont know what to do with it, how to access it

ok Ithink I just figured it out I pasted echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile into the terminal and it created .profile in the home dir. but now what?
thank You!
im trying to get to 2.7.9 I get this?
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
when I type python on the cvommand line
Kyle Kelley
@rgbkrk
Mar 01 2015 21:42
Looks like the system python is now the default
type which python
also echo $PATH
Michael Dweck
@mykeylynx
Mar 01 2015 21:43
output from which /usr/bin/python
echo /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Kyle Kelley
@rgbkrk
Mar 01 2015 21:44
Can you go ahead and open a new terminal?
Michael Dweck
@mykeylynx
Mar 01 2015 21:44
ok
Kyle Kelley
@rgbkrk
Mar 01 2015 21:44
Run the same echo and which again
Michael Dweck
@mykeylynx
Mar 01 2015 21:45
tower:~ contra06b$ echo python
python
tower:~ contra06b$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
tower:~ contra06b$
tower:~ contra06b$ which python
/usr/local/bin/python
tower:~ contra06b$
Kyle Kelley
@rgbkrk
Mar 01 2015 21:46
Now try using python
Michael Dweck
@mykeylynx
Mar 01 2015 21:46
wow way cool!!!
Kyle Kelley
@rgbkrk
Mar 01 2015 21:46
Yeah, when the profile was created with the echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile line
Michael Dweck
@mykeylynx
Mar 01 2015 21:46
what is $PATH
THANK YOU THAT WORKED
Kyle Kelley
@rgbkrk
Mar 01 2015 21:47
It needed to pick up the new path for your shell
Michael Dweck
@mykeylynx
Mar 01 2015 21:47
now i can try and use pip to install boto
Kyle Kelley
@rgbkrk
Mar 01 2015 21:47
$PATH is the list of directories to search in first for binaries
Michael Dweck
@mykeylynx
Mar 01 2015 21:48
so now how do I get boto and pip happening
Kyle Kelley
@rgbkrk
Mar 01 2015 21:48
If it sees system python first (/usr/bin/python) before it sees the homebrew installed python (/usr/local/bin/python), it will use it
pip install boto I presume
It should be using the right pip now too
Michael Dweck
@mykeylynx
Mar 01 2015 21:49
pip install boto
File "<stdin>", line 1
pip install boto
^
SyntaxError: invalid sy
why me l;ol
Kyle Kelley
@rgbkrk
Mar 01 2015 21:49
If you need help beyond that, this isn't the best channel as this is the chatroom for the ipython project
mseri
@mseri
Mar 01 2015 21:49
what happens if you just type pip
?
Michael Dweck
@mykeylynx
Mar 01 2015 21:49
pip
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'pip' is not defined
Kyle Kelley
@rgbkrk
Mar 01 2015 21:50
Run pip from your normal terminal, not from python
$ pip install boto
Michael Dweck
@mykeylynx
Mar 01 2015 21:50
Requirement already satisfied (use --upgrade to upgrade): boto in /usr/local/lib/python2.7/site-packages
so its already installed when I type pip —upgrade boto
pip <command> [options]
how do we access boto
Kyle Kelley
@rgbkrk
Mar 01 2015 21:54
I'm going to defer to boto's own help channels for that: http://webchat.freenode.net/?channels=boto
Good luck
I pulled that from their repo: https://github.com/boto/boto
Michael Dweck
@mykeylynx
Mar 01 2015 21:55
Thank you sooo much : ) !!!
Kyle Kelley
@rgbkrk
Mar 01 2015 21:55
Which has links to docs
Michael Dweck
@mykeylynx
Mar 01 2015 21:55
i will take a look
Michael Dweck
@mykeylynx
Mar 01 2015 22:19
So it looks like to start using boto from the python shell >>>import boto