36

I have jupyter notebook version 4.2 on my MacOS (10.9.5)

I launch via jupyter lab at the MacOS terminal and it automatically opens a browser at the following link: http://localhost:8888/lab

At this point I see the Welcome to the JupyterLab Alpha preview screen but nothing more. No tabs etc. Please see the image I have included.

I am using Chromium (Version 43.0.2357.130 (64-bit) ). When I try to open in Safari browser absolutely nothing loads. Its a blank browser session.

What I see in the browser doesn't look like anything that I have seen in all of the JupyterLab videos on youtube (PyData 2016 DC for example).

Clearly there is something wrong with the rendering.

enter image description here

UPDATE:

Output in the console:

WebSocket connection to 'ws://localhost:8888/terminals/websocket/1' failed: WebSocket is closed before the connection is established.
http://localhost:8888/api/contents/untitled.txt?1485120059877 Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8888/api/contents/DeleteMe.ipynb?1485120060078 Failed to load resource: the server responded with a status of 404 (Not Found)

Output in the MacOS terminal:

[I 16:20:58.569 LabApp] JupyterLab alpha preview extension loaded from /Users/user1/anaconda/lib/python2.7/site-packages/jupyterlab
[I 16:20:58.570 LabApp] Serving notebooks from local directory: /Users/user1
[I 16:20:58.570 LabApp] 0 active kernels 
[I 16:20:58.570 LabApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 16:20:58.570 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 16:20:59.883 LabApp] No such file or directory: untitled.txt
[W 16:20:59.884 LabApp] 404 GET /api/contents/untitled.txt?1485120059877 (::1) 3.88ms referer=http://localhost:8888/lab
[I 16:20:59.893 LabApp] New terminal with specified name: 1
[W 16:21:00.095 LabApp] No such file or directory: DeleteMe.ipynb
[W 16:21:00.098 LabApp] 404 GET /api/contents/DeleteMe.ipynb?1485120060078 (::1) 5.14ms referer=http://localhost:8888/lab
[W 16:22:35.969 LabApp] 404 GET /lab/xterm.js.map (::1) 64.85ms referer=None
[W 16:25:30.075 LabApp] No such file or directory: untitled.txt
[W 16:25:30.076 LabApp] 404 GET /api/contents/untitled.txt?1485120330069 (::1) 1.74ms referer=http://localhost:8888/lab
[W 16:25:30.101 LabApp] 404 GET /lab/xterm.js.map (::1) 3.18ms referer=None
[W 16:25:30.296 LabApp] No such file or directory: DeleteMe.ipynb
[W 16:25:30.297 LabApp] 404 GET /api/contents/DeleteMe.ipynb?1485120330283 (::1) 1.73ms referer=http://localhost:8888/lab

Output of browser console:

enter image description here

UPDATE:

Here is a specific video of Jupyter Labs I watched:

JupyterLab: Building Blocks...

What I see is very different than what is shown in the video. There are many other videos on youtube.

UPDATE #2:

I followed Feynman27's instructions here however I get the same result. See screen shot. I see where it says, Click on the Launcher tab for the initial JupyterLab screen, however I can't find where that is.

enter image description here

UPDATE #3:

I updated my browser to Chromium Version 56.0.2924.87 (64-bit).

Now all works fine. I see the tabs.

