# Scilab IDE alternatives; code folding

**URL:** <https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143>\
**Category:** Scilab beginners\
**Created:** [August 23, 2023, 9:56am UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143 "2023-08-23T09:56:09Z")\
**Posts on this page:** 16\
**Page:** 1

<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 23, 2023, 9:56am UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/1 "2023-08-23T09:56:09Z")

</div>

Hello, is there an alternative IDE available for Scilab? If you’re accustomed to features like code folding and auto-fill, the Scilab Editor is not very comfortable.

Thx, Smarty

---

<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 23, 2023, 10:01am UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/2 "2023-08-23T10:01:33Z")

</div>

Hello,

You should be able to use VSCode:

> **[Scilab: Run Scilab in VS Code](https://dev.to/fcomovaz/run-scilab-in-vs-code-3l39)**
>
> VS Code ❤ Scilab Download Code Extensions Scilab Extension Code Runner Customize Code Runner...

S.

---

<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:** [October 25, 2023, 3:08pm UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/5 "2023-10-25T15:08:28Z")

</div>

Hello,

The continuation dots `...` are not automatic, you have to type them yourself. If you have a lot of function definitions you can gather them in a dedicated script e.g. `functions.sce` and load them with `exec("functions.sce",-1)` at the begining of your main applications script. You can also build a library of functions (see [Scilab Online Help](https://help.scilab.org/docs/2024.0.0/en_US/section_b0e75452c88728d23bbe1cbd7fad7b12.html)).

---

<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:** [January 30, 2024, 8:11pm UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/6 "2024-01-30T20:11:03Z")

</div>

In any case, someone is looking for the Ubuntu Linux solution to

```auto
{
     // run Scilab with graphic Functions
    "code-runner.executorMap": {
        "scilab": "cd $dir && /home/smartie/Tools/scilab-2024.0.0/bin/scilab-cli -nb -f $fileName",
    },
}

```

---

<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:** [January 30, 2024, 8:22pm UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/7 "2024-01-30T20:22:19Z")

</div>

**Subject: Need Help with Running Scilab Scripts in Visual Studio Code on Ubuntu**

Hello everyone,

I’m encountering an issue while trying to run Scilab scripts using the Code Runner extension in Visual Studio Code on my Ubuntu system. I have successfully configured Scilab in VS Code, but I’m facing a problem when I attempt to run a script more than once.

**Issue Description:**

When I run a Scilab script for the first time in a VS Code session, it executes as expected. However, if I try to run the script again, I receive the following error message in the Terminal window:

bashCopy code

```auto
--> cd "/home/smartie/Dokumente/" && /home/smartie/Tools/scilab-2024.0.0/bin/scilab-cli -nb -f scilab.sce 
 
cd: Wrong number of input argument(s): 0 to 1 expected.

```

It seems like the `cd` command is being interpreted by Scilab instead of the shell, causing this error.

**Current Configuration in `settings.json`:**

I have the following executorMap configuration for Scilab in my `settings.json`:

jsonCopy code

```auto
"code-runner.executorMap": {
    "scilab": "cd $dir && /home/smartie/Tools/scilab-2024.0.0/bin/scilab-cli -nb -f $fileName",
}

```

**Attempted Solutions:**

I haven’t found a way to ensure that the `cd` command executes in the shell and not in Scilab within the context of Code Runner’s configuration.

**Request for Assistance:**

I would greatly appreciate any insights or solutions on how to correctly configure VS Code to run Scilab scripts multiple times in a session without encountering this error. Specifically, I’m looking for a way to ensure that directory changes are handled by the shell before Scilab executes the script.

Thank you in advance for your help and suggestions!

---

<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:** [January 30, 2024, 8:55pm UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/8 "2024-01-30T20:55:11Z")

</div>

Ubuntu Linux version: -quit is important in case you want to rerun the \*sce file

{  
// run Scilab with graphic Functions  
“code-runner.executorMap”: {  
“scilab”: “cd $dir && /home/Tools/scilab-2024.0.0/bin/scilab-cli -nb -quit -f $fileName”,  
},  
}

---

<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:** [January 30, 2024, 9:07pm UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/9 "2024-01-30T21:07:24Z")

</div>

Is it possible to create plots in vscode usin scilab?

> 1. `Wscilex-cli`: in this mode, Scilab is started as command line with advanced features still available (graphics, export, xcos, scinotes, help browser, …).

---

<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:** [January 30, 2024, 9:36pm UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/10 "2024-01-30T21:36:31Z")

</div>

Hello everyone,

I’m currently trying to run a simple Scilab script for plotting a sine wave on my Ubuntu system, but I’m encountering an issue when executing the script through the terminal. My ultimate goal is to integrate Scilab with Visual Studio Code (VSCode) instead of using the Scilab IDE.

Here’s the Scilab script (`plotExample.sce`) I am trying to run:

scilabCopy code

```auto
x = -10:0.1:10;
y = sin(x);
plot(x, y);
xlabel('X-axis');
ylabel('Y-axis');
title('Sine Wave');

```

When I run this script using the following command in the terminal:

bashCopy code

```auto
smartie@CLAGE-E-22-ubuntu:~/Documents/scilab$ /home/smartie/Tools/scilab-2024.0.0/bin/scilab-cli -f plotExample.sce

```

I receive this output, along with an error:

scssCopy code

```auto
Scilab 2024.0.0 (Oct 24 2023, 13:02:52)

[... Scilab startup messages ...]

at line 3 of executed file /home/smartie/Documents/scilab/plotExample.sce

Undefined variable: plot

--> 

```

I’m puzzled because `plot` is a basic function in Scilab, and I’m not sure why it’s being reported as undefined. I suspect the issue might be related to using `scilab-cli`, which perhaps doesn’t support graphical functions like `plot`.

Additionally, I’m keen on setting up Scilab to work within the VSCode environment to leverage its features and streamline my workflow. If anyone has experience with running Scilab scripts, especially involving plots, through VSCode on Ubuntu, your guidance would be greatly appreciated.

Thank you in advance for any insights or suggestions you might have!

---

<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:** [January 31, 2024, 8:27am UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/11 "2024-01-31T08:27:59Z")

</div>

To summarize what I’m looking for: I’m interested in utilizing Scilab within Visual Studio Code as I find its integrated development environment superior. Can I also generate plots in this setup? I’m aware that the Scilab\_client is necessary for this, but can it be used to create plots as well?

---

<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:** [January 31, 2024, 9:40am UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/12 "2024-01-31T09:40:22Z")

</div>

I solved it… i need more experience with scilab

I have to use scilab-adv-cli

Thank you all

---

<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:** [January 31, 2024, 10:52am UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/13 "2024-01-31T10:52:00Z")

</div>

unfortunately I receive following error message by vs code. Does anyone have experience with it?

```auto
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "org.scilab.modules.jvm.ScilabClassLoader"). To use archived non-system classes, this property must not be set
/snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/libproxy.so.1)
Failed to load module: /home/gunnar/snap/code/common/.cache/gio-modules/libgiolibproxy.so

```

---

<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:** [January 31, 2024, 10:52am UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/14 "2024-01-31T10:52:26Z")

</div>

Is it possible to see the variables created by scilab in VScode?

---

<div class="post-metadata">

**Author:** ![Vimsrocz](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Post date:** [April 11, 2024, 1:47pm UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/15 "2024-04-11T13:47:12Z")

</div>

Hello

Similar issue but for MACBOOK M1?

---

<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:** [June 14, 2024, 2:15pm UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/16 "2024-06-14T14:15:00Z")

</div>

I have another problem in Windows about the gap in “Program Files”

there was some fix but i dont remember anymore.

M.f.G. Pascal

---

<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:** [March 25, 2025, 1:10pm UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/17 "2025-03-25T13:10:16Z")

</div>

> [@Smart](#):
>
> Is it possible to see the variables created by scilab in VScode?

Hello,

The new version of the Scilab VScode extension allows this, see [Scilab Extension for Visual Studio Code](https://scilab.discourse.group/t/scilab-extension-for-visual-studio-code/798)

S.

---

<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:** [April 9, 2025, 9:16am UTC](https://scilab.discourse.group/t/scilab-ide-alternatives-code-folding/143/18 "2025-04-09T09:16:08Z")

</div>

Hi i recently updated runner in VScode and it seems that the scilab extension was overwriten or deleted. does any one noticed this?
