Skip to content

Commit

Permalink
Mitigate issue marcomusy#769: don't set backend to '2d' in IPython REPLs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbrodersen committed Apr 30, 2024
1 parent c6eab95 commit fa674d2
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 fa674d2

Please sign in to comment.