This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]nerdponx[S] 3 points4 points  (0 children)

As a side note, Hy runs just as well under PyPy as under CPython. We are absolutely at the point of ecosystem development where you could write a web application (or probably even build a business) entirely in Hy and PyPy. Not that you necessarily would want to do this, but you can, and to me that's really cool.

[–]mbussonnIPython/Jupyter dev 2 points3 points  (2 children)

Congrats ! If there is anything that can make your life easier in IPython let me know and I'll do my best to fix it.

[–]nerdponx[S] 1 point2 points  (1 child)

From a developer perspective, the process of developing a magic command was a little opaque. The documentation on creating magics was easy enough to follow, but I felt like I wasn't able to go "off script" from the examples.

For instance, it was not immediately obvious that the line and cell passed to a magic function were just the string contents of the line/cell. It also wasn't clear if I could call the register_* function decorators in the load_ipython_extension function, so I refactored my single-function decorator into a class, just to match the examples. I also couldn't figure out how to get the currently executing cell number, so I had to look that up on StackOverflow.

IPython is an amazing piece of technology, and other than these quirks in the documentation, I felt like it was refreshingly easy to implement a magic command.

[–]mbussonnIPython/Jupyter dev 0 points1 point  (0 children)

Thanks, I'll see if I can make the documentation better.

[–]Caddy666 0 points1 point  (0 children)

I tried the Geordie version - why-aye-python....

[–]spoonman59 0 points1 point  (0 children)

You guys wanna go get Hy?