Skip to content

[workspace] Remove vestigial jupyter package#21085

Closed
svenevs wants to merge 1 commit into
RobotLocomotion:masterfrom
svenevs:fix/remove-vestigial-jupyter-package
Closed

[workspace] Remove vestigial jupyter package#21085
svenevs wants to merge 1 commit into
RobotLocomotion:masterfrom
svenevs:fix/remove-vestigial-jupyter-package

Conversation

@svenevs
Copy link
Copy Markdown
Contributor

@svenevs svenevs commented Mar 1, 2024

Note that notebook is already installed via binary_distribution/requirements.txt.

Via #21013 (review)


This change is Reviewable

@svenevs
Copy link
Copy Markdown
Contributor Author

svenevs commented Mar 1, 2024

@drake-jenkins-bot mac-arm-ventura-unprovisioned-clang-bazel-experimental-release please.

To make sure...

@jwnimmer-tri jwnimmer-tri added release notes: none This pull request should not be mentioned in the release notes status: single reviewer ok https://drake.mit.edu/reviewable.html labels Mar 1, 2024
@jwnimmer-tri jwnimmer-tri self-assigned this Mar 1, 2024
Copy link
Copy Markdown
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

+(release notes: none) since this is a test-only change.

+@jwnimmer-tri :lgtm: both +(status: single reviewer ok).

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: 1 unresolved discussion

a discussion (no related file):
Don't we need the patch to jupyter_notebook_test.py in this PR, too?


Copy link
Copy Markdown
Contributor Author

@svenevs svenevs left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion

a discussion (no related file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

Don't we need the patch to jupyter_notebook_test.py in this PR, too?

TBH I'm not sure... why I wanted to re-run unprovisioned CI. However, my understanding is the jupyter command will still exist...


Copy link
Copy Markdown
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignee jwnimmer-tri(platform)

a discussion (no related file):

Previously, svenevs (Stephen McDowell) wrote…

TBH I'm not sure... why I wanted to re-run unprovisioned CI. However, my understanding is the jupyter command will still exist...

Fair enough. I guess we'll see!


- https://jupyter.org/install#jupyter-notebook
- https://pypi.org/project/jupyter/ (very old...)
- https://pypi.org/project/notebook/ (what we want...)

Note that `notebook` is already installed via
binary_distribution/requirements.txt.

Also update to call the `notebook` python command from the same
interpreter.
@svenevs svenevs force-pushed the fix/remove-vestigial-jupyter-package branch from 4604362 to c9c2223 Compare March 1, 2024 23:03
@svenevs
Copy link
Copy Markdown
Contributor Author

svenevs commented Mar 1, 2024

@drake-jenkins-bot mac-arm-ventura-unprovisioned-clang-bazel-experimental-release please.

Copy link
Copy Markdown
Contributor Author

@svenevs svenevs left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignee jwnimmer-tri(platform)

a discussion (no related file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

Fair enough. I guess we'll see!

OK, it makes more sense to have both here. Re-pushed and relaunched, having this cherry-picked on the other PR makes it easier for me to build the mac images right now.


Copy link
Copy Markdown
Contributor Author

@svenevs svenevs left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignee jwnimmer-tri(platform)

Copy link
Copy Markdown
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: 1 unresolved discussion


tools/jupyter/test/jupyter_notebook_test.py line 10 at r2 (raw file):

        """Ensures that `jupyter notebook` is installed (#12042)."""
        status = subprocess.call(
            args=[sys.executable, "-m", "notebook", "--help"])

Actually, looking at this more closely, I think we've defeated the purpose of this test.

See #12043. The purpose of this test is to ensure that after the user runs the setup scripts, that jupyter notebook in the terminal works. We should not be changing this test at all.

Copy link
Copy Markdown
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion


tools/jupyter/test/jupyter_notebook_test.py line 10 at r2 (raw file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

Actually, looking at this more closely, I think we've defeated the purpose of this test.

See #12043. The purpose of this test is to ensure that after the user runs the setup scripts, that jupyter notebook in the terminal works. We should not be changing this test at all.

The docs at https://jupyter.org/install#jupyter-notebook still say that jupyter notebook is the right way do to things, so this test should have been fine as-is. If it is not passing with python 3.12 setup scripts, then the setup scripts are still broken.

Copy link
Copy Markdown
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

:lgtm_cancel: per DMs, we plan to cancel this one.

Reviewable status: 1 unresolved discussion, LGTM missing from assignee jwnimmer-tri(platform)

@jwnimmer-tri jwnimmer-tri removed their assignment Mar 1, 2024
@svenevs
Copy link
Copy Markdown
Contributor Author

svenevs commented Mar 1, 2024

It ended up being a different problem.

@svenevs svenevs closed this Mar 1, 2024
@svenevs svenevs deleted the fix/remove-vestigial-jupyter-package branch March 1, 2024 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: none This pull request should not be mentioned in the release notes status: single reviewer ok https://drake.mit.edu/reviewable.html

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants