Is there a way to set the JULIA_NUM_THREADS environment variable for the IJulia session or kernel?
ENV["JULIA_NUM_THREADS"] = 4 and start the notebook server.
To my knowledge it is not possible without restarting
What i normally do is
sh> export JULIA_NUM_THREADS=4 sh> jupyter notebook
I guess if you start IJulia from the REPL you can set it in ENV, since it will start a new julia process for the kernal