Skip to content

Commit 5d14652

Browse files
committed
Misc updates
1 parent a2e2541 commit 5d14652

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

panel/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"links": "panel.links",
105105
"pane": "panel.pane",
106106
"panel": "panel.pane:panel",
107-
"param": None, # available in panel/param.py
107+
"param": "panel.param",
108108
"pipeline": "panel.pipeline",
109109
"reactive": "panel.reactive",
110110
"serve": "panel.io:serve",
@@ -120,8 +120,6 @@
120120
def __getattr__(name: str) -> object:
121121
if name == "no_lazy":
122122
for attr in _attrs:
123-
if attr in ("param"):
124-
continue
125123
mod = __getattr__(attr)
126124
if hasattr(mod, "_attrs"):
127125
getattr(mod._attrs, "no_lazy", None)

panel/compiler.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
from concurrent.futures import ThreadPoolExecutor
1515
from functools import cache, partial
16-
from importlib import import_module
1716

1817
import param
1918
import requests
2019

2120
from bokeh.model import Model
2221

22+
from . import no_lazy # noqa: F401
2323
from .config import config, panel_extension
2424
from .io.resources import RESOURCE_URLS
2525
from .reactive import ReactiveHTML
@@ -54,19 +54,6 @@ def _download(url):
5454
response, error = None, e
5555
return response, error
5656

57-
def _walk_module(mod=None):
58-
if mod is None:
59-
mod = import_module("panel")
60-
if not hasattr(mod, '_attrs'):
61-
return
62-
63-
for sub_name in mod._attrs:
64-
submod = getattr(mod, sub_name)
65-
if submod:
66-
_walk_module(submod)
67-
68-
_walk_module()
69-
7057
#---------------------------------------------------------------------
7158
# Public API
7259
#---------------------------------------------------------------------

panel/pane/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ def get_pane_type(cls, obj: Any, **kwargs) -> type['PaneBase']:
249249
return type(obj)
250250
descendents = []
251251

252-
from . import no_lazy # noqa
252+
from . import no_lazy # noqa: F401
253+
# the following hvplot test fail if this is not imported
254+
# test_interactive_pandas_series_plot_kind_attr
255+
from .. import _interact # noqa: F401
253256
for p in param.concrete_descendents(PaneBase).values():
254257
if p.priority is None:
255258
applies = True

0 commit comments

Comments
 (0)