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.

Cannot specify number of threads for kernel?

See original GitHub issue

Environment data

  • VS Code version: 1.59.0-insider (Universal)
  • Jupyter Extension version (available under the Extensions sidebar): v2021.8.1055544705
  • Python Extension version (available under the Extensions sidebar): v2021.7.1060902895
  • OS (Windows | Mac | Linux distro) and version: MAC OS X BigSur
  • Python and/or Anaconda version: Python 3.8.8 (default, Apr 13 2021, 12:59:45)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Jupyter server running: Local

Expected behaviour

Julia kernel 1.6.2 (8 threads) starts

Actual behaviour

Kernel does not start

Steps to reproduce:

Create a 8 threads julia kernel with

using IJulia
installkernel("Julia_8_threads", env=Dict("JULIA_NUM_THREADS"=>"8"))

Jupyter: Create new blank notebook (from VSCODE) -> set kernel to Julia_8_threads.

The kernel does not start: Timed out waiting to get a heartbeat from kernel process. View Jupyter log for further details.

  1. XXX

Logs

/Applications/Julia-1.6.app/Contents/Resources/julia/bin/julia -i --color=yes ~/.julia/packages/IJulia/e8kqU/src/kernel.jl /var/folders/3r/g2x6wc792nx9j1zvy02vj_tw0000gn/T/tmp-80853YO9nRm0bExu3.json cwd: / Error 2021-07-26 09:23:47: Disposing kernel process due to an error [Error: timeout at Timeout.<anonymous> (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:52:781106) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)] Error 2021-07-26 09:23:47: Timed out waiting to get a heartbeat from kernel process. Error 2021-07-26 09:23:47: Raw session failed to start in given timeout Error 2021-07-26 09:23:47: failed to create INotebook in kernel, UI Disabled = false [_ [Error]: at new o (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:16:34883) at new _ (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:37:559661) at w.connect (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:37:561521) at async E.createNotebookInstance (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:90:447450)

Error: Timed out waiting to get a heartbeat from kernel process. View Jupyter log for further details. at b.launch (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:52:775919)] { category: ‘timeout’, originalException: [i [Error]: Timed out waiting to get a heartbeat from kernel process. View Jupyter log for further details. at b.launch (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:52:775919)] { category: ‘timeout’ } } Error 2021-07-26 09:23:47: DataScience Error [i [Error]: Timed out waiting to get a heartbeat from kernel process. View Jupyter log for further details. at b.launch (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:52:775919)] { category: ‘timeout’ } Error 2021-07-26 09:23:47: failed to start INotebook in kernel, UI Disabled = false [_ [Error]: at new o (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:16:34883) at new _ (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:37:559661) at w.connect (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:37:561521) at async E.createNotebookInstance (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:90:447450)

Error: Timed out waiting to get a heartbeat from kernel process. View Jupyter log for further details. at b.launch (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:52:775919)] { category: ‘timeout’, originalException: [i [Error]: Timed out waiting to get a heartbeat from kernel process. View Jupyter log for further details. at b.launch (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:52:775919)] { category: ‘timeout’ } } Error 2021-07-26 09:23:47: Failed to execute cells in CellExecutionQueue [_ [Error]: at new o (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:16:34883) at new _ (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:37:559661) at w.connect (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:37:561521) at async E.createNotebookInstance (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:90:447450)

Error: Timed out waiting to get a heartbeat from kernel process. View Jupyter log for further details. at b.launch (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:52:775919)] { category: ‘timeout’, originalException: [i [Error]: Timed out waiting to get a heartbeat from kernel process. View Jupyter log for further details. at b.launch (/Users/pagnani/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.8.1055544705/out/client/extension.js:52:775919)] { category: ‘timeout’ } }

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

XXX

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
pagnanicommented, Aug 15, 2022

Did not try in a while … I’ll report here as soon as i get my hands on my computer

On Mon, Aug 15, 2022, 03:13 Don Jayamanne @.***> wrote:

@pagnani https://github.com/pagnani are you still running into the same issues with the latest version of the Jupyter extension?

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-jupyter/issues/6803#issuecomment-1214504942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJYTHTMNMY7C7XL5AKYB3DVZGKT5ANCNFSM5A7QU24A . You are receiving this because you were mentioned.Message ID: @.***>

0reactions
DonJayamannecommented, Sep 20, 2022

Lets close this for now, do feel free to create a new issue if this problem persists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maximum number of threads per process in Linux?
Linux doesn't have a separate threads per process limit, just a limit on the total number of processes on the system (threads are...
Read more >
Techniques to Set the Number of Threads - Intel
Use the following techniques to specify the number of OpenMP threads to use in. Intel® oneAPI Math Kernel Library. : Set one of...
Read more >
Cannot edit /proc/sys/kernel/threads-max - linux - Super User
11) This file specifies the system-wide limit on the number of threads (tasks) that can be created on the system. Since Linux 4.1,...
Read more >
Configuring kernel thread deadloop detection
1. Enter system view. system-view · 2. Enable kernel thread deadloop detection. monitor kernel deadloop enable [ slot slot-number [ cpu cpu-number [...
Read more >
threading — Thread-based parallelism — Python 3.11.1 ...
Python's Thread class supports a subset of the behavior of Java's Thread class; currently, there are no priorities, no thread groups, and threads...
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