In the attached file JupyterLab,
Notebook (.ipynb) is made for Python (.py).
On JupyterLab like above,
I would like to be able to make Notebook(.ipynb) for Scilab(.sce)
If possible, I would like to be able to use Xcos (.zcos) on JupyterLab.
→ Please tell me how to do the above.
-I am targeting Ubuntu 22.04lts.
-As a result of installing scilab_kernel, I was able to select Scilab from Python from the column as shown below.
-But it doesn’t work even if it’s about 1+1 calculation…
→ Please tell me how to solve it (eg. change from 22.04lts to 20.04lts etc.)
Set the Scilab PATH is the solution. But if I run my Scilab Code in Jupyter Notebook, it is launching the Scilab Application and does not execute the command in Jupyter notebook.
SCILAB_EXECUTABLE is set. I used setx in the Windows CMD, because I do not have ADMIN rights
Following test worked: It seems to be that I have some trouble with python.
python -m scilab_kernel.check
This version of python seems to be incorrectly compiled
(internal generated filenames are not absolute).
This may make the debugger miss breakpoints.
Related bug: Issue 1666807: Incorrect file path reported by inspect.getabsfile() - Python tracker
Scilab kernel v0.9.10
Metakernel v0.29.5
Python v3.11.3 | packaged by Anaconda, Inc. | (main, Apr 19 2023, 23:46:34) [MSC v.1916 64 bit (AMD64)]
Python path: C:\Users\gschmidt\AppData\Local\anaconda3\python.exe
Connecting to Scilab…
Scilab connection established
Scilab version “2023.1.0.1684825887”
scilab-2023.1.0
Premise:
Environment is Ubuntu 22.04lts, Scilab is installed, and Scilab_kernel is installed!
Question:
I’m trying to plot a bode plot in the control domain as shown below, but the problem is that the lines are not drawn on the bode plot;;
→ Please tell me how to solve it, such as adding a package!!
I believe it is not woking, because the are limitation in my user rights on the PC. In case i figure out, what is the issue, i let you know.
It worked perfectly on my home pc.
python-installer.exe
pip install scilab_kernel
pip install jupyter
set SCILAB_EXECUTABLE WScilex-cli.exe
set PATH=%PATH%;%PROGRAMFILES%\scilab-2023.1.0\bin\
set PATH=%PATH%;SCILAB_EXECUTABLE
Python functions seamlessly in Jupyter Notebook, while Scilab encounters an issue. The evaluation process appears to be perpetually ongoing, as indicated by the persistent black circle cursor. No error messages are displayed in the Windows 10 x64 command window.
I followed the installation instructions meticulously through the command line. Interestingly, my colleague is not experiencing any problems, while I am unable to execute cell evaluations in Jupyter using the Scilab kernel.
I’m hopeful that someone can provide assistance in resolving this matter.
Here is the sequence of steps I undertook for installation:
Installed Scilab using scilab-2023.1.0.bin.x64.exe
Installed Python using python-installer.exe
Installed Jupyter using “pip install jupyter”
Installed the Scilab kernel for Jupyter using “pip install scilab_kernel”
Set the SCILAB_EXECUTABLE using “setx SCILAB_EXECUTABLE WScilex-cli.exe”
Appended the Scilab binary directory to the PATH using the following commands:
Establishing a connection to Scilab… Connection with Scilab established Scilab version: “2023.1.0.1684825887” Installed Scilab version: scilab-2023.1.0
Output of “pip show scilab_kernel”:
Name: scilab-kernel Version: 0.9.10 Summary: A Jupyter kernel for Scilab. Home-page: http://github.com/calsto/scilab_kernel License: MIT Location: c:\users\kwas\appdata\local\programs\python\python310\lib\site-packages Requires: ipykernel, jupyter-client, metakernel Required-by:
I have tried to install all required stuff from scratch on a fresh and non-admin “avuser” user account on a Windows 10 Pro (21H2) machine. Here is what it did, without having to get admin rights at anytime:
Xcos has a dedicated GUI and Scilab GUI’s are not integrated in Jupyter. The Scilab kernel works as an engine taking its input from Jupyter cells and yielding text on the standard output and eventually graphics, which are also integrated in the html rendering of the notebook.