Skip to content

Error with theme_brand_plotnine #15

Description

@durraniu

Thanks for creating the theming functions for quarto. My first question is: How to install this package? I tried with:

pip install quarto
pip install quarto-cli
pip install git+https://github.com/quarto-dev/quarto-python.git

I am guessing the third line above is the only one relevant here, but please correct me if that is not the case.

Then in python:

from quarto import theme_brand_plotnine

brand_theme = theme_brand_plotnine('_brand.yml')

But I get this error:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[4], line 3
      1 from quarto import theme_brand_plotnine
----> 3 brand_theme = theme_brand_plotnine('_brand.yml')

File ~\.julia\conda\3\Lib\site-packages\quarto\theme.py:116, in theme_brand_plotnine(brand_yml)
    115 def theme_brand_plotnine(brand_yml):
--> 116   from brand_yml import Brand
    118   brand = Brand.from_yaml(brand_yml)
    119   return theme_colors_plotnine(brand.color.background, brand.color.foreground)

ModuleNotFoundError: No module named 'brand_yml'

I am not sure if this is an issue with package installation or with the theming function. Please let me know what I'm missing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions