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.

Jupyter notebook failed to launch. TypeError: Cannot read property 'toLocaleLowerCase' of undefined

See original GitHub issue

Environment data

  • VS Code version: 1.29.1
  • Extension version (available under the Extensions sidebar): Python extension 2018.11.0
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6 (on path)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: jupyter notebook server 5.7.2

Expected behaviour

Run notebook cell:

#%%
import requests

Actual behaviour

N/A

Logs

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

workbench.main.js:sourcemap:2429 Jupyter notebook failed to launch.  TypeError: Cannot read property 'toLocaleLowerCase' of undefined

workbench.main.js:sourcemap:294 [Extension Host] Failed to get interpreter information for 'C:\Program Files\nodejs\node.exe' SyntaxError: Unexpected token C in JSON at position 0
	at JSON.parse (<anonymous>)
	at d.<anonymous> (C:\Users\klo\.vscode\extensions\ms-python.python-2018.11.0\out\client\extension.js:83:285742)
	at Generator.next (<anonymous>)
	at s (C:\Users\klo\.vscode\extensions\ms-python.python-2018.11.0\out\client\extension.js:83:284981)
	at <anonymous>

workbench.main.js:sourcemap:294 [Extension Host] Python Extension: Error: Jupyter notebook failed to launch. 
TypeError: Cannot read property 'toLocaleLowerCase' of undefined

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rchiodocommented, Dec 7, 2018

This should be fixed in our insiders build

1reaction
rchiodocommented, Dec 6, 2018

You can enumerate your kernelspecs with ‘jupyter kernelspec list’.

One of the kernelspecs listed is missing the language or path in the json.

We recently started forcing a kernel spec so that’s the likely cause. Our code is not checking that the language element is missing, and hence the crash.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter notebook failed to launch. TypeError: Cannot read ...
Jupyter notebook failed to launch. TypeError: Cannot read property 'toLocaleLowerCase' of undefined #3732. klonuo opened this issue on Dec 4, ...
Read more >
Jupyter Notebook - Cannot read property of undefined
This error is platform specific. There might be some problem on my dev-master. For windows, try following commands:
Read more >
TypeError: Cannot read property 'toLocaleLowerCase' of ...
Coding example for the question TypeError: Cannot read property 'toLocaleLowerCase' of undefined-angular.js.
Read more >
What to do when things go wrong - The Jupyter Notebook
If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command...
Read more >
jupyter notebook - cannot read property of undefined
workbench.main.js:sourcemap:2429 Jupyter notebook failed to launch. TypeError: Cannot read property 'toLocaleLowerCase' of undefined ...
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