Skip to content

Commit

Permalink
Merge pull request #21 from mabel-dev/0.0.128
Browse files Browse the repository at this point in the history
0.0.128
  • Loading branch information
joocer authored Nov 30, 2023
2 parents 82e7a17 + 57d07ed commit 8a1a661
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion orso/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,16 @@ def __len__(self) -> int:
return len(self._rows)

def __repr__(self) -> str:
return f"<orso.dataframe>"
"""
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"<orso.dataframe>"
return str(self)

def __str__(self) -> str:
size: int = 10
Expand Down
2 changes: 1 addition & 1 deletion orso/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8a1a661

Please sign in to comment.