-
Notifications
You must be signed in to change notification settings - Fork 13
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
refactor: move code snippets to files #302
Conversation
@@ -0,0 +1,7 @@ | |||
from bokeh.io import show | |||
from powersimdata import Scenario | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems I forgot to declare scenario
. Can you add scenario = Scenario("3287"). Sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem - done
I imagine |
Actually looks like we only run |
Yeah. Also, I noticed that there was only one new line after the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Purpose
It should help with simplifying the process to regenerate the plots. Not entirely sure what that looks like yet - ideally something fully automated but more likely just loading the files into a notebook. Either way, the code is more accessible since it's in
.py
files and broken up by plot.What the code is doing
Just moving things around, small fix to indentation, and running the formatting on the code.
Testing
Built the docs locally and compared result with the plotting section currently deployed.
Time estimate
10 min