Hacker Newsnew | past | comments | ask | show | jobs | submit | switowski's commentslogin

Sounds useful, I will read it later!


Damn, your post is doing better than mine when I originally posted it last week: https://news.ycombinator.com/item?id=21417621 Good job and thank you for reposting :-)


I've been writing a short series of articles about magic functions in IPython. In the previous parts, I've explained how the line and cell magic works and how to create your own by decorating a function.

In the last part, I'm explaining:

* What are Magics classes?

* How are they different from magic functions and when you might want to use one or the other?

* How to create a type checker for Python type hints (that works on previous commands, similar to how %history works)?

Check out the article here: https://switowski.com/python/ipython/2019/02/15/creating-mag...


Hey,

I've been writing a short series of articles about magic functions in IPython. If you are curious how to:

* Run JavaScript or Ruby code without leaving IPython

* Create a type checker that will use mypy to check blocks of code in IPython

* Or what is the difference between "line magic", "cell magic" and "line and cell" magic functions?

then check out the second part of the series: https://switowski.com/python/ipython/2019/02/08/creating-mag...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: