Issue
I want to check the current value of a magic command %xmode
. The available mode is Context
, Plain
, and Verbose
.
If you just type in %xmode
, then it automatically switches to the next value. Certainly, you can know which value it was set to, but it is a pain to run the same command two more times to set it back to the original value.
So is it possible to only chech the value, without changing it?
Solution
We can run the following line to get the current xmode
from an IPython terminal
get_ipython().config['InteractiveShell']['xmode']
Answered By - user6764549
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.