microsoft / microsoft/Oryx

Oryx install of JupyterLab extension results in incorrect file locations

Open
#1,815 3 comments 0 reactions 1 assignee View on GitHub

@william-msft is already working on this.

Since Jan 17, 2023.

bug
Dominant language
C#
Stars
881
Forks
195
Avg merge
20h 13m
Merged PRs (30d)
13

Description

Bug Report

Oryx is being run automatically by GitHub CodeSpaces on a requirements.txt file for a python workspace.

Installing the extension manually works find:

$ /opt/python/3.10.4/bin/python3.10 -m pip install --user jupyter-bokeh
$ jupyter-labextension list
JupyterLab v3.5.2
/home/codespace/.local/share/jupyter/labextensions
        @bokeh/jupyter_bokeh v3.0.5 enabled OK (python, jupyter_bokeh)

$ pip show -f jupyter-bokeh
...
Files:
  ../../../etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json

$ locate jupyter_bokeh.json
/home/codespace/.local/etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json
/home/codespace/.local/lib/python3.10/site-packages/etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json

Installing the extension using the command Oryx generates does not work:

$ /opt/python/3.10.4/bin/python3.10 -m pip install --cache-dir /usr/local/share/pip-cache --prefer-binary jupyter-bokeh --target=/home/codespace/.local/lib/python3.10/site-packages --upgrade
$ jupyter-labextension list
JupyterLab v3.5.2
/home/codespace/.local/share/jupyter/labextensions

$ pip show -f jupyter-bokeh
...
Files:
  ../../etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json

$ locate jupyter_bokeh.json
/home/codespace/.local/lib/python3.10/site-packages/etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.