preview_wtml

wwt_data_formats.server.preview_wtml(wtml_path, browser=None, app_type='webclient', app_url=None)[source]

Run a server for a local WTML file and open it in a web browser.

Parameters:
wtml_pathstr

The path to a local WTML file

browseroptional str or None

The type of web browser to use to open the WTML preview application, as understood by the webbrowser module. If unspecified, webbrowser will guess a sensible default.

app_typeoptional str

Which kind or application to use to view the WTML file. Allowed values are "webclient" (the default) for the classic WWT webclient, or "research" for the WWT research application.

app_urloptional str or None

The URL to use for the preview app. If None (the default), the default URL for the specified application is used. Note that this does not supersede the app_type argument because the form of the query string that is passed to the preview app depends on its type.

Returns:
None