matplotlib / matplotlib/ipympl

ipympl conda install deletes env's default labextensions state (but works with pip)

オープン
#564 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Jupyter Notebook
スター
1.7k
フォーク
234
PR マージ指標
30日以内にマージされた PR はありません

説明

Describe the issue

Installing ipympl with conda overwrites the content of .../conda/envs/env_name/etc/jupyter/labconfig/page_config.json resulting in enabling of all labextensions for all users (which is a big problem on a JupyterHub).

Install command:

conda install -c conda-forge ipympl

.../conda/envs/env_name/etc/jupyter/labconfig/page_config.json before ipympl install:

{
  "disabledExtensions": {
    "@jupyter/nbgrader:formgrader": true,
    "@jupyter/nbgrader:course-list": true,
    "@jupyter/nbgrader:create-assignment": true,
    "kore-extension": true
  },
  "lockedExtensions": {
    "@jupyter/nbgrader:formgrader": true,
    "@jupyter/nbgrader:course-list": true,
    "@jupyter/nbgrader:create-assignment": true,
    "kore-extension": true
  }
}

and after:

{
  "lockedExtensions": {}
}

This is not caused by a dependency: installing all dependencies first shows that install of ipympl overwrites the file.

Using pip install ipympl everything works as expected (page_config.json remains untouched).

Versions

  • ipympl 0.9.4
  • jupyterlab 4.2.4
  • jupyterhub 5.1.0
# without output from jupyter nbextension list (not installed)

 3.12.5 | packaged by conda-forge | (main, Aug  8 2024, 18:36:51) [GCC 12.4.0]
ipympl version: 0.9.4
Selected Jupyter core packages...
IPython          : 8.26.0
ipykernel        : 6.29.5
ipywidgets       : 8.1.5
jupyter_client   : 8.6.2
jupyter_core     : 5.7.2
jupyter_server   : 2.14.2
jupyterlab       : 4.2.4
nbclient         : 0.10.0
nbconvert        : 7.16.4
nbformat         : 5.10.4
notebook         : 7.2.1
qtconsole        : not installed
traitlets        : 5.14.3
JupyterLab v4.2.4
/opt/conda/envs/jhub/share/jupyter/labextensions
        jupyterlab-execute-time v3.1.2 enabled OK (python, jupyterlab_execute_time)
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        jupyter-matplotlib v0.11.4 enabled OK
        kore-extension v0.1.0 enabled OK (python, kore_extension)
        @jupyter-notebook/lab-extension v7.2.1 enabled OK
        @jupyter-widgets/jupyterlab-manager v5.0.13 enabled OK (python, jupyterlab_widgets)
        @jupyter/nbgrader v0.9.3 enabled OK

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

conda install -c conda-forge ipympl で問題を再現し、インストール前後の .../conda/envs/env_name/etc/jupyter/labconfig/page_config.json を比較します。報告されている pip の動作を比較対象として使用します。conda のインストール後も既存の disabledExtensionslockedExtensions の設定がそのまま維持されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
jupyter-notebook, python
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。