-
Notifications
You must be signed in to change notification settings - Fork 421
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
one possible fix for get_func_name in jupyter #1430
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1430 +/- ##
==========================================
- Coverage 94.82% 94.72% -0.10%
==========================================
Files 45 44 -1
Lines 7491 7203 -288
==========================================
- Hits 7103 6823 -280
+ Misses 388 380 -8
☔ View full report in Codecov by Sentry. |
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.
Thanks for the PR. Could you please add an entry to the changelog?
I think we should also update the docstring of Memory.cache
(or Memory.__init__
) to document the possibility of spurious collisions for interactively functions defined with the same name in notebooks running in the same folder.
Ideally we should write some integration tests to check that the cache is reused across notebook kernel restart and simple edits of a notebook cell that does not change the function code itself but this is a lot of tedious work to get it up so I wouldn't make it a requirement to merge this PR.
let me know what you think @ogrisel the test requires pytest-requires and pytest_notebook packages. |
Co-authored-by: Olivier Grisel <[email protected]>
this is one possible solution to #1312