codingknob
  • 11,108
  • 25
  • 89
  • 126
  • 1
    Looks like (at least) the styles aren't (fully) loading. Do you see any errors in the console? View > Developer > Developer Tools – Jack Jan 20 '17 at 04:32
  • Please kindly see updates to question – codingknob Jan 22 '17 at 21:27
  • Do you see any errors in browser console? Open it by cmd+opt+i and go to 'Console'. Please add any errors if they appear. – taras Jan 24 '17 at 22:38
  • Please see screenshot – codingknob Jan 25 '17 at 04:00
  • @codingknob - Have you checked to see that something else isn't running on port 8888 that's preventing Jupyter lab from connecting? Stop Jupyter and run `netstat -nl | grep 8888` to see if something else is bound to that port. – saarp Jan 30 '17 at 22:56
  • nothing connected when I run `netstat -nl | grep 8888` after stopping Jupyter Lab. – codingknob Jan 31 '17 at 04:57
  • Could you please start jupyter lab on another port : `jupyter lab --port 9999` and see if the issue is still present ? – Thomas Lehoux Feb 02 '17 at 18:08
  • @codingknob : from which path did you launch jupyter lab ? – Thomas Lehoux Feb 02 '17 at 18:13
  • @ThomasLehoux - starting from my home dir i.e. `/Users1/user1` – codingknob Feb 02 '17 at 21:27
  • @ThomasLehoux - starting on `port 9999` results in the same problem. – codingknob Feb 02 '17 at 21:28
  • Which version of OS X are you running? Is there a default firewall or something that might be blocking connections? – VBB Feb 05 '17 at 06:46
  • 10.9.5 - Is there a default firewall enabled on OS X? I don't recall ever tinkering with such settings. But if there is a firewall, where are the settings? I can't seem to find anything – codingknob Feb 06 '17 at 02:00
  • Perhaps this bug: https://github.com/jupyterlab/jupyterlab/issues/408; note a comment provides a workaround. – gregory Feb 06 '17 at 02:15
  • Nope. Followed Feynman27's instructions and I get the same thing. I even deleted my python 2.7.x anaconda installation and installed the latest 3.x. I have no idea whats going on. – codingknob Feb 19 '17 at 23:25
  • I updated my browser to `Chromium Version 56.0.2924.87 (64-bit)`. Now all works fine. – codingknob Feb 20 '17 at 00:30

5 Answers5

23

I could not find an answer to this issue on Windows when searching Stackoverflow/Google/Bing, and this thread was quite prominent hence my Windows-specific answer here.

CTRL+SHIFT+ENTER did not work for me. On windows 10 with Jupyter 4.4.0, Jupyter Lab 0.35.4, the tabs in Jupyter Lab can be made visible/hidden by clicking CTRL+SHIFT+D or toggling in the menu the options (View > Single-document mode).

Jupiter Lab, menu item for toggling the Single-document mode

machnic
  • 2,304
  • 2
  • 17
  • 21
Sven Haile
  • 1,100
  • 11
  • 11
11

Just pressing Ctrl+Shift+Enter can toggle showing the tabs on/off. Often one tends to press by mistake and see it disappear

smartrahat
  • 5,381
  • 6
  • 47
  • 68
Vijay Jayaraman
  • 111
  • 1
  • 3
6

Other shortcuts didn't worked for me in mac.

In Jupyter Lab 3.0 and later, there's a toggle botton at the bottom of the screen like below: enter image description here

Click on Simple toggle button and you would be able to see all tabs. Below trick works in the below jupyter version as follows:

jupyter core     : 4.7.1
jupyter-notebook : 6.3.0
qtconsole        : not installed
ipython          : 7.16.1
ipykernel        : 5.5.3
jupyter client   : 6.1.12
jupyter lab      : 3.0.0
nbconvert        : 6.0.7
ipywidgets       : not installed
nbformat         : 5.1.3
traitlets        : 4.3.3
Dan
  • 624
  • 6
  • 15
2

I updated my browser to Chromium Version 56.0.2924.87 (64-bit). The prior version was Version 43.0.2357.130 (64-bit).

On the new version of Chromium, the Jupyter Lab works as expected.

I wanted to answer this question so any other users who experience something similar have a document resource to find a solution.

codingknob
  • 11,108
  • 25
  • 89
  • 126
-3

The Problem is You are not using any Notebook to open any notebook. Type the following:

ipython notebook xyz.py
or
jupyter notebook xyz.py

Now you will be able to see the Notebook.

You can also browse in the left Screen to the directory where you have a Python script and then open that by clicking on the *.py file from that file explorer.

gather bar
  • 456
  • 1
  • 9
  • 29
  • not sure I follow. If I run the above commands in my `OS X` terminal the result is: `[C 01:43:17.294 NotebookApp] No such file or directory: /Users/user1/xyz.py` – codingknob Feb 09 '17 at 06:45
  • replace xyz.py with the Python file you want to open. – gather bar Feb 09 '17 at 15:43
  • I'm not trying to open any specific python file. I just want to launch `jupyter lab` without the problems I am seeing. – codingknob Feb 09 '17 at 17:11
  • Did you try opening any python file does the Jupyter lab open any existing *.py file? This will help determine if it is functional or not? – gather bar Feb 09 '17 at 18:47
  • I tried what you suggest. It tried to open that file with the following URL: `http://localhost:8888/files/myscript.py` but the result plain text rendering. – codingknob Feb 19 '17 at 23:04