Skip to content

Commit

Permalink
FIX: silence spurious warning on Python 3.11 (closes #263)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdementen committed Oct 5, 2023
1 parent 48b86fb commit 6ce43ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions larray_editor/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,10 @@ def _setup_and_check(self, widget, data, title, readonly, stack_pos=None, add_la
self.arraywidget.model_data.dataChanged.connect(self.update_title)

if qtconsole_available:
# silence a warning on Python 3.11 (see issue #263)
if "PYDEVD_DISABLE_FILE_VALIDATION" not in os.environ:
os.environ["PYDEVD_DISABLE_FILE_VALIDATION"] = "1"

# Create an in-process kernel
kernel_manager = QtInProcessKernelManager()
kernel_manager.start_kernel(show_banner=False)
Expand Down

0 comments on commit 6ce43ed

Please sign in to comment.