question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Matplotlib as dependency of oemof in order to get examples running?

See original GitHub issue

AFAIK 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:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
gplssmcommented, Oct 30, 2016

In order to make a quick decision until release, let’s up-/downvote this comment. I check on Monday 11 pm - sharp.

1reaction
gplssmcommented, Oct 31, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found