lets-plot 4.6.1__cp313-cp313-win_amd64.whl → 4.6.2__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lets-plot might be problematic. Click here for more details.

lets_plot/_version.py CHANGED
@@ -3,4 +3,4 @@
3
3
  # Use of this source code is governed by the MIT license that can be found in the LICENSE file.
4
4
  #
5
5
  # see: https://www.python.org/dev/peps/pep-0440/#developmental-releases
6
- __version__ = '4.6.1'
6
+ __version__ = '4.6.2'
lets_plot/bistro/im.py CHANGED
@@ -53,7 +53,7 @@ def image_matrix(image_data_array,
53
53
 
54
54
  Returns
55
55
  -------
56
- `GGBunch`
56
+ `ggbunch`
57
57
  Plot bunch object.
58
58
 
59
59
  Examples
@@ -27,7 +27,7 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
27
27
 
28
28
  Parameters
29
29
  ----------
30
- plot : `PlotSpec` or `GGBunch`
30
+ plot : `PlotSpec`
31
31
  Plot specification to export.
32
32
  filename : str
33
33
  The name of file. It must end with a file extension corresponding
@@ -94,9 +94,16 @@ def _display_plot(spec: Any):
94
94
  :param spec: PlotSpec or GGBunch object
95
95
  """
96
96
  if not (isinstance(spec, PlotSpec) or isinstance(spec, SupPlotsSpec) or isinstance(spec, GGBunch)):
97
- raise ValueError("PlotSpec, SupPlotsSpec or GGBunch expected but was: {}".format(type(spec)))
97
+ raise ValueError("PlotSpec or SupPlotsSpec expected but was: {}".format(type(spec)))
98
98
 
99
99
  if _default_mimetype == TEXT_HTML:
100
+ if TEXT_HTML not in _frontend_contexts:
101
+ raise RuntimeError(
102
+ "HTML frontend not configured. Before displaying plots, please call either:\n"
103
+ "- LetsPlot.setup_html() for displaying HTML output inplace\n"
104
+ "- LetsPlot.setup_show_ext() for displaying HTML output in an external web browser\n"
105
+ )
106
+
100
107
  if isinstance(_frontend_contexts[TEXT_HTML], WebBrHtmlPageContext):
101
108
  _frontend_contexts[TEXT_HTML].show(spec.as_dict())
102
109
  return
@@ -1,7 +1,8 @@
1
1
  try:
2
2
  import geopandas
3
3
  except ImportError:
4
- raise ValueError("geopandas is required for using the geo_data package") from None
4
+ print("geopandas is required for using the geo_data package")
5
+ raise
5
6
 
6
7
  from .core import *
7
8
  from .geocoder import *