WASM 支持下跑在浏览器中的 Jupyter 原文: PyCoder’s Weekly - Issue #481 pycoder

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

  • 数据库事务太多
    • HAKI BENITA Learn how a bug was born — one that resulted in hundreds of users of an application getting a notification that they had been paid when in fact they had not! In this story, Haki Benita shares how a slip-up with Django signals caused him and his team quite a headache. You’ll learn how the application was architected, how the bug occurred, and how they fixed it, along with some other remedies to consider. (是也乎: 这得怪 SQL, 以及框架的隔离… )
  • 在 2021 Python 打包状态
    • BASTIAN VENTHUR
    • opinion What does Python packaging look like in 2021? What are the best tools to use? In this article, you’ll see one developer’s opinion about the state of Python packaging in 2021, what tools they are using the most often, and some thoughts on how the situation can continue to improve moving forward. (是也乎: BASTIAN 低产作者…知名作品: Creating Beautiful Github Streaks | Bastian Venthur’s Blog )
  • Python 新闻: 2021 年 6 月有什么新变化?
    • REAL PYTHON June 2021 was full of notable events in the Python world! In this article, you’ll get caught up on what’s been happening with Python during this past month, including some changes at the Python Software Foundation and the announcement of a new recipient of the PSF Fiscal Sponsorship Program. (是也乎: News )
  • Python 3.10.0b4 可用
    • CPYTHON DEV BLOG This is the last beta release, which means the next release will be the first release candidate.
  • Łukasz Langa -> 首位 CPython 筑地开发人员
    • PYTHON SOFTWARE FOUNDATION

探讨/吐糟

Discussions NULL


文章/教程/嗯哼

Articles, Tutorials and Talks

  • 探索 Python 中 functools 模块和复数
    • REAL PYTHON
    • podcast Are you ready to expand your Python knowledge into the intermediate to advanced territory? What tools are awaiting your discovery inside Python’s functools module? This week on the Real Python Podcast, David Amos is back, and he’s brought another batch of PyCoder’s Weekly articles and projects. (是也乎: functools )
  • Pyflyby: 提高 Jupyter 交互式会话效率
    • MATTHIAS BUSSONNIER
    • AND AARON MEURER There’s a new tool in town that aims to improve Python developer focus and minimize distractions while coding, especially in Jupyter Notebooks. That new tool is pyflyby, and it can handle tidying up and collecting imports and exports from Python modules. For example, in a Jupyter Notebook, pyflyby can automatically import the right modules and functions from NumPy if you use something in a cell without importing it first.
  • Copilot /用 Python 编写的文本游戏
    • SAGINDYK URAZAYEV GitHub’s new Copilot feature has a lot of people talking. The project’s goal is to be an AI pair programmer — a tool that can suggest entire lines of code or even entire functions! In this amusing article, one developer who gained access to Copilot’s technical preview shares how the AI wrote an entire text-based adventure game that turned out to be the solution to an exercise from a Python instructional book. (是也乎: TUI/CLI 永远是程序猿致亲, 优先折腾, 没毛病, vscode 嗯哼, VSCode 出镜率越来越高,

“workbench.colorTheme”: “Solarized Dark” 也是最常见的… )

  • 更友好的 Tracebacks 在 REPLs (包含 Jupyter)
    • ANDRÉ ROBERGE Tracebacks are often the start of any Python debugging journey. But tracebacks can be difficult to read and confusing to beginners. The friendly-traceback project aims to lift the veil of confusion for tracebacks by providing more helpful error messages with lots of context. New updates to the project include better tracebacks in Jupyter Notebooks! (是也乎: 可执行笔记们已经非常友好了, 还要友好化并错误追踪那真的是 IDE 了… Friendlier 这种功能内巻值得越来越多 )
  • 平方根函数在 Python
    • REAL PYTHON
    • course In this quick and practical course, you’ll learn what a square root is and how to calculate one in Python. You’ll even see how you can use the Python square root function to solve a real-world problem.

好物/妙品/

Interesting Projects, Tools and Libraries, Projects & Code

$ py b64decode aGVsbG8=
[PYFLYBY] from base64 import b64decode
[PYFLYBY] b64decode('aGVsbG8=', altchars=None)
'hello'
$ py log2 sys.maxint
[PYFLYBY] from numpy import log2
[PYFLYBY] import sys
[PYFLYBY] log2(9223372036854775807)
63.0
$ py 'plot(cos(arange(30)))'
[PYFLYBY] from numpy import arange
[PYFLYBY] from numpy import cos
[PYFLYBY] from matplotlib.pyplot import plot
[PYFLYBY] plot(cos(arange(30)))
<plot>
$ py 38497631 / 13951446
2.7594007818257693
$ py foo.py

不过, 要将这种超级包应用在生产中, 可就得有心理准备了… )


📆🐍 活动/大会

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


DAMA

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


PS


好文笔,感叹号年度配额: 2/3 投稿/反馈邮箱: [email protected] (邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越…)

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

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)
as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)