Open onoe-serika opened 1 year ago
@onoe-serika , not sure. are there instructions on how to setup a jupyter kernel w/ vs code? i can try testing it out.
thanks.
@onoe-serika : https://devinschumacher.com/how-to-setup-jupyter-notebook-virtual-environment-vs-code-kernels/
it looks like vscode mainly supports the ipykernel
(i.e., Python), but there is an option to connect vscode to your local jupyter server.
Not sure, but this might require writing a VSCode extension or something along those lines.
I'm open to ideas/suggestions on how best to approach this.
VSCode support is already there.
Here is brief overview what needs to be done to run dart in jupyter notebook in vs code:
I could be missing something and YMMV but here is basic idea.
in terminal:
# install conda, I'm using miniconda
brew install miniconda
# setup env to install kernel into correct environment
eval "$(conda "shell.$(basename "${SHELL}")" hook)"
# install kernel
cd /tmp && git clone git@github.com:vickumar1981/jupyter-dart-kernel.git && pip3 install -e ./jupyter-dart-kernel/
in vscode:
Create: New Jupyter Notebook
In new notebook click 'Select Kernel' -> Select Another Kernel... -> Jupyter Kernel...' and choose 'Dart'.
Here you can see how it runs with and without errors:
Notes:
If you keep getting errors 'The kernel failed to start due to the missing module 'jupyterdartkernel'. Consider installing this module', then check logs to find out which python environment is used and install this module into that environment.
@vigilancer 👍 i'm going to change this issue to "Document VS Code Setup".
Hello, can this support vscode?