... | ... | @@ -7,18 +7,19 @@ |
|
|
## Setup
|
|
|
#### OS X
|
|
|
On OS X, the setup has been tested with a Miniconda Python distribution.
|
|
|
1. Download and install [Miniconda3](https://conda.io/miniconda.html) (use the Python 3.6 version)
|
|
|
1. Download and install [Miniconda3](https://conda.io/miniconda.html) (use Python 3.6 or later version)
|
|
|
2. Install pyBIS with pip: `pip install pybis`
|
|
|
3. Open MATLAB and set the Python executable (modify path according to your system): `pyversion /Users/Henry/miniconda3/bin/python`
|
|
|
|
|
|
#### Windows 10
|
|
|
On Windows using the Anaconda or Miniconda approach did not work (for some reason, MATLAB could not find the Python modules). On the other hand, using the standard Python 3.6 installation worked.
|
|
|
1. Download and install [Python 3.6](https://www.python.org/downloads/) or later
|
|
|
On Windows using the Anaconda or Miniconda approach did not work (for some reason, MATLAB could not find the Python modules). On the other hand, using the standard Python installation worked.
|
|
|
1. Download and install Python 3.6 or later from [here](https://www.python.org/downloads/windows/). Make sure to choose the **64-bit version**, i.e. a file ending with `x86-64`.
|
|
|
2. During the installation, make sure Python is added to the Path and registered as default Python interpreter. To do this, select the little tick box `Add Python 3.x to PATH` in the installation window:
|
|
|
![Python_install_windows](uploads/204b59ec562105bde05e977a18c273f0/Python_install_windows.png)
|
|
|
|
|
|
3. Open a command prompt and install pyBIS with pip: `pip install pybis`
|
|
|
4. Open MATLAB and set the Python executable: `pyversion 3.6`
|
|
|
3. Open Windows PowerShell and install pyBIS with pip: `pip install pybis`
|
|
|
4. Find the path to your Python executable by typing: `Get-Command python`. The path is listed in the Source column, i.e. `C:\Users\user\AppData\Local\Programs\Python\Python38\python.exe`. Copy the path by selecting it and pressing `Ctrl-C`
|
|
|
5. Open MATLAB and set the Python executable. On Matlab R2019b or later, use the command: `pyenv('Version', 'C:\Path\to\Programs\python.exe')`. Replace with the path found in step 4.
|
|
|
|
|
|
## Usage
|
|
|
Download this repository and add it to your Matlab Path. If you are running the toolbox for the first time, make sure to carry out the steps described under **Setup** above. An [example script](https://sissource.ethz.ch/hluetcke/matlab-openbis/blob/master/openbis_example.mlx) demonstrating some common usage patterns is provided in the repository. The script can be run interactively in the MATLAB Live Editor. Type `doc OpenBis` in the Matlab Command Window to access the built-in documentation.
|
... | ... | |