# xarray.show_versions

### xarray.show_versions(file=None, markdown=False)[[source]](https://github.com/pydata/xarray/blob/main/xarray/util/print_versions.py#L127-L174)

Print the versions of xarray and its dependencies.

In Jupyter notebooks the versions are displayed as formatted tables.

* **Parameters:**
  * **file** ([file-like](https://docs.python.org/3/glossary.html#term-file-like-object), *optional*) – print to the given file-like object. Defaults to sys.stdout.
  * **markdown** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool), *default*: [`False`](https://docs.python.org/3/builtins/constants.html#False)) – print markdown tables wrapped in a `<details>` block, which can be
    pasted as is into a GitHub issue.
