Skip to main content

An elfinder connector built with FastAPI, specifically for working with jupyter server proxy.

Project description

ImJoy elFinder Binder Open In Colab PyPI Version Test

A web file browser for managing data on remote jupyter servers, specifically built for the ImJoy project, an open source platform for deploying computational tools to the end user.

The frontend is built with elFinder and a Python backend server.

What is elFinder

elFinder is an open-source file manager for web, written in JavaScript using jQuery and jQuery UI, the project is maintained by Studio 42.

Try their online demo here.

Installation

Python 3.7+ is required.

pip install -U imjoy-elfinder

Basic Usage

In your terminal, run the following command:

imjoy-elfinder --thumbnail

(The thumbnail option enables thumbnail for images, it will create a folder named .tmb under your current folder, you can also disable that by remove the --thumbnail option.)

You will then see the following message:

==========ImJoy elFinder server is running=========
http://127.0.0.1:8765

Depending on where you started the command, the file browser will show your current folder as root directory or HOME.

In order to browse your own directory, you can manually set the root directory by passing --root-dir=/PATH/TO/MY/FOLDER.

imjoy-elfinder-screenshot

Use it with remote Jupyter notebook server

If you don't have jupyter notebook, run:

pip install -U jupyter

Next, install ImJoy elFinder with jupyter server proxy extension:

pip install -U imjoy-elfinder[jupyter]

Now start Jupyter notebook as you would do normally, for example:

jupyter notebook --ip=0.0.0.0

You will get a web file browser at http://YOUR_NOTEBOOK_URL/elfinder (depending on what you get from your notebook, for example, the url can be http://localhost:8000/elfinder).

Start a demo with MyBinder

  1. Start an instance on MyBinder: https://mybinder.org/v2/gh/imjoy-team/imjoy-elfinder/master?urlpath=elfinder

  2. You should be able to see a file browser.

Security Considerations

Please be aware that there is potential risk to use ImJoy elFinder locally or remotely over the internet.

Here are some suggestions:

  1. Try to set root-dir to a folder containing the files you actually need, as minimal as possible, avoid exposing the entire file system.

  2. For remote servers, use it via the Jupyter proxy such that the access will be protected by jupyter token or password. also, do not turn off the authentication in Jupyter.

  3. For running it locally, we use allow-origin header (CORS) to protect access from a random website, for that to work, please use a modern browser and keep it updated.

  4. Update ImJoy elFinder regularly with 'pip install -U imjoy-elfinder', in case there is security updates.

Development

  • For developers, you can enable hot reloading by using hupper:
hupper -m imjoy_elfinder
  • Install all development requirements with:
pip install -r requirements_dev.txt

You can also watch additional files by add -w (e.g.: hupper -m imjoy_elfinder -w imjoy_elfinder/templates/elfinder/main.js)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imjoy-elfinder-0.1.62.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imjoy_elfinder-0.1.62-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

Details for the file imjoy-elfinder-0.1.62.tar.gz.

File metadata

  • Download URL: imjoy-elfinder-0.1.62.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for imjoy-elfinder-0.1.62.tar.gz
Algorithm Hash digest
SHA256 df5bb529437459c67c74ff4f3e393652b64060732fdc215c5695e875ba8f68d5
MD5 de1677c80a5fb117c2cc864f91d19855
BLAKE2b-256 30a2fbcac66d5777ab67a150d4eb164a2964a652a48258fe9391266e24650651

See more details on using hashes here.

File details

Details for the file imjoy_elfinder-0.1.62-py3-none-any.whl.

File metadata

File hashes

Hashes for imjoy_elfinder-0.1.62-py3-none-any.whl
Algorithm Hash digest
SHA256 9d4f3711280b77981f1a309a64a05c107b4813d003ca25d398bda542953bb785
MD5 2a2eba282a88fdade0cafa3640cbab3b
BLAKE2b-256 50abb5576a66332d05d1deff5f4fe3126c1961bf7eeb6004861d369dcee6ab5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page