avatarAvi Kotzer

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2627

Abstract

C++ backend and parallelized operations.</p><div id="6c6a"><pre>mamba <span class="hljs-built_in">env</span> create -f environment.yml</pre></div><h1 id="f6a2">Poetry</h1><p id="503c">Poetry is a Python dependency management tool that’s great for packaging and dependency resolution, often used in production setups for microservices.</p><div id="d658"><pre><span class="hljs-meta">#!/bin/bash</span>

<span class="hljs-comment"># Navigate to your git repository</span> <span class="hljs-built_in">cd</span> /path/to/your/git/repository <span class="hljs-comment"># Replace with the path to your git repository</span>

<span class="hljs-comment"># 1. Install Poetry globally (you can also install it locally per-project if preferred)</span> curl -sSL https://install.python-poetry.org | bash

<span class="hljs-comment"># 2. Initialize poetry for your project (this will create a pyproject.toml and optionally a poetry.lock file)</span> poetry init

<span class="hljs-comment"># The above command will guide you through creating your pyproject.toml.</span> <span class="hljs-comment"># If you want it to interactively discover and add your dependencies, make sure you've a virtual environment activated or it will consider globally installed packages.</span> <span class="hljs-comment"># Alternatively, you can manually add dependencies later by editing the pyproject.toml file.</span>

<span class="hljs-comment"># 3. If you already know some dependencies you want to add, you can do so with:</span> <span class="hljs-comment"># poetry add <package_name></span>

<span class="hljs-comment"># For example:</span> <span class="hljs-comment"># poetry add requests</span>

<span class="hljs-comment"># 4. Commit the new/changed files to your git repository</span> git add pyproject.toml git commit -m <span class="hljs-string">"Initialize Poetry for dependency management."</span>

<span class="hljs-comment"># Optionally, if a poetry.lock is created (which it will after you add some dependencies):</span> git add poetry.lock git commit -m <span class="hljs-string">"Add Poetry lock file."</span>

<span class="hljs-comment"># 5. Whenever you want to install the project dependencies, use:</span> <span class="hljs-comment"># poetry install</span>

<span class="hljs-comment"># And that's it! You can now use Poetry for dependency management in your git repository.</span></pre></div><figure id="2588"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*paBq6pDxV-TqXtOTRAMJJw.png"><figcaption>Poetry</figcaption></figure><p id="567a">Choosing a package and environment manager for Python projects depends on

Options

various factors like the project’s requirements, your familiarity with the tool, and the specific use cases you’re targeting. Here’s a brief comparison of <code>conda</code>, <code>poetry</code>, and other common tools like <code>pipenv</code> to help guide your decision:</p><h2 id="640f">Conda</h2><p id="6292">Conda is a powerful package manager especially useful for projects that involve scientific computing and data science tools. One of its primary advantages is managing non-Python libraries with Python interfaces or dependencies, such as TensorFlow which might have specific non-Python requirements. Conda supports creating isolated environments, operates cross-platform, and can handle complex dependencies. However, it can be bulkier and slower than some other tools, and it operates in a separate ecosystem from standard Python (PyPI), which sometimes results in waiting periods for package updates. It’s ideal for projects that require non-Python dependencies or for ensuring cross-platform consistency.</p><h2 id="6633">Poetry</h2><p id="02f2">Poetry is a modern tool that simplifies both dependency management and packaging for Python projects. It offers robust dependency resolution and utilizes <code>pyproject.toml</code>, streamlining configuration. Every project gets its virtual environment, ensuring isolated dependencies. Being a newer tool, it might not be as familiar to some teams, and it's limited to managing only Python dependencies. Poetry is excellent for Python projects that require both dependency management and packaging.</p><h2 id="ed35">Pipenv</h2><p id="ffc1">Pipenv combines the best of <code>pip</code> and <code>virtualenv</code>. It provides both package and environment management in one tool. It uses <code>Pipfile</code> and <code>Pipfile.lock</code> to pin dependencies, ensuring consistent builds. While it brings together the advantages of pip and virtualenv, it can be slower in resolving dependencies than, say, poetry. Some users also find it less reliable in certain scenarios compared to conda or poetry. Pipenv is suitable for general Python application development where you want package and environment management in one place.</p><p id="11e8">The choice between these tools largely depends on the project’s requirements. Projects with non-Python dependencies or a focus on data science might lean towards conda. In contrast, pure Python projects looking for modern dependency management might prefer poetry. For more straightforward applications, pip or pipenv can suffice. The key is consistency and familiarity within your team or organization.</p></article></body>

