Brought to you by Michael and Brian - take a Talk Python course or get Brian's pytest book

#254: Do Excel things, get notebook Python code with Mito

Published Wed, Oct 13, 2021, recorded Wed, Oct 13, 2021

Watch the live stream:

Watch this episode on YouTube
Play on YouTube
Watch the live stream replay

About the show

Sponsored by us:

Special guest: Muhammad Raza

Brian #1: yaml, GH Actions, and Python 3.10

  • Anthony Shaw (and others)

  • Old: python: [3.7, 3.8, 3.9, 3.10-dev]

  • New: python: ["3.7", "3.8", "3.9", "3.10"]
  • Reasons:
    • Github Actions use yaml.
    • yaml treats 3.10-dev as a string, since it’s got non-numbers in it.
    • yaml treats 3.10 as a number, and is the same as 3.1
    • hence, we have to use quotes for “3.10”
    • using them on “3.7”, etc is not necessary, but is a nice consistency

Michael #2: Beating C and Java, Python Becomes the #1 Most Popular Programming Language, Says TIOBE

  • via Brian Skin
  • "For the first time in more than 20 years we have a new leader of the pack..." the TIOBE Index announced this month. "The long-standing hegemony of Java and C is over.”
  • For Tiobe, its enterprise focus, has seen Java and C dominate in recent years, but Python has been snapping at the heels of Java, and has now overtaken it...
  • "Its ease of learning, its huge amount of libraries, and its widespread use in all kinds of domains, has made it the most popular programming language of today. Congratulations Guido van Rossum!"

Muhammad #3: Newspaper3k: Article scraping & curation

  • News, full-text, and article metadata extraction
  • This allows you extract useful information from news articles, similar to Pocket or InstaPaper.

Brian #4: PEP 660, pip 21.3, flit 3.4 -> easy editable installs

  • pip install -e /local/dir is a great way to have a project installed while you are developing it.
  • It used to not work with pyproject.toml based projects.
  • Flit worked around this with flit install --``pth-file (or --symlink)
  • PEP660 - Editable installs for pyproject.toml based builds (wheel based)
  • pip 21.3 (Oct 11), flit 3.4 (Oct 10) now support PEP660
  • And now with pip 21.3 and flit 3.4, pip install -e works for flit projects
  • If you are using optional dependencies, for example:
        test = [ "pytest", "tox", ]
  • Then you need to use a quotes: pip install -e ".[test]"

Michael #5: Mito - a JupterLab Extension - generates Python code while you work on your analysis

  • via Tomas Rollo
  • Mito is a spreadsheet that helps you complete your Python analyses 10x faster.
  • You edit the Mitosheet, and it generates Python code for you.
  • Best way to experience it is to watch the video

Muhammad #6: troposphere




Joke: Alphabet cancels Loon

Want to go deeper? Check our projects