Python tutorials

CentOS 8 is dead: choosing a replacement Docker image

For many years, CentOS provided a free, binary-compatible version of RedHat Enterprise Linux (RHEL). But as of January 2022, CentOS 8 has reached its end-of-life, even as RHEL 8 will still be supported for many years. So if you’ve been using centos:8 as your base Docker image, what should you use now? Motivation: a stable, long-term-support base image RHEL 8 was released in May 2019, will continue to get full support until May 2024, and security updates until May 2029. […]

Read more

Deploy Your Python Script on the Web With Flask

You wrote a Python script that you’re proud of, and now you want to show it off to the world. But how? Most people won’t know what to do with your .py file. Converting your script into a Python web application is a great solution to make your code usable for a broad audience. In this course, you’ll learn how to go from a local Python script to a fully deployed Flask web application that you can share with the […]

Read more

Build a Social Network With Django – Part 1

In this four-part tutorial series, you’ll build a social network with Django that you can showcase in your portfolio. This project will strengthen your understanding of relationships between Django models and show you how to use forms so that users can interact with your app and with each other. You’ll also learn how to make your site look good by using the Bulma CSS framework. After finishing the first part of this series, you’ll move on to the second part, […]

Read more

The NLP Cypher | 12.26.21

Merry Christmas 🎄 for those celebrating. And Happy New Year! Even OpenAI is feeling the holiday spirit: they open sourced their photorealistic GLIDE model several days ago. Includes three notebooks: The text2im notebook shows how to use GLIDE (filtered) with classifier-free guidance to produce images conditioned on text prompts. The inpaint notebook shows how to use GLIDE (filtered) to fill in a masked region of an image, conditioned on a text prompt. The clip_guided notebook shows how to use GLIDE […]

Read more

Python Zip Imports: Distribute Modules and Packages Quickly

Python allows you to import code from ZIP files directly through Zip imports. This interesting built-in feature enables you to zip Python code for distribution purposes. Zip imports also help if you often work with Python code that comes in ZIP files. In either case, learning to create importable ZIP files and to import code from them will be a valuable skill. Even if your day-to-day workflow doesn’t involve ZIP files containing Python code, you’ll still learn some fun and […]

Read more

Raising and Handling Python Exceptions

A Python program terminates as soon as it encounters an error. In Python, an error can be a syntax error or an exception. In this course, you’ll learn what an exception is and how it differs from a syntax error. After that, you’ll learn about raising exceptions and making assertions. Then, you’ll learn how to catch exceptions to prevent your program from unintentionally ending and to change the control flow of your program: You’ll learn about the basic use of […]

Read more

Dependency Management With Python Poetry

When your Python project relies on external packages, you need to make sure you’re using the right version of each package. After an update, a package might not work as it did before the update. A dependency manager like Python Poetry helps you specify, install, and resolve external packages in your projects. This way, you can be sure that you always work with the right dependency version on every machine. Using Poetry will help you start new projects, maintain existing […]

Read more

It’s time to stop using Python 3.6

Upgrading to new software versions is work, and work that doesn’t benefit your software’s users. Users care about features and bug fixes, not how up-to-date you are. But there is only so much time you can delay upgrading, and for Python 3.6, the time to upgrade is right now. Python 3.6 is reaching its end of life as of December 2021. No more bug fixes. No more security fixes. “It’s dead, Jim.” As of mid-December 2021, 15% of packages downloaded […]

Read more

Host Your Django Project on Heroku

As a novice web developer, you’ve built your portfolio app and shared your code on GitHub. Perhaps, you’re hoping to attract technical recruiters to land your first programming job. Many coding bootcamp graduates are likely doing the same thing. To differentiate yourself from the crowd and boost your chances of getting noticed, you can start hosting your Django project online. For a hobby Django project, you’ll want a hosting service that’s free of charge, quick to set up, user-friendly, and […]

Read more

The NLP Cypher | 12.12.21

Here’s a collection of papers by your favorite big tech and educational institutions. “The Generalist Language Model (GLaM), a trillion weight model that can be trained and served efficiently (in terms of computation and energy use) thanks to sparsity, and achieves competitive performance on multiple few-shot learning tasks. GLaM’s performance compares favorably to a dense language model, GPT-3 (175B) with significantly improved learning efficiency across 29 public NLP benchmarks in seven categories, spanning language completion, open-domain question answering, and natural […]

Read more
1 102 103 104 105 106 185