2020 应该如何享用 Jupyter?
原文: PyCoder's Weekly - Issue #411
- 200311 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
- 200311 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.
- Post-Mortem Python 绘图
- ANDY JONES
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 进行细致的检验.
)
- 2020 年如何用 Jupyter 笔记本
- LJ MIRANDA
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 形式非常创意的将 开发/调试/笔记/发行 很好的揉合在一起; 唯独没对运行时有考虑...这就比较尴尬了...
)
- 思考 psycopg3
- DANIELE VARRAZZO
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.
(是也乎:
当大家大规模从 MySQL 迁移到 Pq , 各种模块就大发展起来了...
)
- Alexa Python 开发: 构建和部署 Alexa Skill
- REAL PYTHON
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!
(是也乎:
Amazon 全家桶开发环境...
)
- PyCon 2020 为 COVID-19 更新
- PYCON.BLOGSPOT.COM
“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
- 关于 Windows CPython 安装程序中的“将Python 3.X添加到PATH”复选框…
- TWITTER.COM/BITECODE_DEV
An epic Twitter thread. It’s still active almost two weeks later, with tons of heavyweights chiming in.
(是也乎:
哦...Windows 永远的编程之敌.
)
- 什么导致了 [*a] to Overallocate?
- STACK OVERFLOW
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
- Python 在 GitHub Actions
- HYNEK SCHLAWACK
“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 对标物也就来了...
只是, 刚刚开始, 一切都会有的.
)
- 在 Python 模拟异步函数
- DINO COSTA
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.
- 语法统一很容易 !-)
- CASSIE JONES
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, 语法问题不在系统, 而在人...
)
- 定义自己的 Python 函数
- REAL PYTHON
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.
- 从 Linux 发行版删除 Python 2 的叕一个冲击
- CHRIS SIEBENMANN
- opinion
“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: Views 中的 Views
- MATT LAYMAN
- • Shared by Matt Layman
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.
- 从头开始梯度下降
- PHILIPP MUENS
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.
(是也乎:
梯度下降来龙去脉...
)
- 咱们必须谈论这个Python/Gunicorn/Gevent/...
- RACHELBYTHEBAY.COM
- opinion
“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.
(是也乎:
一个悲观而有趣的观点...
)
- Python 中定义 main 函式
- REAL PYTHON
- video
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.
(是也乎:
真蟒, 开始加大短视频的输出了...
)
- Episode #171: PEP 614 冷却 Python Decorators
- PYTHON BYTES
- podcast
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 的接受加速了.
)
- 在 ZIP 压缩包中捆绑 Python 依赖项
- JÜRGEN HERMANN
- • Shared by Jürgen Hermann
Shipping dependencies for your scripts as a single file, built with shiv.
(是也乎:
这个实用,算是最简洁的一种发行形式了...
Using Pandas from .shiv/_lib-pandas_23b2…d2/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...
除了首次运行要解开和加载有点儿慢, 其它没什么不同.
)
- 信号处理在机器学习中的应用
- VAIDHEESWARAN ARCHANA
好物
Interesting Projects, Tools and Libraries, Projects & Code
-
enum-switch: Python 基于枚举的Switch实现
- ROBERTO ALSINA
-
- GITHUB.COM/POSTHOG
(是也乎:
针对开源项目的自动化分析; 收集并可视化网站/app 的所有事件, 以便辅助决策... 基于 Django.
)
-
- GITHUB.COM/BENEDEKROZEMBERCZKI
-
- GITHUB.COM/NTERACT
-
covid-19-analysis: 用于生成新冠趋势可视化报告的 Python 包
- GITHUB.COM/AARONWARD
(是也乎:
可以说是 wuhan2020 的模块版.
)
-
aiohttp-swagger3: 根据不同 UI 后端显示对应 Swagger 文档
- GITHUB.COM/HH-H
- • Shared by hh-h
-
- GITHUB.COM/ALEXANDREDECAN
- • Shared by Alexandre Decan
-
pytest-responsemock: Pytest的简化请求模拟
- GITHUB.COM/IDLESIGN
- • Shared by pythonz
📆🐍 活动/大会
Events, MeetUp 真的是全球线下活动组织中心
-
⋅ EuroPython 2020: Call for Proposals Now Open
- 爱尔兰
-
- March 12, 2020
- USA
- 明尼苏达
(是也乎:
经常活动的 MeetUP, 场地也非常亲切...
)
-
- March 12, 2020
- USA
-
⋅ HackBVICAM National Student’s Convention 2k20
- March 13 to March 14, 2020
- ?
-
- March 14 to March 15, 2020
- USA
-
⋅ DFW Pythoneers 2nd Saturday Teaching Meeting
- March 14, 2020
- USA,TX
-
- March 14, 2020
- 印度
DAMA
❤️ Happy Pythonic ;-(
大妈私人无责任播报
)
- Academic-nCoV/2019-nCoV Wiki
- github
(是也乎:
文科生的战斗, 虽然没办法象 wuhan2020 们那样快速组织工程师, 先于国家完成各种实用系统;
但是, 文科生通过大量海外报道的浏览/对比/翻译/报道/...
可以帮助人们通过真实世界的反应, 来更好的理解当前状态.
而且, 一个完全没有技术基础的文科团队, 自然通过 github 完成所有协同, 实在..感动 -> github 太好用了.
)
PS:
NN 3949
好文笔,感叹号年度配额: 1/3
ZoomQuiet/大妈
就是四处 是也乎,( ̄▽ ̄)
的那个大妈:
私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
全国大会: PyChina (订阅号: PyChinaOrg)
本地社区:
GDG珠海 (订阅号: GDG-ZhuHai)
TFUG珠海 (订阅号: ZH_TFUG)
历史吐糟: Chaos42 (订阅号 PythoniCamp)
Comments