Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dstieglitz opened this issue Jan 21, 2021 · 0 comments
Open

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

dstieglitz opened this issue Jan 21, 2021 · 0 comments

Comments

@dstieglitz
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant