matplotlib / matplotlib/ipympl
Plugin changes authentication in http requests to local files
- Dominant language
- Jupyter Notebook
- Stars
- 1.7k
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Description
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`.
Contributor guide
Research direction
Start with the linked jupyterlab_bokeh and Altair issues, then reproduce the local `/files/...` request with ipympl installed and absent. Trace why the request loses cookies and receives a 302 redirect to `/login`; done means local-file requests retain the expected cookies and no longer redirect unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter, jupyter-notebook
- Domain
- authentication, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100