René's URL Explorer Experiment


Title: Introspection in Fiji Script Editor · Issue #84 · scijava/scyjava · GitHub

Open Graph Title: Introspection in Fiji Script Editor · Issue #84 · scijava/scyjava

X Title: Introspection in Fiji Script Editor · Issue #84 · scijava/scyjava

Description: I got around to testing introspection in scyjava, and it overall works quite nicely! However, when using the (Python3-enabled) Fiji's Script Editor, the reflection functions print to the calling terminal, rather than the Fiji script edit...

Open Graph Description: I got around to testing introspection in scyjava, and it overall works quite nicely! However, when using the (Python3-enabled) Fiji's Script Editor, the reflection functions print to the calling te...

X Description: I got around to testing introspection in scyjava, and it overall works quite nicely! However, when using the (Python3-enabled) Fiji's Script Editor, the reflection functions print to the callin...

Opengraph URL: https://github.com/scijava/scyjava/issues/84

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Introspection in Fiji Script Editor","articleBody":"I got around to testing introspection in scyjava, and it overall works quite nicely!\n\nHowever, when using the (Python3-enabled) Fiji's Script Editor, the reflection functions print to the calling terminal, rather than the Fiji script editor (see screenshot below). I suspect this behavior arises because all of the scyjava modules (like `src()` below) are imported prior to Fiji being initialized (i.e., in the /config/fiji.py script). At this time, `stdout` refers to the calling terminal, not the ScriptContextWriter. Because Python doesn't dynamically update imports, attempting to import the libraries again doesn't override `_stdout.write` to point to the script editor.\n\n![Image](https://github.com/user-attachments/assets/84131208-903b-4f73-a922-d88419826fef)\n\nA bad workaround is to append this to the beginning of the script:\n```python\n#@ ImageJ ij\nimport importlib\nimport scyjava.inspect\nfrom scyjava.inspect import methods, src\nimportlib.reload(scyjava.inspect)\nsrc(ij)\n```\n\nWhich then produces the ideal result:\n![Image](https://github.com/user-attachments/assets/661de17c-c214-43da-9d44-a3a8eb1510fb)\n\nHowever, I'm not sure what the best method to accomplish this is. Maybe it'd be to somehow edit the config script to specify which writer to use. Ideally there's something simpler.","author":{"url":"https://github.com/ian-coccimiglio","@type":"Person","name":"ian-coccimiglio"},"datePublished":"2025-05-10T20:20:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/84/scyjava/issues/84"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6bef715b-bf31-3c18-ebb1-58ef7e56d2e4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBFDC:3301CD:6265590:80F59C7:696DABF1
html-safe-noncebfad0f5bc7a9aa239006e7c4644e87925f39b225e03c13d4e77f08d63949a9f4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkRDOjMzMDFDRDo2MjY1NTkwOjgwRjU5Qzc6Njk2REFCRjEiLCJ2aXNpdG9yX2lkIjoiMjQ5OTg2ODQ2MzUyMTk2NzA4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac17e9d43372249cf23c153bb5a6553ce6d2d277001274bfd11762068b082da00f
hovercard-subject-tagissue:3054503631
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scyjava/84/issue_layout
twitter:imagehttps://opengraph.githubassets.com/57bc4af6aed0d2a6d9fe00d8800c412117466bb065f89ada675b12c6ef7e4162/scijava/scyjava/issues/84
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/57bc4af6aed0d2a6d9fe00d8800c412117466bb065f89ada675b12c6ef7e4162/scijava/scyjava/issues/84
og:image:altI got around to testing introspection in scyjava, and it overall works quite nicely! However, when using the (Python3-enabled) Fiji's Script Editor, the reflection functions print to the calling te...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameian-coccimiglio
hostnamegithub.com
expected-hostnamegithub.com
None4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064
turbo-cache-controlno-preview
go-importgithub.com/scijava/scyjava git https://github.com/scijava/scyjava.git
octolytics-dimension-user_id1262770
octolytics-dimension-user_loginscijava
octolytics-dimension-repository_id113442144
octolytics-dimension-repository_nwoscijava/scyjava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id113442144
octolytics-dimension-repository_network_root_nwoscijava/scyjava
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
release7e5ae23c70136152637ceee8d6faceb35596ec46
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/scijava/scyjava/issues/84#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscyjava%2Fissues%2F84
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscyjava%2Fissues%2F84
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=scijava%2Fscyjava
Reloadhttps://patch-diff.githubusercontent.com/scijava/scyjava/issues/84
Reloadhttps://patch-diff.githubusercontent.com/scijava/scyjava/issues/84
Reloadhttps://patch-diff.githubusercontent.com/scijava/scyjava/issues/84
scijava https://patch-diff.githubusercontent.com/scijava
scyjavahttps://patch-diff.githubusercontent.com/scijava/scyjava
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fscijava%2Fscyjava
Fork 15 https://patch-diff.githubusercontent.com/login?return_to=%2Fscijava%2Fscyjava
Star 54 https://patch-diff.githubusercontent.com/login?return_to=%2Fscijava%2Fscyjava
Code https://patch-diff.githubusercontent.com/scijava/scyjava
Issues 16 https://patch-diff.githubusercontent.com/scijava/scyjava/issues
Pull requests 2 https://patch-diff.githubusercontent.com/scijava/scyjava/pulls
Actions https://patch-diff.githubusercontent.com/scijava/scyjava/actions
Projects 0 https://patch-diff.githubusercontent.com/scijava/scyjava/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/scijava/scyjava/security
Please reload this pagehttps://patch-diff.githubusercontent.com/scijava/scyjava/issues/84
Insights https://patch-diff.githubusercontent.com/scijava/scyjava/pulse
Code https://patch-diff.githubusercontent.com/scijava/scyjava
Issues https://patch-diff.githubusercontent.com/scijava/scyjava/issues
Pull requests https://patch-diff.githubusercontent.com/scijava/scyjava/pulls
Actions https://patch-diff.githubusercontent.com/scijava/scyjava/actions
Projects https://patch-diff.githubusercontent.com/scijava/scyjava/projects
Security https://patch-diff.githubusercontent.com/scijava/scyjava/security
Insights https://patch-diff.githubusercontent.com/scijava/scyjava/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/scijava/scyjava/issues/84
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/scijava/scyjava/issues/84
Introspection in Fiji Script Editorhttps://patch-diff.githubusercontent.com/scijava/scyjava/issues/84#top
https://github.com/ian-coccimiglio
https://github.com/ian-coccimiglio
ian-coccimigliohttps://github.com/ian-coccimiglio
on May 10, 2025https://github.com/scijava/scyjava/issues/84#issue-3054503631
https://private-user-images.githubusercontent.com/62724583/442455645-84131208-903b-4f73-a922-d88419826fef.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg3OTU0MjEsIm5iZiI6MTc2ODc5NTEyMSwicGF0aCI6Ii82MjcyNDU4My80NDI0NTU2NDUtODQxMzEyMDgtOTAzYi00ZjczLWE5MjItZDg4NDE5ODI2ZmVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTE5VDAzNTg0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0ZmQ4ODFhZWMxYTk0NDU1ZTJlY2I5Zjg1MDA4MWE1ZWExYTY2N2JmMzE0Nzc0NmFjNDBlZGY5MjQ0MmMwZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.6INfGdsEqRcX2nvuxO5LNn4cV8xEW14moQT7W8OO2wM
https://private-user-images.githubusercontent.com/62724583/442456723-661de17c-c214-43da-9d44-a3a8eb1510fb.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg3OTU0MjEsIm5iZiI6MTc2ODc5NTEyMSwicGF0aCI6Ii82MjcyNDU4My80NDI0NTY3MjMtNjYxZGUxN2MtYzIxNC00M2RhLTlkNDQtYTNhOGViMTUxMGZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTE5VDAzNTg0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3MzljZWMxNGIwZjNiZmY5MTk3NGU2OWM4NmZhNjdkNTU4MTg4ODJjMjlhMjIyYTFhYmI5OGJlYTdjMmYzMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.n147N1Mlm0eMstHNL7gMZhfsx2ROgPQQVmAZyWt40Uc
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.