Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[doc]: add 'validate' section to install docs #26379 #26416

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

Closed
wants to merge 33 commits into from

Conversation

devilsaint99
Copy link
Contributor

@devilsaint99 devilsaint99 commented Jul 30, 2023

PR summary

Added new section to validate the installation of matplotlib in editable mode as suggested in the isuue #26379.

PR checklist

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@story645 story645 self-assigned this Jul 31, 2023
Copy link
Member

@story645 story645 left a comment

Choose a reason for hiding this comment

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

Hi, thanks for the PR. I think you took my sketch slightly too literally as this still reads like instructions for writing a section on validating rather than instructions for validating.
Thanks!

Comment on lines 175 to 178
2. Link to the running the tests page to verify that the code installed clean:
:ref:`testing`
3. Link to the building the docs page to verify that the docs build clean:
:ref:`documenting-matplotlib`
Copy link
Member

Choose a reason for hiding this comment

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

While these were the instructions for writing this page, folks validating their install do not need to link to these pages. Please rewrite this to be instructive to the audience reading it.

Verify the Installation
==============================

1. Run the following command to make sure you have correctly installed matplotlib in editable mode. The command should be run when virtual environment is activate.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
1. Run the following command to make sure you have correctly installed matplotlib in editable mode. The command should be run when virtual environment is activate.
1. Run the following command to make sure you have correctly installed matplotlib in editable mode. The command should be run in the development virtual environment when the environment is active.

Copy link
Member

Choose a reason for hiding this comment

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

This needs to be changed because a) the development is incomplete - development what? b) subjects activate, objects are activated- since the environment can't activate itself, it is activated

Comment on lines 177 to 178
* We would encourage you to run tests and build docs to verify that the code installed and docs build are clean respectively,
These two are recommended, so that when you make code or document related changes you are aware of the existing issues beforehand.
Copy link
Member

Choose a reason for hiding this comment

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

Way better! Small suggestion to tighten the wording:

Suggested change
* We would encourage you to run tests and build docs to verify that the code installed and docs build are clean respectively,
These two are recommended, so that when you make code or document related changes you are aware of the existing issues beforehand.
* We encourage you to run tests and build docs to verify that the code install and docs build are clean, , so that when you make code or document related changes you are aware of the existing issues.

And then I suggest a small bulleted list kinda like:
`

  • verify install : :ref:testing
  • verify documentation build: :ref:documenting-matplotlib
    `
    so that someone who is skimming can quickly find the link.

@devilsaint99 devilsaint99 marked this pull request as ready for review August 2, 2023 16:50
@devilsaint99
Copy link
Contributor Author

Hi @story645, I have made the requested changes and it's ready for review one more time.
Also there are 3 failures, last commit passed for "View the docs" test, but this time it didn't

@story645
Copy link
Member

story645 commented Aug 2, 2023

do the docs build locally?

Copy link
Member

@story645 story645 left a comment

Choose a reason for hiding this comment

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

Some copy editing to make things a bit clearer, otherwise I think it's good to go.

==============================

* Run the following command to make sure you have correctly installed matplotlib in editable mode.
The command should be run in the development when the virtual environment is activate ::
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The command should be run in the development when the virtual environment is activate ::
The command should be run when the virtual environment is activated ::

@story645
Copy link
Member

story645 commented Aug 7, 2023

Hi, this needs to be rebased. Would you like to do it (w/ help if needed) or would you like me to? It doesn't impact this getting merged, it's just about conforming to our code style.

@devilsaint99
Copy link
Contributor Author

Hi, this needs to be rebased. Would you like to do it (w/ help if needed) or would you like me to? It doesn't impact this getting merged, it's just about conforming to our code style.

Hi Hannah, I will need help since I have never done rebase

@story645
Copy link
Member

story645 commented Aug 9, 2023

Sure, https://matplotlib.org/devdocs/devel/contribute.html#contributor-incubator is the channel for this sorta help. Also which code editor are you using?

@devilsaint99
Copy link
Contributor Author

Sure, https://matplotlib.org/devdocs/devel/contribute.html#contributor-incubator is the channel for this sorta help. Also which code editor are you using?
I use VS code.

@story645
Copy link
Member

Sorry I missed your reply. VSCode's gitlens extension has a really nice interactive rebase tool. you type
git rebase -i upstream in the command line and then when the interactive screen pops up you squash everything but the oldest commit
image

more general info about rebases at https://matplotlib.org/devdocs/devel/development_workflow.html#rebase-onto-upstream-main

Also your repo ended up getting really tangled so I cleaned it by dropping most of the commits and then copy and pasting changes in w/ some formatting tweaks and rebasing that commit. I'm gonna leave this open for a bit so you can make changes if you'd like.

@story645 story645 added the Documentation: devdocs files in doc/devel label Aug 16, 2023
@story645 story645 modified the milestones: v3.7-doc, v3.8-doc Aug 18, 2023
@story645 story645 self-requested a review August 18, 2023 14:01
Comment on lines 167 to 168
Verify the Installation
==============================
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Verify the Installation
==============================
Verify the Installation
=======================

==============================

Run the following command to make sure you have correctly installed matplotlib
in editable mode. The command should be run in the development when the virtual
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand what "in the development" means here.

Copy link
Member

@story645 story645 Aug 20, 2023

Choose a reason for hiding this comment

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

development environment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi, I think we can remove "the development", just virtual env makes more sense to me now.

Copy link
Member

@melissawm melissawm left a comment

Choose a reason for hiding this comment

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

Thanks @devilsaint99 !

@story645
Copy link
Member

@devilsaint99 to make the changes @QuLogic recommended-which need to be made before a merge b/c they're formatting and grammar - you can either accept the commit and let us squash merge or pull the changes here, make the suggested changes, and then push back up.

Also this is a good rebase tutorial https://m.youtube.com/watch?v=3o_01F04bZ4

@devilsaint99
Copy link
Contributor Author

@devilsaint99 to make the changes @QuLogic recommended-which need to be made before a merge b/c they're formatting and grammar - you can either accept the commit and let us squash merge or pull the changes here, make the suggested changes, and then push back up.

Also this is a good rebase tutorial https://m.youtube.com/watch?v=3o_01F04bZ4

Hi @story645, I tried to rebase, it's stuck on merge conflict, tried to resolve conflicts but it's not working. Can I open a new with a new branch instead?

@story645
Copy link
Member

Can I open a new with a new branch instead?

Sure!

@QuLogic
Copy link
Member

QuLogic commented Aug 21, 2023

Replace by #26565.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[doc]: add 'validate' section to install docs
4 participants