jupyter / jupyter/notebook

Notebook 7: Many bundle.js files are loaded while opening a notebook page

Open
#7,300 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Description

There are more than 100 bundle.js files loaded while opening a notebook page

Screenshot 2024-03-20 at 10 25 06

It increases a page loading time when the notebook is opened from the remote machine (not from localhost).

Reproduce

  1. Open Network tab in the Browser Dev console
  2. Load a notebook page
  3. Network tab will show more than 100 requests for loading different bundle.js files

Expected behavior

Bundle js files to reduce a number of requests.

Context

  • Operating System and version: MacOS and Linux
  • Browser and version: Chrome 122.0.6261.94
  • Jupyter Notebook version: 7.1.2
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter notebook` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.

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.

Research direction

Start by reproducing the issue in Jupyter Notebook 7.1.2 from a remote machine and inspect Chrome's Network tab while opening a notebook page. Identify why more than 100 bundle.js requests are made; done means the required JavaScript is bundled or otherwise loaded with substantially fewer requests and the remote page opens faster.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jupyter-notebook
Domain
frontend, performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.