Skip to content

How is the working directory set in Groovy script? #15

@dstieglitz

Description

@dstieglitz

We have an implementation of a kernel based on this one that incorporates the Micronaut framework (https://github.com/stainlessai/micronaut-jupyter). When we switch kernels from Groovy, however, the working directory changes and I can't figure out why.

Using this kernel from any path in the jupyter context, e.g., $HOME/my/working/dir, the code:

println new File(".").absolutePath

returns

$HOME/my/working/dir

How does this path get passed to the Groovy script code for running the cell?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions