# Panel JS cannot be found - Static Library Loading

**URL:** <https://discourse.holoviz.org/t/panel-js-cannot-be-found-static-library-loading/6697>\
**Category:** Panel\
**Tags:** bokeh\
**Created:** [January 7, 2024, 6:27pm UTC](https://discourse.holoviz.org/t/panel-js-cannot-be-found-static-library-loading/6697 "2024-01-07T18:27:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![victoriayuechen](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/victoriayuechen/32/6172_2.png) [@victoriayuechen](https://discourse.holoviz.org/u/victoriayuechen)\
**Post date:** [January 7, 2024, 6:27pm UTC](https://discourse.holoviz.org/t/panel-js-cannot-be-found-static-library-loading/6697/1 "2024-01-07T18:27:13Z")

</div>

Hi all,

I was using to `panel.Video` to create a simple UI on Jupyter Notebook. It worked fine on my local machine until I deployed it in a new environment (virtual machine with no internet). I checked that the version of all libraries I was using was the same (e.g. Bokeh 3.1.1 etc.).

I have also checked other online resources for a solution but none worked so far. I have ran the snippet below. Apparently, this should work to inline the resources, so that I don’t need to view the panel videos in another window. (source: [Bokeh plot not showing in Jupyter. Only says "Loading BokehJS ..." - Stack Overflow](https://stackoverflow.com/questions/41841261/bokeh-plot-not-showing-in-jupyter-only-says-loading-bokehjs))

```auto
from bokeh.resources import INLINE
import bokeh.io

bokeh.io.output_notebook(INLINE)

```

(As a side note, if I do `.server()`, everything works fine, but I need to display it in the Notebook.) But this results in a JQuery error.

```auto
Loading BokehJS ...

Javascript Error: assignment to undeclared variable jQuery

```

I have also looked at the developer console, which outputs the following:

 ![error-bokeh](https://discourse.holoviz.org/uploads/default/original/2X/8/879457dadd1e8cee8d47a0e57a4647d8c6c03bad.png)

When I checked with `!bokeh info`, it seems like the static library can be found:

```auto
Python version : 3.8.10 (default, May 26 2023, 14:05:08) 
IPython version : 7.22.0
Tornado version : 6.1
Bokeh version : 3.1.1
BokehJS static path : /cluster/home/<username>/.local/lib/python3.8/site-packages/bokeh/server/static
node.js version : (not installed)
npm version : (not installed)
Operating system : Linux-5.4.0-166-generic-x86_64-with-glibc2.29

```

Does anyone have an idea about how to fix this issue? Could it be with versioning or does the panel simply not work without an interenet connection? I would appreciate any insight! Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ea42gh](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ea42gh/32/73_2.png) [@ea42gh](https://discourse.holoviz.org/u/ea42gh)\
**Post date:** [January 7, 2024, 7:06pm UTC](https://discourse.holoviz.org/t/panel-js-cannot-be-found-static-library-loading/6697/2 "2024-01-07T19:06:57Z")

</div>

Similar issues. I managed to get my installation working by

- shutting down all notebooks
- clearing the browser cache
- restarting jupyter lab with only one notebook open

Hope this helps

See [Help! How do I get a working version of Holoviews? - #5 by ahuang11](https://discourse.holoviz.org/t/help-how-do-i-get-a-working-version-of-holoviews/6682/5)

---

<div class="post-metadata">

**Author:** ![victoriayuechen](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/victoriayuechen/32/6172_2.png) [@victoriayuechen](https://discourse.holoviz.org/u/victoriayuechen)\
**Post date:** [January 8, 2024, 10:38am UTC](https://discourse.holoviz.org/t/panel-js-cannot-be-found-static-library-loading/6697/3 "2024-01-08T10:38:28Z")

</div>

Unfortunately that doesn’t work. I have restarted everything and cleared the cache. When I try to display a Video pane, I get the following output error.

 ![missing-bokehjs](https://discourse.holoviz.org/uploads/default/original/2X/0/0a8539d0d5540a612c0f8cbcc94ce9d3d0fddf86.png)  
This is quite strange since I didn’t think it would be missing the Bokeh library. It is not loading anything static, but I can see from the developer console that it is still trying to load the resource from a CDN server (e.g. [https://cdn.holoviz.org/panel/1.0.0/dist/panel.min.js](https://cdn.holoviz.org/panel/1.0.0/dist/panel.min.js)). I also ran the snippet

```auto
from bokeh.resources import INLINE
import bokeh.io

bokeh.io.output_notebook(INLINE)

```

But the same JQuery error occurs. Do you have any more suggestions about why this might be the case? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![victoriayuechen](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/victoriayuechen/32/6172_2.png) [@victoriayuechen](https://discourse.holoviz.org/u/victoriayuechen)\
**Post date:** [January 8, 2024, 11:35am UTC](https://discourse.holoviz.org/t/panel-js-cannot-be-found-static-library-loading/6697/4 "2024-01-08T11:35:21Z")

</div>

Just to add to this, I get the following error when trying to inline the resources.

 ![jquery-error](https://discourse.holoviz.org/uploads/default/original/2X/3/3fd92aeae2ea1d845f9a133b3e9a01fb44bcb4de.png)

---

<div class="post-metadata">

**Author:** ![victoriayuechen](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/victoriayuechen/32/6172_2.png) [@victoriayuechen](https://discourse.holoviz.org/u/victoriayuechen)\
**Post date:** [January 8, 2024, 11:48am UTC](https://discourse.holoviz.org/t/panel-js-cannot-be-found-static-library-loading/6697/5 "2024-01-08T11:48:55Z")

</div>

Okay I managed to fix this using this issue thread ([CSS is missing when inlining static resources. · Issue #5167 · holoviz/panel · GitHub](https://github.com/holoviz/panel/issues/5167) and [Add ability to inline internal resources in Jupyter · Issue #3013 · holoviz/panel · GitHub](https://github.com/holoviz/panel/issues/3013)).

Essentially,

```auto
pn.extension(inline=True)

```
