## viewer_server()


Send the code and render options to the browser for drawing.


Usage


``` python
viewer_server(
    input,
    output,
    session,
    code,
)
```


Call with the same id as [viewer_ui()](viewer_ui.md#shypermaid.viewer_ui), as in `viewer_server("viewer", code=code)`.


## Parameters


`code: reactive.Value[str]`  
Mermaid code to draw, usually the value returned by [editor_server()](editor_server.md#shypermaid.editor_server).
