Skip to content

Commit

Permalink
Misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Sep 3, 2024
1 parent a2e2541 commit 0a6d5dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
4 changes: 1 addition & 3 deletions panel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"links": "panel.links",
"pane": "panel.pane",
"panel": "panel.pane:panel",
"param": None, # available in panel/param.py
"param": "panel.param",
"pipeline": "panel.pipeline",
"reactive": "panel.reactive",
"serve": "panel.io:serve",
Expand All @@ -120,8 +120,6 @@
def __getattr__(name: str) -> object:
if name == "no_lazy":
for attr in _attrs:
if attr in ("param"):
continue
mod = __getattr__(attr)
if hasattr(mod, "_attrs"):
getattr(mod._attrs, "no_lazy", None)
Expand Down
15 changes: 1 addition & 14 deletions panel/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

from concurrent.futures import ThreadPoolExecutor
from functools import cache, partial
from importlib import import_module

import param
import requests

from bokeh.model import Model

from . import no_lazy # noqa: F401
from .config import config, panel_extension
from .io.resources import RESOURCE_URLS
from .reactive import ReactiveHTML
Expand Down Expand Up @@ -54,19 +54,6 @@ def _download(url):
response, error = None, e
return response, error

def _walk_module(mod=None):
if mod is None:
mod = import_module("panel")
if not hasattr(mod, '_attrs'):
return

for sub_name in mod._attrs:
submod = getattr(mod, sub_name)
if submod:
_walk_module(submod)

_walk_module()

#---------------------------------------------------------------------
# Public API
#---------------------------------------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion panel/pane/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ def get_pane_type(cls, obj: Any, **kwargs) -> type['PaneBase']:
return type(obj)
descendents = []

from . import no_lazy # noqa
# the following hvplot test fail if this is not imported
# test_interactive_pandas_series_plot_kind_attr
from .. import _interact # noqa: F401
from . import no_lazy # noqa: F401
for p in param.concrete_descendents(PaneBase).values():
if p.priority is None:
applies = True
Expand Down

0 comments on commit 0a6d5dd

Please sign in to comment.