Methodology | Parameter | Feature Description |
dlcutils.fs.ls(path, recurse) | path: str - directory path | List files and subdirectories in the specified directory. |
dlcutils.fs.cp(src, dest) | src: str - source path dest: str - destination path recurse: bool - whether to copy recursively, default False | Copy files or entire directories |
dlcutils.fs.head(path, maxBytes) | path: str - file path maxBytes: int - maximum number of bytes to read, default 1024 | View the beginning of the file. |
dlcutils.fs.mkdir(path) | path: str - directory path | Create a directory, ignoring if it already exists. |
dlcutils.fs.mv(src, dest) | src: str - source path dest: str - destination path | Move or rename files/directories. |
dlcutils.fs.rm(path) | path: str - file or directory path | Delete files or directories. |
dlcutils.fs.rsync(src, dest) | src: str - source directory dest: str - destination directory | Synchronize files from the source directory to the destination directory. |
Methodology | Parameter | Feature Description |
dlcutils.widgets.text(name, default, label) | name: str - widget name default: str - default value label: str - Display Tag, optional | Create a text input widget. |
dlcutils.widgets.get(name) | name: str - widget name | Obtain the current value of the widget. |
dlcutils.widgets.getAll() | - | Obtain the list of key-value pairs for all widgets. |
dlcutils.widgets.remove(name) | name: str - widget name | Delete the specified widget. |
dlcutils.widgets.removeAll() | - | Delete all widgets. |
dlcutils.widgets.dropdown(name, choices, default) | name: str - widget name choices: List[str] - list of options default: str - default value | Create a dropdown. |
dlcutils.widgets.combobox(name, choices, default) | name: str - widget name choices: List[str] - list of options default: str - default value | Create a dropdown that allows input or selection. |
Methodology | Parameter | Feature Description |
dlcutils.notebook.run(path, timeout, arguments) | path: str - Notebook file path timeout: int - timeout period (sec) arguments: str - passed parameters | Call other Notebooks and execute with parameters |
dlcutils.notebook.exit(value) | value: Any - return value | Stop Notebook execution and return the result value. |
dlcutils.library.restartPython() | | Restart the current Kernel. |
Methodology | Parameter | Feature Description |
dlcutils.secrets.get(secretName, secretVersion, region) | secretName: str - secret name (required) secretVersion: str - secret version (required) region: str - region, defaults to the engine's region | Obtain the secret value from Secret Scope. |
Methodology | Parameter | Feature Description |
dlcutils.jobs.taskValues.set(key, value) | key: str - key name value: Any - value | Set the output value for the current task. |
dlcutils.jobs.taskValues.get(taskKey, key, default, debugValue) | taskKey: str - task key key: str - key name default: Any - default value, optional debugValue: Any - debug value, optional | Obtain the output value of the specified task. |
Command | Feature Description | Supported resource types |
%sql / %%sql | Execute SQL queries in the cell. | machine learning resource group (Spark MLlib type) |
%scala / %%scala | Execute Scala code in the cell. | machine learning resource group (Spark MLlib type) |
%python / %%python | Execute Python code in the cell. | all machine learning resource group types |
%restart_python | Restarting the current Kernel. | machine learning resource group (Spark MLlib type) |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan