Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTML Repr for ProcessInterface Class and all its subclasses #5181

Merged
merged 22 commits into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion distributed/deploy/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ async def finished(self):
await self._event_finished.wait()

def __repr__(self):
return f"<{type(self).__name__}: status={self.status}>"
status = str(self.status).split(".")[1]
return f"<{type(self).__name__}: status={status}>"
jacobtomlinson marked this conversation as resolved.
Show resolved Hide resolved

def _repr_html_(self):
freyam marked this conversation as resolved.
Show resolved Hide resolved
if self.status == Status.created:
Expand Down
3 changes: 2 additions & 1 deletion distributed/deploy/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ async def close(self):
await super().close()

def __repr__(self):
return f"<{dask.utils.typename(type(self))}: status={self.status}>"
status = str(self.status).split(".")[1]
return f"<{dask.utils.typename(type(self))}: status={status}>"

def _repr_html_(self):
return super()._repr_html_()
Expand Down