From 57d07ede5403e33a575412c6e523958c95ddef5b Mon Sep 17 00:00:00 2001 From: joocer Date: Thu, 30 Nov 2023 22:34:12 +0000 Subject: [PATCH] 0.0.128 --- orso/dataframe.py | 11 ++++++++++- orso/version.py | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/orso/dataframe.py b/orso/dataframe.py index cb882d5..76fb410 100644 --- a/orso/dataframe.py +++ b/orso/dataframe.py @@ -396,7 +396,16 @@ def __len__(self) -> int: return len(self._rows) def __repr__(self) -> str: - return f"" + """ + If we're in a notebook, return a table, otherwise return a tag + """ + try: + from IPython import get_ipython + + i_am_in_a_notebook = get_ipython() is not None + except ImportError: + return f"" + return str(self) def __str__(self) -> str: size: int = 10 diff --git a/orso/version.py b/orso/version.py index afa1998..9a05568 100644 --- a/orso/version.py +++ b/orso/version.py @@ -10,5 +10,5 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__: str = "0.0.127" +__version__: str = "0.0.128" __author__: str = "@joocer"