Skip to content

Commit

Permalink
Merge pull request #1108 from paulbrodersen/issue_769
Browse files Browse the repository at this point in the history
Mitigate issue #769: don't set backend to '2d' in IPython REPLs
  • Loading branch information
marcomusy authored Apr 30, 2024
2 parents c6eab95 + fa674d2 commit d9c1483
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vedo/settings.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,10 @@ def __init__(self) -> None:

self.default_backend = "vtk"
try:
get_ipython()
self.default_backend = "2d"
# adapted from: https://stackoverflow.com/a/39662359/2912349
shell = get_ipython().__class__.__name__
if shell == 'ZMQInteractiveShell':
self.default_backend = "2d"
except NameError:
pass

Expand Down

0 comments on commit d9c1483

Please sign in to comment.