question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to start Jupyter Server on Windows Azure DSVM (Notebooks)

See original GitHub issue

Video repro: https://youtu.be/kUtPuHjJiH8

Hey guys,

I am having an issue starting Jupyter on the Azure DSVM.

It just says “Starting Jupyter Server” and locks there after trying to execute a cell.

I can see from the developer tools pane that it has actually started the Jupyter Server in the background, in my temp directory, and even created an empty Jupyter notebook file (0 bytes) which errors if you try and load it.

Works like a charm on my local PC.

Environment data

  • VS Code version: 1.128.2 (latest at time of writing)
  • Extension version (available under the Extensions sidebar): Python 2018.10.1
  • OS and version: Server 2016 DSVM
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.5 Conda
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Code apparently can’t connect to the Jupyter Server

Expected behavior

Code should be able to start and connect to the local Jupyter Server

Steps to reproduce:

  1. Create DSVM
  2. Update Code and Python to latest version
  3. Select a 3.x Python environment which is pre-installed
  4. Create .py file with a Jupyter cell in it
  5. Try to run the cell

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Jedi Python language engine.
##########Linting Output - pylint##########
##########Linting Output - pylint##########

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

Overwriting grammar scope name to file mapping for scope source.sql.
Old grammar file: file:///c%3A/Program%20Files/Microsoft%20VS%20Code/resources/app/extensions/sql/syntaxes/sql.tmLanguage.json.
New grammar file: file:///c%3A/Users/timscarfe/.vscode/extensions/ms-mssql.mssql-1.4.0/syntaxes/SQL.plist
e.register @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4274
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409  INFO standard startup Object
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Register Intepreter Watcher, Arg 1: {"$mid":1,"fsPath":"c:\\git\\test","external":"file:///c%3A/git/test","path":"/c:/git/test","scheme":"file"}, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Register Intepreter Watcher, Arg 1: undefined, Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Build the workspace interpreter watcher, Arg 1: {"$mid":1,"fsPath":"c:\\git\\test","external":"file:///c%3A/git/test","path":"/c:/git/test","scheme":"file"}, Return Value: UNABLE TO DETERMINE VALUE
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Build the workspace interpreter watcher, Arg 1: undefined, Return Value: UNABLE TO DETERMINE VALUE
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:04:32.473 NotebookApp] [nb_conda_kernels] enabled, 5 kernels found

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:04:36.881 NotebookApp] The port 8888 is already in use, trying another port.

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:04:38.098 NotebookApp] JupyterLab beta preview extension loaded from C:\Anaconda\lib\site-packages\jupyterlab

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:04:38.098 NotebookApp] JupyterLab application directory is C:\Anaconda\share\jupyter\lab

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:04:40.675 NotebookApp] [nb_anacondacloud] enabled

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:04:40.760 NotebookApp] [nb_conda] enabled

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:04:41.002 NotebookApp] ✓ nbpresent HTML export ENABLED

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [W 12:04:41.002 NotebookApp] ✗ nbpresent PDF export DISABLED: No module named 'nbbrowserpdf'

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:04:41.095 NotebookApp] Serving notebooks from local directory: C:\Users\TIMSCA~1\AppData\Local\Temp\2

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:04:41.095 NotebookApp] 0 active kernels
[I 12:04:41.095 NotebookApp] The Jupyter Notebook is running at:
[I 12:04:41.095 NotebookApp] http://localhost:8889/
[I 12:04:41.095 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [I 12:05:24.647 NotebookApp] 302 GET / (::1) 0.99ms

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [W 12:05:34.533 NotebookApp] 400 GET /api/contents/tmp-81686G2ASws86VnU.ipynb?type=notebook&_=1541937933410 (::1): Unreadable Notebook: C:\Users\TIMSCA~1\AppData\Local\Temp\2\tmp-81686G2ASws86VnU.ipynb NotJSONError("Notebook does not appear to be JSON: ''...",)

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [W 12:05:34.533 NotebookApp] Unreadable Notebook: C:\Users\TIMSCA~1\AppData\Local\Temp\2\tmp-81686G2ASws86VnU.ipynb NotJSONError("Notebook does not appear to be JSON: ''...",)

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [W 12:05:34.533 NotebookApp] 400 GET /api/contents/tmp-81686G2ASws86VnU.ipynb?type=notebook&_=1541937933410 (::1) 1.00ms referer=http://localhost:8889/notebooks/tmp-81686G2ASws86VnU.ipynb

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [W 12:06:00.637 NotebookApp] 400 GET /api/contents/tmp-81686G2ASws86VnU.ipynb?type=notebook&_=1541937960485 (::1): Unreadable Notebook: C:\Users\TIMSCA~1\AppData\Local\Temp\2\tmp-81686G2ASws86VnU.ipynb NotJSONError("Notebook does not appear to be JSON: ''...",)

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [W 12:06:00.638 NotebookApp] Unreadable Notebook: C:\Users\TIMSCA~1\AppData\Local\Temp\2\tmp-81686G2ASws86VnU.ipynb NotJSONError("Notebook does not appear to be JSON: ''...",)

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:282 [Extension Host] Python Extension: [W 12:06:00.638 NotebookApp] 400 GET /api/contents/tmp-81686G2ASws86VnU.ipynb?type=notebook&_=1541937960485 (::1) 2.00ms referer=http://localhost:8889/notebooks/tmp-81686G2ASws86VnU.ipynb

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jitghoshcommented, Nov 19, 2018

Ok – so I came up with a compromise that seems to be working for now. I created a default notebook config (with all default options) which gets put into the .jupyter folder under my profile and this helps VS Code work correctly. I have also created a customized config and kept it in a separate location and when I start a server myself from the CLI on the box I just use the Jupyter notebook –-config=”custom config path” – this allows that server instance to follow my custom config. This is working for me well enough.

1reaction
jitghoshcommented, Nov 13, 2018

Some more details on my issue above. It seems that certain custom configurations prevents VS Code from starting the Jupyter server. On my machine, I created a custom config and had the password and token auth turned off (password and token set to blank and password required set to false). This prevents VS Code from starting the server when I try to run a cell in an imported notebook.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to start Jupyter Server on Windows Azure DSVM ...
Hey guys,. I am having an issue starting Jupyter on the Azure DSVM. It just says "Starting Jupyter Server" and locks there after...
Read more >
Unable to start jupyter notebook on the Deep Learning Virtual ...
I'm trying to train keras models on the Deep Learning Virtual Machine (DLVM)from MS Azure. I've setup a Ubuntu VM and connected to...
Read more >
Cannot access Jupyter notebook from Ubuntu DSVM - MSDN
I have provisioned an Ubuntu VM and have been able to SSH into the server. However, https://my-ip:8000 doesn't load Jupyter notebook for me....
Read more >
Run Jupyter Notebook on the Cloud in 15 mins #Azure
Set up Jupyter Notebook on Azure Notebooks; Activate and navigate the Azure Portal; Get Azure Data Science Virtual Machine (DSVM) set up ...
Read more >
Rong Lu on Twitter: "@ecsquendor @code Thanks! We'll investigate ...
Run cells, visualize data frames, interact with plots, import Jupyter Notebooks ... Unable to start Jupyter Server on Windows Azure DSVM (Notebooks) ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found