Skip to content

Commit

Permalink
hotfix/ Installer Backend (#5022)
Browse files Browse the repository at this point in the history
* Update backend.py

* bump pywry

* bump again :/
  • Loading branch information
tehcoderer authored May 15, 2023
1 parent a7c3d29 commit 7fa23c3
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 deletions openbb_terminal/core/plots/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def send_figure(
json_data.update(self.get_json_update(command_location))

outgoing = dict(
html_path=self.get_plotly_html(),
html=self.get_plotly_html(),
json_data=json_data,
export_image=export_image,
**self.get_kwargs(command_location),
Expand Down Expand Up @@ -300,7 +300,7 @@ def send_table(
)

outgoing = dict(
html_path=self.get_table_html(),
html=self.get_table_html(),
json_data=json.dumps(json_data),
width=width,
height=self.HEIGHT - 100,
Expand Down Expand Up @@ -335,7 +335,7 @@ def send_url(
</script>
"""
outgoing = dict(
html_str=script,
html=script,
**self.get_kwargs(title),
width=width or self.WIDTH,
height=height or self.HEIGHT,
Expand All @@ -359,7 +359,7 @@ async def check_backend(self):
"""Override to check if isatty."""
if self.isatty:
message = (
"[bold red]PyWry version 0.5.5 or higher is required to use the "
"[bold red]PyWry version 0.5.6 or higher is required to use the "
"OpenBB Plots backend.[/]\n"
"[yellow]Please update pywry with 'pip install pywry --upgrade'[/]"
)
Expand All @@ -374,7 +374,7 @@ async def check_backend(self):

PyWry.__version__ = pywry_version # pylint: disable=W0201

if version.parse(PyWry.__version__) < version.parse("0.5.5"):
if version.parse(PyWry.__version__) < version.parse("0.5.6"):
console.print(message)
self.max_retries = 0 # pylint: disable=W0201
return
Expand All @@ -385,7 +385,7 @@ def close(self, reset: bool = False):
if reset:
self.max_retries = 50 # pylint: disable=W0201

super().close(reset)
super().close()


async def download_plotly_js():
Expand Down
32 changes: 16 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jupyterlab-widgets = "^3.0.3"
mstarpy = "^0.0.4"
packaging = ">=22.0"
streamlit = "^1.22.0"
pywry = "^0.5.5"
pywry = "^0.5.8"
svglib = "^1.5.0"
sparqlwrapper = "^2.0.0"
y-py = "!=0.5.5" # Untraceable third level dependency that requires cargo to be built
Expand Down
2 changes: 1 addition & 1 deletion requirements-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ pytz==2022.7.1 ; python_version >= "3.8" and python_full_version != "3.9.7" and
pywin32-ctypes==0.2.0 ; python_version >= "3.8" and python_version < "3.11" and python_full_version != "3.9.7" and sys_platform == "win32"
pywin32==305 ; sys_platform == "win32" and platform_python_implementation != "PyPy" and python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pywinpty==2.0.10 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11" and os_name == "nt"
pywry==0.5.5 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pywry==0.5.8 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pyyaml==6.0 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pyzmq==25.0.1 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
qdldl==0.1.5.post3 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pytz-deprecation-shim==0.1.0.post0 ; python_version >= "3.8" and python_full_ver
pytz==2022.7.1 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pywin32==305 ; sys_platform == "win32" and platform_python_implementation != "PyPy" and python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pywinpty==2.0.10 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11" and os_name == "nt"
pywry==0.5.5 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pywry==0.5.8 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pyyaml==6.0 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
pyzmq==25.0.1 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
quandl==3.7.0 ; python_version >= "3.8" and python_full_version != "3.9.7" and python_version < "3.11"
Expand Down

0 comments on commit 7fa23c3

Please sign in to comment.