-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09f58b2
commit 73a6124
Showing
3 changed files
with
58 additions
and
18 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` --> |
This file was deleted.
Oops, something went wrong.