IPython laptop does not start after installing IPython dev version

I tried installing the dev version of IPython today, but when I launched "ipython notebook --pylab = inline", I open an empty notebook (without a control panel, only a blank page), and on the command line:

WARNING:tornado.access:404 GET /static/components/jquery-ui/themes/smoothness/jquery-ui.min.css (127.0.0.1) 0 2013-08-05 16:49:57.365 [tornado.access] WARNING | 404 GET /static/components/jquery/jquery.min.js (127.0.0.1 WARNING:tornado.access:404 GET /static/components/jquery/jquery.min.js (127.0.0.1) 0.00ms 2013-08-05 16:49:57.367 [tornado.access] WARNING | 404 GET /static/components/requirejs/require.js (127.0.0.1 WARNING:tornado.access:404 GET /static/components/requirejs/require.js (127.0.0.1) 0.00ms 2013-08-05 16:49:57.371 [tornado.access] WARNING | 404 GET /static/components/bootstrap/bootstrap/js/bootstra WARNING:tornado.access:404 GET /static/components/bootstrap/bootstrap/js/bootstrap.min.js (127.0.0.1) 1.00ms 2013-08-05 16:49:57.372 [tornado.access] WARNING | 404 GET /static/components/jquery-ui/ui/minified/jquery-ui WARNING:tornado.access:404 GET /static/components/jquery-ui/ui/minified/jquery-ui.min.js (127.0.0.1) 1.00ms 

Perhaps this is due to the installation I did, which was based on the manual on the ipython website, but still did not go smoothly. this is what i did:

  • python installed.
  • Installed disutils
  • Installed Protocol
  • git installed (from installer)
  • cloned ipython code using git
  • ipython is installed.

I thought that was enough. but when I tried to start the laptop, it failed, telling me that pyzmq was not found. so I installed pyzmq. the next launch also failed, this time due to jinja2. so I installed it too. the next one I installed a tornado .. and so on until I get a laptop. but when this happened, the above mentioned will happen.

I can’t understand what went wrong. any help?

+4
source share
2 answers

Dependencies can be set this way

 pip install pyzmq jinja2 tornado 

However, an easier way to install is

 pip install .[notebook] # These brackets are literally there, not optional 

As for the weirdness with static files, I ran into this problem when coding with the main branch, as there are git submodules. The current version of pip should be able to enable these submodules. If your not, in ipython directory (after cloning it) run

 git submodule init git submodule update 

Now install IPython + IPython notebook

 pip install .[notebook] 

However, you can simply install the IPython 1.0 release candidate directly :

 pip install http://archive.ipython.org/testing/1.0.0/ipython-1.0.0-rc1.tar.gz#egg=ipython-1.0.0-rc1 
+4
source

I write the answer only for updating and be able to write code (is there a better way to do this?) I did the "init, update" steps that you suggested and received the following:

 C:\Program Files\Git\bin\ipython>pip install . Unpacking c:\program files\git\bin\ipython Running setup.py egg_info for package from file:///c%7C%5Cprogram%20files%5Cgit%5Cbin%5Cipython no previously-included directories found matching 'IPython\deathrow' no previously-included directories found matching 'IPython\html\static\mathjax' warning: no files found matching 'IPython\.git_commit_info.ini' warning: no previously-included files found matching 'docs\#*' warning: no previously-included files found matching 'docs\man\*.1.gz' no previously-included directories found matching 'docs\build' no previously-included directories found matching 'docs\gh-pages' no previously-included directories found matching 'docs\dist' warning: no previously-included files matching '*~' found anywhere in distribution warning: no previously-included files matching '*.flc' found anywhere in distribution warning: no previously-included files matching '*.pyo' found anywhere in distribution warning: no previously-included files matching '.dircopy.log' found anywhere in distribution Cleaning up... 

So it will fail .. try to install the rc version now.

+1
source

Source: https://habr.com/ru/post/1495324/


All Articles