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

One way to include figures #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

iamaleksandra
Copy link
Contributor

These set of files is primarily for fun and considerations. Let me know if I'm doing something improperly regarding this service.

These set of files is primarily for fun and considerations. Let me know if I'm doing something improperly regarding this service.
with open(file_name, 'r', encoding='utf-8') as my_file:
my_code = my_file.readlines()

if 'import matplotlib.pyplot as plt\n' in my_code:
Copy link
Owner

Choose a reason for hiding this comment

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

This is not a very safe method of Python code running. Please, see runpy, importlib, code and parser standard library modules.

Renaming figures that belong to one script in order to do not mind about it while writing script itself
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.

None yet

2 participants