MCPcopy Index your code
hub / github.com/plotly/plotly.py / timeout

Method timeout

plotly/io/_orca.py:420–440  ·  view source on GitHub ↗

The number of seconds of inactivity required before the orca server is shut down. For example, if timeout is set to 20, then the orca server will shutdown once is has not been used for at least 20 seconds. If timeout is set to None, then the server will not

(self)

Source from the content-addressed store, hash-verified

418
419 @property
420 def timeout(self):
421 """
422 The number of seconds of inactivity required before the orca server
423 is shut down.
424
425 For example, if timeout is set to 20, then the orca
426 server will shutdown once is has not been used for at least
427 20 seconds. If timeout is set to None, then the server will not be
428 automatically shut down due to inactivity.
429
430 Regardless of the value of timeout, a running orca server may be
431 manually shut down like this:
432
433 >>> import plotly.io as pio
434 >>> pio.orca.shutdown_server()
435
436 Returns
437 -------
438 int or float or None
439 """
440 return self._props.get("timeout", None)
441
442 @timeout.setter
443 def timeout(self, val):

Callers

nothing calls this directly

Calls 4

shutdown_serverFunction · 0.85
getMethod · 0.45
popMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected