bmcfee / dstbook

Digital Signals Theory book and source materials
19 stars 2 forks source link

What python package do I need to install for the `bauhaus` theme? #2

Open cjappl opened 2 months ago

cjappl commented 2 months ago

In executing the first cell of a ipynb in the repo (for example PoleZero)

> %run ../setup.ipynb
...
OSError: 'bauhaus' is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in `style.available`)

This theme is used a few times through the repo:

> rg bauhaus
content/setup.ipynb
23:    "matplotlib.style.use('bauhaus')\n",

content/unused/systems-chapter/Shift-invariance.ipynb
36:    "matplotlib.style.use('bauhaus')\n",

content/unused/systems-chapter/Linearity.ipynb
37:    "matplotlib.style.use('bauhaus')\n",

content/unused/systems-chapter/Systems.ipynb
36:    "matplotlib.style.use('bauhaus')\n",

But a google search was not fruitful to determine what I could pip install foo to get this style for matplotlib.

A fine workaround seems to be changing bahaus -> ggplot, which unblocks me, but there are a few additional tweaks I have to do in that case. I'd love to use the "real thing"

bmcfee commented 2 months ago

This theme doesn't come from a package, but is included in this repository at the top-level of the content folder.

It's strange that setup isn't able to load it, as they exist in the same directory and should therefore find it in the search path.

cjappl commented 2 months ago

Ah! Interesting!! Wonder if this is a conda vs pip problem.

If I figure out the "fix" I'll report back.

On Tue, Apr 16, 2024 at 7:21 AM, Brian McFee @.***(mailto:On Tue, Apr 16, 2024 at 7:21 AM, Brian McFee < wrote:

This theme doesn't come from a package, but is included in this repository at the top-level of the content folder.

It's strange that setup isn't able to load it, as they exist in the same directory and should therefore find it in the search path.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>