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

[gui] [ipython] Add GUI.__del__ to close on variable dereference #1869

Merged
merged 7 commits into from Sep 26, 2020

Conversation

archibate
Copy link
Collaborator

Related issue = #

[Click here for the format server]


Otherwise window doesn't get closed after the script execution in sth like Jupyter or Blender (TODO: confirm if this work)

@archibate archibate marked this pull request as draft September 13, 2020 16:10
@codecov
Copy link

codecov bot commented Sep 13, 2020

Codecov Report

Merging #1869 into master will increase coverage by 0.08%.
The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1869      +/-   ##
==========================================
+ Coverage   44.21%   44.29%   +0.08%     
==========================================
  Files          44       44              
  Lines        6111     6113       +2     
  Branches     1092     1092              
==========================================
+ Hits         2702     2708       +6     
+ Misses       3240     3236       -4     
  Partials      169      169              
Impacted Files Coverage Δ
python/taichi/lang/shell.py 15.38% <0.00%> (+15.38%) ⬆️
python/taichi/misc/gui.py 8.80% <33.33%> (+0.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update afb6d8e...2021dbd. Read the comment docs.

Copy link
Contributor

@JYLeeLYJ JYLeeLYJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These code looks great to me.


More optional:
It's better to simply test on windows and Jupyter to confirm here is no any other things changes.
Would u mind me delaying these tests for a few days ? Cause I 'm staying outside these days and without related environment : )

@archibate archibate marked this pull request as ready for review September 18, 2020 08:52
Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

python/taichi/misc/gui.py Outdated Show resolved Hide resolved
@archibate archibate added the LGTM label Sep 22, 2020
@archibate archibate merged commit 3b62912 into taichi-dev:master Sep 26, 2020
@yuanming-hu yuanming-hu mentioned this pull request Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants