Plugin crashes in embedded REPL

Đang mở
#28 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
jupyter, jupyter-notebook, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu từ việc kích hoạt plugin litegitpuller và phần phụ thuộc của nó vào @jupyterlab/filebrowser:IDefaultFileBrowser. Tái hiện lỗi bằng URL Jupyter Lite REPL được cung cấp, sau đó so sánh đường đi đó với dịch vụ ContentsManager được đề xuất. Công việc được xem là hoàn tất khi repository được lấy về và notebook tải trong REPL được nhúng mà không có lỗi kích hoạt plugin, trong khi trang thông thường vẫn tiếp tục hoạt động.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Description

The Litegitpuller plugin fails to load when the environment is an embedded Jupyter Lite REPL. It looks like this is happening because the REPL doesn't include the file browser.

It would be great to be able to use the plugin within an embedded REPL as well as a whole.

Just scanning the documentation, this might be possible if we used ContentsManager to access files, rather than IDefaultFileBrowser.

Image

Reproduce

If Jupyter Lite is hosted on localhost:8000, go to http://localhost:8000/repl/index.html?repo=https%3A%2F%2Fgithub.com%2Fbrichet%2Ftesting-repo&urlpath=notebooks%2Fsimple.ipynb&branch=main

Expected behavior

The git repo is fetched and the notebook loaded the same as it is on http://localhost:8000/index.html

Browser Output
Plugin '@jupyterlite/litegitpuller:plugin' failed to activate. TypeError: No provider for: @jupyterlab/filebrowser:IDefaultFileBrowser.
    resolveRequiredService index.js:574
    n index.js:453
    activatePlugin index.js:453
    e index.js:494
    activatePlugins index.js:492
    start index.es6.js:248
    T index.js:517
    69610 bootstrap.js:177
    69610 bootstrap.js:148
    Webpack 5
[index.js:497:36](webpack://_JUPYTERLAB.CORE_OUTPUT/node_modules/@lumino/coreutils/dist/index.js)
    e http://localhost:8000/build/jlab_core.b189e4f.js:1
    activatePlugins http://localhost:8000/build/jlab_core.b189e4f.js:1
    start http://localhost:8000/build/jlab_core.b189e4f.js:1
    T http://localhost:8000/build/6584.3a10d08.js:1
    69610 http://localhost:8000/build/repl/bundle.js?_=c3ceefd:1
    69610 http://localhost:8000/build/repl/bundle.js?_=c3ceefd:1
    w http://localhost:8000/build/repl/bundle.js?_=c3ceefd:1
    k http://localhost:8000/build/repl/bundle.js?_=c3ceefd:1
    O http://localhost:8000/build/repl/bundle.js?_=c3ceefd:1
     http://localhost:8000/build/repl/bundle.js?_=c3ceefd:1
     http://localhost:8000/build/repl/bundle.js?_=c3ceefd:1
Ngôn ngữ chính
TypeScript
Star
3
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jupyterlite/litegitpuller

Tất cả issue của jupyterlite/litegitpuller

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.