Skip to main content

A pyramid connector elfinder, specifically for working with jupyter server proxy.

Project description

ImJoy elFinder Binder 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.5+ 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
pip install -U http://github.com/oeway/jupyter-server-proxy/tarball/master#egg=jupyter-server-proxy

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

  2. Get the generated Jupyter Notebook URL and add /elfinder after, make sure you have something like https://hub.gke.mybinder.org/user/oeway-pyramid_elfinder-q2q1dhbn/elfinder

  3. 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.

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.48.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

imjoy_elfinder-0.1.48-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imjoy-elfinder-0.1.48.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for imjoy-elfinder-0.1.48.tar.gz
Algorithm Hash digest
SHA256 8815fc1f93d853658d72bd689e925f90ddac8878640664495b5b8c2716f96bc4
MD5 cbc5b1f44bf73271b93d428305f0bc4b
BLAKE2b-256 43933de32762ef5f26efb1f8bc8f51dee7bffa23e8c12544d17ad30ccadfa700

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: imjoy_elfinder-0.1.48-py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for imjoy_elfinder-0.1.48-py3-none-any.whl
Algorithm Hash digest
SHA256 8b384258209b7047202add8cd759f429fa24611e23f4f856dd0c969ec3624370
MD5 ca8fcecd907be6dd34feee8844767336
BLAKE2b-256 00ee6d890e48a2a6fa347ec026602cd74fc35a96aa885afcb2e115781bccf307

See more details on using hashes here.

Provenance

Supported by

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