Skip to content

📚 DOCS: Fix deprecated import #150

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

Merged
merged 3 commits into from
Mar 31, 2021
Merged

Conversation

firasm
Copy link
Contributor

@firasm firasm commented Mar 27, 2021

Hello,

I was playing with this package and noticed that there are a couple of warning messages with the current important commands.

Also one other suggestion is to add some code for people to export the html to a file if they happen to not be working in an interactive python session. Happy to remove this if it doesn't make sense for others.

Hello,

I was playing with this package and noticed that there are a couple of warning messages with the current important commands. 

Also one other suggestion is to add some code for people to export the html to a file if they happen to not be working in an interactive python session. Happy to remove this if it doesn't make sense for others.
@welcome
Copy link

welcome bot commented Mar 27, 2021

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.

Welcome to the EBP community! 🎉

@codecov
Copy link

codecov bot commented Mar 27, 2021

Codecov Report

Merging #150 (869db92) into master (ed48ece) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #150   +/-   ##
=======================================
  Coverage   96.32%   96.32%           
=======================================
  Files          72       72           
  Lines        3266     3266           
=======================================
  Hits         3146     3146           
  Misses        120      120           
Flag Coverage Δ
pytests 96.32% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed48ece...869db92. Read the comment docs.

Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @firasm, can you change the file writing code though

README.md Outdated
Comment on lines 73 to 75
#text_file = open("output.html", "w")
#text_file.write(html_text)
#text_file.close()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should either use:

with open("output.html", "w") as handle:
   handle.write(html_text)

or probably better these days

from pathlib import Path
Path("output.html").write_text(html_text)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I'll just change it

@chrisjsewell chrisjsewell changed the title Minor fix to import commands & save to file 📚 DOCS: Fix deprecated import Mar 31, 2021
@chrisjsewell chrisjsewell merged commit 06d66b8 into executablebooks:master Mar 31, 2021
@welcome
Copy link

welcome bot commented Mar 31, 2021

Congrats on your first merged pull request in this project! 🎉
congrats

Thank you for contributing, we are very proud of you! ❤️

@firasm
Copy link
Contributor Author

firasm commented Apr 1, 2021

Thanks! By the time I woke up today your suggested change was already done :-)

Hard to unlearn how to write to files!

@chrisjsewell
Copy link
Member

Yeh I was too impatient lol

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

Successfully merging this pull request may close these issues.

2 participants