Jupyter+git 问题已解决

原文: PyCoder's Weekly - Issue #542

pycoder

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

List comprehensions have a lot of depth. This article takes you beyond the basics and explains nested comprehensions, multiple conditionals, exceptions, breaking the loop, and more.

(是也乎:

这在 Python一行流 (2021) 中进行了充分的讨论...

)

Amazon’s CodeWhisperer is a machine-learning based coding assistant which is currently in beta. Learn about its capabilities and limitations.

(是也乎:

可惜是 AWS only 的东西...

)

“A Denial Of Service (DoS) issue was identified in CPython because we use binary bignum’s for our int implementation. A huge integer will always consume a near-quadratic amount of CPU time in conversion to or from a base 10 (decimal) string with a large number of digits. No efficient algorithm exists to do otherwise.”


探讨/吐糟

Discussions

PyPI is running a survey on the state of packaging in Python. Fill in the survey and tell the world what you told them in the HN discussion.

(是也乎:

399,738     projects 
3,773,941   releases 
6,697,875   files 
622,018     users

)


文章/教程/嗯哼

Articles, Tutorials and Talks

There’s no way around HTML and CSS when you want to build web apps. Even if you’re not aiming to become a web developer, knowing the basics of HTML and CSS will help you understand the web better. In this tutorial, you’ll get an introduction to HTML and CSS for Python programmers.

(是也乎:

CSS.py

嗯哼? HTML 从来不是问题, 问题在 CSS...

)

Have you wanted to understand recursion and how to use it in Python? Are you familiar with the call stack and how it relates to tracebacks? This week on the show, Al Sweigart talks about his new book, “The Recursive Book of Recursion.”

(是也乎:

Al

)

This article describes how to take an old pair of PC speakers and make them usable with Bluetooth. Learn about the PipeWire library, how to configure your Raspberry Pi, and the short Python script you need to glue it all together.

(是也乎:

speaker-agent.service

[Unit]
Description=Bluetooth speaker agent

[Service]
ExecStart=python speaker-agent.py

[Install]
WantedBy=default.target

)

Git and Jupyter just don’t get along. Merge conflicts break things, but not anymore. The nbdev2 package provides tools to allow merges in your Jupyter notebook. This article explains the problem and how it was addressed.

(是也乎:

好消息 ;-)

)

A light introduction to the Python pickle protocol, the Pickle Machine, and constructing malicious pickles. Learn why your code shouldn’t trust arbitrary serialized objects and the dangers of pickle-bombs.

(是也乎:

泡菜炸弹...

推荐用其它安全替代比如: marshmallow, dill, pyro ...

不过, 其中只有 marshmallow 看起来最靠谱...

)

In the early days of Swift, its growth was matching that of Python, but then it leveled out. In this opinion piece, Ari discusses why he thinks Python is still going strong and why Swift is falling away.

(是也乎:

Swift

只能说, 努力过...

Swift.py

)

Type annotation for decorators can be a bit more challenging than regular functions, especially if they support optional keyword arguments. Learn how to type them so that they pass mypy’s strict mode.

(是也乎:

Rust 向发展?

)

In this step-by-step Python video course, you’ll learn how to take your command line Python scripts to the next level by adding a convenient command line interface that you can write with argparse.

(是也乎:

CLI

其实, invoke/click 之类框架比模块好用

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

UI

Code

怎么说呢? 好象回到 Qt ...

)

(是也乎:

OCR 方向...

)


📆🐍 活动/大会

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


DAMA

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

ACM-O

(是也乎:

谈崩了, 之前通过 ACM 会员可以每年 $25 享受 O'REILLY 在线图书馆服务...现在没了

)


PS:

PPS:

不觉中蟒周刊快译已经到了第11个年头

开始有小伙伴加入承担 pythonisa 周刊的翻译, 从来没提醒过, 可就这么默默坚持下来了...

问为什么:

[皱眉]每周新闻资讯 怎么能错过 
看看有什么新东西 
当有新的发现时:
    what f**k 还能这样玩? 还有这东西?
    每周开彩蛋[吃瓜]

无法同意更多... 很多社区贡献看起来辛苦, 其实受益最多的, 就是主动承担者也.


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:
Zoom.Quiet’s Chaos42 | Substack


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


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->