Skip to content

DOC: better separation of codespace instructions#29526

Merged
timhoffm merged 1 commit intomatplotlib:mainfrom
rcomer:doc-codespace
Jan 26, 2025
Merged

DOC: better separation of codespace instructions#29526
timhoffm merged 1 commit intomatplotlib:mainfrom
rcomer:doc-codespace

Conversation

@rcomer
Copy link
Copy Markdown
Member

@rcomer rcomer commented Jan 26, 2025

PR summary

Currently the codespace instructions are a third tab next to setting up your python environment with either venv or conda. This feels a bit out of place to me because the instructions are about more than just getting your python environment: they also include how to get an interactive gui or view the docs under codespaces. Additionally, when you spin up a codespaces instance, your clone is already there, upstream is already set and all the non-python dependencies are in place. So we can skip sections that are currently before and after the "create a dedicated environment" section. The instructions themselves are unchanged, just moved from the tab to a new section. I also added some brief guidance on why you might or might not want to choose codespaces.

Closes #29524

PR checklist

@github-actions github-actions bot added the Documentation: devdocs files in doc/devel label Jan 26, 2025
@rcomer
Copy link
Copy Markdown
Member Author

rcomer commented Jan 26, 2025

I also did not touch the "Install external dependencies" section, but I seem to have confused git(hub) diff. Locally, Tkdiff coped much better.

Decide whether to work locally or in GitHub Codespaces
======================================================

If you are making a one-off, relatively simple change then working in GitHub
Copy link
Copy Markdown
Member

@timhoffm timhoffm Jan 26, 2025

Choose a reason for hiding this comment

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

Maybe add one sentence to set the stage. We shouldn’t assume everybody knows what Codespaces is. Something like

You can either work locally on your machine, or online in GitHub Codespaces, a cloud-based in-browser development environment.

@timhoffm timhoffm added this to the v3.11.0 milestone Jan 26, 2025
@timhoffm timhoffm merged commit 3b329d9 into matplotlib:main Jan 26, 2025
@rcomer rcomer deleted the doc-codespace branch January 26, 2025 19:52
@story645
Copy link
Copy Markdown
Member

As a question for a potential follow up, was nested tabs too clunky or was it about keeping the link structure? I get the need for the change, I'm just not a fan of jump instructions in narrative so cycling through options.

@rcomer
Copy link
Copy Markdown
Member Author

rcomer commented Jan 27, 2025

I actually tried nested tabs first, with the three local sections I’ve skipped as one tab and codespaces as the other. The headings for those three sections just didn’t show up in the tab. I’m pretty inexperienced with Sphinx so maybe I was missing something.

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

Labels

Documentation: devdocs files in doc/devel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Doc]: Unclear how to compile c_internals in code space

3 participants