To my surprise, I forgot to type the `%` but `relo...
# random
n
To my surprise, I forgot to type the
%
but
reload_kedro
seems to behave just like
%reload_kedro
, maybe it's a IPython specific thing?
d
huh, surprising
n
Hm... that's too magical.
reload_kedro(".")
and
reload_kedro .
both run (The former one fail with error but is valid syntax, the latter run successfully as expected)
d
what about with quotes?
oh no
yeah the first one is the only thing that makes sense
n
It seems that
reload_kedro()
is triggering the python function while
reload_kedro .
is triggering the magic instead.
I am not sure how it works, it doesn't get imported to the local namespace.
d
Magic is literally in the name
😂 4
j
yeah IPython is famous for making these kind of decisions to "simplify" scientists workflow... side effect is making everything more confusing
f
You can also try
ls
(which I think is expanded to
!ls
, or maybe
%ls
and could be confusing also)
👀 1
d