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

from py.calc_ubi import ubi_reform doesn't work in jb/uk_ft_ubi.ipynb #34

Open
MaxGhenis opened this issue Jan 14, 2021 · 1 comment
Open

Comments

@MaxGhenis
Copy link
Contributor

I didn't have luck making this work given the scripts are in a different parent directory. Had to run the notebook from a higher directory. Is there another way without manually copying the notebook into jb/ or properly packaging the py script?

@MaxGhenis
Copy link
Contributor Author

@nikhilwoodruff added this to the notebook, I'll try and confirm, and close accordingly:

import os
if 'py' not in os.listdir("."):
    os.chdir("..")

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