Show how to switch out kernels and discover them (#14531)
A few new doc changes for the repl feature. Release Notes: - N/A
This commit is contained in:
parent
a51a9b0354
commit
b3d0ac3e3c
1 changed files with 38 additions and 2 deletions
|
@ -46,9 +46,45 @@ The `repl: run` command will be executed on your selection(s), and the result wi
|
||||||
|
|
||||||
Outputs can be cleared with the `repl: clear outputs` command, or from the REPL menu in the toolbar.
|
Outputs can be cleared with the `repl: clear outputs` command, or from the REPL menu in the toolbar.
|
||||||
|
|
||||||
## Changing Kernels {#changing-kernels}
|
## Changing which kernel is used per language {#changing-kernels}
|
||||||
|
|
||||||
Work in Progress!
|
Assign kernels by name to languages in your `settings.json`.
|
||||||
|
|
||||||
|
```jsonc
|
||||||
|
{
|
||||||
|
"jupyter": {
|
||||||
|
"kernels": {
|
||||||
|
"python": "conda-env",
|
||||||
|
"typescript": "deno-debug"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
If you have `jupyter` installed, you can run `juptyer kernelspec list` to see the available kernels. Note that only
|
||||||
|
|
||||||
|
````
|
||||||
|
$ jupyter kernelspec list
|
||||||
|
Available kernels:
|
||||||
|
ark /Users/z/Library/Jupyter/kernels/ark
|
||||||
|
conda-base /Users/z/Library/Jupyter/kernels/conda-base
|
||||||
|
deno /Users/z/Library/Jupyter/kernels/deno
|
||||||
|
deno-debug /Users/z/Library/Jupyter/kernels/deno-debug
|
||||||
|
deno-release /Users/z/Library/Jupyter/kernels/deno-release
|
||||||
|
python-chatlab-dev /Users/z/Library/Jupyter/kernels/python-chatlab-dev
|
||||||
|
python3 /Users/z/Library/Jupyter/kernels/python3
|
||||||
|
ruby /Users/z/Library/Jupyter/kernels/ruby
|
||||||
|
rust /Users/z/Library/Jupyter/kernels/rust
|
||||||
|
```
|
||||||
|
|
||||||
|
Note: Zed will not find kernels nested within your Python `sys.prefix`, shown here as `/Users/z/.pyenv/versions/miniconda3-latest/`.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ jupyter kernelspec list
|
||||||
|
Available kernels:
|
||||||
|
conda-base /Users/z/Library/Jupyter/kernels/conda-base
|
||||||
|
python3 /Users/z/.pyenv/versions/miniconda3-latest/share/jupyter/kernels/python3
|
||||||
|
```
|
||||||
|
|
||||||
## Language specific instructions
|
## Language specific instructions
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue