Skip to content

Conversation

@kurt-rhee
Copy link

  • Closes Make Matplotlib an optional dependency #31
  • I am familiar with the contributing guidelines
  • Tests added
  • Updates entries in docs/sphinx/source/reference for API changes.
  • Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
  • New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

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

Thanks @kurt-rhee! It would have been nice for the code formatting to be done separately, but no need to revert it now.

]
plot = ["matplotlib"]
test = ["pytest>=3.2.1", "pytest-mock>=1.10.0", "mock", "matplotlib"]
doc = [
Copy link
Member

Choose a reason for hiding this comment

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

Please also add matplotlib to doc. It happens to gets pulled in anyway by ipykernel, but better to require it directly.


Maintenance
-----------
* Matplotlib is now an optional dependency. (:issue:`31`)
Copy link
Member

Choose a reason for hiding this comment

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

Please move it to v1.6.1, which hasn't been released yet


Please note that the plot is generated using matplotlib, which is
not included in the default dependencies, it can be installed
using `pip install solarfactors[plot]`
Copy link
Member

Choose a reason for hiding this comment

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

GitHub is displaying this in the same paragraph as line 119, making it flow a little poorly. Maybe edit the code block to something like:

    # Plot pvarray shapely geometries (needs matplotlib: pip install solarfactors[plot])

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.

Make Matplotlib an optional dependency

2 participants