René's URL Explorer Experiment


Title: Better interoperability with pipenv · Issue #114 · python-virtualenvwrapper/virtualenvwrapper · GitHub

Open Graph Title: Better interoperability with pipenv · Issue #114 · python-virtualenvwrapper/virtualenvwrapper

X Title: Better interoperability with pipenv · Issue #114 · python-virtualenvwrapper/virtualenvwrapper

Description: Problem pipenv is a very popular manager for virtual environments and respects WORKON_HOME through pev, but environments created by pipenv end in a hash that causes it to be a little inconvenient to use virtualenvwrapper with pipenv. Pro...

Open Graph Description: Problem pipenv is a very popular manager for virtual environments and respects WORKON_HOME through pev, but environments created by pipenv end in a hash that causes it to be a little inconvenient t...

X Description: Problem pipenv is a very popular manager for virtual environments and respects WORKON_HOME through pev, but environments created by pipenv end in a hash that causes it to be a little inconvenient t...

Opengraph URL: https://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Better interoperability with pipenv","articleBody":"## Problem\r\n\r\n`pipenv` is a very popular manager for virtual environments and respects `WORKON_HOME` through `pev`, but environments created by `pipenv` end in a hash that causes it to be a little inconvenient to use `virtualenvwrapper` with `pipenv.`\r\n\r\n## Proposed Solution\r\n\r\n`workon` should have an argument to determine the virtualenv directory from the current directory path, using the same logic as `pipenv`.   I think it should be something like `workon --pipenv`.\r\n\r\n## Workaround\r\n\r\nIt isn't that hard if you already can write shell functions and import them when you launch your shell.  My current one looks like this:\r\n\r\n```shell\r\nfunction workonenv () \r\n{ \r\n    if [[ $# -ne 0 ]]; then\r\n        echo \"Usage: $0\" 1\u003e\u00262;\r\n        return 1;\r\n    else\r\n        if [[ ! -f \"./Pipfile\" ]]; then\r\n            echo \"./Pipfile: file not found\" 1\u003e\u00262;\r\n            return 1;\r\n        else\r\n            if [[ -n \"$VIRTUAL_ENV\" ]]; then\r\n                echo \"do not use this command from within a virtualenv\" 1\u003e\u00262;\r\n                return 1;\r\n            fi;\r\n        fi;\r\n    fi;\r\n    ENV_NAME=$(python -c \"from pipenv.project import Project; print(Project('.').virtualenv_name)\");\r\n    HAVE_WORKON=$(type workon | head -1);\r\n    if [[ \"$HAVE_WORKON\" != \"workon is a function\" ]]; then\r\n        echo \"virtualenvwrapper may not be active\" 1\u003e\u00262;\r\n        return 1;\r\n    fi;\r\n    workon $ENV_NAME\r\n}\r\n```\r\n\r\n## Downsides with Workaround\r\n\r\nThe workaround isn't perfect.  Because it isn't part of virtualenvwrapper, it is harder to carry it with me.  It also doesn't recognize that this is different from a normal argument to workon:\r\n\r\n```shell\r\n$ workonenv \r\nERROR: Environment 'scrapeboa-L7gq2F0U' does not exist. Create it with 'mkvirtualenv scrapeboa-L7gq2F0U'.\r\n$ pipenv sync -d\r\n...\r\n$ workonenv\r\n(scrapeboa) $ \r\n```","author":{"url":"https://github.com/danizen","@type":"Person","name":"danizen"},"datePublished":"2024-11-20T03:11:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/114/virtualenvwrapper/issues/114"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6dd6e823-355d-174d-f704-c0b6bdc3dd74
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCE40:2E3F95:1390614:1B0EB95:696A943B
html-safe-nonced4dc82b97e59759c4290e41801867b69144f13b8068562d432082b1606d0fe5c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTQwOjJFM0Y5NToxMzkwNjE0OjFCMEVCOTU6Njk2QTk0M0IiLCJ2aXNpdG9yX2lkIjoiMjc3ODcwMjM4MzIzNzczMTM4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1c1530ade0bfe88f4cc1d5642243b4cd486c5c349567daddaea9baa4053cef4b
hovercard-subject-tagissue:2674200129
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-virtualenvwrapper/virtualenvwrapper/114/issue_layout
twitter:imagehttps://opengraph.githubassets.com/23e035b44bae7cb0f46d0cb32a0067e3c51634175712c12b4bc62b7c97fe1db1/python-virtualenvwrapper/virtualenvwrapper/issues/114
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/23e035b44bae7cb0f46d0cb32a0067e3c51634175712c12b4bc62b7c97fe1db1/python-virtualenvwrapper/virtualenvwrapper/issues/114
og:image:altProblem pipenv is a very popular manager for virtual environments and respects WORKON_HOME through pev, but environments created by pipenv end in a hash that causes it to be a little inconvenient t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedanizen
hostnamegithub.com
expected-hostnamegithub.com
None4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7
turbo-cache-controlno-preview
go-importgithub.com/python-virtualenvwrapper/virtualenvwrapper git https://github.com/python-virtualenvwrapper/virtualenvwrapper.git
octolytics-dimension-user_id122572748
octolytics-dimension-user_loginpython-virtualenvwrapper
octolytics-dimension-repository_id589228542
octolytics-dimension-repository_nwopython-virtualenvwrapper/virtualenvwrapper
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id589228542
octolytics-dimension-repository_network_root_nwopython-virtualenvwrapper/virtualenvwrapper
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
release31496a13b80a2f6ad77d6c617ee2255a3545b539
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-virtualenvwrapper%2Fvirtualenvwrapper%2Fissues%2F114
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%2Fpython-virtualenvwrapper%2Fvirtualenvwrapper%2Fissues%2F114
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=python-virtualenvwrapper%2Fvirtualenvwrapper
Reloadhttps://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114
Reloadhttps://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114
Reloadhttps://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114
python-virtualenvwrapper https://github.com/python-virtualenvwrapper
virtualenvwrapperhttps://github.com/python-virtualenvwrapper/virtualenvwrapper
Notifications https://github.com/login?return_to=%2Fpython-virtualenvwrapper%2Fvirtualenvwrapper
Fork 24 https://github.com/login?return_to=%2Fpython-virtualenvwrapper%2Fvirtualenvwrapper
Star 163 https://github.com/login?return_to=%2Fpython-virtualenvwrapper%2Fvirtualenvwrapper
Code https://github.com/python-virtualenvwrapper/virtualenvwrapper
Issues 10 https://github.com/python-virtualenvwrapper/virtualenvwrapper/issues
Pull requests 1 https://github.com/python-virtualenvwrapper/virtualenvwrapper/pulls
Discussions https://github.com/python-virtualenvwrapper/virtualenvwrapper/discussions
Actions https://github.com/python-virtualenvwrapper/virtualenvwrapper/actions
Projects 0 https://github.com/python-virtualenvwrapper/virtualenvwrapper/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python-virtualenvwrapper/virtualenvwrapper/security
Please reload this pagehttps://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114
Insights https://github.com/python-virtualenvwrapper/virtualenvwrapper/pulse
Code https://github.com/python-virtualenvwrapper/virtualenvwrapper
Issues https://github.com/python-virtualenvwrapper/virtualenvwrapper/issues
Pull requests https://github.com/python-virtualenvwrapper/virtualenvwrapper/pulls
Discussions https://github.com/python-virtualenvwrapper/virtualenvwrapper/discussions
Actions https://github.com/python-virtualenvwrapper/virtualenvwrapper/actions
Projects https://github.com/python-virtualenvwrapper/virtualenvwrapper/projects
Security https://github.com/python-virtualenvwrapper/virtualenvwrapper/security
Insights https://github.com/python-virtualenvwrapper/virtualenvwrapper/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114
New issuehttps://github.com/login?return_to=https://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114
Better interoperability with pipenvhttps://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114#top
https://github.com/danizen
https://github.com/danizen
danizenhttps://github.com/danizen
on Nov 20, 2024https://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/114#issue-2674200129
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.