mirror of
https://github.com/clearml/clearml-docs
synced 2025-06-26 18:17:44 +00:00
Refactor integrations section (#600)
This commit is contained in:
28
docs/integrations/python_fire.md
Normal file
28
docs/integrations/python_fire.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
title: Python Fire
|
||||
---
|
||||
|
||||
Python Fire is a Python package for creating command-line interfaces.
|
||||
ClearML integrates seamlessly with `fire` and automatically logs its command-line parameters.
|
||||
|
||||
All you have to do is add two lines of code:
|
||||
|
||||
```python
|
||||
from clearml import Task
|
||||
task = Task.init(task_name="<task_name>", project_name="<project_name>")
|
||||
```
|
||||
|
||||
When the code runs, ClearML logs your command-line arguments, which you can view in the [WebApp](../webapp/webapp_overview.md), in the experiment's
|
||||
**Configuration > Hyperparameters > Args** section.
|
||||
|
||||

|
||||
|
||||
In the UI, you can clone the task multiple times and set the clones' parameter values for execution by the [ClearML Agent](../clearml_agent.md).
|
||||
When the clone is executed, the executing agent will use the new parameter values as if set by the command-line.
|
||||
|
||||
See [code examples](https://github.com/allegroai/clearml/blob/master/examples/frameworks/fire) demonstrating integrating
|
||||
ClearML with code that uses `fire`.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user