diff --git a/graphblas/dtypes.py b/graphblas/dtypes.py index 32e3bf260..06076ccc3 100644 --- a/graphblas/dtypes.py +++ b/graphblas/dtypes.py @@ -257,7 +257,7 @@ def lookup_dtype(key, value=None): return lookup_dtype(key.literal_type) # For numba dtype inference except Exception: pass - raise ValueError(f"Unknown dtype: {key}", type(key)) + raise ValueError(f"Unknown dtype: {key} of type {type(key)}") def unify(type1, type2, *, is_left_scalar=False, is_right_scalar=False): diff --git a/graphblas/recorder.py b/graphblas/recorder.py index 610bff3cf..8f3a9b281 100644 --- a/graphblas/recorder.py +++ b/graphblas/recorder.py @@ -103,9 +103,7 @@ def __iter__(self): def is_recording(self): return self._token is not None and _recorder.get(base._prev_recorder) is self - def _repr_markdown_(self): - # Syntax highlighting from github-flavored markdown looks better than - # using IPython.display.Code or pygments + def _repr_base_(self): status = ( '
', - "", - "```C", - " " + "\n ".join(self.data), - "```", - "", - "