Friday, November 12, 2021

Python Bytes: #258 Python built us an anime dog!

<p><strong>Watch the live stream:</strong></p> <a href='https://www.youtube.com/watch?v=SJ0dzEBtqL8' style='font-weight: bold;'>Watch on YouTube</a><br> <br> <p><strong>About the show</strong></p> <p>Sponsored by <strong>Shortcut - Get started at</strong> <a href="http://shortcut.com/pythonbytes"><strong>shortcut.com/pythonbytes</strong></a></p> <p>Special guest: <strong>Karen Dalton</strong></p> <p><strong>Brian #1:</strong> <a href="https://github.com/actions/stale"><strong>stale : github bot to “Close Stale Issues and PRs”</strong></a></p> <ul> <li>Was one response to a question by Will McGugan </li> <li>Something like “An issue filed on an open source project, I’ve asked a followup question about the issue, and filer doesn’t respond. Is there an easy way to close the issue after a set time period of inactivity.” <ul> <li>Just trying to get a reference to Will out of the way early in the episode.</li> </ul></li> <li>stale does this: <ul> <li>Warns and then closes issues and PRs that have had no activity for a specified amount of time.</li> <li>The configuration must be on the default branch and the default values will: <ul> <li>Add a label "Stale" on issues and pull requests after 60 days of inactivity and comment on them</li> <li>Close the stale issues and pull requests after 7 days of inactivity</li> <li>If an update/comment occur on stale issues or pull requests, the stale label will be removed and the timer will restart</li> </ul></li> </ul></li> <li>If defaults seem too short or harsh, everything is configurable</li> </ul> <p><strong>Michael #2:</strong> <a href="https://github.com/kracekumar/jut"><strong>jut - JUpyter notebook Terminal viewer</strong></a></p> <ul> <li>via <a href="https://twitter.com/kidpixo">kidpixo</a></li> <li>The command line tool view the IPython/Jupyter notebook in the terminal.</li> <li>Even works against remote ipynb files (via http)</li> </ul> <p><strong>Karen #3:</strong> <strong><a href="https://github.com/jupyterlite/jupyterlite">JupyterLyte</a></strong></p> <ul> <li>via <a href="https://twitter.com/MarcelMilcent"><strong>Marcel Milcent</strong></a> <a href="https://twitter.com/MarcelMilcent"><strong>@MarcelMilcent</strong></a></li> <li>JupyterLite is a JupyterLab distribution that <strong>runs entirely in the browser and is interactive</strong></li> <li>Built from using JupyterLab components and extensions</li> <li>Being <strong>developed by core Jupyter developers</strong>, but the project is still <strong>unofficial</strong></li> <li>Example: <a href="https://jupyterlite.readthedocs.io/en/latest/_static/lab/index.html">https://jupyterlite.readthedocs.io/en/latest/_static/lab/index.html</a></li> <li>Offers JupyterLab or RetroLab (a.k.a JupyterLab Classic) look</li> <li>No application server required, cacheable</li> <li>Try "import this"! </li> </ul> <p><strong>Brian #4:</strong> <a href="https://beyondgrep.com/feature-comparison/"><strong>Feature comparison of ack, ag, git-grep, GNU grep and ripgrep</strong></a></p> <ul> <li>ack now, supplies are limited!</li> <li>Tangent for those unfamiliar with grep <ul> <li>grep is an essential tool for many developers that prints lines that match a pattern</li> <li><code>grep foo *.py</code> - list all lines containing “foo” in this directory</li> <li><code>grep -l foo **/*.py | grep -v venv</code> <ul> <li><code>**``*/**``.py</code> Recursively find all Python files this directory and all subdirectories</li> <li><code>-l</code> Print just the name of the file if it contains a “foo” in it.</li> <li><code>| grep -v venv</code> Exclude virtual environments, because there’s a lot of “foo” in there. (There’s gotta be a better way to do this, someone suggest a better way, please).</li> </ul></li> </ul></li> <li>Article compares ack, ag “The silver Searcher”, git-grep, grep, and rg “ripgrep” <ul> <li>Language, Licence, and regex versions</li> <li>Features like parallelism, config, etc.</li> <li>Fine grain feature comparisons <ul> <li>searching capability</li> <li>regular expression style</li> <li>search output </li> <li>file presentation</li> <li>file finding</li> <li>inclusion, exclusion</li> <li>file type specification</li> <li>random other features</li> </ul></li> </ul></li> <li>This is on the ack website, and kinda makes my want to try ripgrep.</li> </ul> <p><strong>Michael #5:</strong> <a href="https://pyairtable.readthedocs.io/en/latest/"><strong>Python Client for Airtable: pyairtable</strong></a></p> <ul> <li>by <a href="https://twitter.com/gtalarico/status/1432780116006891525"><strong>Gui Talarico</strong></a></li> <li>What is Airtable? Hmm kind of like: <ul> <li>Excel</li> <li>Trello boards</li> <li>CI Pipelines</li> </ul></li> <li>A big player on nocode/lowcode community </li> <li>Check out the <a href="https://pyairtable.readthedocs.io/en/latest/getting-started.html#quickstart"><strong>quickstart</strong></a> to see how it works.</li> </ul> <p><strong>Karen #6:</strong> <strong>Black can now format notebooks</strong></p> <ul> <li>via Marco Gorelli gh: <a href="https://github.com/MarcoGorelli">MarcoGorelli</a> (creator of nbQA [isort, pyupgrade, mypy, pylint, flake8, and more on Jupyter Notebooks])</li> <li><code>pip install black[jupyter]</code></li> <li><code>black mynotebook.ipynb</code></li> <li>“…it should be significantly more robust than the current third-party tools”</li> </ul> <p><strong>Extras</strong></p> <p>Michael</p> <ul> <li>Trying a new password manager (sorta): <a href="https://bitwarden.com/"><strong>Bitwarden</strong></a></li> <li>The PSF is <a href="https://twitter.com/PSF/status/1456035112206815237"><strong>looking for an Executive Director</strong></a></li> <li><a href="https://huggingface.co/spaces/akhaliq/AnimeGANv2"><strong>Want a person in anime form</strong></a>? </li> <li><a href="https://pythoninsider.blogspot.com/2021/11/python-398-and-3110a2-are-now-available.html"><strong>Python 3.11.0a2 is out</strong></a> (via PyCoders)</li> </ul> <p>Karen</p> <ul> <li>Volunteer in your local Python community (or volunteer to speak)</li> </ul> <p><strong>Joke:</strong></p> <p><img src="https://ift.tt/3c6vdNC" alt="" /></p>

from Planet Python
via read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...