scverse / squidpy

Spatial Single Cell Analysis in Python
https://squidpy.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
417 stars 76 forks source link

Improve import speed #462

Open michalk8 opened 2 years ago

michalk8 commented 2 years ago

Description

See if we can lazily-load napari/pyqt5, think these should be the main culprits (need to verify).

ivirshup commented 2 years ago

For verification, I think profimp was useful for scanpy. We also added tests to make sure slow imports aren't added back in.

Previous discussion in scanpy might be useful here: https://github.com/theislab/scanpy/issues/756

giovp commented 1 year ago

we'll deprecate napari soon so this should be no problem

giovp commented 1 year ago

deprecate napari should go in 1.3 already