question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`var = %env var` does not roundtrip

See original GitHub issue

var = %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:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
allcontributors[bot]commented, Nov 25, 2021

@MarcoGorelli

I’ve put up a pull request to add @danielsparing! 🎉

1reaction
MarcoGorellicommented, Nov 25, 2021

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found