These are chat archives for ipython/ipython

23rd
Jul 2015
Justace Clutter
@justacec
Jul 23 2015 00:52
I was just trying to update my IPython setup on my Windows machine. I grabbed the IPython latest from Github and installed that (verified that it was working ok) and then grabbed the latest Jupyter/notebook. I ran the pip install commend reccomended on the Github page and then when I executed "python setup.py install" it got very agravated and said that I was missing the file "notebook/static/auth/js/main.min.js". I do have node.js installed and verified that "npm" works from the command line. Any ideas on how to fix this? I did not encounter this on my Mac
Or should I ask this in a different forum?
Min RK
@minrk
Jul 23 2015 04:16
We're still ironing out the kinks for installation from source on the new repos. Can you recall the exact commands you executed and in what order?
Justace Clutter
@justacec
Jul 23 2015 12:44
Pretty much. I removed all of my previous GIT clones and then cloned the repos for ipython (https://github.com/ipython/ipython) and notebook (https://github.com/jupyter/notebook). I then went in the ipython directory and executed:
pip install -r requirements.txt -e .
ugg (hit enter too quick)

I then executed

python setup.py install

to install ipython. (Not sure if the last command was really necessary. I was able to start ipython and verified that the reported version was the 4.0.0 variant. I then went to the notebook directoriy and executed the following command:

pip install -r requirements.txt -e .

That seemed to execute correctly. However, when I attempted to execute the following:

python setup.py install

That is when I received the following errors:

running install
running build
running build_py
running jsversion
running css
running jsdeps
installing build dependencies with npm
npm install
rebuilding js and css failed (not a problem)
[WinError 2] The system cannot find the file specified
checking package data
Traceback (most recent call last):
File "setup.py", line 190, in <module>
main()
File "setup.py", line 187, in main
setup(**setup_args)
File "C:\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Anaconda3\lib\distutils\command\install.py", line 554, in run
self.run_command('build')
File "C:\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Anaconda3\lib\distutils\command\build.py", line 126, in run
self.run_command(cmd_name)
File "C:\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\jclutter\Source\Python\IPython\note

Ahh, I see what happened here with my post. (I am new to the gitter.im system)
I am also sorry if this was considered spam. Let me put that in a pastebin
Justace Clutter
@justacec
Jul 23 2015 12:56

Ok, I apparently can't access any pastebin type service. I am not sure what is going on there.

Here is a very abbreviated version of the error tail:

AssertionError: Missing package data: notebook\static\auth\js\main.min.js

The aforementioned file is not in the directory, nor is it in the Github repo. Is this something that note.js should have generated automatically?

Justace Clutter
@justacec
Jul 23 2015 13:21
Ok. I think it is that my node.js install is incorrect. So, not a Jupyter problem. (sorry for bugging you guys)
Petra Chong
@rekcahpassyla
Jul 23 2015 14:41
Hi there. According to https://ipython.org/ipython-doc/3/parallel/parallel_db.html , I should be able to get the python input source of a task, but I cannot seem to do this:
client.db_query({'msg_id':'8df60ab2-5fd6-425a-b440-d02a584cc4c8'}, keys=['pyout'])
Traceback (most recent call last):
File "C:\Python\envs \1.7.3\lib\site-packages\IPython\parallel\controller\hub.py", line 1409, in db_query
records = self.db.find_records(query, keys)
File "C:\Python\envs \1.7.3\lib\site-packages\IPython\parallel\controller\dictdb.py", line 269, in find_records
return [ self._extract_subdict(rec, keys) for rec in matches ]
File "C:\Python\envs\ 1.7.3\lib\site-packages\IPython\parallel\controller\dictdb.py", line 157, in _extract_subdict
d[key] = rec[key]
KeyError: u'pyout'
I can get plenty of other stuff -
c.client.db_query({'msg_id':'8df60ab2-5fd6-425a-b440-d02a584cc4c8'})
Out[9]:
[{u'client_uuid': u'ac07314f-362f-4327-9367-defc4df9d1a1',
u'completed': datetime.datetime(2015, 7, 23, 15, 29, 38, 489000),
u'content': {},
u'engine_uuid': u'0e12a662-3b3f-452a-bbe0-2d0c3bdf3366',
u'error': None,
u'execute_input': None,
....
am I doing something wrong?
(I tried to edit the above to quote the code bits in Markdown, but it seems to remove all newlines)
Petra Chong
@rekcahpassyla
Jul 23 2015 15:53
Sorted myself out - looked at https://github.com/ipython/ipython/blob/3.x/IPython/parallel/controller/dictdb.py to find the right values
Jason Grout
@jasongrout
Jul 23 2015 16:18
@ellisonbg, @minrk - what do you guys think of replacing the traitlet .info_text member with the help information specified when instantiating a traitlet instance?
Min RK
@minrk
Jul 23 2015 16:19
possibly.
Jason Grout
@jasongrout
Jul 23 2015 16:19
right now, it looks like the .info_text is class-level type help
we can make the case that that is the default help string
and more specific help for a traitlet overrides that.
Min RK
@minrk
Jul 23 2015 16:20
I think that makes a certain amount of sense.
Jason Grout
@jasongrout
Jul 23 2015 16:20
"a certain amount of sense". love that phrase :)
Min RK
@minrk
Jul 23 2015 16:25
info_text is mainly for use in error messages, so we should be sure that having a large help string doesn't cause a problem there.
Jason Grout
@jasongrout
Jul 23 2015 16:25
right, good point
and info_text is a short text description of the validation expectations
so really it is a different thing than the help for a trait
What do you think of having a new member named .help? I'm trying to decide if it is too common of a name or not.
tannerp12
@tannerp12
Jul 23 2015 16:29
Hi guys, I am about halfway through Code Academy's Python lessons, a major question that I've been asking myself is, "what am I going to do with this?" for starters, I don't even know how to start typing it from scratch out of the tutorial. Do you guys / or girls have any info on how Python has been implemented in your code?
Jason Grout
@jasongrout
Jul 23 2015 16:30
@tannerp12 - most all of the code in this project is written in python. You can browse it at github: https://github.com/ipython/ipython (any file ending in .py is a python file)
maybe I'm not understanding your question. are you asking how to run your own python code somehow?
tannerp12
@tannerp12
Jul 23 2015 16:35
Yes that helps greatly. my problem is that I really dont know what I want to do with it.
@jasongrout
Jason Grout
@jasongrout
Jul 23 2015 16:37
here are trending repos in python on github: https://github.com/trending?l=python
some applications of python: https://www.python.org/about/apps/
yeah, answering "what do I want to do with this?" is a great question to answer
sky's the limit...
(well, not really - python is used a ton in processing astronomy images...)
tannerp12
@tannerp12
Jul 23 2015 16:44
So im looking at these "repositories", sorry for laymans question but it is like a file dump of everything python? What I gather from this is that I can import libraries that these people create and run the background code they have created?
Jessica B. Hamrick
@jhamrick
Jul 23 2015 16:47
The repositories are places for developers to keep track of the code that they’re writing
It uses a system called “git”; here’s a short explanation and tutorial on git if you’re interested: https://try.github.io/levels/1/challenges/1
Jason Grout
@jasongrout
Jul 23 2015 16:49
What you probably want to do is to install Anaconda: https://store.continuum.io/cshop/anaconda/ (click the download link in the upper right)
Then you'll have lots and lots of packages installed automatically
and an editor or two to edit python code