We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 202817f commit f525228Copy full SHA for f525228
1 file changed
datalab/__init__.py
@@ -11,8 +11,19 @@
11
.. _PlotPyStack: https://github.com/PlotPyStack
12
"""
13
14
+import multiprocessing
15
import os
16
17
+# Set multiprocessing start method to 'spawn' early to avoid fork-related warnings
18
+# on Linux systems when using Qt and multithreading. This must be done before
19
+# any multiprocessing.Pool is created.
20
+try:
21
+ multiprocessing.set_start_method("spawn")
22
+except RuntimeError:
23
+ # This exception is raised if the method is already set (this may happen because
24
+ # this module is imported more than once, e.g. when running tests)
25
+ pass
26
+
27
__version__ = "0.21.0"
28
__docurl__ = __homeurl__ = "https://datalab-platform.com/"
29
__supporturl__ = "https://github.com/DataLab-Platform/DataLab/issues/new/choose"
0 commit comments