Skip to content

Add the terminal #63

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

Merged
merged 7 commits into from
Jun 11, 2025
Merged

Add the terminal #63

merged 7 commits into from
Jun 11, 2025

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Jun 10, 2025

To have a terminal on the demo deployment for Jupyter, using https://github.com/jupyterlite/terminal

image

image

Copy link

lite-badge 👈 Try it on ReadTheDocs

@jtpio
Copy link
Member Author

jtpio commented Jun 10, 2025

cc @ianthomas23 it's looking good on ReadTheDocs, and with vim!

https://try-jupyter--63.org.readthedocs.build/en/63/lite/lab/index.html

image

@@ -4,6 +4,8 @@ channels:
dependencies:
- python =3.12
- mamba
- micromamba =2.0.5
- nodejs =22
Copy link
Member Author

Choose a reason for hiding this comment

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

It would be great to not have to depend on nodejs as a user of jupyterlite-terminal.

But this can likely be tracked in https://github.com/jupyterlite/terminal or https://github.com/jupyterlite/cockle.

Copy link

@ianthomas23 ianthomas23 Jun 11, 2025

Choose a reason for hiding this comment

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

Removing it is not an option.

@jtpio jtpio marked this pull request as ready for review June 10, 2025 21:31
- jupyterlite-xeus>=4.0.0
- notebook >=7.4.3,<7.5
- pip
- plotly >=6,<7
# micromamba and nodejs are needed for jupyterlite-terminal
- micromamba =2.0.5

Choose a reason for hiding this comment

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

I've been using micromamba 2.1 locally without any problems, so maybe remove the pin and see if that works here.

Copy link
Member Author

Choose a reason for hiding this comment

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

@martinRenou mentioned something about newer releases causing some issues? jupyterlite/xeus#248

Copy link
Member

Choose a reason for hiding this comment

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

I wasn't able to reproduce micromamba >2.0.5 issues on all build setups. e.g. the jupyterlite-xeus deployment on readthedocs is always failing, but other deployments like the one of jupytergis works just fine.

Anyway, micromamba is being pinned by the jupyterlite-xeus package on conda-forge, so if you install it from conda-forge you don't need to pin anything.

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, happy to relax the pin then if there is no issue anymore. Maybe still keeping an upper bound on <3 just in case.

Copy link
Member

Choose a reason for hiding this comment

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

I'd let jupyterlite-xeus manage its dependency though, so I'd suggest simply removing this

Copy link
Member Author

Choose a reason for hiding this comment

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

But here jupyterlite-terminal also requires micromamba, and jupyterlite-terminal on conda forge currently does not depend on it even though it's used in https://github.com/jupyterlite/cockle/blob/a6debb757c8f232e4d260eab37d7aa0db2d28f1d/src/tools/prepare_wasm.ts#L121.

So I guess it makes sense to add the dependency here to avoid using the implicit dependency from jupyterlite-xeus?

Copy link
Member

Choose a reason for hiding this comment

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

Ah got it! I missed this information

@jtpio
Copy link
Member Author

jtpio commented Jun 11, 2025

Thanks @ianthomas23 and @martinRenou for the reviews!

Looks like it would already be useful to have the terminal in its current state, so happy to merge!

@jtpio jtpio merged commit 3026baa into jupyter:main Jun 11, 2025
3 checks passed
@jtpio jtpio deleted the terminal branch June 11, 2025 12:16
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.

3 participants