Created
January 24, 2024 22:41
-
-
Save timmyreilly/05d703ce3f10dabfaa7c2b677b815263 to your computer and use it in GitHub Desktop.
Dump content from python console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
you're in the python debug terminal and you need to export some pydantic models for | |
""" | |
with open("data_point.json", "w") as file: | |
file.write(data_point.json()) | |
with open("model_data.json", "w") as file: | |
file.write(results.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment