The ipython server on my computer was working fine but
it lately it takes a long time (> 15 mins) to load the home page (localhost:port/tree) and is not formatted properly. Wget returns the homepage immediately but has formatting issues too.
Could it be a css issue?
Things I have tried, though without success:
1. Modifying the html (commenting out some of the css includes) which
are present in the packages directory.
2. Reinstalling the ipython and jupyter packages.
I am using Enthought Canopy for my python packages.
The ipython version is 4.1.2 and jupyter 4.1.0. I used
pip to install the packages.
Thanks
N.B: Sorry, I don't have the reputation to post the screenshot
of the incorrectly formatted homepage.
Related
Does anyone know how to add Python logo to the top right corner of python notebooks in Jupyter ?
I see Ruby notebooks are added w/ Ruby logo automatically.
Can this be done in Python notebooks ?
Zarak, This is what I see
$ jupyter kernelspec list
Available kernels:
python2 d:\Continuum\Anaconda2\lib\site-packages\ipykernel\resources
ruby d:\eclipse\.ipython\kernels\ruby
$ pwd
/d/Continuum/Anaconda2/lib/site-packages/ipykernel/resources
$ ls
logo-32x32.png logo-64x64.png
This is NOT a solution, but an amelioration of the problem...
I had (still do) similar issue on my OS X 10.7. In my case, jupyter's python kernel, while not able to find logo-64x64.png file, would auto-redirect me to 404 page as soon as Notebook loads - so I was not able to use Notebooks at all.
If anyone else is having similar issue, I suggest to try any of the following steps (until you can use Notebook again). I still see 404 GET /kernelspecs/Python%20[Root]/logo-64x64.png message in Terminal - however, now I do not get redirected to 404 page automatically upon loading the Notebook.
initially I was using Firefox as default browser, however I switched to Chrome.
initially I only had kernel for python2.7 installed. Now I added kernel for python3.
I generally call jupyter with --notebook-dir argument. I copied into the folder I specify in that argument - the files from location, which I get by running jupyter kernelspec list (2 logo files and 1 json file)
In the end, I still have the same issue - and I am anxiously waiting for somebody else to respond with a solution. However, hope this helps some people in the meantime.
Screen shot here.
With Cntrl-Shift-I
No matter how I install Jupyter(aka IPython) I get a dud webpage. It does not display tabs or menus as expected.
The screen shot above is from a 64bit Windows Anaconda install. It was a default install. Install finished. No changes to configuration. First action after install was select IPython menu item in start menu.
Now, trust me, I have tried everything. I have tried installing IPython from pip over top my python2.7 installation, anaconda etc. No matter how I install it ends up with the same problem. I even tried 32bit installs etc.
It doesn't appear to be the browser as both IE and Chrome see the same mangled display.
It is almost like the css files are not being picked up or are not there at all.
I opted to allow the installation of the Anaconda to update my environment variables etc. so the dang blasted thing should be finding where it has put itself.
What is the likely cause? What is the fix please?
I did have a very similar issue on Windows recently. Some program has overwritten your mime type associations. For me it was Inkscape killing SVG by setting the mime type to application/svg.
Try this on terminal:
import mimetypes
mimetypes.guess('file.css')
You should get text/css. If you get application/css this is most likely your problem. My solution: Change back the mime type association. Start regedit and search for application/css in HKEY_CLASSES_ROOT. Replace it with text/css.
Please refer to this https://github.com/ipython/ipython/issues/7024 for further reference.
I followed these instructions:
http://ipython.org/install.html
Used last way to install (downloading source and "python setup.py install").
After that, console ipython worked fine, but trying to run notebook gave me error.
I always searched errors in Google and it always was a missing package.
Notebook probably depends on external packages.
After manually installing 2 packages it still gave me error.
Gave up and uninstalled everything (including Python itself).
Is there any way to manually download and install the notebook?
Do you know of any finite number of files/packages I have to download and install so the notebook will run just fine?
Thank you.
As you are using Windows, I suggest you to install Winpython.
It includes all the libraries and tools (e.g. IPython) you will need in the same executable. So you only need to download the desired version and then you can pass that version using a USB stick to the computer without internet.
I have just installed IPython 2.0 (April 2014) through Anaconda (64 bit) on a brand new pc with windows 7 (64 bit), performed the updates suggested and installed some packages with "$ conda install ".
I am loading IPython notebook with firefox and chrome. they are not the default browsers, so I used the information in this answer: https://stackoverflow.com/a/15748692/2344958
When I run IPython Notebook, it presents the landing pages and open new or imported notebooks, but it does not produce any output for cells.
I have no clue.
The only thing I can see is that the web console reports "Empty string passed to getElementById()."
Console works fine.
Any suggestion?
I found a page describing exactly the problem I had.
here the page:
Getting output with IPython Notebook
I actually have Sophos, but I have no control over it, and the solution that works so far was to start IPython with:
ipython notebook --ip=localhost
It also works by editing the line in configuration file
c.NotebookApp.ip = 'localhost'
I downloaded the tarball from this site. I selected all the notebooks in one directory and dragged them over to the IPython Notebook Dash. All of them appeared with an upload button and renaming options. So far so good.
Then this weird behaviour started. Only the files with .v2 in the filename (full name : filename.v2.ipynb) were successfully uploaded.
Screenshot of Chromium Browser
System:
Ubuntu 12.04 (23.0.1271.97-0ubuntu0.12.04.1)
Chromium Version 23.0.1271.97
I tried the following already:
1. added .v1 to the filename
2. renamed the file completely to a random string
3. couldn't reproduce the error with other notebooks
I'm guessing that you have IPython 0.12?
The notebooks without v2 are probably format version 3, which was introduced with IPython 0.13. 0.12 can't read format v3. The reason that the tarball has both is to allow for IPython 0.12 users, so you can just use those.
If you want to upgrade, the IPython PPA has the latest stable version. Be aware that this will update your notebooks to format v3 next time you save them.