Skip to content

Impossible to use JShell commands like /list #128

@nicolalandro

Description

@nicolalandro

I try to do this instructions:

import io.github.spencerpark.ijava.IJava;
IJava.getKernelInstance().evalRaw("/list")

But the result is:

---------------------------------------------------------------------------
io.github.spencerpark.ijava.execution.CompilationException: null
	at io.github.spencerpark.ijava.execution.CodeEvaluator.evalSingle(CodeEvaluator.java:127)
	at io.github.spencerpark.ijava.execution.CodeEvaluator.eval(CodeEvaluator.java:147)
	at io.github.spencerpark.ijava.JavaKernel.evalRaw(JavaKernel.java:276)
	at .(#76:1)

How to get the lines of the cels? In jupyter python I only run _ih[line_number], I need it for Printing the line near the Jacoco Coverage you can see the full code here.

To quickly replicate:

  • run with docker docker run -v notebook:/server/notebook -p 8888:8888 nicolalandro/multilanguage-jupyter:1.0
  • (or if you prefer you can deploy the jupyter notebook on Heroku by clicking the Deploy button on this Repo README.md)
  • Create new notebook and exec the instructions:
import io.github.spencerpark.ijava.IJava;
IJava.getKernelInstance().evalRaw("/list")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions