用 VSCode 折腾 Jupyter 的16个理由...需要嘛?

原文: PyCoder's Weekly - Issue #553

pycoder

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

In this tutorial, you’ll learn how to install and configure Microsoft Power BI to work with Python. Using Python, you’ll import data from a SQLite database, transform and augment your dataset with pandas, and visualize it with Matplotlib.

(是也乎:

Power

VSCode 绝对为是 M$ 中兴关键之举...

)

Nested for-loops often are an opportunity for parallel code. This article covers when it is a good idea to split them up and the variety of different parallel coding approaches you can use.

(是也乎:

值得收藏日用,一个多重循环,可以用这么多种姿势来完成, 感觉 Python 一直说的:"毎件事儿,总是有一种最靠谱姿势",好象有些站不住...

)

Anton describes the test setup at Sentry and how they use both tox in parallel as well as GitHub actions to run a large test suite quickly.

(是也乎:

嗯哼? Sentry白女票党技巧?

)


探讨/吐糟

Discussions

This discussion is around the excellent article by Lambert Meertens called The Origins of Python that delves into Python’s history.

(是也乎:

老爹只是退休,又没死,已经开始立传了... Origins

)


文章/教程/嗯哼

Articles, Tutorials and Talks

In this Code Conversation video course, you’ll learn how to package your everyday projects with pyproject.toml. Playing on the same team as the import system means you can call your project from anywhere, ensure consistent imports, and have one file that’ll work for many build systems.

(是也乎:

统一在一个配置文件中当然有好处, 只是, 为什么是 .toml 以及为什么叫 pyprojrct ?

这种历史潮流的构建,才是大厂核心竞争力了

)

“Intervals or ranges pop-up everywhere in the programming world. The classic example is picking a start and end date, like you would when booking an AirBnB or a flight. Have you ever wondered why they are always implemented as [closed, open) as opposed to [closed, closed]?”

(是也乎:

等等 [..) 叕一个奇怪的语法? 直接打破了成对原则?

)

“Visual Studio Code is one of the most popular text editors with a track record of continual improvements. One area where VS Code has been recently innovating is its Jupyter Notebook support.” Read on to see how this might help you.

(是也乎:

Jupyter 现在的问题不是在开发/调试阶段吧? 而是没有一个稳定靠谱的运行时框架? 可以不用修改直接使用 .ipynb 文件加载成项目长久运行?

)

When a Python program is run, the interpreter first parses your code and checks for syntax errors, then it translates it into bytecode instructions. This article explains some of the features of Python bytecode.

The plydata Python package enables you to use the pipe operator, ">>", to chain operations on a pandas dataframe. Read on to learn how to use it and how it compares to the equivalent operation in R.

(是也乎:

REPL 式 Pandas 使用界面?

不过,这种也很难阻止写出堆积很多的联合查询...

)

REPL Driven Development is about fast feedback loops during development. It is not about typing code into a terminal window. David talks about this coding workflow and how it is similar to TDD.

(是也乎:

说反了,不是 TDD 向, 而是幸福向, 参考: Glamorous Toolkit

如果一个语言生态,可以将开发/测试/运行/备份/迁移/存储/.... 所有生命周期状态可以在一个交互界面中管理,那有多幸福?

)

JSONPath is an expression language that is used to parse the JSON data in Python, similar to XPath in XML. This article covers the basics of finding paths in JSON using the library.

(是也乎:

TOML 在兴起, TPath 已经在路上了.. 不过, 为什么 XPath 一直想在各种场景中复活呢?

)

Deployments can be painful. This article describes one approach to deploying Django, Celery, Redis, and Postgres with docker-compose so you can reuse it in your app!

(是也乎:

LDCRPN ~ 追加 Linux 和 Nginx ,这就是最新 LAMPs 常用架构了...

不过,总是感觉哪儿里有不对...

)

A guide to private and protected attributes in Python, learn all about when to use and when not to use leading underscores and double underscores (dunder).

(是也乎:

这么发展下去, Python 总有一天有能力控制所有变量所有权变迁过程的哪...

)

Using an open source security scanner, the authors found a backdoored package on PyPI. Read on for details about how they found it and what it contained.

(是也乎:

Datadog 的软广, 不过, 的确点出了一个真实问题场景

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

也就对拼音语言有用, 怼上中文各种年号, 或是艳电那种阶段约定, 屎定了...

)

(是也乎:

ORM 能复杂到 Django 这个地步也算是空前的了

)

(是也乎:

pytorch 一直在发力

)


📆🐍 活动/大会

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


DAMA

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


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

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->