You can give a first try at starting the web server by running the webgeodyn.example:
You can give a first try at starting the web server by running the example:
```sh
```sh
python3 webgeodyn/example.py
python3 webgeodyn/example.py
```
```
or in python console:
or in the Python console:
```python
```python
importwebgeodyn.example
>>>importwebgeodyn.example
```
```
This starts the server locally and should open your browser and display a page ressembling the one at https://geodyn.univ-grenoble-alpes.fr/. You can try the different visualisations tools provided on the loaded example model ([CHAOS-6](http://www.space.dtu.dk/english/Research/Scientific_data_and_models/Magnetic_Field_Models)).
This starts the server locally and should open your browser and display a page ressembling the one at https://geodyn.univ-grenoble-alpes.fr/. If not, try to type `http://localhost:8080` in your browser.
Note that this example will also try to load the result from the latest `pygeodyn` computation if needed.
You can try the different visualisations tools provided on the loaded example model ([CHAOS-6](http://www.space.dtu.dk/english/Research/Scientific_data_and_models/Magnetic_Field_Models)).
Note that this example will also try to load the result from the latest `pygeodyn` computation (if present in `~/pygeodyn_results/Current_computation/`).
## Running the server with your data
## Running the server with your data
The server can be used to load data under a supported format for visualisation. For that, it is necessary to follow the template of `example.py`:
The server can be used to visualise any data of supported format. For that, it is necessary to follow the template of `example.py`:
- First, load the data under the form of `Model` objects, of a given name and format, in a `Models` dictionary.
- First, load the data under the form of `Model` objects, of a given name and format, in a `Models` dictionary.
- Then, the server must be started with the loaded `Models`.
- Then, the server must be started with the loaded `Models`.