Getting started on Linux
Note
Starting from the 2024.09 release, IPKISS can now be installed on linux via an executable. The correct packages and conda environment will be installed automatically. On this page you can find the installation guide to get started with using IPKISS on linux. If you would like to install an earlier version of IPKISS or look into the previous approach, the more advanced installation steps can be found here: installation linux (advanced).
Running IPKISS on Linux is supported using Anaconda. Anaconda is a Python distribution that targets scientific users. It makes working with binary packages much easier and allows to have different independent environments next to one another. It is developed and maintained by Anaconda, Inc. (formerly Continuum Analytics, Inc). For more information visit their website: https://www.anaconda.com/.
This document explains how to complete a basic anaconda installation and how to install IPKISS on it.
Downloading the software
To download the latest version of the IPKISS Photonics Design Platform, sign in or request an account on the Luceda customer portal. You will find a download link for the linux executable in your personal account page.
We also advise you to use a Python IDE, more information on how to download and install one can be found here: Downloading & installing Python editor
Installing the software
The software can be installed by executing the downloaded script. The following steps assume you have downloaded the script into the Downloads folder.
1 ) Execute the IPKISS installer
The IPKISS installer is a simple bash script, execute it using the following command:
bash luceda-2024091-linux-64-py312-installer.sh
The install script will present you the following questions:
Do you accept the license agreement?
Which path do you want to install into? The default is
$HOME/luceda/luceda_2024091
. If you prefer, you can specify another location here.Do you wish to prepend the conda install location to the PATH environmental variable?
Question 3 will make sure that you have access to all the necessary tools when you launch a terminal. If you don’t have another anaconda distribution installed, we recommend that you execute this step. When you’re already using Python on your machine, you might want to be bit more cautious, to make sure that you don’t override the old configuration.
When the installation script successfully finished, you can continue by launching IPKISS.
Note
The installation can also be customized by providing extra options. The conda CLI options can be found here: https://conda.github.io/constructor/cli-options/. The most interesting one is -s
, providing this with the installation script will not install Luceda Academy locally next to your IPKISS installation.
Launching IPKISS tools
The Anaconda distribution is built around ‘environments’.
When you create a new environment, you can install packages into this environment without changing other environments.
Right now, the IPKISS packages should have automatically been installed inside the ipkiss3
environment. To access the Luceda Control Center, you first need to activate this environment.
You can use mamba or conda for this. Assuming you installed IPKISS into the default enviroment one of the two following commands will activate the ipkiss3
environment.
mamba activate ~/luceda/luceda_2024091/envs/ipkiss3
or
conda activate ~/luceda/luceda_2024091/envs/ipkiss3
If you get the following error message:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Execute first conda init bash
(assuming you’re using the bash shell), restart your shell (source ~/.bashrc
) and execute one of the two above comments again.
You can now start the Luceda Control Center by running the following command in the activated ipkiss3 environment:
ipkontrol
Note
Currently the option to launch the IPKISS terminal is disabled in linux, because you have just launched the Luceda Control Center from an IPKISS terminal where the IPKISS enviroment is activated. No need to launch an IPKISS terminal from a program running inside an IPKISS terminal!
Installing your license
You can activate your license by clicking on Add License in the Product License tab of the Luceda Control Center and selecting your license file.
You can also put the license file in the ~/miniconda/envs/ipkiss3
manually.
More information about licenses can be found in the License types section.
If you have a floating license, please follow these instructions: Configuring a floating license.
Get started
You are now ready to start diving into our software, a good starting point is Circuit layout.
The following contents can also further help you getting started with IPKISS.
After executing setup-samples on the command line, Luceda Academy will be available in your home folder in ~/luceda/luceda_academy/luceda_academy_2024091
.
You can also click on PyCharm (Luceda Academy) in the Luceda Control Center to open the Luceda Academy project.
To open the Luceda Academy documentation platform, click on the link in the Luceda Control Center or activate the environment and run luceda-doc from the IPKISS terminal:
mamba activate ~/luceda/luceda_2024091/envs/ipkiss3
luceda-doc
This will start a daemon, hosting the documentation through a web server. It will launch the default browser to show the documentation.
- From here on out, you can dive in the code:
The guides contain step by step instructions to create various examples.
The sample gallery is a collection of in depth examples.
The application examples provides demonstrations of complete photonic integrated circuits.
If you want to start your own project, you will have to configure your Python IDE (Integrated Development Environment).
If you face any issues with installation and licenses, please check our troubleshooting guide.
Configuring your IDE
When you configure your IDE to work with conda, you’ll need to make sure that the correct python executable is used. The setup is very similar to the setup on windows.