Skip to content

Commit

Permalink
prevent GPU failure running in containers by running kaleido with sin…
Browse files Browse the repository at this point in the history
…gle process option
  • Loading branch information
georgemccabe committed Nov 20, 2024
1 parent ae4f267 commit ccdfe95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion metplotpy/plots/base_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@
import yaml
from typing import Union

import plotly.io as pio

import metplotpy.plots.util
from .config import Config
from metplotpy.plots.context_filter import ContextFilter


# set kaleido to use single process to prevent GPU errors in containers
pio.kaleido.scope.chromium_args += ("--single-process",)

class BasePlot:
"""A class that provides methods for building Plotly plot's common features
Expand Down

0 comments on commit ccdfe95

Please sign in to comment.