Skip to content

Loading jsh files #52

@GiovanniGatti

Description

@GiovanniGatti

Hello,

I would like to know the current policy for loading jsh files when running Jupyter Notebook cells with IJava.

In jshell we can do:

$ jshell 
|  Welcome to JShell -- Version 11.0.2
|  For an introduction type: /help intro

jshell> /open test.jsh

jshell> test();
hello

In IPython loading Python scripts is quite straightforward, all we need to do is to use the magic %load <python.py>, but I couldn't find any way to do the same within IJava environment.

I think that it is generally a good idea to be able to hide boilerplate code within a Jupyter Notebook and I think that this is an important feature to add (if it is not yet available).

If no workaround is available, I'm willing to contribute.

Thank you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: magicsIssues in some of the standard magics implemented by the kernel.feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions