Skip to content

Commit

Permalink
adding docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Oct 23, 2024
1 parent 0110a4a commit e60b554
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v0.5.0dev

### New Features
* sample data now available!

## v0.5.0

### New Features
Expand Down
Binary file added assets/images/readme_sample_data.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ See the :code:`yt` `documentation <https://yt-project.org/doc/installing.html#le
2. install :code:`yt-napari`
****************************

You can install the `yt-napari` plugin with:
You can install the `yt-napari` plugin with minimal dependencies using:

.. code-block:: bash
pip install yt-napari
To include optional dependencies required for loading sample data:

.. code-block:: bash
pip install yt-napari[full]
If you are missing either :code:`yt` or :code:`napari` (or they need to be updated), the above installation will fetch and run a minimal installation for both.

To install the latest development version of the plugin instead, use:
Expand Down
21 changes: 19 additions & 2 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ After installation, there are three modes of using :code:`yt-napari`:
2. :ref:`loading a json file from the napari gui<jsonload>`
3. :ref:`napari gui plugins<naparigui>`

Additionally, you can configure some behavior between napari sessions: see :ref:`Configuring yt-napari<configfile>`.
Additional quick start topics include:

* Configuring some :code:`yt-napari` behavior between napari sessions: see :ref:`Configuring yt-napari<configfile>`.
* Loading sample data: see :ref:`Loading sample data<sampledata>`.

.. _jupyusage:

Expand Down Expand Up @@ -148,10 +151,24 @@ The following options are available:

* :code:`in_memory_cache`, :code:`bool` (default :code:`true`). When :code:`true`,
the widget and json-readers will store references to yt datasets in an in-memory
cache. Subsequents loads of the same dataset will then use the available dataset
cache. Subsequent loads of the same dataset will then use the available dataset
handle. This behavior can also be manually controlled in the widget and json
options -- changing it in the configuration will simply change the default value.


Note that boolean values in :code:`toml` files start with lowercase: :code:`true` and
:code:`false` (instead of :code:`True` and :code:`False`).

.. _sampledata:

Loading sample data
*******************

A full install of :code:`yt-napari` (:code:`pip install yt-napari[full]`) will
allow you to load a selection of the
`yt sample datasets <https://yt-project.org/data/>`_ from the napari GUI.

Note that some of the sample datasets are large (multiple GBs) and the first time
that you try to load a dataset you'll have to wait for the datafile to download.

.. image:: _static/readme_sample_data.gif

0 comments on commit e60b554

Please sign in to comment.