allen-ball / ganymede

The Ganymede Kernel is a Jupyter Notebook Java kernel based on the Java Shell tool, JShell.
Apache License 2.0
61 stars 3 forks source link

The print function doesn't work #6

Open dclong opened 1 year ago

dclong commented 1 year ago

I followed the hello.ipynb notebook but the print function doesn't seem to work. My environment is as below: OS: Ubuntu 22.04 in Docker Java: 11 Ganymede: 2.0.2 image

rokashevich commented 1 year ago

Same issue... Did you manage to find a solution? Trying to install it in the official jupyter docker image like this:

FROM jupyter/minimal-notebook:latest
USER root
RUN export DEBIAN_FRONTEND=noninteractive; \
  apt-get update \
  && apt-get -y install --no-install-recommends --no-install-suggests \
  openjdk-17-jdk \
  groovy \
  && rm -rf /var/lib/apt/lists/*
# switch to the user the official image is using
USER jovyan
RUN wget https://github.com/allen-ball/ganymede/releases/download/v2.1.1.20221231/ganymede-2.1.1.20221231.jar \
  && java -jar ganymede-2.1.1.20221231.jar -i --sys-prefix \
  && rm ganymede-2.1.1.20221231.jar

having inside the container:

$ jupyter kernelspec list
Available kernels:
  ganymede-2.1.1-java-17    /opt/conda/share/jupyter/kernels/ganymede-2.1.1-java-17
  python3                   /opt/conda/share/jupyter/kernels/python3
patelabhilash commented 1 year ago

Can you try the print function outside Jupyter notebook and in jshell once? might be some installation issue. it's working fine for me and I am using ubuntu WSL inside windows 11.

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
maxandersen commented 1 year ago

I have same problem using latest.

I'm also noticing that $$ is always null.

Should it not be assigned a value to be able to call the various operations on ?