Commit 1395f165 authored by Duggan, John's avatar Duggan, John
Browse files

Move Trame --server callout to module 4

parent 98109304
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -128,11 +128,6 @@ poetry run app

You should see `Fractal tool finished successfully.` printed to the console.

::::::::::::::::::::::::::::::::::::::::: callout
By default, trame will open a new tab in the browser and bring it to focus. If this is undesired behavior, it can be prevented by using ```poetry run app --server```.

::::::::::::::::::::::::::::::::::::::::::::::::::

## Asynchronous tool execution

At times, it may be desirable to execute a tool or workflow without waiting on the result. The class Tool method run has an optional `wait` parameter. The default is true so that the tool is run in a blocking manner. However, by setting the parameter to false, the tool will be run asynchronously in a non-blocking manner.
+5 −0
Original line number Diff line number Diff line
@@ -292,6 +292,11 @@ poetry run app

The application should launch a tab in your web browser. The GUI will have a `FRACTAL` tab and a few sample tabs which were created by the template application. The run button on the `Fractal` tab can be used to launch the `Fractal` NDIP tool. The tool will take a few minutes to complete but when it does, the resulting `Fractal` image will be displayed.

::::::::::::::::::::::::::::::::::::::::: callout
If you don't want Trame to launch a tab by default, you can instead run ```poetry run app --server```.

::::::::::::::::::::::::::::::::::::::::::::::::::

:::::::::::::::::::::::::::::::::::::::  challenge
**Trigger Pydantic Validation Error (Programmatic)**
*   In `Fractal` in `src/nova_tutorial/app/models/fractal.py`, modify the `set_fractal_type` function from the previous exercise to use an *invalid* fractal type: