René's URL Explorer Experiment


Title: Eel with threading doesn't recognize exposed functions. · Issue #703 · python-eel/Eel · GitHub

Open Graph Title: Eel with threading doesn't recognize exposed functions. · Issue #703 · python-eel/Eel

X Title: Eel with threading doesn't recognize exposed functions. · Issue #703 · python-eel/Eel

Description: *Describe the problem I am trying to start an Eel window then run the rest of main.py. Since eel.start() blocks the program, I used threading to run it separately. This works exactly how I want it to, except for a strange error. Whenever...

Open Graph Description: *Describe the problem I am trying to start an Eel window then run the rest of main.py. Since eel.start() blocks the program, I used threading to run it separately. This works exactly how I want it ...

X Description: *Describe the problem I am trying to start an Eel window then run the rest of main.py. Since eel.start() blocks the program, I used threading to run it separately. This works exactly how I want it ...

Opengraph URL: https://github.com/python-eel/Eel/issues/703

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Eel with threading doesn't recognize exposed functions.","articleBody":"**Describe the problem*\r\nI am trying to start an Eel window then run the rest of main.py. Since eel.start() blocks the program, I used threading to run it separately.\r\nThis works exactly how I want it to, except for a strange error. \r\nWhenever I run main.py, I get \"AttributeError: module 'eel' has no attribute 'reload'\"\r\nHowever, in VSCode, if I open the tab that contains index.html (without changing anything), then run main.py again, the program works perfectly.\r\n\r\n**Code snippet(s)**\r\nHere is some code that can be easily used to reproduce the problem or understand what I need help with.\r\n`#guiLaunch.py\r\n\r\nimport eel\r\n\r\ndef Init():\r\n    eel.init('utils')\r\n\r\ndef OpenWeb():\r\n    eel.start('index.html')\r\n\r\ndef Reload():\r\n    eel.reload()`\r\n\r\n`#utils/index.html\r\n\r\n\u003cscript type=\"text/javascript\">\r\n  eel.expose(reload);\r\n  function reload() {\r\n    window.location.reload();\r\n  }\r\n\u003c/script>`\r\n\r\n`#main.py\r\n\r\nimport threading\r\nimport guiLaunch\r\n\r\nguiLaunch.Init()\r\nt1 = threading.Thread(target=guiLaunch.OpenWeb())\r\nt1.start()\r\n\r\n#in while loop roughly every 5 seconds:\r\neel.reload()`\r\n\r\n\r\nI read through the documentation and saw the recommendation of eel.start('index.html', block=False) and eel.spawn(), but this caused the site that was opened to not be found.\r\n\u003cimg width=\"339\" alt=\"image\" src=\"https://github.com/python-eel/Eel/assets/93734192/468dbd87-a761-49fa-9db5-4090a62e6544\">\r\n\r\n\r\n**Desktop**\r\n - OS: Windows\r\n - Browser Chrome\r\n - Version  Chrome 117.0.5938.132\r\n\r\n\r\n","author":{"url":"https://github.com/Carter03","@type":"Person","name":"Carter03"},"datePublished":"2023-10-02T23:26:11Z","url":"https://github.com/python-eel/Eel/issues/703"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:646a54e0-21cb-1978-c1e1-5a08d5e0dba0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id856E:22B196:57B8C8:7FD070:6AFDD3C5
html-safe-noncef60465680da9dbbf14aaee2c6ec1c489aee2b6ec530262ab983c99a93b686052
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTZFOjIyQjE5Njo1N0I4Qzg6N0ZEMDcwOjZBRkREM0M1IiwidmlzaXRvcl9pZCI6Ijc2MzczMDI0OTgxMjU3OTYyOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace9b3f17bd22e93351b311e3a4e55c1c17413f3a83c6bc06b937ffec594941d21
hovercard-subject-tagissue:1922984039
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/python-eel/Eel/703/issue_layout
twitter:imagehttps://opengraph.githubassets.com/446be86e53be805f91690867183a3252f9d31eccadc42e0b09329c58580f7d91/python-eel/Eel/issues/703
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/446be86e53be805f91690867183a3252f9d31eccadc42e0b09329c58580f7d91/python-eel/Eel/issues/703
og:image:alt*Describe the problem I am trying to start an Eel window then run the rest of main.py. Since eel.start() blocks the program, I used threading to run it separately. This works exactly how I want it ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCarter03
hostnamegithub.com
expected-hostnamegithub.com
None26886a40b582b821a7a76351e0a2f42b6d6160854b6e2520db24f31fd7be5da7
turbo-cache-controlno-preview
go-importgithub.com/python-eel/Eel git https://github.com/python-eel/Eel.git
octolytics-dimension-user_id114726397
octolytics-dimension-user_loginpython-eel
octolytics-dimension-repository_id115559503
octolytics-dimension-repository_nwopython-eel/Eel
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id115559503
octolytics-dimension-repository_network_root_nwopython-eel/Eel
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
release68ebaa631a1d248d69ebde4b9c5defd3a19aeb2f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python-eel/Eel/issues/703#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-eel%2FEel%2Fissues%2F703
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-eel%2FEel%2Fissues%2F703
Sign uphttps://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=python-eel%2FEel
Reloadhttps://github.com/python-eel/Eel/issues/703
Reloadhttps://github.com/python-eel/Eel/issues/703
Reloadhttps://github.com/python-eel/Eel/issues/703
python-eelhttps://github.com/python-eel
Eelhttps://github.com/python-eel/Eel
Codehttps://github.com/python-eel/Eel
Issues191 (191)https://github.com/python-eel/Eel/issues
Pull requests22 (22)https://github.com/python-eel/Eel/pulls
Actionshttps://github.com/python-eel/Eel/actions
Projectshttps://github.com/python-eel/Eel/projects
Security and qualityhttps://github.com/python-eel/Eel/security
Insightshttps://github.com/python-eel/Eel/insights
https://github.com/python-eel/Eel
Eel with threading doesn't recognize exposed functions.https://github.com/python-eel/Eel/issues/703#top
help wantedhttps://github.com/python-eel/Eel/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com/Carter03
Carter03https://github.com/Carter03
on Oct 2, 2023https://github.com/python-eel/Eel/issues/703#issue-1922984039
https://private-user-images.githubusercontent.com/93734192/272109143-468dbd87-a761-49fa-9db5-4090a62e6544.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUwMjAwMTgsIm5iZiI6MTc5NTAxOTcxOCwicGF0aCI6Ii85MzczNDE5Mi8yNzIxMDkxNDMtNDY4ZGJkODctYTc2MS00OWZhLTlkYjUtNDA5MGE2MmU2NTQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTE4VDE2MzUxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1N2Y2NTAyMjczYzE3MDlkNDc1ZDMyZWQ1YzA3Y2RkZjE5NDdkYmQ1ZThlNWY0MDM4MGI4YjA4ZTc0ZGE5NDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.aB-uIaT-SWuBPxrWKEK7kxgFLRFzQfD-PrpV3e65CEs
Carter03https://github.com/Carter03
help wantedhttps://github.com/python-eel/Eel/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Oct 2, 2023https://github.com/python-eel/Eel/issues/703#event-10531537636
Sign up for freehttps://github.com/signup?return_to=https://github.com/python-eel/Eel/issues/703
Sign in to commenthttps://github.com/login?return_to=https://github.com/python-eel/Eel/issues/703
help wantedhttps://github.com/python-eel/Eel/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
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.