We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3d2db4 + 888aa01 commit 3e2e2f6Copy full SHA for 3e2e2f6
nbclient/__init__.py
@@ -1,2 +1,17 @@
1
+import sys
2
+import subprocess
3
from .client import NotebookClient, execute # noqa: F401
4
from ._version import version as __version__ # noqa: F401
5
+
6
7
+def _cleanup():
8
+ pass
9
10
11
+# patch subprocess on Windows for python<3.7
12
+# see https://bugs.python.org/issue37380
13
+# the fix for python3.7: https://github.com/python/cpython/pull/15706/files
14
+if sys.platform == 'win32':
15
+ if sys.version_info < (3, 7):
16
+ subprocess._cleanup = _cleanup
17
+ subprocess._active = None
0 commit comments