Unable to start Jupyter Server on Windows Azure DSVM (Notebooks)
See original GitHub issueVideo 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:
- Create DSVM
- Update Code and Python to latest version
- Select a 3.x Python environment which is pre-installed
- Create .py file with a Jupyter cell in it
- Try to run the cell
Logs
Output for Python
in the Output
panel (View
→Output
, 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:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
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.
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.