Nancy

The lesser-known N-word and its homophobic history

Image by Christelle PRIEUR from Pixabay

Today’s New York Times Spelling Bee letters:

Art: Iva Reztok

C, I, N, T, V, Y, and center A (all words must include A).

Merriam-Webster says…

Credit: merriam-webster.com
Credit: merriam-webster.com

Silly little dictionary! Don’t you know nancy can’t possibly be a word if the New York Times says it ain’t?

For further fascinating facts, check out the Spelling Bee Master.

What’s your favorite dord* from today’s puzzle?

My Two Cents

As a common courtesy, I will issue a trigger warning that we will be discussing an offensive word.

The reason I chose the photo of a cabaret is because burlesque played an important part in the infamy of the word nancy, and had a lot to do with persecution of gay men.

According to Merriam-Webster, the terms “nance” and “nancy” both refer to the female proper noun, used disparagingly to describe “an effeminate male or male homosexual”. A tree from the genus Byrsonima is referred to as “nance”, as is its fruit. There is also a South American legume plant known as “nance” in Ecuador. In both cases (the tree and the legume), the Spanish pronunciation is NAN-seh.

The dictionary also tells us that, as a slur, the first known use of the word nance was around 1910. However, Urban Dictionary explains that “Nancy-boy” was a postwar term for a gay man, consider a softer word than other epithets. The men tagged with this slur were viewed as “harmless” or not “threatening or predatory”.

So was it used before or after World War II?

Burlesque

Perhaps the play The Nance, written by Douglas Carter Beane, might help us figure our the answer to that question. Carter Beane’s play premiered on Broadway in 2013 and starred Nathan Lane. It was nominated for five Tony Awards and won three of them.

The ‘nance,’ or Nancy Boy, was a stock gay character that pranced about the stage, creating campy scenes and sketches of gay life. For the time period in which this happened — 1920s and 30s — this was an outrageous show that brought hearty laughter from the audience members, many of whom were not gay and (given the time period) were likely unsympathetic to the plight of homosexual men.

In his review of the play, Bruce Chadwick explains this:

“In the late 1930s, New York Mayor Fiorello LaGuardia, fearful of how the lurid burlesque shows would make his city look in the upcoming World’s Fair of 1939, cracked down on the houses. Part of LaGuardia’s anger was aimed at the Nance, whom critics said created audiences of lusty gay men having sex in the dark balconies of the burlesque emporiums. It was an outrage, the Mayor said, and police began swooping down on burlesque shows, closing many and forcing others to drop the nance act or greatly curb it.”

Carter Beane did a lot of research on the these crackdowns and how police operated. Officers would first screen the plays, take notes and only then raid them. The play showcases the homophobic ambiance and the injustices gay men went through at the time.

The play was taped for the PBS series Live from Lincoln Center. It’s possible it can be found online to view.

A woman’s name

It certainly appears the term got widespread around the period between both World Wars. I was wondering why the name Nancy was picked, as opposed to other female names. I doubt the flowering tree I discussed earlier came into play; as I mentioned, the word “nance” was probably used only by Spanish speakers.

I checked online for the popularity of the name Nancy (which is not very popular now), and found this graph showing the number of babies being given that name over the last 150 years or so:

Source: Social Security Administration & BabyCenter user data

I wonder if the rising prevalence of that female name had anything to do with its disparaging use as an insult to gay men.

Maybe Nancy was the “Karen” of the 1930s and 40s.

Except I remember it being used when I was growing up in the 70s and 80s. Not just by other children who wanted to make fun of kids who seemed effeminate or were not up to the manly standards of the bullies. I distinctly remember adults, including teachers and coaches, using the term.

Even in the 21st Century its use has perdured. Those of you who were fans, like I was, of the show Scrubs (2001–2010), might remember a certain Dr. Perry Cox (played by John C. McGinley) who berated the male interns and attending physicians by calling them female names. When you think about it, that was probably insulting to both gay men and all women.

And that’s why today I will tip my hat to the editors of the New York Times, and acknowledge they used good judgement by determining that the word nance is a dord!

Please check out my previous entry on another dord:

*What the heck is a dord anyway? Here you go:

History
Spelling Bee
Language
LGBTQ
Culture
Recommended from ReadMedium