从一千万Jupyter Notebooks中发现...

原文: PyCoder's Weekly - Issue #453

pycoder

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

Python on GPUs has become a big topic for processing big data and scientific computing. In this article from the NVIDIA Developer Blog, you’ll learn how to leverage C++ in Python using Cython and the nvc++ library. There’s even a real-world example that illustrates the Jacobi method to solve a heat equation.

The JetBrains Datalore team downloaded ten million Jupyter Notebooks and analyzed them to determine things like which languages were the most popular, what kinds of content are in notebook cells, and how consistently notebooks can be reproduced. It’s a fascinating look into trends in data science technology!

(是也乎:

千万级别的 Jupyter 流行度分析.

Jupyter

这很 JetBrain

alert )

Learn how to customize Django’s admin with Python. You’ll use AdminModel objects to add display columns, calculate values, link to referring objects, and search and filter results. You’ll also use template overriding to gain full control over the admin’s HTML.

In the latest entry to his series on syntactic sugar, Brett Cannon explores boolean expressions. You’ll learn how boolean expressions “short circuit” and, as an unexpected bonus, a peek into how CPython “cheats” at variables.

This listicle is full of Python projects that you really should know about! Each library on the lists was launched or popularized in 2020 and has seen steady maintenance since its launch. Lots of great projects here!

(是也乎:

Typer 绝对是惊喜, 作为 FastAPI 的 CLI 版本, 感觉只是游戏之作, 但是, 在 CLICK 之上, 融合 FastAPI 的气质, 立即大热...

当然, 俺还是用 Invoke(来自 Febric 的习惯...)

Top 10

tryolabs.com 每年总结 top10 模块, 已经有年头了, 品味没毛病.

)

It’s been quite the year! The Real Python team has written, edited, curated, illustrated, and produced a mountain of Python articles this year. This year-end wrap-up shares a collection of articles that showcase a diversity of Python topics.

(是也乎:

Articles

有妺 ;-)

真蟒年回顾...

Tkinter 居然还是主流...

)

探讨/吐糟

Discussions

Charcoal? Chair? Car? Tupple? Two Pull? Sequel? Squeal? Why not end the year with a hearty discussion about pronunciation? (By the way… it’s “care.”)

(是也乎:

今年 PyCon中国, 上海大会, 有专门纠正发音的主题:

[PyCon China 2020] Python 技术名词发音指南 - 李辉_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili

)

(是也乎:

头些年, 老爹单人调用全球

guido

现在, 灿若星河...

pythonista

其中有多少中国人的身影呢?

)

文章/教程/嗯哼

Articles, Tutorials and Talks

This illustrated guide to NumPy is a great way to learn NumPy or brush up on the package. Full of great visual aides, this tutorial covers all the basics and more!

(是也乎:

NumPy 是隐身大佬,是否值得深入看场景.

)

In this post, Victor Stinner takes a look back at the progress made on isolating Python subinterpreters in 2019 and 2020. You’ll learn about the technical challenges that have been solved, the current status of the project, and what the future holds.

Claiming to be “the most in-depth article about the Zen of Python,” this post covers the history of the Zen as told through comments from Guido van Rossum, Tim Peters, Barry Warsaw, and other Python heavyweights.

(是也乎:

当年大家联合翻译过很多版本, 俺的

美丽好过丑陋,
浅显好过隐晦,
简单好过复合,
复合好过复杂,
扁平好过嵌套,
稀疏好过密集,
可读性最重要,
即使祭出实用性为理由,
    特例也不可违背这些规则.

不应默认包容所有错误,
    得由人明确的让它闭嘴;

面对太多的可能,不要尝试猜测;
应该有一个(且唯一)直白的解决方法;
当然,找到这个方法不是件容易的事
    ~谁叫你不是荷兰人呢?
但是: 现在就做比永远不做要好;

若实现方案很难解释,
那么它就不是一个好方案;
反之也成立;-)

名称空间是个绝妙想法.

--现在就来共同体验和增进这些吧!

)

Learn how to connect your Python application with a MySQL database. You’ll design a movie rating system and perform some common queries on it. You’ll also see best practices and tips to prevent SQL injection attacks.

(是也乎:

MySQL

是的, 无论 ProstgreSQL 多强大, 日常还是 俺的SQL 最常见.

scheme

这种关系设计, 也是苦手之一

)

Selecting and indexing items from pandas Series and DataFrame objects can be confusing. This article gives you a lucid breakdown of three ways to select elements from pandas objects and explains the differences between each one.

(是也乎:

Pandas 这方面作的最舒服了, 异常直觉, 只是, 空间浪费太大了...

)

Take a look at commonly used methods for handling web authentication for Python web development including the pros and cons of each method. You’ll see how to apply different methods to the Flask, Django, and FastAPI frameworks.

(是也乎:

自举的文章, 一般都不错.

)

Thanks to an Advent of Code challenge, author Hector Castro was exposed to the Cerberus Python package for data validation. Get a quick introduction to Cerberus and see Hector’s solution to an Advent of Code challenge in this quick-yet-informative read.

The mypy project brings static type checking to Python. This opinion piece explores the good and the bad of typed Python from the perspective of someone who wouldn’t grab Python for their day-to-day coding.

(是也乎:

不是 Joke 就好

)

好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

Detection

实时对象识别, 从低分辨率摄像头视频.

这是互联网视觉基础, 大规模上线时....

)

(是也乎:

SAP ?

呵...

)

(是也乎:

>>> v = Validator({'name': {'type': 'string'}})
>>> v.validate({'name': 'john doe'})
True

有效性检验库, 只是, JS 在入口已经完成了检验, 到 Python 这儿, 一般只有数据流水线时, 才需要?

那么, 这时, 吞吐量就是关键了.

)

(是也乎:

SQLite 作为内存数据库真,良心大物.

)

📆🐍 活动/大会

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

(是也乎:

等视频流出, 一直好奇 真蟒 团队中, 插画是专门设计师, 还是程序猿代劳?

目测, 后者可能性大.

)

(是也乎:

Pizza

我们有美好团, 很 easy 的.

)

(是也乎:

BelPy is a conference where Python users, or people interested in Python, gather to learn from each other and meet other members of the community. This is the first edition of BelPy, and will be entirely virtual due to the present circumstances. The BelPy team is continuing to work hard on making a conference that will allow everyone to have a great time and unlock new possibilities through Python. We are really excited to have you with us!

也是在线虚拟大会... 毛里求斯 主办?

)

DAMA

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

None

PS:


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

投稿/反馈邮箱:

askdama@googlegroups.com

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

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

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

NN 4243

RPP


Comments



自怼圈/年度番新

DU21.4
关于 ~ DebugUself with DAMA ;-)

关注公众号, 持续获得相关各种嗯哼:
zoomquiet

追问

任何问题, 随时邮件提问可也:
askdama@googlegroups.com