-
Notifications
You must be signed in to change notification settings - Fork 100
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
multiple_plots: fixes + others #17
Conversation
Thank you for the PR! 🚀 Can we add something in the README with regard to the |
All good. I am away this week, will get onto it when I get back. If you have other ideas, send them on and will have a look. |
No problem mate, thank you for your work! With regard to the |
Also, for any GIF files, I like to run |
For the point around Other than that from the testing I've done locally, I'll be happy to merge once we clean up the |
I'll be looking at your notes and tidying up my PR this week. In the meantime, I have a couple of general comments that I didn't have time to mention last week: 1.- Do you really need the limitation when using |
Hello mate, I hope you're good. Sorry for the long gap, life and work got in the way... Over the last few days I was able to get back into this properly. Following are proposed fixes + additions with this PR: 1.- At long last I cracked the puzzle with the ongoing problem with 2.- I noticed you were careful with individual plots to create 3.- Fixed 4.- Several performance improvements to speed up loops in animations: 5.- Fixed a problem with line and scatter plots being chopped off near the vertical 6.- Added a 7.- Added option 8.- Added the option 9.- Added a new folder 10.- Removed the limitation for the interpolation ( I followed your previous comments and cleaned up the I learnt a lot going through your code, some real nice tricks in there! I hope you like what I've done, shout if you see any baddies. Have fun! |
Wow! This is amazing! Thank you! Everything is looking good to merge. My only thing that is (optional), is to include an example of the pendulum code (even if it's only the output) in the README. Let me know whether you want to do this or not and after the decision, I'll merge 😄 This will also mean we can close all the open issues!! 😄 |
Great, thanks ! 🚀 Also, if you want, I can update the help docs in another PR. Let me know if you have notes on how you go about this the right way. On the issue about performance with Also, you may have seen I mentioned you on the notes about I have a bit of time this week before I start a new job on 2nd Nov, so hit me up with any additions and we wrap this bit up for now. Thanks for all your help from the start, really great stuff you did here. |
Seems like you're on an absolute roll in the open source world lately, that's incredible 😁 Congratulations on the new job! I'm sure you'll do amazing, you're communication skills are awesome In terms of the README, probably leave it for now, I've got some ideas on how we could make it a bit cleaner (collapsible code blocks for ones longer than 5 lines), and I'll be sure to add in any animations produced in this PR The notes about Conda are awesome! They probably have their own place in the documentation, but I feel like they'd be at a disservice being only on this project and should be more prevalent on the internet, nevertheless after this PR is merged, I'll be sure to add them to the documentation while I release the next version. In terms of pandas_alive documentation, this PR fixes many of the doc strings on functions and the like, which the documentation is built out of 😁 In terms of updating requirements.txt, the one in the root of this project is actually only for the CI/CD workflow on GitHub Actions (eg build docs), the rest of the dependancies are handled by Poetry in the pyproject.toml. Packages like geopandas, tqdm, etc in the context of pandas_alive are all optional (eg, GDAL on windows is a pain outside of Conda) hence why they are not hard requirements, the user should know when they need them In summary, when I find the time this week, let's:
Once again, thank you for all the hard work you've put into this, I hope you learnt as much as I learnt from you! 😁 |
Excellent plan, agreed. |
One minor thing on the help docs. Any relative path in the original README to a file or directory, won't work, since help is served in GitHub with a different domain than that one with the repo. You may want to have in the Jupyter README a full path to those, starting with |
I'm not sure I understand what you mean? The only things relatively linked in the README are the GIFs from my understanding and they work fine across the documentation and the README. |
Sorry, I was a bit brief earlier. Try clicking in docs hyperlinks e.g. to: requirements.txt or the conda .yml file? |
I meant the docs here: https://pypi.org/project/pandas-alive/ |
Ah I understand! Yes this is a problem Thank you so much again! |
Happy to do that for you later on. 🪂 |
If you'd like to 🙂 I'll even try and figure out this hacktober thing and you might even get a t shirt! |
Wooot! a free Tee, I'm in! 😮 |
I only heard about it today, but if you've made 4 valid pull requests I believe you get one: |
I've added the |
Cheers mate, will have a look later see what that is about. |
Hi Jack,
At long last, here is my very 1st PR ever, so brace yourself... hehe. Do shout if you find any horrors.
1.- Temp workaround for Issue #6:
I had a good look at this issue where Line plots connect 1st and last points when used in a combined plot.
I couldn't (as yet) find a clean fix. But a workaround is to set
filename=None
in the individual 1st definition of the line plot.See in
./test_notebooks
combined MP4 from my test notebookpendulum_sample.ipynb
.What I did find on this issue is that if you
print(i)
insideupdate_all_graphs()
you get an odd zero frame inserted from somewhere in the 2nd loop. E.g. you get i=0, 0 (inserted), 1, 2, 3... ; or if you make the i in the code to start from 1, then you get i=1, 0 (inserted), 2, 3, ... but dunno why yet.2.- Fixed problem mentioned in Issue 11 where the last frame was missing with combined_plots.
3.- Added a progress bar option to combined_plots. This is quite handy here since these can take a while.
4.- I expanded the error message about
tqdm
, as now withtqdm.auto
in notebooks we also needipywidgets
installed.5.- Some spellings here and there as I went through the code, nothing major. I also looked into size of movies we discussed, and then I see is to do with a combination of figsize in inches and dpi in dots (pixels) per inch. The current default in the code is dpi=144. Maybe 72 is enough, as it is typical with most screens(?). I used dpi=100 in my test notebook coz it is easy to then know the size in pixels [ figsize x dpi=100 ].
I tested all this 1st with notebook
./test_notebooks/pendulum_sample.ipynb
, which runs fairly fast to try stuff. Then I ran yourREADME.ipynb
and didn't give me any errors, which is good.Have fun!