Skip to content

Commit 5932b27

Browse files
committed
fix for WASM version
1 parent a302e70 commit 5932b27

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/codeaudit/dashboard_reports.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
API functions: Used for dashboard reporting (Panel / WASM) and notebooks, or to build custom reports.
1313
"""
1414

15+
import panel as pn
16+
pn.extension()
17+
1518
from codeaudit.api_interfaces import version_info
1619

1720
SAST_REPORT_CSS = """
@@ -94,6 +97,7 @@ def _require_panel():
9497
"""
9598
try:
9699
import panel as pn
100+
pn.extension()
97101

98102
return pn
99103
except ImportError:

src/dashboard/dashboardapp.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838

3939
from codeaudit.api_interfaces import get_package_source , version_info
4040

41-
42-
4341
from codeaudit.dashboard_reports import (
4442
create_statistics_overview,
4543
get_disclaimer_text,

0 commit comments

Comments
 (0)