-
Notifications
You must be signed in to change notification settings - Fork 84
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
Updates to zipfile calls to hopefully make bandit happy #275
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Tested locally and bandit seems happy now. |
Fixed also the other bandit complaints. Will probably need to fix some PEP8 |
@bhilbert4 all the PEP8 failures are on notebooks that still use simulated data. Do you want them fixed or we can skip since these notebooks need to change anyway at some point? |
Do the plots still look ok for the bad escape sequence PEP8 failures? |
I have not touched any of that code, so I presume it still plots as it plotted before. |
I was worried that the plot labels may have already been broken, but they look ok. In that case, it seems ok to me to ignore the PEP8 warnings. Hopefully we'll get this notebook overhauled/replaced soon. |
@bhilbert4 can you please approve if you are ok with this? |
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. Any lingering PEP8 issues will go away when the notebooks are revised/replaced.
extractall
does not check for relative or absolute paths and bandit is not happy about it.I modified the calls with either
extract
that is supposed to drop the relative/absolute paths or a filter inextractall
where possible. Lets see!This notebook checklist has been made available to us by the the Notebooks For All team.
Its purpose is to serve as a guide for both the notebook author and the technical reviewer highlighting critical aspects to consider when striving to develop an accessible and effective notebook.
The First Cell
<h1>
or# in markdown
).1., 2.,
etc. in Markdown).The Rest of the Cells
#
in Markdown) used in the notebook.Text
Code
Images
All images (jpg, png, svgs) have an image description. This could be
alt
property)alt
attribute with no value)Any text present in images exists in a text form outside of the image (this can be alt text, captions, or surrounding text.)
Visualizations
All visualizations have an image description. Review the previous section, Images, for more information on how to add it.
Visualization descriptions include
All visualizations and their parts have enough color contrast (color contrast checker) to be legible. Remember that transparent colors have lower contrast than their opaque versions.
All visualizations convey information with more visual cues than color coding. Use text labels, patterns, or icons alongside color to achieve this.
All visualizations have an additional way for notebook readers to access the information. Linking to the original data, including a table of the data in the same notebook, or sonifying the plot are all options.