NubladoPythonLoop#
- class mobu.services.business.nubladopythonloop.NubladoPythonLoop(*, options, user, events, logger, flock)#
Bases:
NubladoBusiness
Run simple Python code in a loop inside a lab kernel.
- Parameters:
options (
NubladoPythonLoopOptions
) – Configuration options for the business.user (
AuthenticatedUser
) – User with their authentication token to use to run the business.logger (
BoundLogger
) – Logger to use to report the results of business.flock (
str
|None
) – Flock that is running this business, if it is running in a flock.events (
Events
)
Methods Summary
execute_code
(session)Execute some code inside the Jupyter lab.
Methods Documentation
- async execute_code(session)#
Execute some code inside the Jupyter lab.
Must be overridden by subclasses to use the provided lab session to perform whatever operations are desired inside the lab. If multiple blocks of code are being executed, call
execution_idle
between each one.- Parameters:
session (
JupyterLabSession
) – Authenticated session to the Nublado lab.- Return type: