René's URL Explorer Experiment


Title: Lazy load torch by quentinblampey · Pull Request #1027 · scverse/spatialdata · GitHub

Open Graph Title: Lazy load torch by quentinblampey · Pull Request #1027 · scverse/spatialdata

X Title: Lazy load torch by quentinblampey · Pull Request #1027 · scverse/spatialdata

Description: An open and interoperable data framework for spatial omics data - Lazy load torch by quentinblampey · Pull Request #1027 · scverse/spatialdata

Open Graph Description: If torch is installed, importing spatialdata will also import torch because of ImageTilesDataset. This PR aims to speed up the import by making the import of torch lazy. It's a little bit trick...

X Description: If torch is installed, importing spatialdata will also import torch because of ImageTilesDataset. This PR aims to speed up the import by making the import of torch lazy. It's a little bit t...

Opengraph URL: https://github.com/scverse/spatialdata/pull/1027

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1ca480c8-728e-5d2d-69e4-7484b71665c7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8078:32FDD1:ABAF46:EFF616:6A4C9FC5
html-safe-nonceb7f8c43b3ca037ce0de36596e7cebc10335901b548fcbe2ba63c3b4701afd96e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDc4OjMyRkREMTpBQkFGNDY6RUZGNjE2OjZBNEM5RkM1IiwidmlzaXRvcl9pZCI6IjM4NDY5MzY1NjAyMzU0ODcxNzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac06dbe70782eaf6f33ef73d7e5674cfccd81ee00e33c4714352958de5013fffef
hovercard-subject-tagpull_request:3075653988
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/scverse/spatialdata/1027/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b882a74058148932b5f09267fcf7255bcb65c47455706ec7622b42748f6ee647/scverse/spatialdata/pull/1027
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b882a74058148932b5f09267fcf7255bcb65c47455706ec7622b42748f6ee647/scverse/spatialdata/pull/1027
og:image:altIf torch is installed, importing spatialdata will also import torch because of ImageTilesDataset. This PR aims to speed up the import by making the import of torch lazy. It's a little bit trick...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamequentinblampey
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-cache
go-importgithub.com/scverse/spatialdata git https://github.com/scverse/spatialdata.git
octolytics-dimension-user_id95305807
octolytics-dimension-user_loginscverse
octolytics-dimension-repository_id487366481
octolytics-dimension-repository_nwoscverse/spatialdata
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id487366481
octolytics-dimension-repository_network_root_nwoscverse/spatialdata
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseae90d426644ca15e89bacceb72e51f4e9dbf85f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/scverse/spatialdata/pull/1027#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscverse%2Fspatialdata%2Fpull%2F1027
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscverse%2Fspatialdata%2Fpull%2F1027
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=scverse%2Fspatialdata
Reloadhttps://github.com/scverse/spatialdata/pull/1027
Reloadhttps://github.com/scverse/spatialdata/pull/1027
Reloadhttps://github.com/scverse/spatialdata/pull/1027
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
scverse https://github.com/scverse
spatialdatahttps://github.com/scverse/spatialdata
Notifications https://github.com/login?return_to=%2Fscverse%2Fspatialdata
Fork 88 https://github.com/login?return_to=%2Fscverse%2Fspatialdata
Star 381 https://github.com/login?return_to=%2Fscverse%2Fspatialdata
Code https://github.com/scverse/spatialdata
Issues 259 https://github.com/scverse/spatialdata/issues
Pull requests 11 https://github.com/scverse/spatialdata/pulls
Discussions https://github.com/scverse/spatialdata/discussions
Actions https://github.com/scverse/spatialdata/actions
Projects https://github.com/scverse/spatialdata/projects
Security and quality 0 https://github.com/scverse/spatialdata/security
Insights https://github.com/scverse/spatialdata/pulse
Code https://github.com/scverse/spatialdata
Issues https://github.com/scverse/spatialdata/issues
Pull requests https://github.com/scverse/spatialdata/pulls
Discussions https://github.com/scverse/spatialdata/discussions
Actions https://github.com/scverse/spatialdata/actions
Projects https://github.com/scverse/spatialdata/projects
Security and quality https://github.com/scverse/spatialdata/security
Insights https://github.com/scverse/spatialdata/pulse
LucaMarconatohttps://github.com/LucaMarconato
scverse:mainhttps://github.com/scverse/spatialdata/tree/main
quentinblampey:torch_lazy_importhttps://github.com/quentinblampey/spatialdata/tree/torch_lazy_import
Conversationhttps://github.com/scverse/spatialdata/pull/1027
Commits4 (4)https://github.com/scverse/spatialdata/pull/1027/commits
Checkshttps://github.com/scverse/spatialdata/pull/1027/checks
Files changedhttps://github.com/scverse/spatialdata/pull/1027/files
Lazy load torchhttps://github.com/scverse/spatialdata/pull/1027#top
LucaMarconatohttps://github.com/LucaMarconato
scverse:mainhttps://github.com/scverse/spatialdata/tree/main
quentinblampey:torch_lazy_importhttps://github.com/quentinblampey/spatialdata/tree/torch_lazy_import
https://github.com/quentinblampey
quentinblampeyhttps://github.com/quentinblampey
Dec 5, 2025https://github.com/scverse/spatialdata/pull/1027#issue-3699478946
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
https://github.com/quentinblampey
lazy torch importhttps://github.com/scverse/spatialdata/pull/1027/commits/557f53b74ad4ffb08dc4226c9ff65361dcf67af5
557f53bhttps://github.com/scverse/spatialdata/pull/1027/commits/557f53b74ad4ffb08dc4226c9ff65361dcf67af5
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Dec 5, 2025https://github.com/scverse/spatialdata/pull/1027#issuecomment-3617502174
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
Codecovhttps://app.codecov.io/gh/scverse/spatialdata/pull/1027?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scverse
53b9438https://app.codecov.io/gh/scverse/spatialdata/commit/53b9438a328c5fc2a451d2c8afab439b945ba2b8?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scverse
360fdc4https://app.codecov.io/gh/scverse/spatialdata/commit/360fdc475233bbff15420dd0712ce1a39eecdaf6?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scverse
Files with missing lineshttps://app.codecov.io/gh/scverse/spatialdata/pull/1027?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scverse
src/spatialdata/dataloader/__init__.pyhttps://app.codecov.io/gh/scverse/spatialdata/pull/1027?src=pr&el=tree&filepath=src%2Fspatialdata%2Fdataloader%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scverse#diff-c3JjL3NwYXRpYWxkYXRhL2RhdGFsb2FkZXIvX19pbml0X18ucHk=
Test Analyticshttps://docs.codecov.com/docs/test-analytics
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
https://github.com/Zethson
Zethsonhttps://github.com/Zethson
Dec 12, 2025https://github.com/scverse/spatialdata/pull/1027#issuecomment-3646282635
scverse/anndata#1959https://github.com/scverse/anndata/pull/1959
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
https://github.com/quentinblampey
quentinblampeyhttps://github.com/quentinblampey
Dec 12, 2025https://github.com/scverse/spatialdata/pull/1027#issuecomment-3646401696
@Zethsonhttps://github.com/Zethson
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
https://github.com/quentinblampey
usehttps://github.com/scverse/spatialdata/pull/1027/commits/56c9e7e0c4d27321b44aec92cdb73fb3f0523e03
@Zethsonhttps://github.com/Zethson
implementationhttps://github.com/scverse/spatialdata/pull/1027/commits/56c9e7e0c4d27321b44aec92cdb73fb3f0523e03
56c9e7ehttps://github.com/scverse/spatialdata/pull/1027/commits/56c9e7e0c4d27321b44aec92cdb73fb3f0523e03
https://github.com/quentinblampey
quentinblampeyhttps://github.com/quentinblampey
Dec 23, 2025https://github.com/scverse/spatialdata/pull/1027#issuecomment-3686010986
@Zethsonhttps://github.com/Zethson
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
https://github.com/quentinblampey
remove import from futurehttps://github.com/scverse/spatialdata/pull/1027/commits/eceb6d02a5090d822b38e36233468327ecaf3d70
eceb6d0https://github.com/scverse/spatialdata/pull/1027/commits/eceb6d02a5090d822b38e36233468327ecaf3d70
https://github.com/Zethson
Zethsonhttps://github.com/Zethson
Dec 23, 2025https://github.com/scverse/spatialdata/pull/1027#issuecomment-3686015726
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
https://github.com/quentinblampey
add again from __future__ import annotationshttps://github.com/scverse/spatialdata/pull/1027/commits/360fdc475233bbff15420dd0712ce1a39eecdaf6
360fdc4https://github.com/scverse/spatialdata/pull/1027/commits/360fdc475233bbff15420dd0712ce1a39eecdaf6
https://github.com/LucaMarconato
LucaMarconatohttps://github.com/LucaMarconato
Dec 23, 2025https://github.com/scverse/spatialdata/pull/1027#issuecomment-3686815239
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
https://github.com/LucaMarconato
LucaMarconatohttps://github.com/LucaMarconato
901a0c3https://github.com/scverse/spatialdata/commit/901a0c334c3185c4c20ed7453a231de1fb4f6d11
Dec 23, 2025https://github.com/scverse/spatialdata/pull/1027#event-21726575873
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
https://github.com/LucaMarconato
LucaMarconatohttps://github.com/LucaMarconato
release-fixed https://github.com/scverse/spatialdata/issues?q=state%3Aopen%20label%3Arelease-fixed
Jan 1, 2026https://github.com/scverse/spatialdata/pull/1027#event-21818556017
https://github.co/hiddenchars
https://github.com/scverse/spatialdata/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscverse%2Fspatialdata%2Fpull%2F1027
release-fixed https://github.com/scverse/spatialdata/issues?q=state%3Aopen%20label%3Arelease-fixed
Please reload this pagehttps://github.com/scverse/spatialdata/pull/1027
https://github.com/quentinblampey
https://github.com/Zethson
https://github.com/LucaMarconato
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.