I tried the following very known example of %alias in Jupiter Notebook:
%alias bracket echo "Input in brackets: <%l>" bracket hello world
This is supposed to output:
Input in brackets: <hello world>
Instead, I get the following:
File "<ipython-input-12-237eb6e9d860>", line 1 alias bracket echo "Input in brackets: <%l>" ^ SyntaxError: invalid syntax
I have cleared everything, shutdown the book and even restarted the kernel. So it's not a question of some "garbage" in cache. I have tried a lot of different things with
%alias. Nothing works. I even get "'xxx' is not defined", where 'xxx' is the name used for alias.
1) If I execute just
bracket (no argument), I receive an error: "bracket is not defined". I find this quite crazy. I hope you don't and know the reason why this happens.
2) I am using Jupyter Notebook 5.6.0.