Open pablo-angulo opened 3 years ago
Hi @pablo-angulo,
I´ve just installed jupyter-openmodelica in ubuntu 23.10 and using it with visual studio code.
First I´ve installed OpenModelica by using the commands from this page (https://openmodelica.org/download/download-linux/)
a)
sudo apt-get update sudo apt-get install ca-certificates curl gnupg sudo curl -fsSL http://build.openmodelica.org/apt/openmodelica.asc | \ sudo gpg --dearmor -o /usr/share/keyrings/openmodelica-keyring.gpg
b)
Note that I use the nightly version
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/openmodelica-keyring.gpg] \ https://build.openmodelica.org/apt \ $(cat /etc/os-release | grep "\(UBUNTU\\|DEBIAN\\|VERSION\)_CODENAME" | sort | cut -d= -f 2 | head -1) \ nightly" | sudo tee /etc/apt/sources.list.d/openmodelica.list
c)
Update your system and install full version or minimal version with sudo apt install --no-install-recommends omc
sudo apt update sudo apt install openmodelica
sudo apt install python3-pip
python3 -m pip install --upgrade pip
python3 -m pip install -U https://github.com/OpenModelica/OMPython/archive/master.zip
pip install ipython
pip install ipykernel
python3 -m pip install https://github.com/OpenModelica/jupyter-openmodelica/archive/master.zip
Now you should be ready for using OpenModelica-Kernel in JupyterNotebook.
I just create a file with .ipynb extension with vscode and open it. Then I choose the OpenModelica as kernel and the cells can be used for Modelica Code and with commands from the OpenModelica Scripting API.
I can't install jupyter-openmodelica in ubuntu 20.04. The kernel does not appear in the list or in jupyter kernelspec list
Regards