JupyterLabJobService クラス

JupyterLab ジョブ サービスの構成。

継承
azure.ai.ml.entities._job.job_service.JobServiceBase
JupyterLabJobService

コンストラクター

JupyterLabJobService(*, endpoint: str | None = None, nodes: Literal['all'] | None = None, status: str | None = None, port: int | None = None, properties: Dict[str, str] | None = None, **kwargs: Any)

キーワードのみのパラメーター

名前 説明
endpoint

エンドポイント URL。

port

エンドポイントのポート。

nodes
Optional[Literal["all"]]

サービスをすべてのノードで実行する必要があるかどうかを示します。

properties

エンドポイントに設定する追加のプロパティ。

status

エンドポイントの状態。

kwargs

追加の構成パラメーターのディクショナリ。

コマンド ジョブでの JupyterLabJobService 構成の構成。


   from azure.ai.ml import command
   from azure.ai.ml.entities import JupyterLabJobService, SshJobService, TensorBoardJobService, VsCodeJobService

   node = command(
       name="interactive-command-job",
       description="description",
       environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu:33",
       command="ls",
       compute="testCompute",
       services={
           "my_ssh": SshJobService(),
           "my_tensorboard": TensorBoardJobService(log_dir="~/blog"),
           "my_jupyter_lab": JupyterLabJobService(),
           "my_vscode": VsCodeJobService(),
       },
   )

変数

名前 説明
type
str

ジョブ サービスの種類を指定します。 このクラスの "jupyter_lab" に自動的に設定します。

メソッド

get
has_key
items
keys
update
values

get

get(key: Any, default: Any | None = None) -> Any

パラメーター

名前 説明
key
必須
default
既定値: None

has_key

has_key(k: Any) -> bool

パラメーター

名前 説明
k
必須

items

items() -> list

keys

keys() -> list

update

update(*args: Any, **kwargs: Any) -> None

values

values() -> list