-
-
Notifications
You must be signed in to change notification settings - Fork 407
perf: Don't import Panel and Pandas directly in IPython #6570
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6570 +/- ##
==========================================
- Coverage 88.82% 88.81% -0.01%
==========================================
Files 326 326
Lines 69449 69465 +16
==========================================
+ Hits 61685 61697 +12
- Misses 7764 7768 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5862f43
to
1f1a1a5
Compare
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.
Suggested one small improvement.
Co-authored-by: Maxime Liquet <[email protected]>
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Continuing from #6476
I noticed that HoloViews was very slow when importing in IPython. This is mainly because of the import of Panel and Pandas. This PR defers these imports.
Hyperfine
Before (based on #6476)
hyperfine "ipython -c ''" "ipython -c 'import holoviews'" --warmup 5
After (this PR)
Tuna
python -X importtime -m IPython -c 'import holoviews' 2> tuna.log && tuna tuna.log
(and not having setuptools_scm installed)Before (based on #6476)
After (this PR)