Skip to content
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

Support for JupyterLab #16306

Open
jtpio opened this issue Feb 8, 2023 · 7 comments
Open

Support for JupyterLab #16306

jtpio opened this issue Feb 8, 2023 · 7 comments
Assignees
Labels
meta: never-stale This issue can never become stale segment: data-science Used to track issues related to data-science use cases team: IDE type: feature request New feature or request

Comments

@jtpio
Copy link

jtpio commented Feb 8, 2023

Is your feature request related to a problem? Please describe

Currently Gitpod supports a couple of editors and IDEs by default:

image

However these editors are mostly meant for software developers writing code and could be intimidating for other categories of developers.

Describe the behaviour you'd like

Some Data Scientists might also be interested in using Gitpod for their work.

But they might be more familiar with user interfaces like JupyterLab or Jupyter Notebook.

So it would be great if Gitpod could provide support launching JupyterLab as well.

Describe alternatives you've considered

With GitHub Codespaces it's possible to set JupyterLab as the default interface:

image

Currently on Gitpod it's also possible to install JupyterLab with pip install jupyterlab and launch it via a command with something like:

jupyter lab --no-browser --LabApp.token='' --LabApp.allow_origin=* --LabApp.tornado_settings='{"headers": {"Content-Security-Policy": "frame-ancestors *"}}'

But this still requires launching VS code and then opening the service (running on port 8888 by default) in another browser tab to access the JupyterLab interface.

@gtsiolis gtsiolis added type: feature request New feature or request team: IDE labels Feb 9, 2023
@loujaybee loujaybee self-assigned this Feb 13, 2023
@loujaybee
Copy link
Member

Thanks @jtpio ! This is definitely something that have / are considering. We're also looking into ways to make our IDE interfaces more configurable, so they could be community owned, maintained and suggested more freely.

@loujaybee loujaybee added the segment: data-science Used to track issues related to data-science use cases label Mar 1, 2023
@astrojuanlu
Copy link

astrojuanlu commented Apr 16, 2023

+1. I'm an instructor that usually works with data scientists and I am looking into ways to use JupyterLab as the default, and later on switch back to VSCode.

Inspired by that JupyterLab itself does (see their .gitpod.yml), this is what I'm testing on my projects:

tasks:
  ...
  - name: Launch JupyterLab
    init: |
      gp sync-await dependencies
      python -m pip install -r dev-requirements.txt
    # Inspiration: https://github.com/jupyterlab/jupyterlab/blob/a920f33/.gitpod.yml
    # and https://github.com/gitpod-io/gitpod/issues/16306
    command: |
      jupyter lab --port 8888 \
        --ServerApp.token='' \
        --ServerApp.allow_remote_access=true \
        --no-browser

ports:
  - port: 8888

But still usually requires me to explain participants that

  • they have to ignore VSCode for a moment,
  • they must locate the button "open browser", or if they are not quick enough, the ports view
  • they must allow pop-ups from their browser

Not the end of the world, but a bit cumbersome.

@akosyakov
Copy link
Member

There is no heartbeat, so workspace will eventually time out because of inactivity.

@jtpio
Copy link
Author

jtpio commented Jun 13, 2023

There is no heartbeat, so workspace will eventually time out because of inactivity.

Right, that is one major drawback of the current workaround.

@akosyakov
Copy link
Member

It in theory it should be possible to create JLab plugin which grabs workspace token from supervisor, tracks DOM events for activities (mouse, keyboard) and reports them to Gitpod API, similarly how VS Code Web integration does it.

@stale
Copy link

stale bot commented Sep 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Sep 16, 2023
@astrojuanlu
Copy link

activity

@stale stale bot removed the meta: stale This issue/PR is stale and will be closed soon label Sep 16, 2023
@akosyakov akosyakov added the meta: never-stale This issue can never become stale label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: never-stale This issue can never become stale segment: data-science Used to track issues related to data-science use cases team: IDE type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants