stainlessai / micronaut-jupyter

A Micronaut configuration that integrates your app with an existing Jupyter installation.
https://stainlessai.github.io/micronaut-jupyter
Apache License 2.0
9 stars 5 forks source link

MJ-4 ⁃ Add methods and properties to scope of Jupyter script #18

Open stainlessbot opened 4 years ago

stainlessbot commented 4 years ago

Create methods and properties that can be accessed directly within a Jupyter script. The current grails-ingestor plugin accomplishes this by subclassing a configurable abstract class that contains all of the methods. In order to take that approach, https://github.com/twosigma/beakerx/blob/master/kernel/groovy/src/main/java/com/twosigma/beakerx/groovy/evaluator/GroovyCodeRunner.java would have to be subclassed and GroovyShell would have to be used in place of GroovyClassLoader (which could introduce other issues).

┆Issue Type: Story ┆Priority: Medium ┆Status: Backlog ┆Issue Number: MJ-4 ┆Epic: Kernel

stainlessbot commented 4 years ago

➤ Joshua Carter commented:

Other tickets will require the creation of a subclass to provide custom methods and properties to make their functionality available. This ticket shall cover the ability for a user of the library to provide a custom base class that contains custom methods and properties to make directly available to the script.

JoshuaCWebDeveloper commented 4 years ago

In addition to being on the class path, the provided base class should inherit from the abstract MicronautJupyterScript class. These checks should be performed one time at application startup (as opposed to every time a script is executed).