Skip to content

Commit

Permalink
Refine basic intro page.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnekbytes committed Nov 14, 2024
1 parent 09f58b2 commit 73a6124
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 18 deletions.
Binary file added docs/source/_static/extension_example_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions docs/source/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Jupyter fsspec documentation

![Jupyter FSSpec inside JupyterLab](_static/extension_example_1.png "Jupyter FSSpec inside JupyterLab")

> 📘 Note: This project is in a pre-release state, in active development. Expect instability.
Welcome to the `jupyter_fsspec` documentation, the JupyterLab (!) extension for the `fsspec` Python library.

`jupyter_fsspec` provides a file browser for your `fsspec` filesystems using a config file, and a Python module (`jupyter_fsspec.helper`) for using your defined filesystems inside your notebook kernels.

## Installation

You can install `jupyter_fsspec` with pip, note that this extension is in pre-release so you'll need to add the `--pre` argument (make sure you've installed JupyterLab or another editor first):

`pip install --pre jupyter-fsspec`

Once installed, you will need to enable the Jupyter Server extension with:

`jupyter server extension enable jupyter_fsspec`

You can verify that the JupyterLab extension and Jupyter Server extension are enabled properly with:

```
jupyter labextension list
jupyter serverextension list
```

## Basic Usage

`jupyter_fsspec` lives in the JupyterLab right sidebar, and when you open it, you will
see a list of the filesystems you have defined in the config file (see below). When
you select one of them, you will see a file browser (tree view) of those files below.

To define your `fsspec` filesystems, you will need to list them in the Jupyter config folder,
inside a file named `~/.jupyter/jupyter-fsspec.yaml`. Here's a sample file:

```
sources:
- name: "Cell filter repo"
path: "/Users/egentry/workspace_ana/cfilter"
type: "file"
- name: "Averager project"
path: "file:///Users/egentry/workspace_ana/averager"
```

The config file has a list of sources, where each item needs a name and a path. The name
is a unique identifier, so don't use duplicate names.

You can also optionally specify a type
(which is the type of `fsspec` filesystem should construct). If you prefer you can omit the
`type` argument and include the protocol in the path instead (like in the second entry).

<!--
TODO populate this
```{toctree}
examples/content_child1.md
examples/content_child2.md
``` -->
18 changes: 0 additions & 18 deletions docs/source/index.rst

This file was deleted.

0 comments on commit 73a6124

Please sign in to comment.