René's URL Explorer Experiment


Title: Evaluating operations outside the `with` block in Jupyter Notebook grows the `graph.operations` dict · Issue #55 · spotify/pythonflow · GitHub

Open Graph Title: Evaluating operations outside the `with` block in Jupyter Notebook grows the `graph.operations` dict · Issue #55 · spotify/pythonflow

X Title: Evaluating operations outside the `with` block in Jupyter Notebook grows the `graph.operations` dict · Issue #55 · spotify/pythonflow

Description: This seem like a bug, and probably related to fact that I am running this in a jupyter notebook. Given this example: import pythonflow as pf with pf.Graph() as graph: a = pf.constant(4, name='a') b = pf.constant(38, name='b') x = (a + b)...

Open Graph Description: This seem like a bug, and probably related to fact that I am running this in a jupyter notebook. Given this example: import pythonflow as pf with pf.Graph() as graph: a = pf.constant(4, name='a') b...

X Description: This seem like a bug, and probably related to fact that I am running this in a jupyter notebook. Given this example: import pythonflow as pf with pf.Graph() as graph: a = pf.constant(4, name='a...

Opengraph URL: https://github.com/spotify/pythonflow/issues/55

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Evaluating operations outside the `with` block in Jupyter Notebook grows the `graph.operations` dict","articleBody":"This seem like a bug, and probably related to fact that I am running this in a `jupyter` notebook. Given this example:\r\n\r\n```python\r\nimport pythonflow as pf\r\n\r\nwith pf.Graph() as graph:\r\n    a = pf.constant(4, name='a')\r\n    b = pf.constant(38, name='b')\r\n    x = (a + b).set_name('x')\r\n```\r\n\r\nlooking at the `graph.operations` looks fine initially:\r\n\r\n```\r\n{'a': \u003cpf.func_op 'a' target=\u003cfunction identity at 0x106500310\u003e args=\u003c1 items\u003e kwargs=\u003c0 items\u003e\u003e,\r\n 'b': \u003cpf.func_op 'b' target=\u003cfunction identity at 0x106500310\u003e args=\u003c1 items\u003e kwargs=\u003c0 items\u003e\u003e,\r\n 'x': \u003cpf.func_op 'x' target=\u003cbuilt-in function add\u003e args=\u003c2 items\u003e kwargs=\u003c0 items\u003e\u003e}\r\n```\r\n\r\nHowever, if I evaluate any of the `Operation` instances in the notebook cell (e.g. `a` or `b` at the end of the cell) the dictionary with `graph.operations` grows with additional items (and continues growing by a dozen new `getattr` operations every time I evaluate any of the operations)\r\n\r\nHere a screenshot that is self-explaining:\r\n\r\n![image](https://github.com/spotify/pythonflow/assets/15058994/9ddd2bf4-d19b-4c2e-911b-1bf3122dde06)\r\n\r\nIs there a way to prevent this behavior?","author":{"url":"https://github.com/MatusGasparik","@type":"Person","name":"MatusGasparik"},"datePublished":"2023-05-09T13:06:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/55/pythonflow/issues/55"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5eaf2db1-aab4-f33e-0b76-92cea4dbe02a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCDB2:5EA33:A874C2:E6D4DC:6A4DE102
html-safe-noncee7e3a8015b0c8c74dd67cc10bb2b58f50d82046de3b30a6b8f73d2d0d03e5cba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREIyOjVFQTMzOkE4NzRDMjpFNkQ0REM6NkE0REUxMDIiLCJ2aXNpdG9yX2lkIjoiMzk3NTg4MDQ5MjQ2OTM3MzQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac900ca1efe2706b9a58f74a292de270db8c478e698bcb086ef1756c463ee2271c
hovercard-subject-tagissue:1701999490
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/spotify/pythonflow/55/issue_layout
twitter:imagehttps://opengraph.githubassets.com/54a9af7cb0d967b0489da70355df39818ca61ec812f7e8daaa89e127105046bc/spotify/pythonflow/issues/55
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/54a9af7cb0d967b0489da70355df39818ca61ec812f7e8daaa89e127105046bc/spotify/pythonflow/issues/55
og:image:altThis seem like a bug, and probably related to fact that I am running this in a jupyter notebook. Given this example: import pythonflow as pf with pf.Graph() as graph: a = pf.constant(4, name='a') b...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMatusGasparik
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/spotify/pythonflow git https://github.com/spotify/pythonflow.git
octolytics-dimension-user_id251374
octolytics-dimension-user_loginspotify
octolytics-dimension-repository_id102513092
octolytics-dimension-repository_nwospotify/pythonflow
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id102513092
octolytics-dimension-repository_network_root_nwospotify/pythonflow
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
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/spotify/pythonflow/issues/55#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fspotify%2Fpythonflow%2Fissues%2F55
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%2Fspotify%2Fpythonflow%2Fissues%2F55
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=spotify%2Fpythonflow
Reloadhttps://github.com/spotify/pythonflow/issues/55
Reloadhttps://github.com/spotify/pythonflow/issues/55
Reloadhttps://github.com/spotify/pythonflow/issues/55
Please reload this pagehttps://github.com/spotify/pythonflow/issues/55
spotify https://github.com/spotify
pythonflowhttps://github.com/spotify/pythonflow
Notifications https://github.com/login?return_to=%2Fspotify%2Fpythonflow
Fork 47 https://github.com/login?return_to=%2Fspotify%2Fpythonflow
Star 291 https://github.com/login?return_to=%2Fspotify%2Fpythonflow
Code https://github.com/spotify/pythonflow
Issues 2 https://github.com/spotify/pythonflow/issues
Pull requests 2 https://github.com/spotify/pythonflow/pulls
Actions https://github.com/spotify/pythonflow/actions
Security and quality 0 https://github.com/spotify/pythonflow/security
Insights https://github.com/spotify/pythonflow/pulse
Code https://github.com/spotify/pythonflow
Issues https://github.com/spotify/pythonflow/issues
Pull requests https://github.com/spotify/pythonflow/pulls
Actions https://github.com/spotify/pythonflow/actions
Security and quality https://github.com/spotify/pythonflow/security
Insights https://github.com/spotify/pythonflow/pulse
Evaluating operations outside the with block in Jupyter Notebook grows the graph.operations dicthttps://github.com/spotify/pythonflow/issues/55#top
https://github.com/MatusGasparik
MatusGasparikhttps://github.com/MatusGasparik
on May 9, 2023https://github.com/spotify/pythonflow/issues/55#issue-1701999490
https://private-user-images.githubusercontent.com/15058994/237100886-9ddd2bf4-d19b-4c2e-911b-1bf3122dde06.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM0ODkwNzEsIm5iZiI6MTc4MzQ4ODc3MSwicGF0aCI6Ii8xNTA1ODk5NC8yMzcxMDA4ODYtOWRkZDJiZjQtZDE5Yi00YzJlLTkxMWItMWJmMzEyMmRkZTA2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzA4VDA1MzI1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0OTg1ODhjMTkxN2M2ZjhlM2U2YmM4ZDU2NDNlYTE1YTQ0MDE0YjMxNzRlNDJhYWNkYjA0MzRmODAyMmI2MmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.CFsbrZRPhT5fAakqzyV28RqKnoiwu5TlJ2RWyegAUJQ
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.