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

Working Directory should match Jupyter Python environment #41

Open
kav opened this issue Mar 29, 2019 · 2 comments
Open

Working Directory should match Jupyter Python environment #41

kav opened this issue Mar 29, 2019 · 2 comments

Comments

@kav
Copy link

kav commented Mar 29, 2019

It seems like the working directory for the node process should match the python working directory in jupyter. I think, related to #38, this would also default the npm location to this same working directory which makes sense and mirrors the behavior of the %%script node jupyter cell magic.

I'm happy to put together a PR here if needed. My expertise is definitely more on the node side and less on the jupyter and python side so feel free to correct any misunderstandings I may have here.

@mptnt1988
Copy link

Just do this BEFORE importing the package:

import os
os.environ.setdefault('PIXIEDUST_HOME', os.getcwd())

@kav
Copy link
Author

kav commented Apr 16, 2019 via email

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

2 participants