ipython icon indicating copy to clipboard operation
ipython copied to clipboard

Jupyter Notebook menurbar and toolbar not appearing

Open maileugenio opened this issue 11 years ago • 25 comments

In Jupyter Notebook the menurbar and toolbar are not appearing not showing in brower after starting it with IPython (setup: Firefox, Windows 8 64bit)

Screenshot: jupyternotebook_nomenubar

maileugenio avatar Apr 14 '15 07:04 maileugenio

What version of IPython are you using?

This could be a caching issue - force-refresh your browser a few times (Ctrl-F5) to see if it resolves itself.

takluyver avatar Apr 14 '15 12:04 takluyver

ok, may thx, i could solve the issue.

On 14/04/2015 14:03, Thomas Kluyver wrote:

What version of IPython are you using?

This could be a caching issue - force-refresh your browser a few times (Ctrl-F5) to see if it resolves itself.

— Reply to this email directly or view it on GitHub https://github.com/ipython/ipython/issues/8320#issuecomment-92783019.

maileugenio avatar Apr 14 '15 15:04 maileugenio

I'm in the same situation, but cannot get it solved by just refreshing. I'm launching jupyter notebook with firefox, or epiphany browser in an ubuntu 14.04 OS, but get no menu bar. Jupyter is new for me, and I have not gotten it to "work" because I have no access to the menus. Any suggestions on where to start troubleshooting are welcome. In attach two screenshots of my browser: the menu that opens when I launch jupyter, and next what I get to see when I 'open' the script. screenshotjupyter

Thanks Rik

goat-anti-rabbit avatar Oct 06 '15 15:10 goat-anti-rabbit

Hi there, maileugenio, did you solved this problem ? I also have it and tried to fix it since several days whitout success.

For everyone else, any idea ? I'm on kubuntu14.04, I tried to install everything in different ways, with python v2.7 or v3, via conda or manual installation and different browsers. Thank you.

mGolos avatar Jan 12 '16 14:01 mGolos

For you goat-anti-rabbit it's a different problem. Check the file .ipython/profile_default/static/custom/custom.js to see if the line $('div#maintoolbar').hide(); is well commented.

mGolos avatar Jan 12 '16 14:01 mGolos

Fixed removing ipython and major part of Jupyter traces and reinstalling everything from anaconda.

mGolos avatar Jan 13 '16 19:01 mGolos

I've seen things like this on Windows before, where if a package is upgraded while it's running, files that are open at install time don't get overwritten and you can end up with a mixture of old and new files. If this (or something like it) is the cause, the fix is to

  1. stop any/all notebook servers
  2. conda remove notebook; conda install notebook

minrk avatar Jan 15 '16 10:01 minrk

Thank you I'll keep this in mind. Updating while running is something I've probably done before ^^. Have a good day.

mGolos avatar Jan 15 '16 12:01 mGolos

Closing as it sounds like not something we can do anything about. If someone thinks it is, open a new issue on jupyter/notebook.

takluyver avatar Jan 26 '16 17:01 takluyver

goat-anti-rabbit, if you click on one of the R file that is in your directory, the toolbar and help menu should appear once the file has been opened.

sannawag avatar Jun 27 '16 15:06 sannawag

Notebooks are the files with .ipynb extensions. Please look into this: https://github.com/jupyter/notebook/issues/1301

yaochx avatar Jul 13 '16 02:07 yaochx

@goat-anti-rabbit , did you find any sol? I have also the problem of missing "notebook" tab. screenshot from 2016-10-11 12 53 20

chandreshiit avatar Oct 11 '16 07:10 chandreshiit

@chandu8542 there is no notebook tab. Notebooks are opened from the Files tab.

minrk avatar Oct 11 '16 10:10 minrk

Same problem for me. NO file tabs, no conda tab, import not working.

delanyb avatar Feb 01 '17 15:02 delanyb

I had the same problem, but I just opened a new "python3-notebook" in my directory (screenshot 1) and copied the script from my textfile (Screenshot 2) in the new opened Notebook, where all needed toolbars show up (screenshot 3). Sometimes the easiest logic is the best one. Maybe this helps someone.

greetings

jupyter_notebook_1 jupyter_notebook_2 jupyter_notebook_3

WolfgangKoe avatar Jul 03 '17 09:07 WolfgangKoe

I was able to solve this by editing the custom.css file located at ~/.jupyter/custom/custom.css. I changed the mailtoolbar setting from ’none’ to ‘block’. i.e. find this line:

div#maintoolbar { display: none !important; }

...and change it to:

div#maintoolbar { display: block !important; }

Hope that works for you too!

badwolf259 avatar Sep 08 '17 06:09 badwolf259

I was able to solve this by editing the custom.css file located at ~/.jupyter/custom/custom.css. I changed the mailtoolbar setting from ’none’ to ‘block’. i.e. find this line:

If your custom.css is not empty then you, or a sofware you installed made modifications to it. Did you by any chance use https://github.com/nsonnad/base16-ipython-notebook or similar ?

Carreau avatar Sep 08 '17 17:09 Carreau

I tried to follow instructions above but actually had much simpler issue.

If file is not really .ipynb and it's something without the json, etc., like a .py file, then I don't get the menu toolbar for a .ipynb file. So I needed to paste the content into a .ipynb file and then I was set.

(I had expected the options would be there for any file I opened, and those menus appear to be restricted to interactive files.)

extrospective avatar Jan 24 '18 14:01 extrospective

If you open a text file (.json, .py, etc.), Jupyter shows a simple text editor so you can view and change that file. It doesn't try to load that file as a notebook. Only .ipynb files are loaded as notebooks.

We added a simple text editor for people using Jupyter on a remote server - it's inconvenient to SSH in manually and edit every file in a terminal. But when you're using it locally, there are many better text editors available.

takluyver avatar Jan 27 '18 10:01 takluyver

Thanks for the explanation.

Two suggestions for possible enhancement:

a. Sometimes software does the "right thing" but does not express to the user the intent/rationale. In this case, if there was associated information/help/etc. to make clear the reason why the whole toolbar didn't show up was because of the file format, that would serve to get the end user to understand the why.

b. I wonder whether there is a common issue where someone opens up a file like a .py file and intends to make it a notebook. It could be that there is a "convert to .ipynb" option available when someone finds oneself in this situation.

Thank you Mark

On Sat, Jan 27, 2018 at 5:15 AM, Thomas Kluyver [email protected] wrote:

If you open a text file (.json, .py, etc.), Jupyter shows a simple text editor so you can view and change that file. It doesn't try to load that file as a notebook. Only .ipynb files are loaded as notebooks.

We added a simple text editor for people using Jupyter on a remote server

  • it's inconvenient to SSH in manually and edit every file in a terminal. But when you're using it locally, there are many better text editors available.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ipython/ipython/issues/8320#issuecomment-360974934, or mute the thread https://github.com/notifications/unsubscribe-auth/AK62P10ssA7xHMR1WgHnv10whBM9naH0ks5tOvc_gaJpZM4EAAsC .

-- Mark Andersen, Ph.D., CFA 781-325-8190 (m) https://www.linkedin.com/in/markvandersen/ https://mylocaltaxes.com https://twitter.com/MarkVAndersen https://mfganalytics.wordpress.com/

extrospective avatar Jan 27 '18 13:01 extrospective