Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to file-like object #938

Merged
merged 20 commits into from
Dec 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change import place
  • Loading branch information
RYangazov committed Dec 5, 2023
commit db92e85989a8703c0e3e3566017d01e0c6d1ea3b
5 changes: 1 addition & 4 deletions python-package/lets_plot/plot/subplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from lets_plot.plot.core import FeatureSpecArray
from lets_plot.plot.core import _specs_to_dict
from lets_plot.plot.core import _theme_dicts_merge
from lets_plot.plot.core import _to_svg, _to_html, _to_png, _to_pdf

__all__ = ['SupPlotsSpec']

Expand Down Expand Up @@ -147,7 +148,6 @@ def to_svg(self, path):
p.to_svg(file_like)
display.SVG(file_like.getvalue())
"""
from ..plot.core import _to_svg
_to_svg(self, path)

def to_html(self, path, iframe: bool = None):
Expand Down Expand Up @@ -183,7 +183,6 @@ def to_html(self, path, iframe: bool = None):
file_like = io.BytesIO()
p.to_html(file_like)
"""
from ..plot.core import _to_html
_to_html(self, path, iframe)

def to_png(self, path, scale=None):
Expand Down Expand Up @@ -227,7 +226,6 @@ def to_png(self, path, scale=None):
p.to_png(file_like)
display.Image(file_like.getvalue())
"""
from ..plot.core import _to_png
_to_png(self, path, scale)

def to_pdf(self, path, scale=None):
Expand Down Expand Up @@ -269,5 +267,4 @@ def to_pdf(self, path, scale=None):
file_like = io.BytesIO()
p.to_pdf(file_like)
"""
from ..plot.core import _to_pdf
_to_pdf(self, path, scale)