matplotlib / matplotlib/ipympl

Plugin changes authentication in http requests to local files

未关闭
#53 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Jupyter Notebook
星标
1.7k
派生
234
PR 合并指标
30 天内没有已合并 PR

描述

I've run into this via https://github.com/bokeh/jupyterlab_bokeh/issues/42 and https://github.com/altair-viz/altair/issues/927.

When ipympl is installed, http requests to local files (GET /files/...) made by the vega plugin stop working. They get forwarded to /login with a 302 status code. Installing ipympl seems to cause the requests to be sent without any cookies. In my case requests without ipympl present had cookie data _xsrf, csrftoken, username-localhost-8888, username-localhost-8889.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

先从链接的 jupyterlab_bokeh 和 Altair issue 开始,然后分别在已安装和未安装 ipympl 的情况下重现本地 /files/... 请求。追踪请求丢失 cookie 并收到指向 /login 的 302 重定向的原因;完成的标准是本地文件请求保留预期的 cookie,并且不再意外重定向。

由索引模型根据 Issue 内容生成。

评估

技术栈
jupyter, jupyter-notebook
领域
authentication, web-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。