Syntax for arguments in the %%snoop IPython magic command?
Opened this issue · 0 comments
alexmojaki commented
Currently it's not possible to pass any arguments to %%snoop
. I'd like it to have the same arguments as snoop()
. But magic commands are not functions, and arguments work differently. The command simply receives the line containing %%snoop
as a string which is then parsed. The convention for most commands is to use shell-like syntax for arguments which are parsed with argparse. So the command might look something like:
%%snoop --depth 2 --watch self.foo,bar[0] --watch-explode thing,bob
Does that look good? I'm not sure I like this convention personally, but I don't use IPython much.
What about short versions of arguments? Should I provide them at all? How do these look?
-d
for--depth
-w
for--watch
-e
(or-x
?) for--watch-explode