`var = %env var` does not roundtrip
See original GitHub issuevar = %env var
is used to assign an environment variable’s value to a Python variable.
When running e.g. nbqa black
(or isort
, pyupgrade
etc) on a cell containing such a construct, it gets transformed to the equivalent but harder to read var = get_ipython().run_line_magic("env", "var")
.
It would be great if this remained unedited.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Runtime env vars? · Discussion #1032 · vercel - GitHub
the current solution is (obviously) storing tokens externally which requires a round trip to database in each serverless function making the 3rd ...
Read more >How do I set an env var with a bash expression in GitHub ...
In GitHub Actions, I'd like to evaluate a bash expression and then assign it to an environment variable:
Read more >Environment Variables - Forms - Oracle Help Center
Setting this environment variable will have no effect if the ... Specifies whether to force an encryption handshake round trip to occur during...
Read more >net/http - Go Packages
ErrNoLocation is returned by Response's Location method when no Location header is present. View Source var ErrServerClosed = errors.New("http: Server closed").
Read more >env-var - npm
Attempt to parse the variable to an integer. Throws an exception if parsing fails. This is a strict check, meaning that if the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@MarcoGorelli
I’ve put up a pull request to add @danielsparing! 🎉
@danielsparing this should be fixed in nbQA version 1.2.2, would really appreciate it if you could check and report back if that’s not the case
Thanks again for your report!