Open stainlessbot opened 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.
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).
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