-
Notifications
You must be signed in to change notification settings - Fork 73
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
import resuable modules across notebooks #101
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Pre-Commit Test failed! Click here
|
This is the result of the initial pre-commit test which caught some issues which slipped my attention.
However, after making the above changes, and fixing the issues, this is the current status of the pre-commit test:
this is catching the following import statement Any recommendations on how to set the path before the import and yet have the import statement at the top of the notebook? cc: @MichaelClifford |
Maybe this can help: https://stackoverflow.com/questions/36827962/pep8-import-not-at-top-of-file-with-sys-path Easiest would be this answer https://stackoverflow.com/a/38338146 |
Pre-Commit Test failed! Click here
|
Thanks @Shreyanand. That seemed to ignore that particular line when i ran it locally :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Nice Notebook refactoring
Related Issues and Dependencies
Resolves #98
This introduces a breaking change
This Pull Request implements
In this PR, I have removed the duplicate function definitions across notebooks to improve maintainability of code.
We are now importing the following functions/modules across notebooks keeping the main function definition only in the primary notebook.
decode_run_length()
calc_flakiness_score()
calc_consecutive_failures()
calc_flake_edges()
flake_edge_end()
calc_optimal_flakiness_score()
We are using the .ipynb function to import modules from python notebooks similar to scripts.