You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Currently it's not possible to pass any arguments to
%%snoop
. I'd like it to have the same arguments assnoop()
. 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: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
The text was updated successfully, but these errors were encountered: