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

Set working directory to the folder containing the notebook (fixes #12) #14

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

f4lco
Copy link
Contributor

@f4lco f4lco commented Aug 9, 2019

As per discussion in #12, and this comment, treon should have the same behavior as Jupyter, and use the notebooks' folder as working directory. This fixes priorly broken notebook-relative Python imports, and notebooks trying to read resources / data using notebook-relative file paths, in case the working directory of invoking treon did not match the directory containing the notebook.

@review-notebook-app
Copy link

Check out this pull request on ReviewNB: https://app.reviewnb.com/ReviewNB/treon/pull/14

You'll be able to see notebook diffs and discuss changes. Powered by ReviewNB.

@amit1rrr
Copy link
Member

amit1rrr commented Aug 9, 2019

Looks good @f4lco

Thanks for adding in the test :)

@amit1rrr amit1rrr merged commit 95091c9 into ReviewNB:master Aug 9, 2019
@f4lco f4lco deleted the bugfix/notebook-working-directory branch August 9, 2019 08:32
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

Successfully merging this pull request may close these issues.

2 participants