kmdouglass / ImJoy-Engine

Python Plugin Engine for ImJoy.IO

Home Page:https://imjoy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Plugin Engine

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

Installation

Download the latest ImJoyEngine here.

Follow the instructions according to different operating systems.

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 git+https://github.com/oeway/ImJoy-Engine#egg=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 git+https://github.com/oeway/ImJoy-Engine#egg=imjoy

Accessing the ImJoyEngine 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

More details and FAQs in Docs

About

Python Plugin Engine for ImJoy.IO

https://imjoy.io

License:MIT License


Languages

Language:Python 87.1%Language:Shell 6.0%Language:JavaScript 3.0%Language:PowerShell 2.9%Language:HTML 0.7%Language:Dockerfile 0.4%