TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Magics classes in IPython

3 点作者 switowski大约 6 年前

1 comment

switowski大约 6 年前
I&#x27;ve been writing a short series of articles about magic functions in IPython. In the previous parts, I&#x27;ve explained how the line and cell magic works and how to create your own by decorating a function.<p>In the last part, I&#x27;m explaining:<p>* What are Magics classes?<p>* How are they different from magic functions and when you might want to use one or the other?<p>* How to create a type checker for Python type hints (that works on previous commands, similar to how %history works)?<p>Check out the article here: <a href="https:&#x2F;&#x2F;switowski.com&#x2F;python&#x2F;ipython&#x2F;2019&#x2F;02&#x2F;15&#x2F;creating-magic-functions-part3.html" rel="nofollow">https:&#x2F;&#x2F;switowski.com&#x2F;python&#x2F;ipython&#x2F;2019&#x2F;02&#x2F;15&#x2F;creating-mag...</a>