CodeContext#

class rubin.nublado.client.CodeContext(image=None, notebook=None, path=None, cell=None, cell_number=None, cell_source=None, cell_line_number=None, cell_line_source=None)#

Bases: object

Optional context for exception reporting during code execution.

This class can be passed into some NubladoClient methods and will be used to annotate any raised exceptions with any available context information.

Parameters:
  • image (str | None, default: None)

  • notebook (str | None, default: None)

  • path (str | None, default: None)

  • cell (str | None, default: None)

  • cell_number (str | None, default: None)

  • cell_source (str | None, default: None)

  • cell_line_number (str | None, default: None)

  • cell_line_source (str | None, default: None)

Attributes Summary

cell

Identifier of notebook cell (usually a UUID).

cell_line_number

Line number within the cell being executed.

cell_line_source

Line within the cell being executed.

cell_number

Number of the notebook cell.

cell_source

Contents of the notebook cell.

image

Docker image used for JupyterLab.

notebook

Name of the notebook.

path

Path to the notebook.

Attributes Documentation

cell: str | None = None#

Identifier of notebook cell (usually a UUID).

cell_line_number: str | None = None#

Line number within the cell being executed.

cell_line_source: str | None = None#

Line within the cell being executed.

cell_number: str | None = None#

Number of the notebook cell.

cell_source: str | None = None#

Contents of the notebook cell.

image: str | None = None#

Docker image used for JupyterLab.

notebook: str | None = None#

Name of the notebook.

path: str | None = None#

Path to the notebook.