Skip to main content

Python Plugin Engine for ImJoy.io

Project description

ImJoy Plugin Engine

The plugin engine used for running python plugins in ImJoy (https://imjoy.io).

Installation (Desktop App)

If you want to use the plugin engine from a desktop environment, download the latest ImJoy-App from here. Follow the instructions according to different operating systems.

You will get an executable file for starting the Plugin Engine.

Installation (Linux servers/clusters)

For using it through a command line interface on a Linux host, run this command in your terminal to install the plugin engine:

wget https://raw.githubusercontent.com/oeway/ImJoy-Engine/master/utils/Linux_Install.sh  -O - | bash

NOTE: When you run the script above, it will first download and install Miniconda3 into $HOME/ImJoyApp, it may take considerably amount of space. If you want to uninstall it, run rm -rf $HOME/ImJoyApp.

To start the plugin engine, run:

export PATH=~/ImJoyApp/bin:$PATH
python -m imjoy --host=0.0.0.0 --port=9527 --serve

Please notice that if you are trying to use ImJoy Plugin Engine running on a remote server, please use the ImJoy web App served on your server (http://YOUR_REMOTE_IP:9527) instead of https://imjoy.io. This is because most browser do not allow a web application served throught https to connect to a unsecured server (your remote server). Alternatively, you use proxy to enable https for the plugin engine, then you will be able to use it with https://imjoy.io.

Installation (alternative solution)

If you you have trouble in using the above ImJoyEngine, do the following:

  • Download and install Miniconda with Python 3.7 (or Anaconda with Python 3.6 if you prefer a full installation). If you have installed any of these, please skip this step.
  • Start a Terminal(Mac and Linux) or Anaconda Prompt(Windows), then run the following command:
conda -V && pip install -U imjoy
  • If you encountered any error related to git or pip, try to run : conda install -y git pip before the above command. (Otherwise, please check FAQs.)
  • You can also use the same command if you want to upgrade the Plugin Engine to the latest version.

To use it after the installation:

  • Run python -m imjoy in a Terminal or Anaconda Prompt, and keep the window running.
  • Go to https://imjoy.io, connect to the plugin engine. For the first time, you will be asked to fill a token generated by the plugin engine from the previous step.
  • Now you can start to use plugins written in Python.

Upgrading

Normally, the Plugin Engine will upgrade itself when it starts. In case you have problem with starting or upgrading the App, try to manually upgrade it by running the following command in a Terminal(Mac and Linux) or Anaconda Prompt(Windows):

PATH=~/ImJoyApp/bin:$PATH pip install -U imjoy

Accessing the ImJoy Engine Conda environment

If you installed the Plugin Engine with the ImJoyEngine, it will setup an Miniconda environment located in ~/ImJoyApp.

To access the environment on Linux and Mac, you just need to add ~/ImJoyApp/bin to your $PATH:

export PATH=~/ImJoyApp/bin:$PATH

# now you can use `conda`, `pip`, `python` provided from ~/ImJoyApp
which conda

For windows, you can use powershell to add the ImJoyApp to $env.Path:

$env:Path = '%systemdrive%%homepath%\ImJoyApp;%systemdrive%%homepath%\ImJoyApp\Scripts;' + $env:Path;

# now you can use `conda`, `pip`, `python` provided from ~/ImJoyApp
(Get-Command conda.exe).Path

Uninstall/remove ImJoy Engine

In order to uninstall or remove ImJoy Engine, you need to remove two folders located in your home/user folder: ImJoyApp and ImJoyWorkspace.

  • ImJoyApp contains a Miniconda environemnt and the virtual environemtns used for running ImJoy plugins
  • ImJoyWorkspace contains user data for each ImJoy workspace, you may want to backup the data.

On Linux/OSX, you can run the following command:

rm -rf $HOME/ImJoyApp   
rm -rf $HOME/ImJoyWorkspace # please backup important data inside this folder

On windows, it's typically located in C:\Users\<CurrentUserName>, you can remove ImJoyApp and ImJoyWorkspace manually.

More details and FAQs in Docs

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

imjoy-0.7.22.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

imjoy-0.7.22-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file imjoy-0.7.22.tar.gz.

File metadata

  • Download URL: imjoy-0.7.22.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.1

File hashes

Hashes for imjoy-0.7.22.tar.gz
Algorithm Hash digest
SHA256 cb9e30f40c442f68f96d13a54d2372e485ed82b96248466d8224e9dd441d029d
MD5 8f0f27f2abdadf9a68bcb019c8ba1a0e
BLAKE2b-256 e5b1162442998e1c6bdaa64d7c69018e5b3265f3ef4d66078bca28944fb0b88d

See more details on using hashes here.

File details

Details for the file imjoy-0.7.22-py3-none-any.whl.

File metadata

  • Download URL: imjoy-0.7.22-py3-none-any.whl
  • Upload date:
  • Size: 38.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.1

File hashes

Hashes for imjoy-0.7.22-py3-none-any.whl
Algorithm Hash digest
SHA256 8f813ca32466a8f38240c72d8e6f986a71304bf6eeca275223c6a241a96f5cfd
MD5 d924a20836093577b885ef8ed2527e38
BLAKE2b-256 9c499713fd78e92982a0f74969dd0f2b8ad1e5e09ba5f9dda00ec7e851562be6

See more details on using hashes here.

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