Can we configure the output from the interactive window to use double quotes instead of single quotes? #12173
Unanswered
leobeeson
asked this question in
Questions and Answers
Replies: 1 comment
-
that's not supported at the moment, we just output whatever the kernel provides. It looks like the kernel has its own handling of when to use which quote, so would be tough for us to handle the different cases: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I often copy output data (from a Python dict object) in the interactive window and analyse it on a text editor as "pretified" json data. This helps me quickly eyeball my development.
However, the interactive output is always printed with single quotes, so if I want to copy and paste it in a text editor and "prettify" the json to then analyse it, I first have to manually replace all single quotes with double quotes. This is not always trivial, specially with keys that have a single quote in the form of an apostrophe or a contraction (e.g.
I'm
).I've tried looking for a settings parameter to do this, but haven't found anything for the interactive window. Is it possible? Or is the interactive output hardcoded to always print single quotes?
I can always json.dump() to file, but that defeats the purpose of the interactive window, takes longer (and I might want to iterate an eyeball the output of some process several dozen times in one sitting), as well as forces me to persist data that I have no need to persist.
Similar discussions:
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions