Skip to main content

Browse, share, and publish files on the Janelia file system

Project description

Fileglancer frontend extension

Github Actions Status

React-based frontend extension for the Fileglancer app.

Development install

Clone the repo to your local environment and change directory to the new repo folder.

git clone git@github.com:JaneliaSciComp/fileglancer.git
cd fileglancer

If this is your first time installing the extension in dev mode, install package in development mode.

pixi run dev-install

You can build the frontend extension in watch mode - it will automatically rebuild when there are file changes to the frontend:

pixi run dev-watch

In new terminal, run JupyterLab in autoreload mode - it will automatically rebuild when there are file changes to the backend:

pixi run dev-launch

Saved changes in your directory should now be automatically built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).

If everything has worked so far, you should see the Fileglancer widget on the Launcher pane:

Screenshot of the JupyterLab Launcher panel. In the bottom section, titled "Other", the square tile with the title "Fileglancer" is circled

Troubleshooting the extension

If you run into any build issues, the first thing to try is to clear the build directories and start from scratch:

./clean.sh

If you're still having issues, try manually deleting the symlink at .pixi/envs/share/jupyter/labextensions/fileglancer inside the fileglancer repo directory. Then, reinstall the extension using pixi run dev-install, and follow the steps above from there.

Configuration

By default, no Fileglancer Central server will be used. You can configure the URL of a Fileglancer Central server with traitlets, in several ways:

Command line

pixi run dev-launch --Fileglancer.central_url=http://0.0.0.0:7878

Config file

You can create a file at ~/.jupyter/jupyter_server_config.py (or in any of the paths reported by pixi run jupyter --paths) and add your configuration there, e.g.:

c.Fileglancer.central_url='http://0.0.0.0:7878'

Development Uninstall

pixi run pip-uninstall

In development mode, you will also need to remove the symlink created by jupyter labextension develop command. To find its location, you can run jupyter labextension list to figure out where the labextensions folder is located. Then you can remove the symlink named fileglancer within that folder.

Testing

Backend tests

To run backend tests using pytest:

pixi run test-backend

Frontend unit tests

This extension is using Vitest for JavaScript code testing.

To execute the unit tests:

pixi run test-frontend

Integration tests

This extension uses Playwright for the integration tests (aka user level tests). More precisely, the JupyterLab helper Galata is used to handle testing the extension in JupyterLab. More information are provided within the ui-tests README.

To execute the UI integration test, run:

pixi run ui-test

You can also run these in UI debug mode using:

pixi run ui-test -- --ui --debug

If you are unable to use the UI mode, record a trace for inspecting in the Playwright trace viewer:

pixi run ui-test -- --trace on

To run only a specific test:

pixi run ui-test -- --<optional-flag> tests/fgzones.spec.ts

You can also use the name of the test:

pixi run ui-test -- -g "the test description"

Packaging and Releases

See RELEASE

Project details


Release history Release notifications | RSS feed

This version

1.0.0

Download files

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

Source Distribution

fileglancer-1.0.0.tar.gz (7.7 MB view details)

Uploaded Source

Built Distribution

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

fileglancer-1.0.0-py3-none-any.whl (7.1 MB view details)

Uploaded Python 3

File details

Details for the file fileglancer-1.0.0.tar.gz.

File metadata

  • Download URL: fileglancer-1.0.0.tar.gz
  • Upload date:
  • Size: 7.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fileglancer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 20c03078873ed4c6b6d3ea37a20d6ba6bd41a9f835ad4ea485c100edfe857aa9
MD5 f1fbacf5f924c1e6195575939ad62865
BLAKE2b-256 a1c5eec3855ef56bb1d70e432aa59a8e185589256a7f608ff3f5a33f171cc051

See more details on using hashes here.

File details

Details for the file fileglancer-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fileglancer-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fileglancer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f088c3bb13d46627a0d871225f1e138d0a1af4e3d527973d6706c4e14a345a8f
MD5 136f06be105a2600d3b07012d2822fe1
BLAKE2b-256 9f80639dad66d0543111d88b63cae9271393b1180bed5aaa098d564bfa12e33f

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