These instructions are for the new Custom Block only, not for the legacy R or legacy Python blocks. For these blocks, please see the instructions at Setting up legacy R and Python blocks
Custom Block |
![]() |
Windows
In order for this block to execute Python or R based scripts, recent Python and R installations are required.
In case Python or R was installed in a custom location that cannot be automatically discovered by Omniscope, it is possible to set the path to the executable manually in the admin area.
After installing python or R, you need to restart Omniscope for the changes to take effect.
Installing Python
Python can be downloaded from the Python website: https://www.python.org/downloads/.
Installing R
R can be downloaded from: https://cran.r-project.org/bin/windows/.
Linux
In order for this block to execute Python or R based scripts, recent Python and R installations are required.
In case Python or R was installed in a custom location that cannot be automatically discovered by Omniscope, it is possible to set the path to the executable manually in the admin area.
After installing python or R, you need to restart Omniscope for the changes to take effect.
Installing Python
On debian distributions, or distributions supporting apt-get, copy and paste the following line into the command line and press Enter:
sudo apt-get install python2 python3 python-pip python3-pip
For systems that do not support apt-get, please open the package manager and look for an available python version. Alternatively python can be built from sources. The sources and help can be found on the Python website: https://www.python.org/downloads/.
Installing R
Linux users need to make sure the development package for libcurl and ssl/openssl is installed.
For Ubuntu, open the terminal, copy and paste the following line into the command line and press Enter:
sudo apt-get install r-base libcurl4-gnutls-dev libssl-dev libcurl4-openssl-dev
For different Linux distributions, please either open the package manager and look for an available R version, or download and install a package file from https://cran.r-project.org/bin/linux/.
Mac OS X
In order for this block to execute Python or R based scripts, recent Python and R installations are required.
In case Python or R was installed in a custom location that cannot be automatically discovered by Omniscope, it is possible to set the path to the executable manually in the admin area.
After installing python or R, you need to restart Omniscope for the changes to take effect.
Installing Python
Standard installation:
Python can be downloaded from the Python website: https://www.python.org/downloads/.
Homebrew installation:
Python can also be installed via Homebrew which can be installed from the website https://brew.sh/. In order to install python open the Terminal, copy and paste the relevant line into the command line and press Enter:
For Python 2:
brew install python
For Python 3:
brew install python3
Installing R
Standard installation:
Make sure you have the newest version of XCode installed via the Apple Appstore.
Open the Terminal, copy and paste the relevant lines into the command line and press Enter.
First, make sure that you don’t have any old GFortran compilers left on your system by removing any old installation with the following command:
sudo rm -r /usr/local/gfortran /usr/local/bin/gfortran
Then, download and install the newest GFortran compiler from this website:
https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
R can now be downloaded and installed from https://cran.r-project.org/bin/macosx/
Homebrew installation:
Make sure you have the newest version of XCode installed via the Apple Appstore.
R can also be installed via Homebrew which can be installed from the website https://brew.sh/ . In order to install R open the Terminal, copy and paste the following line into the command line and press Enter:
brew install R
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article