From 8788413f440d7dd05daab8b5a44968e99a1880ac Mon Sep 17 00:00:00 2001 From: Vaibhavi Srivastava Date: Wed, 30 Apr 2025 23:14:48 +0000 Subject: [PATCH] Add SDK version display to Job Configuration tab --- cybergis_compute_client/UI.py | 11 +++++++++++ cybergis_compute_client/__init__.py | 3 ++- cybergis_compute_client/_version.py | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 cybergis_compute_client/_version.py diff --git a/cybergis_compute_client/UI.py b/cybergis_compute_client/UI.py index bd563de..73e5374 100644 --- a/cybergis_compute_client/UI.py +++ b/cybergis_compute_client/UI.py @@ -1,3 +1,7 @@ + + + + import os import math import ipywidgets as widgets @@ -5,6 +9,10 @@ from IPython.display import Markdown, display, clear_output from .MarkdownTable import MarkdownTable # noqa +#my work +from ._version import __version__ + + class UI: """ @@ -41,6 +49,7 @@ class UI: """ def __init__(self, compute, defaultJobName="hello_world", defaultDataFolder="./", defaultRemoteResultFolder=None): self.compute = compute + self.input_params = {} self.style = {'description_width': 'auto'} self.layout = widgets.Layout(width='60%') self.jobs = None @@ -81,6 +90,8 @@ def render(self): # 1. job template job_config = widgets.Output() with job_config: + #My work + display(Markdown(f"**SDK Version:** {__version__}")) display(Markdown('# Welcome to CyberGIS-Compute')) display(Markdown('A scalable middleware framework for enabling high-performance and data-intensive geospatial research and education on CyberGIS-Jupyter. [Click here for documentation.](https://cybergis.github.io/cybergis-compute-python-sdk/index.html)')) display(divider) diff --git a/cybergis_compute_client/__init__.py b/cybergis_compute_client/__init__.py index 87329ee..f30748e 100644 --- a/cybergis_compute_client/__init__.py +++ b/cybergis_compute_client/__init__.py @@ -16,4 +16,5 @@ limitations under the License. """ -from .CyberGISCompute import CyberGISCompute # noqa F401 \ No newline at end of file +from .CyberGISCompute import CyberGISCompute # noqa F401 +from ._version import __version__ diff --git a/cybergis_compute_client/_version.py b/cybergis_compute_client/_version.py new file mode 100644 index 0000000..3bf8acd --- /dev/null +++ b/cybergis_compute_client/_version.py @@ -0,0 +1 @@ +__version__ = "0.3.5"