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"