# Only 1 thread available in code-server

**URL:** <https://discourse.julialang.org/t/only-1-thread-available-in-code-server/110156>\
**Category:** VS Code\
**Tags:** question, multithreading, vscode\
**Created:** [February 13, 2024, 3:50pm UTC](https://discourse.julialang.org/t/only-1-thread-available-in-code-server/110156 "2024-02-13T15:50:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [February 13, 2024, 3:50pm UTC](https://discourse.julialang.org/t/only-1-thread-available-in-code-server/110156/1 "2024-02-13T15:50:37Z")

</div>

Hello, I moved to code-server development (under JupyterHub), but I can’t get more than 1 thread.  
I don’t have the option in the Julia extension setting, and if I manually edit the Settings.json with `"julia.NumThreads": 8` (copied from my VS Code desktop) I still have only 1 thread, any thought about it ?  
@benz0li : do you have the same issue on your infrastructure ?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 13, 2024, 3:51pm UTC](https://discourse.julialang.org/t/only-1-thread-available-in-code-server/110156/2 "2024-02-13T15:51:58Z")

</div>

You need to change that setting in the remote tab (should be at the top of the settings page).

---

<div class="post-metadata">

**Author:** ![benz0li](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/benz0li/32/37040_2.png) [@benz0li](https://discourse.julialang.org/u/benz0li)\
**Post date:** [June 21, 2024, 7:40am UTC](https://discourse.julialang.org/t/only-1-thread-available-in-code-server/110156/3 "2024-06-21T07:40:17Z")

</div>

With JupyterHub\[1\], I recommend setting environment variable [JULIA\_NUM\_THREADS](https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_NUM_THREADS), i.e. add `-e JULIA_NUM_THREADS=8` to the `docker run` command.

This sets the maximum number of threads not only when using Julia in code-server but also when working with a Notebook, Console or Terminal in JupyterLab.

* * *

1. especially when _containerised_
