Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where did “plots.chapter1” come from? #58

Open
A-Pai opened this issue Jan 8, 2025 · 1 comment
Open

Where did “plots.chapter1” come from? #58

A-Pai opened this issue Jan 8, 2025 · 1 comment

Comments

@A-Pai
Copy link

A-Pai commented Jan 8, 2025

image

@dvgodoy
Copy link
Owner

dvgodoy commented Jan 8, 2025

Hi @A-Pai ,

First of all, thank you for supporting my work :-)

I will be answering the three issues at once here, since they're related to one another.

If you clone the repository locally, you'll get all the files and folders, including config.py and the plots folder.
However, if you're using Google Colab, I don't expect you to clone the repo in every notebook, so I've included these try..except blocks to automatically download the config.py file which has configuration functions for each and every chapter (answering issue #57).

In the screenshot, you can see config_chapter1(), which will download the required files directly from GitHub. The downloaded files include those inside the plots folder, such as chapter1.py, from which I will import many functions (answering this issue).

The imported functions include figure1 (mentioned in issue #59). The purpose of the plotting functions is to simply isolate the matplotlib code (which is very long and verbose) so it doesn't clutter the notebook.

I hope it helps!
Best,
Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants