diff --git a/pyproject.toml b/pyproject.toml index 05455969e54..47b9dea8515 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,11 +27,11 @@ classifiers = [ dependencies = [ "importlib-metadata>=4.0; python_version<='3.8'", - "ansys-api-pyensight==0.3.3", + "ansys-api-pyensight==0.3.4", "requests>=2.28.2", "docker>=6.1.0", "urllib3<2", - "numpy>=1.21.0", + "numpy>=1.21.0,<2", "Pillow>=9.3.0", ] diff --git a/src/ansys/pyensight/core/renderable.py b/src/ansys/pyensight/core/renderable.py index b79d9e5e4c2..4585354730a 100644 --- a/src/ansys/pyensight/core/renderable.py +++ b/src/ansys/pyensight/core/renderable.py @@ -579,21 +579,30 @@ def update(self): class RenderableVNCAngular(Renderable): def __init__(self, *args, **kwargs) -> None: super().__init__(*args, **kwargs) - self._query_params = { - "autoconnect": "true", - "host": self._session.hostname, - "port": self._session.ws_port, - "secretKey": self._session.secret_key, - } + self._generate_url() self._rendertype = "remote" self.update() def update(self): version = _get_ansysnexus_version(self._session._cei_suffix) - url = f"{self._http_protocol}://{self._session.html_hostname}:{self._session.html_port}" - url += f"/ansys{version}/nexus/angular/viewer_angular_pyensight.html" - url += self._get_query_parameters_str(self._query_params) - self._url = url + base_content = f""" + + + + + WebEnSight + + + + + +""" + module_with_attributes = "\n \n' + script_src = '\n' + content = base_content + module_with_attributes + script_src + self._save_remote_html_page(content) super().update()