# On JupyterLab, I would like to make Notebook(.ipynb) for Scilab(.sce) etc

**URL:** <https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122>\
**Category:** Jupyter Notebook\
**Created:** [July 25, 2023, 11:40pm UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122 "2023-07-25T23:40:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![protfor](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@protfor](https://scilab.discourse.group/u/protfor)\
**Post date:** [July 25, 2023, 11:40pm UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/1 "2023-07-25T23:40:26Z")

</div>

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.

 ![Screenshot from 2023-07-26 08-10-54](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/5dc4ae3ecf12dff05dfc39660274354720a03383.png)

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [July 26, 2023, 8:00am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/2 "2023-07-26T08:00:47Z")

</div>

Hello,

There is an (unsupported) experimental Scilab Jupyter kernel there:

> **[GitHub - Calysto/scilab\_kernel: A Scilab Kernel for IPython](https://github.com/Calysto/scilab_kernel)**
>
> A Scilab Kernel for IPython. Contribute to Calysto/scilab\_kernel development by creating an account on GitHub.

S.

---

<div class="post-metadata">

**Author:** ![protfor](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@protfor](https://scilab.discourse.group/u/protfor)\
**Post date:** [July 26, 2023, 10:57pm UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/3 "2023-07-26T22:57:29Z")

</div>

Mr. mottelet,

Nice to meet you, my name is protfor.

Thank you for your prompt reply.

I will try it from today!

Best regards

---

<div class="post-metadata">

**Author:** ![protfor](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@protfor](https://scilab.discourse.group/u/protfor)\
**Post date:** [July 28, 2023, 5:35am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/4 "2023-07-28T05:35:51Z")

</div>

Dear

-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.)

 ![Screenshot from 2023-07-27 08-42-06](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/784cd7de8100a63c71da504c86c325256311a1e1.png)

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [July 28, 2023, 7:08am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/5 "2023-07-28T07:08:54Z")

</div>

Did you define SCILAB\_EXECUTABLE environment variable ?

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [July 30, 2023, 10:59pm UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/6 "2023-07-30T22:59:11Z")

</div>

Hello mottelet,

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

> setx SCILAB\_EXECUTABLE C:/Scilex.exe  
> setx PATH “%SCILAB\_EXECUTABLE%;%PATH%”

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](http://bugs.python.org/issue1666807)  
> 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

 ![image](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/4b1a2a64f80bc9bf5e1557ab2ff773726b305b3a.png)

**If I click okay, it will run the Scilab Application**

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [July 30, 2023, 11:36pm UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/7 "2023-07-30T23:36:38Z")

</div>

If I click on Run in Jupyter Notebook, it will open my Scilab Application and nothing else is happening

 ![image](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/5b4b27400d11308aa5af412d3ef0724b4ae830d0.png)

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [July 31, 2023, 12:08am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/8 "2023-07-31T00:08:29Z")

</div>

Now it works, apart of plotting. I tried to reset all the path variables

 ![image](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/107d5e979168a5d2ffa76037edf81be56623eb76.png)

---

<div class="post-metadata">

**Author:** ![protfor](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@protfor](https://scilab.discourse.group/u/protfor)\
**Post date:** [July 31, 2023, 12:10am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/9 "2023-07-31T00:10:56Z")

</div>

Dear mottelet,

I’m protocol.

In my case, I simply didn’t have scilab itself installed.

Based on the URL below  
[Install Scilab on Ubuntu](https://linuxhint.com/install-scilab-on-ubuntu/)  
$sudo apt install scilab  
did.

As a result of installing scilab, as shown below  
scilab works on jupyter!

 ![Screenshot from 2023-07-31 09-05-03](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/1b8c2470f3e49b8be8bdf01658ef9de43a9ea95e.png)

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [July 31, 2023, 12:12am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/10 "2023-07-31T00:12:06Z")

</div>

The Question is,

which SCILAB\_EXECUTABLE  
_C:\Tools\scilab-2023.1.0\bin\WScilex.exe_  
Value should be set?

I am not **able to create a plot**

Scilab ‘plot2d’ Funktion in -nogui oder -nwni Modus deaktiviert.

---

<div class="post-metadata">

**Author:** ![protfor](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@protfor](https://scilab.discourse.group/u/protfor)\
**Post date:** [July 31, 2023, 1:30am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/11 "2023-07-31T01:30:54Z")

</div>

Dear

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!!

 ![Screenshot from 2023-07-31 10-03-51](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/3ff2872780dbe6f5b982fcf64464d8b5c8e8e95c.png)

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [July 31, 2023, 2:12pm UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/12 "2023-07-31T14:12:59Z")

</div>

I do not have ADMIN rights on my Windows machine.

How did you set the SCILAB\_EXECUTABLE environment variable?

I tried

> setx SCILAB\_EXECUTABLE “%SCILAB\_EXECUTABLE%;C:\Tools\scilab-2023.1.0\bin\Scilex.exe -nwni”

but this is not the right syntax

The only way I get Jupyter Notebook working with Scilab Kernel is

> setx SCILAB\_EXECUTABLE C:\Tools\scilab-2023.1.0\bin\Scilex.exe

I still have trouble to create any kind of Plot

 ![image](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/b8e5ba2057ccdfe334a9a69a0ee42deb07e99e53.png)

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [August 1, 2023, 8:12am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/13 "2023-08-01T08:12:03Z")

</div>

Hi protfor, have you been able to show XCOS GUI in Jupyter notebook?

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [August 1, 2023, 1:51pm UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/14 "2023-08-01T13:51:56Z")

</div>

Use `WScilex-cli.exe` instead of `Scilex.exe`

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [August 2, 2023, 8:00am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/15 "2023-08-02T08:00:19Z")

</div>

Thanks, unfortunately now the kernel keeps beeing busy and nothing happens.

> <https://stackoverflow.com/questions/76805076/how-to-plot-with-scilab-jupiter-notebook>

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [August 21, 2023, 7:26am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/17 "2023-08-21T07:26:13Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [August 24, 2023, 1:16pm UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/18 "2023-08-24T13:16:19Z")

</div>

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:

1. Installed Scilab using scilab-2023.1.0.bin.x64.exe
2. Installed Python using python-installer.exe
3. Installed Jupyter using “pip install jupyter”
4. Installed the Scilab kernel for Jupyter using “pip install scilab\_kernel”
5. Set the SCILAB\_EXECUTABLE using “setx SCILAB\_EXECUTABLE WScilex-cli.exe”
6. Appended the Scilab binary directory to the PATH using the following commands:

- “setx PATH %PATH%;%PROGRAMFILES%\scilab-2023.1.0\bin”
- “setx PATH %PATH%;SCILAB\_EXECUTABLE”

Troubleshooting steps undertaken:

- Checked the Scilab kernel using “python -m scilab\_kernel.check”
- Verified the list of installed kernels using “jupyter kernelspec list”

Versions and outputs:

- Jupyter version: 1.0.0
- Scilab kernel version: 0.9.10
- Python version: 3.10.11

Output of “python -m scilab\_kernel.check”:

Scilab kernel version: 0.9.10 Metakernel version: 0.29.5 Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Python path: C:\Users\kwas\AppData\Local\Programs\Python\Python310\python.exe

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](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:

Output of “jupyter kernelspec list”:

Available kernels:

- python3: c:\users\kwas\appdata\local\programs\python\python310\share\jupyter\kernels\python3
- scilab: c:\users\kwas\appdata\local\programs\python\python310\share\jupyter\kernels\scilab

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [August 30, 2023, 8:49am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/19 "2023-08-30T08:49:50Z")

</div>

Hello,

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:

1. install Scilab 2023.1.0 in default path
2. install python for windows ([https://www.python.org/ftp/python/3.11.5/python-3.11.5-amd64.exe](https://www.python.org/ftp/python/3.11.5/python-3.11.5-amd64.exe)) and check “add Python to path” during installation
3. pip install jupyter (on cmd command line)
4. pip install scilab\_kernel (on cmd command line)
5. Add Scilab `bin` folder to Path user environment variable (on cmd command line)

```auto
setx Path "%Path%;C:\Users\avuser\AppData\Local\scilab-2023.1.0\bin"

```

Note: the `SCILAB_EXECUTABLE` environment variable seems useless in the current version of the Scilab kernel.

1. logout/login the Windows session.

I was then able to launch a notebook (on cmd command line) with:

```auto
python -m notebook

```

The notebook started with the default Python kernel, I then choosed ‘Scilab’ from the kernel menu, and typed in the first cell

```auto
plot

```

followed by Ctrl + Enter, I obtained the following:

 ![Sans titre](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/c7f2e327f6de754d6142c2bb1f3280e59e94f58f.png)

---

<div class="post-metadata">

**Author:** ![pascal](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/pascal/32/40_2.png) [@pascal](https://scilab.discourse.group/u/pascal)\
**Post date:** [September 1, 2023, 7:14am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/20 "2023-09-01T07:14:02Z")

</div>

How do you integrate XCos in Jupyter, does it works?

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [September 1, 2023, 10:04am UTC](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122/21 "2023-09-01T10:04:25Z")

</div>

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.

[Next page](https://scilab.discourse.group/t/on-jupyterlab-i-would-like-to-make-notebook-ipynb-for-scilab-sce-etc/122.md?page=2)
