#] #] ********************* #] "$d_webRawe"'Software programming & code/SciLab/0_SciLab notes.txt' www.BillHowell.ca 15Mar2022 initial - lost old notes To view this file - use a text editor (not word processor) constant width font (eg courrier 10), tab - 3 spaces SciLab command line stuff : update toolbox atomsGUIs before re-starting work : --> atomsSystemUpdate access and install toolboxes in Scilab : --> atomsGUI https://atoms.scilab.org/ 48************************************************48 24************************24 # Table of Contents : # $ grep "^#]" "$d_webRawe"'Software programming & code/SciLab/0_SciLab notes.txt' | sed 's/^#\]/ /' 24************************24 08********08 #] ??Mar2022 08********08 #] ??Mar2022 08********08 #] ??Mar2022 08********08 #] ??Mar2022 08********08 #] ??Mar2022 08********08 #] ??Mar2022 08********08 #] ??Mar2022 08********08 #] ??Mar2022 08********08 #] 15Mar2022 SciLab command line stuff : update toolbox atomsGUIs before re-starting work : --> atomsSystemUpdate access and install toolboxes in Scilab : --> atomsGUI https://atoms.scilab.org/ Should I work with Python or SciLab? Use QNial, host call [python, sciLab], for matLab programs try SciLab-Octave? +-----+ search "scilab execute from command line" https://wiki.scilab.org/Different%20execution%20modes%20of%20Scilab Scilab is available in three modes : GUI - It is the standard Scilab GUI. Launch: scilab NW / Advanced Command Line Interpreter Scilab is launched as a command line interpreter, with all features available, including functionalities that open a GUI. Launch: scilab -nw On Linux and MacOS, an alias (symbolic link) is similar to this command: scilab-adv-cli NWNI / Command Line Interpreter Scilab is launched as a command line interpreter, with only the core of Scilab available; in particular, all the functionalities that use a GUI are unavailable, namely: Launch: scilab -nwni On Linux and MacOS, an alias (symbolic link) is similar to this command: scilab-cli Scripting capabilities : Pipe - It is possible to call Scilab as a processing engine through the classical pipes: echo "disp(%pi)"|scilab-adv-cli echo "disp(%pi)"|scilab-cli echo "disp(%pi)"|scilab -nw echo "disp(%pi)"|scilab -nwni Arguments - Some arguments are available in the Scilab binary: -e: Provide a Scilab expression (note that Scilab won't exit itself) scilab-cli -e "disp(%pi); exit;" -nb -f: Provide a Scilab script file scilab-adv-cli -f myCustomScript.sci -nb 1 Arguments + pipe Even when Scilab is used through a pipe, it is possible to use the arguments. Arguments are processed first. echo "disp(%pi*2)"|./bin/scilab-cli -e "disp(%pi)" +-----+ https://towardsdatascience.com/how-to-easily-convert-a-python-script-to-an-executable-file-exe-4966e253c7e9 The first (auto-py-to-exe) has a friendly interface that will help beginners to easily create executables, while the second (PyInstaller) offers a straightforward way to create executables through the terminal. Making an Executable file with PyInstaller This option fits better for those who prefer to quickly create an executable file running a command on the terminal. If you’re used to working with the terminal, then the PyInstaller library will be the best option. To install PyInstaller follow these steps. Step 1: Open up a terminal and run pip install pyinstaller Step 2: Using the terminal, go to the directory where your script is located (use the cd command) Step 3: Once you‘re in the right directory, write a command with the following syntaxpyinstaller --onefile name_of_script.py in the terminal to make the script executable. The command used in step 3 is similar to the code shown in the step 5 picture for the auto-py-to-exe option. You can play a little bit with the GUI offered by auto-py-to-exe to get used to the many options you can add to this command. After running the command, you should see a message that says “completed successfully.” In the directory where your script is located, a folder named “dist” should have been created. Inside the folder, you’ll find the standalone executable! +-----+ Python open-source libraries https://scikit-learn.org/stable/index.html search [python, matlab] and Reproducing Kernel Hilbert Space >> only co-hits with matlab, not python # enddoc