We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add ability to open custom notebook in Panelite.
The Jupyter lite extension https://github.com/jupyterlab-contrib/jupyterlab-open-url-parameter enables you to open a notebook from an url in Jupyterlite.

This would be really powerful to include in the build of Panelite as we can the start to share links to notebooks that opens quickly for the user with a working environment.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `doc/conf.py`
Content:
```
1 import json
2 import os
3 import pathlib
4 
5 import param
6 
7 param.parameterized.docstring_signature = False
8 param.parameterized.docstring_describe_params = False
9 
10 from nbsite.shared_conf import *
11 
12 project = 'Panel'
13 authors = 'Panel contributors'
14 copyright_years['start_year'] = '2019'
15 copyright = copyright_fmt.format(**copyright_years)
16 description = 'High-level dashboarding for python visualization libraries'
17 
18 import panel
19 
20 from panel.io.convert import BOKEH_VERSION, PY_VERSION
21 from panel.io.resources import CDN_DIST
22 
23 PANEL_ROOT = pathlib.Path(panel.__file__).parent
24 
25 version = release = base_version(panel.__version__)
26 js_version = json.loads((PANEL_ROOT / 'package.json').read_text())['version']
27 
28 # For the interactivity warning box created by nbsite to point to the right
29 # git tag instead of the default i.e. main.
30 os.environ['BRANCH'] = f"v{release}"
31 
32 html_static_path += ['_static']
33 
34 html_css_files = [
35     'nbsite.css',
36     'css/custom.css',
37     'css/dataframe.css',
38 ]
39 
40 html_theme = "pydata_sphinx_theme"
41 html_logo = "_static/logo_horizontal.png"
42 html_favicon = "_static/icons/favicon.ico"
43 
44 html_theme_options = {
45     "github_url": "https://github.com/holoviz/panel",
46     "icon_links": [
47         {
48             "name": "Twitter",
49             "url": "https://twitter.com/Panel_Org",
50             "icon": "fab fa-twitter-square",
51         },
52         {
53             "name": "Discourse",
54             "url": "https://discourse.holoviz.org/c/panel/5",
55             "icon": "fab fa-discourse",
56         },
57     ],
58     "footer_items": [
59         "copyright",
60         "last-updated",
61     ],
62     "google_analytics_id": "UA-154795830-2",
63     "pygment_light_style": "material",
64     "pygment_dark_style": "material",
65     "header_links_before_dropdown": 6
66 }
67 
68 extensions += [
69     'sphinx.ext.napoleon',
70     'nbsite.gallery',
71     'sphinx_copybutton',
72     'nbsite.pyodide'
73 ]
74 napoleon_numpy_docstring = True
75 
76 myst_enable_extensions = ["colon_fence", "deflist"]
77 
78 nbsite_gallery_conf = {
79     'github_org': 'holoviz',
80     'github_project': 'panel',
81     'galleries': {
82         'gallery': {
83             'title': 'Gallery',
84             'sections': [
85                 {'path': 'demos',
86                  'title': 'Demos',
87                  'description': 'A set of sophisticated apps built to demonstrate the features of Panel.'},
88                 {'path': 'simple',
89                  'title': 'Simple Apps',
90                  'description': 'Simple example apps meant to provide a quick introduction to Panel.'},
91                 {'path': 'layout',
92                  'title': 'Layouts',
93                  'description': 'How to leverage Panel layout components to achieve complex layouts.'},
94                 {'path': 'dynamic',
95                  'title': 'Dynamic UIs',
96                  'description': ('Examples demonstrating how to build dynamic UIs with components that '
97                                  'are added or removed interactively.')},
98                 {'path': 'streaming',
99                  'title': 'Streaming',
100                  'description': ('Streaming data to a visual component.')},
101                 {'path': 'components',
102                  'title': 'Custom components',
103                  'description': "Components created using Panel's ReactiveHTML class."},
104                 {'path': 'styles',
105                  'title': 'Styling & Theming',
106                  'description': "Examples demonstrating how to style and theme different components."},
107                 {'path': 'external',
108                  'title': 'External libraries',
109                  'description': 'Wrapping external libraries with Panel.'}
110             ]
111         },
112         'reference': {
113             'title': 'Reference Gallery',
114             'sections': [
115                 'panes',
116                 'layouts',
117                 'templates',
118                 'global',
119                 'indicators',
120                 'widgets',
121             ],
122             'titles': {
123                 'Vega': 'Altair & Vega',
124                 'DeckGL': 'PyDeck & Deck.gl',
125                 'ECharts': 'PyEcharts & ECharts',
126                 'IPyWidget': 'ipywidgets'
127             },
128             'normalize_titles': False
129         }
130     },
131     'thumbnail_url': 'https://assets.holoviz.org/panel/thumbnails',
132     'deployment_url': 'https://panel-gallery.pyviz.demo.anaconda.com/'
133 }
134 
135 if panel.__version__ != version and (PANEL_ROOT / 'dist' / 'wheels').is_dir():
136     py_version = panel.__version__.replace("-dirty", "")
137     panel_req = f'./wheels/panel-{py_version}-py3-none-any.whl'
138     bokeh_req = f'./wheels/bokeh-{BOKEH_VERSION}-py3-none-any.whl'
139 else:
140     panel_req = f'{CDN_DIST}wheels/panel-{PY_VERSION}-py3-none-any.whl'
141     bokeh_req = f'{CDN_DIST}wheels/bokeh-{BOKEH_VERSION}-py3-none-any.whl'
142 
143 nbsite_pyodide_conf = {
144     'requirements': [bokeh_req, panel_req, 'pandas', 'pyodide-http', 'holoviews>=1.16.0a2']
145 }
146 
147 templates_path = [
148     '_templates'
149 ]
150 
151 html_context.update({
152     "last_release": f"v{release}",
153     "github_user": "holoviz",
154     "github_repo": "panel",
155     "default_mode": "light"
156 })
157 
158 nbbuild_patterns_to_take_along = ["simple.html", "*.json", "json_*"]
159 
160 # Override the Sphinx default title that appends `documentation`
161 html_title = f'{project} v{version}'
162 
163 suppress_warnings = ["myst.header", "ref.myst", "mystnb.unknown_mime_type"]
164
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/doc/conf.py b/doc/conf.py
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -55,10 +55,6 @@
             "icon": "fab fa-discourse",
         },
     ],
-    "footer_items": [
-        "copyright",
-        "last-updated",
-    ],
     "google_analytics_id": "UA-154795830-2",
     "pygment_light_style": "material",
     "pygment_dark_style": "material",
@@ -111,6 +107,7 @@
         },
         'reference': {
             'title': 'Reference Gallery',
+            'as_pyodide': True,
             'sections': [
                 'panes',
                 'layouts',
@@ -129,7 +126,8 @@
         }
     },
     'thumbnail_url': 'https://assets.holoviz.org/panel/thumbnails',
-    'deployment_url': 'https://panel-gallery.pyviz.demo.anaconda.com/'
+    'deployment_url': 'https://panel-gallery.pyviz.demo.anaconda.com/',
+    'jupyterlite_url': 'https://panelite.holoviz.org/lab/index.html'
 }
 
 if panel.__version__ != version and (PANEL_ROOT / 'dist' / 'wheels').is_dir():

{"golden_diff": "diff --git a/doc/conf.py b/doc/conf.py\n--- a/doc/conf.py\n+++ b/doc/conf.py\n@@ -55,10 +55,6 @@\n             \"icon\": \"fab fa-discourse\",\n         },\n     ],\n-    \"footer_items\": [\n-        \"copyright\",\n-        \"last-updated\",\n-    ],\n     \"google_analytics_id\": \"UA-154795830-2\",\n     \"pygment_light_style\": \"material\",\n     \"pygment_dark_style\": \"material\",\n@@ -111,6 +107,7 @@\n         },\n         'reference': {\n             'title': 'Reference Gallery',\n+            'as_pyodide': True,\n             'sections': [\n                 'panes',\n                 'layouts',\n@@ -129,7 +126,8 @@\n         }\n     },\n     'thumbnail_url': 'https://assets.holoviz.org/panel/thumbnails',\n-    'deployment_url': 'https://panel-gallery.pyviz.demo.anaconda.com/'\n+    'deployment_url': 'https://panel-gallery.pyviz.demo.anaconda.com/',\n+    'jupyterlite_url': 'https://panelite.holoviz.org/lab/index.html'\n }\n \n if panel.__version__ != version and (PANEL_ROOT / 'dist' / 'wheels').is_dir():\n", "issue": "Add ability to open custom notebook in Panelite.\nThe Jupyter lite extension https://github.com/jupyterlab-contrib/jupyterlab-open-url-parameter enables you to open a notebook from an url in Jupyterlite.\n\nThis would be really powerful to include in the build of Panelite as we can the start to share links to notebooks that opens quickly for the user with a working environment.\n", "before_files": [{"content": "import json\nimport os\nimport pathlib\n\nimport param\n\nparam.parameterized.docstring_signature = False\nparam.parameterized.docstring_describe_params = False\n\nfrom nbsite.shared_conf import *\n\nproject = 'Panel'\nauthors = 'Panel contributors'\ncopyright_years['start_year'] = '2019'\ncopyright = copyright_fmt.format(**copyright_years)\ndescription = 'High-level dashboarding for python visualization libraries'\n\nimport panel\n\nfrom panel.io.convert import BOKEH_VERSION, PY_VERSION\nfrom panel.io.resources import CDN_DIST\n\nPANEL_ROOT = pathlib.Path(panel.__file__).parent\n\nversion = release = base_version(panel.__version__)\njs_version = json.loads((PANEL_ROOT / 'package.json').read_text())['version']\n\n# For the interactivity warning box created by nbsite to point to the right\n# git tag instead of the default i.e. main.\nos.environ['BRANCH'] = f\"v{release}\"\n\nhtml_static_path += ['_static']\n\nhtml_css_files = [\n    'nbsite.css',\n    'css/custom.css',\n    'css/dataframe.css',\n]\n\nhtml_theme = \"pydata_sphinx_theme\"\nhtml_logo = \"_static/logo_horizontal.png\"\nhtml_favicon = \"_static/icons/favicon.ico\"\n\nhtml_theme_options = {\n    \"github_url\": \"https://github.com/holoviz/panel\",\n    \"icon_links\": [\n        {\n            \"name\": \"Twitter\",\n            \"url\": \"https://twitter.com/Panel_Org\",\n            \"icon\": \"fab fa-twitter-square\",\n        },\n        {\n            \"name\": \"Discourse\",\n            \"url\": \"https://discourse.holoviz.org/c/panel/5\",\n            \"icon\": \"fab fa-discourse\",\n        },\n    ],\n    \"footer_items\": [\n        \"copyright\",\n        \"last-updated\",\n    ],\n    \"google_analytics_id\": \"UA-154795830-2\",\n    \"pygment_light_style\": \"material\",\n    \"pygment_dark_style\": \"material\",\n    \"header_links_before_dropdown\": 6\n}\n\nextensions += [\n    'sphinx.ext.napoleon',\n    'nbsite.gallery',\n    'sphinx_copybutton',\n    'nbsite.pyodide'\n]\nnapoleon_numpy_docstring = True\n\nmyst_enable_extensions = [\"colon_fence\", \"deflist\"]\n\nnbsite_gallery_conf = {\n    'github_org': 'holoviz',\n    'github_project': 'panel',\n    'galleries': {\n        'gallery': {\n            'title': 'Gallery',\n            'sections': [\n                {'path': 'demos',\n                 'title': 'Demos',\n                 'description': 'A set of sophisticated apps built to demonstrate the features of Panel.'},\n                {'path': 'simple',\n                 'title': 'Simple Apps',\n                 'description': 'Simple example apps meant to provide a quick introduction to Panel.'},\n                {'path': 'layout',\n                 'title': 'Layouts',\n                 'description': 'How to leverage Panel layout components to achieve complex layouts.'},\n                {'path': 'dynamic',\n                 'title': 'Dynamic UIs',\n                 'description': ('Examples demonstrating how to build dynamic UIs with components that '\n                                 'are added or removed interactively.')},\n                {'path': 'streaming',\n                 'title': 'Streaming',\n                 'description': ('Streaming data to a visual component.')},\n                {'path': 'components',\n                 'title': 'Custom components',\n                 'description': \"Components created using Panel's ReactiveHTML class.\"},\n                {'path': 'styles',\n                 'title': 'Styling & Theming',\n                 'description': \"Examples demonstrating how to style and theme different components.\"},\n                {'path': 'external',\n                 'title': 'External libraries',\n                 'description': 'Wrapping external libraries with Panel.'}\n            ]\n        },\n        'reference': {\n            'title': 'Reference Gallery',\n            'sections': [\n                'panes',\n                'layouts',\n                'templates',\n                'global',\n                'indicators',\n                'widgets',\n            ],\n            'titles': {\n                'Vega': 'Altair & Vega',\n                'DeckGL': 'PyDeck & Deck.gl',\n                'ECharts': 'PyEcharts & ECharts',\n                'IPyWidget': 'ipywidgets'\n            },\n            'normalize_titles': False\n        }\n    },\n    'thumbnail_url': 'https://assets.holoviz.org/panel/thumbnails',\n    'deployment_url': 'https://panel-gallery.pyviz.demo.anaconda.com/'\n}\n\nif panel.__version__ != version and (PANEL_ROOT / 'dist' / 'wheels').is_dir():\n    py_version = panel.__version__.replace(\"-dirty\", \"\")\n    panel_req = f'./wheels/panel-{py_version}-py3-none-any.whl'\n    bokeh_req = f'./wheels/bokeh-{BOKEH_VERSION}-py3-none-any.whl'\nelse:\n    panel_req = f'{CDN_DIST}wheels/panel-{PY_VERSION}-py3-none-any.whl'\n    bokeh_req = f'{CDN_DIST}wheels/bokeh-{BOKEH_VERSION}-py3-none-any.whl'\n\nnbsite_pyodide_conf = {\n    'requirements': [bokeh_req, panel_req, 'pandas', 'pyodide-http', 'holoviews>=1.16.0a2']\n}\n\ntemplates_path = [\n    '_templates'\n]\n\nhtml_context.update({\n    \"last_release\": f\"v{release}\",\n    \"github_user\": \"holoviz\",\n    \"github_repo\": \"panel\",\n    \"default_mode\": \"light\"\n})\n\nnbbuild_patterns_to_take_along = [\"simple.html\", \"*.json\", \"json_*\"]\n\n# Override the Sphinx default title that appends `documentation`\nhtml_title = f'{project} v{version}'\n\nsuppress_warnings = [\"myst.header\", \"ref.myst\", \"mystnb.unknown_mime_type\"]\n", "path": "doc/conf.py"}], "after_files": [{"content": "import json\nimport os\nimport pathlib\n\nimport param\n\nparam.parameterized.docstring_signature = False\nparam.parameterized.docstring_describe_params = False\n\nfrom nbsite.shared_conf import *\n\nproject = 'Panel'\nauthors = 'Panel contributors'\ncopyright_years['start_year'] = '2019'\ncopyright = copyright_fmt.format(**copyright_years)\ndescription = 'High-level dashboarding for python visualization libraries'\n\nimport panel\n\nfrom panel.io.convert import BOKEH_VERSION, PY_VERSION\nfrom panel.io.resources import CDN_DIST\n\nPANEL_ROOT = pathlib.Path(panel.__file__).parent\n\nversion = release = base_version(panel.__version__)\njs_version = json.loads((PANEL_ROOT / 'package.json').read_text())['version']\n\n# For the interactivity warning box created by nbsite to point to the right\n# git tag instead of the default i.e. main.\nos.environ['BRANCH'] = f\"v{release}\"\n\nhtml_static_path += ['_static']\n\nhtml_css_files = [\n    'nbsite.css',\n    'css/custom.css',\n    'css/dataframe.css',\n]\n\nhtml_theme = \"pydata_sphinx_theme\"\nhtml_logo = \"_static/logo_horizontal.png\"\nhtml_favicon = \"_static/icons/favicon.ico\"\n\nhtml_theme_options = {\n    \"github_url\": \"https://github.com/holoviz/panel\",\n    \"icon_links\": [\n        {\n            \"name\": \"Twitter\",\n            \"url\": \"https://twitter.com/Panel_Org\",\n            \"icon\": \"fab fa-twitter-square\",\n        },\n        {\n            \"name\": \"Discourse\",\n            \"url\": \"https://discourse.holoviz.org/c/panel/5\",\n            \"icon\": \"fab fa-discourse\",\n        },\n    ],\n    \"google_analytics_id\": \"UA-154795830-2\",\n    \"pygment_light_style\": \"material\",\n    \"pygment_dark_style\": \"material\",\n    \"header_links_before_dropdown\": 6\n}\n\nextensions += [\n    'sphinx.ext.napoleon',\n    'nbsite.gallery',\n    'sphinx_copybutton',\n    'nbsite.pyodide'\n]\nnapoleon_numpy_docstring = True\n\nmyst_enable_extensions = [\"colon_fence\", \"deflist\"]\n\nnbsite_gallery_conf = {\n    'github_org': 'holoviz',\n    'github_project': 'panel',\n    'galleries': {\n        'gallery': {\n            'title': 'Gallery',\n            'sections': [\n                {'path': 'demos',\n                 'title': 'Demos',\n                 'description': 'A set of sophisticated apps built to demonstrate the features of Panel.'},\n                {'path': 'simple',\n                 'title': 'Simple Apps',\n                 'description': 'Simple example apps meant to provide a quick introduction to Panel.'},\n                {'path': 'layout',\n                 'title': 'Layouts',\n                 'description': 'How to leverage Panel layout components to achieve complex layouts.'},\n                {'path': 'dynamic',\n                 'title': 'Dynamic UIs',\n                 'description': ('Examples demonstrating how to build dynamic UIs with components that '\n                                 'are added or removed interactively.')},\n                {'path': 'streaming',\n                 'title': 'Streaming',\n                 'description': ('Streaming data to a visual component.')},\n                {'path': 'components',\n                 'title': 'Custom components',\n                 'description': \"Components created using Panel's ReactiveHTML class.\"},\n                {'path': 'styles',\n                 'title': 'Styling & Theming',\n                 'description': \"Examples demonstrating how to style and theme different components.\"},\n                {'path': 'external',\n                 'title': 'External libraries',\n                 'description': 'Wrapping external libraries with Panel.'}\n            ]\n        },\n        'reference': {\n            'title': 'Reference Gallery',\n            'as_pyodide': True,\n            'sections': [\n                'panes',\n                'layouts',\n                'templates',\n                'global',\n                'indicators',\n                'widgets',\n            ],\n            'titles': {\n                'Vega': 'Altair & Vega',\n                'DeckGL': 'PyDeck & Deck.gl',\n                'ECharts': 'PyEcharts & ECharts',\n                'IPyWidget': 'ipywidgets'\n            },\n            'normalize_titles': False\n        }\n    },\n    'thumbnail_url': 'https://assets.holoviz.org/panel/thumbnails',\n    'deployment_url': 'https://panel-gallery.pyviz.demo.anaconda.com/',\n    'jupyterlite_url': 'https://panelite.holoviz.org/lab/index.html'\n}\n\nif panel.__version__ != version and (PANEL_ROOT / 'dist' / 'wheels').is_dir():\n    py_version = panel.__version__.replace(\"-dirty\", \"\")\n    panel_req = f'./wheels/panel-{py_version}-py3-none-any.whl'\n    bokeh_req = f'./wheels/bokeh-{BOKEH_VERSION}-py3-none-any.whl'\nelse:\n    panel_req = f'{CDN_DIST}wheels/panel-{PY_VERSION}-py3-none-any.whl'\n    bokeh_req = f'{CDN_DIST}wheels/bokeh-{BOKEH_VERSION}-py3-none-any.whl'\n\nnbsite_pyodide_conf = {\n    'requirements': [bokeh_req, panel_req, 'pandas', 'pyodide-http', 'holoviews>=1.16.0a2']\n}\n\ntemplates_path = [\n    '_templates'\n]\n\nhtml_context.update({\n    \"last_release\": f\"v{release}\",\n    \"github_user\": \"holoviz\",\n    \"github_repo\": \"panel\",\n    \"default_mode\": \"light\"\n})\n\nnbbuild_patterns_to_take_along = [\"simple.html\", \"*.json\", \"json_*\"]\n\n# Override the Sphinx default title that appends `documentation`\nhtml_title = f'{project} v{version}'\n\nsuppress_warnings = [\"myst.header\", \"ref.myst\", \"mystnb.unknown_mime_type\"]\n", "path": "doc/conf.py"}]}