• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vispy / vispy / 24780807198
75%

Build:
DEFAULT BRANCH: main
Ran 22 Apr 2026 01:26PM UTC
Jobs 4
Files 346
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Apr 2026 01:24PM UTC coverage: 74.902% (+0.001%) from 74.901%
24780807198

push

github

web-flow
[maint] Defer importing scipy.sparse (#2744)

Followup to: https://github.com/vispy/vispy/pull/2726
part of the efforts to improve napari startup time:
https://github.com/napari/napari/issues/8689

Importing a visual also imports scipy.sparse via
vispy.visuals ->
vispy.visuals.graphs -> vispy.visuals.graphs.layouts.random ->
vispy.visuals.graphs.util -> scipy.sparse

In this PR I remove the duplicated code in `force_directed.py` and defer
the import of scipy.sparse.

main, second run:
`python -X importtime -c 'from vispy.visuals import VolumeVisual' 2>&1 |
grep scipy`
`import time:       250 |      73988 |             scipy.sparse`

this branch same command returns nothing.

---------

Co-authored-by: Lorenzo Gaifas <brisvag@gmail.com>

5915 of 10722 branches covered (55.17%)

5 of 9 new or added lines in 2 files covered. (55.56%)

2 existing lines in 2 files now uncovered.

24373 of 32540 relevant lines covered (74.9%)

2.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
53.33
-0.16% vispy/visuals/graphs/util.py

Coverage Regressions

Lines Coverage ∆ File
1
88.18
-0.91% vispy/util/fetching.py
1
53.33
-0.16% vispy/visuals/graphs/util.py
Jobs
ID Job ID Ran Files Coverage
1 run-2 - 24780807198.1 22 Apr 2026 03:03PM UTC 346
74.12
2 run-1 - 24780807198.2 22 Apr 2026 03:03PM UTC 346
46.85
3 run-3 - 24780807198.3 22 Apr 2026 03:03PM UTC 346
51.92
4 run-4 - 24780807198.4 22 Apr 2026 03:03PM UTC 346
72.43
Source Files on build 24780807198
  • Tree
  • List 346
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 99c8c498 on github
  • Prev Build on main (#24557972076)
  • Next Build on main (#24896915642)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc