2020 应该如何享用 Jupyter?

原文: PyCoder's Weekly - Issue #411

PyCoder

  • 200311 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 200311 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.

Who loves debugging things that only fail occasionally? Just me? Maybe you need to check out Andy Jones’ extract() function that “magically” extracts a caller’s environment into an IPython interpreter session. Mix in a little post-mortem debugging with Jupyter’s %debug magic command, and you’ll be painlessly debugging finicky code in no time.

(是也乎:

神奇的事后验尸, extract() 能将调用者环境装配人 Jupyter 进行细致的检验.

)

In this first of a three-part blog post, LJ Miranda surveys the data science landscape and discusses the forces that push data science tools to evolve.

(是也乎:

一个系列, 刚刚发布第一篇, 1: 数据科学的笔记本 /2: 2020我的笔记本 /3: 笔记本的未来..

是的, 笔记本从实体的, 到电脑形态, 现在又是一种可计算文档的指代了...

其实, 对 Jupyter 的发展是看好的, 但是, 对其最终产品形态不明朗, 因为 notebook 形式非常创意的将 开发/调试/笔记/发行 很好的揉合在一起; 唯独没对运行时有考虑...这就比较尴尬了...

Jupyter

)

A core maintainer of the popular psycopg2 PostgreSQL adapter for Python discusses breaking changes he would like to see in a hypothetical pyscopg3 project, including better query/parameter separation, more sensible context manager behavior with connections, and async support.

(是也乎:

psycopg3

当大家大规模从 MySQL 迁移到 Pq , 各种模块就大发展起来了...

)

In this tutorial, you’ll become an Alexa Python developer by deploying your own Alexa skill. You’ll build an application that users will interact with using voice commands to Amazon Alexa devices. Your skill will respond back with a random joke when invoked by the user!

(是也乎:

Alexa

Amazon 全家桶开发环境...

)

“PyCon continues to closely monitor the Coronavirus (also known as COVID-19) situation. As of March 6, PyCon 2020 in Pittsburgh, Pennsylvania is scheduled to take place.”

(是也乎:

PyCon 官方还在使用 BLOGSPOT.COM, 最早也最稳定的 blog 服务.

)

讨论

Discussions

An epic Twitter thread. It’s still active almost two weeks later, with tons of heavyweights chiming in.

(是也乎:

哦...Windows 永远的编程之敌.

)

Stefan Pochmann investigates memory allocation for three methods of creating a list from an iterable a: list(a), [x for x in a], and [a]. The last method, [a], always overallocates memory for the list.

文章,教程和嗯哼

Articles, Tutorials and Talks

“GitHub’s own CI called GitHub Actions has been out of closed beta for a while and offers generous free quotas and a seamless integration with the rest of the site. Let’s have a look on how to use it for an open source Python package.”

(是也乎:

GitHub 进入 微软后, 果然必定上了云, 那么 AWS Lambda 对标物也就来了...

只是, 刚刚开始, 一切都会有的.

)

As the adoption of asynchronous Python grows, the ability to reliably test asynchronous code is increasingly important. In this tutorial, Dino Costa shows you how to leverage Future objects in Python 3.7 and the AsyncMock object added in Python 3.8 to easily test asynchronous functions.

Syntactic unification is the process of solving equations between symbolic expressions. Unification has applications in type systems and logic programming. In this article, Cassie Jones shows you how to implement a unification algorithm in just 30 lines of Python!

(是也乎:

呵..JONES, 语法问题不在系统, 而在人...

)

In this beginner tutorial, you’ll learn how to define and call your own Python functions. You’ll also learn about passing data to your function, and returning data from your function back to its calling environment.

“Everyone’s insistence on getting rid of Python 2 is magically transforming all of this perfectly functional and useful Python 2 code we have from an asset to a liability. You can imagine how I feel about that.”

(是也乎:

想正直替代 Python2 ? 还早...

)

Django URLs expect to send a response back to a user. Where does that response come from? A Django view. This article looks into the fundamentals of views and how to use them in your project.

Gradient descent is one of the most fundamental optimization techniques used in machine learning. Learn the ins and outs of gradient descent by implementing it from scratch in Python.

(是也乎:

Gradient Descent

梯度下降来龙去脉...

)

“Here’s what happens when you build around Python, Gunicorn, Gevent, and web requests instead of something more sensible.” Although pessimistic, this was an interesting read.

(是也乎:

一个悲观而有趣的观点...

)

Learn how Python main functions are used and some best practices to organize your code so it can be executed as a script and imported from another module.

(是也乎:

main

真蟒, 开始加大短视频的输出了...

)

Real Python and PyCoder’s own David Amos guest hosts Python Bytes, talking about PEP 614, macOS menu bar apps with Python, test coverage, and more.

(是也乎:

真蟒 和 PyCoder 联合出品.. 不过, 是真感觉 老爹 退休后, EPE 的接受加速了.

)

Shipping dependencies for your scripts as a single file, built with shiv.

(是也乎:

shiv

这个实用,算是最简洁的一种发行形式了...

Using Pandas from .shiv/_lib-pandas_23b2d2/site-packages/pandas 

Python path:
                                                Path
0                                  ~/bin/_lib-pandas
1                              /usr/lib/python38.zip
2                                 /usr/lib/python3.8
3                     /usr/lib/python3.8/lib-dynload
4  ~/.shiv/_lib-pandas_23b2bb7d64c26139950435a64d...

除了首次运行要解开和加载有点儿慢, 其它没什么不同.

)

好物

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

posthog

针对开源项目的自动化分析; 收集并可视化网站/app 的所有事件, 以便辅助决策... 基于 Django.

)

(是也乎:

covid

可以说是 wuhan2020 的模块版.

)

📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心

(是也乎:

PyMNTos

经常活动的 MeetUP, 场地也非常亲切...

)

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

(是也乎:

nCoV 最新海外信息

文科生的战斗, 虽然没办法象 wuhan2020 们那样快速组织工程师, 先于国家完成各种实用系统;

但是, 文科生通过大量海外报道的浏览/对比/翻译/报道/...

可以帮助人们通过真实世界的反应, 来更好的理解当前状态.

而且, 一个完全没有技术基础的文科团队, 自然通过 github 完成所有协同, 实在..感动 -> github 太好用了.

)

PS:


NN 3949

好文笔,感叹号年度配额: 1/3


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
全国大会: PyChina (订阅号: PyChinaOrg)
本地社区: 
    GDG珠海 (订阅号: GDG-ZhuHai)
    TFUG珠海 (订阅号: ZH_TFUG)
历史吐糟: Chaos42 (订阅号 PythoniCamp)


Comments



精品小班 101camp7py 开始报名:

  • 报名结束: 2020.4.20
  • 正式开课: 2020.4.26
  • 课程结束: 2020.6.7
101camp7py

蟒营™式 原创课程

伴你重享学习乐趣

py.101.camp

Reactivate Joy by Self-teach with You


任何问题可先进入知识星球(免费)咨询:
FAQ

关注公众号, 持续获得相关各种咨询:
mainium


追问

任何问题, 随时邮件提问可也:
ask@101.camp