[yt-svn] commit/yt: ngoldbaum: Fixing an issue with progress bars leaving whitespace in the notebook.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Dec 3 05:11:34 PST 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/c62c3cf06c20/
Changeset: c62c3cf06c20
Branch: yt-3.0
User: ngoldbaum
Date: 2013-11-30 20:20:06
Summary: Fixing an issue with progress bars leaving whitespace in the notebook.
Affected #: 1 file
diff -r ce44c24bd28d3d79f7c2d87091902edabbf00bac -r c62c3cf06c207631c1c155d0de64ea9eb92fe711 yt/extern/progressbar/progressbar.py
--- a/yt/extern/progressbar/progressbar.py
+++ b/yt/extern/progressbar/progressbar.py
@@ -410,7 +410,9 @@
from IPython.display import Javascript, display
# First delete the node that held the progress bar from the page
js = """var element = document.getElementById('%s');
- element.parentNode.removeChild(element);""" % self.uuid
+ var parent = element.parentNode
+ parent.removeChild(element);
+ parent.parentElement.remove();""" % self.uuid
display(Javascript(js))
# Then also remove its trace from the cell output (so it doesn't get
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list