-
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
Redefining of functions across notebooks in the repository #98
Comments
The ipynb package does not seem to be a good fit for our use-case as the notebook import throws an error because of the inline
Are there any packages which can be used to import functions from other notebooks within a project? |
Hmm I'm not sure. Is there a strong reason for defining functions inside jupyter notebooks instead of .py files inside |
@chauhankaranraj You mean strip out all functions from within a notebook and move them to a script? |
That's true. I'm not sure what the best practice for this should be. Maybe we could define it twice - once in the parent notebook where we explain the reasoning for that func, and then again in a Perhaps some of the python experts on the team could give pointers? @aicoe-aiops/team-aiops 😃 |
Cool! that should be an easy fix then 👍 |
Is your feature request related to a problem? Please describe.
There are a few functions that are re-defined across multiple notebooks eg:
calc_flakiness_score()
,decode_run_length
etc. Having duplicate functions over different notebooks which are a part of the same project could increase the maintainability of code.Describe the solution you'd like
As a software engineer creating notebooks for the project, I want to refactor the code to reduce duplication of modules so that the code is more easily maintainable. This can be achieved by importing the required modules across notebooks.
The ipynb package can be used for importing jupyter notebooks and modules therein like regular .py files.
The text was updated successfully, but these errors were encountered: