Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JJava kernel does not start in VSCode Jupyter #56

Open
emcastro opened this issue Dec 27, 2024 · 3 comments
Open

JJava kernel does not start in VSCode Jupyter #56

emcastro opened this issue Dec 27, 2024 · 3 comments

Comments

@emcastro
Copy link

Probable bug in Jupyter Extension for VSCODE
microsoft/vscode-jupyter#16344

Workaround
Replace {resource_dir} in kernel.json by its actual value.

One can install the JJava kernel using this script:

#!/bin/bash

set -e

version=1.0-a4 # Choose the one you wish

# Download
wget https://github.com/dflib/jjava/releases/download/${version}/jjava-${version}-kernelspec.zip --output-document=jjava-kernelspec.zip

# Install
mkdir -p "${HOME}/.local/share/jupyter/kernels/java"
unzip -o -d "${HOME}/.local/share/jupyter/kernels/java" jjava-kernelspec.zip 
rm jjava-kernelspec.zip

# Fix
sed -i "s|{resource_dir}|$HOME/.local/share/jupyter/kernels/java|g" "${HOME}/.local/share/jupyter/kernels/java/kernel.json"

echo -e "Restart VSCode before using the JJava kernel"
@andrus
Copy link
Contributor

andrus commented Dec 27, 2024

Thanks for reporting the issue and a possible solution. We'd like to support VSCode better. It seems like a very different beast from browser-based Jupyter clients (e.g. dflib/dflib#410 ). Wish it had more developer-oriented docs.

@m-dzianishchyts
Copy link
Contributor

Jupyter Extension supports {resourse_dir} now. This one may be closed.
microsoft/vscode-jupyter#16415

@andrus
Copy link
Contributor

andrus commented Feb 7, 2025

@m-dzianishchyts , cool! Let's wait till they actually release that at the end of February, and then we'll close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants