Matplotlib as dependency of oemof in order to get examples running?
See original GitHub issueAFAIK oemof should be designed with less dependencies. But first-time users running example scripts stumble upon an ugly error message matplotlib is not installed.
Traceback (most recent call last):
File "simple_least_costs/simple_least_costs.py", line 12, in <module>
import matplotlib.pyplot as plt
ImportError: No module named 'matplotlib'
Sould we add matplotlib as dependency? Is there any other option available?
@birgits how does extra_requires work? Would it be possible to apply this concept here?
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
User's guide — oemof.solph 0.4.5.dev0 documentation
To create an energy system model generic and specific components are available. To get started with solph, checkout the examples in the Examples...
Read more >Dependencies — Matplotlib 3.6.2 documentation
When installing through a package manager like pip or conda , the mandatory dependencies are automatically installed. This list is mainly for reference....
Read more >oemof-thermal/.pylintrc at dev · oemof/oemof-thermal · GitHub
Thermal energy components for the Open Energy Modeling Framework (oemof). ... active Python interpreter and may run arbitrary code. ... For example, if....
Read more >oemof Documentation - Read the Docs
As oemof is designed as a Phyton-module it is mandatory to have Python 3 installed. ... If you want to run solph examples...
Read more >oemof.solph 0.4.3 - PyPI
For running an oemof-solph optimisation model, you need to install a solver. ... Add matplotlib to requirements to make examples executable after ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

In order to make a quick decision until release, let’s up-/downvote this comment. I check on Monday 11 pm - sharp.
Thanks for your feedback! There is a tendency to keep current work load small and keep matplotlib as dependency. With @uvchik last post, a “new” idea popped up. If you @oemof/oemof prefer to have matplotlib not in the dependency list and handle missing matplotlib installation as illustrated above, please upvote the above post.
Mid or long-term discussion about this topic should be continued until v0.1.1. Please use this issues #229