INNER CODE UNIT · Python

save

lgienapp/aquarel · aquarel/theme.py:280

    def save(self, path: str):
        """
        Write the template to a JSON template file

        :param path: file to write the template to
        """
        with open(path, "w") as f:
            json.dump(
                {
                    "info": self.info,
                    "params": self.params,
                    "overrides": self.overrides,
                    "transforms": self.transforms,
                },
                f,
                indent=4,
            )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…