Skip to content

Commit 1f0c56c

Browse files
committed
adds missing pandas dependency
1 parent 3d33db4 commit 1f0c56c

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
55

66
[project]
77
name = "snapquery"
8-
description = "snapquery: Introduce Named Queries and Named Query Middleware to wikidata"
8+
description = "Just Query wikidata and other SPARQL endpoints by query name - a frontend to Introduce Named Queries and Named Query Middleware to wikidata and other SPARQL endpoints "
99
keywords = [ "nicegui", "wikidata","SPARQL","query","middleware","qlever","blazegraph"]
1010
home-page = "https://github.com/WolfgangFahl/snapquery"
1111
authors = [
@@ -40,6 +40,8 @@ dependencies = [
4040
#"mwoauth@git+https://github.com/mediawiki-utilities/python-mwoauth"
4141
#https://pypi.org/project/tqdm/
4242
"tqdm>=4.66.4",
43+
#https://pypi.org/project/pandas/
44+
"pandas>=2.3.3",
4345
# https://pypi.org/project/nicegui/
4446
# force pin of nicegui
4547
"nicegui[plotly]==2.24.2",

snapquery/snapquery_view.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
@author: wf
55
"""
66

7-
import pandas as pd
8-
import plotly.express as px
97
from lodstorage.params import Params
10-
from lodstorage.query import QuerySyntaxHighlight, ValueFormatter
8+
from lodstorage.query import QuerySyntaxHighlight, ValueFormatter, \
9+
ValueFormatters
1110
from ngwidgets.input_webserver import InputWebSolution
1211
from ngwidgets.lod_grid import ListOfDictsGrid
1312
from ngwidgets.widgets import Link
14-
from nicegui import app, background_tasks, run, ui
15-
13+
from nicegui import background_tasks, run, ui
1614
from snapquery.basequeryview import BaseQueryView
1715
from snapquery.params_view import ParamsView
1816
from snapquery.query_annotate import SparqlQueryAnnotater
19-
from snapquery.snapquery_core import NamedQuery, NamedQueryManager, QueryBundle, QueryStats
17+
from snapquery.snapquery_core import NamedQueryManager, QueryBundle, QueryStats
18+
19+
import pandas as pd
20+
import plotly.express as px
2021

2122

2223
class NamedQueryView:
@@ -38,8 +39,8 @@ def __init__(
3839
self.load_task = None
3940
self.limit = 200
4041
self.timeout = 20.0
41-
# preload ValueFormatter
42-
ValueFormatter.getFormats()
42+
# preload ValueFormatters
43+
ValueFormatters.get_instance()
4344
self.setup_ui()
4445

4546
def setup_ui(self):

0 commit comments

Comments
 (0)