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: github.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:85870cc6-9676-7099-5a67-e9693cd8831d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE6D0:220088:97731B:D2C154:696A8140
html-safe-nonce2b096366e26ed47a773bed2b9fea8c1f49ded60d7006f8b44dc5084f68c496da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkQwOjIyMDA4ODo5NzczMUI6RDJDMTU0OjY5NkE4MTQwIiwidmlzaXRvcl9pZCI6Ijg2OTQwMzY0MjM0MDU4OTYwMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4d9a2abb52afdb9bf4a43ea34ca3402890f2e1b5b8314adddbe22faedbf6fb21
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
None913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377
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
release5998c30593994bf2589055aef7b22d368a499367
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/scijava/scyjava/issues/84#start-of-content
https://github.com/
Sign in https://github.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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscyjava%2Fissues%2F84
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=scijava%2Fscyjava
Reloadhttps://github.com/scijava/scyjava/issues/84
Reloadhttps://github.com/scijava/scyjava/issues/84
Reloadhttps://github.com/scijava/scyjava/issues/84
scijava https://github.com/scijava
scyjavahttps://github.com/scijava/scyjava
Notifications https://github.com/login?return_to=%2Fscijava%2Fscyjava
Fork 15 https://github.com/login?return_to=%2Fscijava%2Fscyjava
Star 54 https://github.com/login?return_to=%2Fscijava%2Fscyjava
Code https://github.com/scijava/scyjava
Issues 16 https://github.com/scijava/scyjava/issues
Pull requests 2 https://github.com/scijava/scyjava/pulls
Actions https://github.com/scijava/scyjava/actions
Projects 0 https://github.com/scijava/scyjava/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/scijava/scyjava/security
Please reload this pagehttps://github.com/scijava/scyjava/issues/84
Insights https://github.com/scijava/scyjava/pulse
Code https://github.com/scijava/scyjava
Issues https://github.com/scijava/scyjava/issues
Pull requests https://github.com/scijava/scyjava/pulls
Actions https://github.com/scijava/scyjava/actions
Projects https://github.com/scijava/scyjava/projects
Security https://github.com/scijava/scyjava/security
Insights https://github.com/scijava/scyjava/pulse
New issuehttps://github.com/login?return_to=https://github.com/scijava/scyjava/issues/84
New issuehttps://github.com/login?return_to=https://github.com/scijava/scyjava/issues/84
Introspection in Fiji Script Editorhttps://github.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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg1ODc4ODQsIm5iZiI6MTc2ODU4NzU4NCwicGF0aCI6Ii82MjcyNDU4My80NDI0NTU2NDUtODQxMzEyMDgtOTAzYi00ZjczLWE5MjItZDg4NDE5ODI2ZmVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTE2VDE4MTk0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMzMzJkZGEyNTQyN2JkOGQxMGZjYzRkOTNlNDFmOTljZDVlODM3NWFiNWM4MDJkOGRhZjM5YjRjOTUzNjhkMmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jIxCgm_gxiO9CY-35jttFGS1bGYtnlUR8BBJCMALpjw
https://private-user-images.githubusercontent.com/62724583/442456723-661de17c-c214-43da-9d44-a3a8eb1510fb.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg1ODc4ODQsIm5iZiI6MTc2ODU4NzU4NCwicGF0aCI6Ii82MjcyNDU4My80NDI0NTY3MjMtNjYxZGUxN2MtYzIxNC00M2RhLTlkNDQtYTNhOGViMTUxMGZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTE2VDE4MTk0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ2YzgzZjdmY2E1YWUyYTY0NGRkMDAwMjY1NWI3ZDhkZDYyMDY4NTQ5YzNhMTRhY2NlNmZkOGQzZjg2NDg1YTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2EjHyV5b-tIQJsfh-RProAV-9twTUgRQJn7QBGCfbYo
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.