{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Jupyter Scilab Kernel\n",
"============\n",
"\n",
"Interact with Scilab in the Notebook. All commands are interpreted by Scilab. Since this is a [MetaKernel](https://github.com/Calysto/metakernel), a standard set of magics are available. Help on commands is available using the `%help` magic or using `?` with a command."
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"image/svg+xml": [
""
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"t = linspace(0,6*%pi,100);\n",
"plot(sin(t))\n",
"plot(cos(t), 'r')"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"image/svg+xml": [
""
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"b = 10*cos(t)+30; plot(b);"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1. 2. 3.\n"
]
}
],
"source": [
"a = [1,2,3]"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"b = a + 3;"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"4. 5. 6.\n"
]
}
],
"source": [
"disp(b)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Available line magics:\n",
"%activity %cd %connect_info %dot %download %edit %get %help %html %include %install %install_magic %javascript %jigsaw %kernel %kx %latex %load %ls %lsmagic %macro %magic %parallel %plot %pmap %px %python %reload_magics %restart %run %set %shell\n",
"\n",
"Available cell magics:\n",
"%%activity %%brain %%debug %%dot %%file %%help %%html %%javascript %%kx %%latex %%macro %%processing %%px %%python %%shell %%show %%time %%tutor\n"
]
}
],
"source": [
"%lsmagic"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"codemirror_mode": "Octave",
"file_extension": ".sci",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"name": "scilab",
"version": "0.6.0"
}
},
"nbformat": 4,
"nbformat_minor": 0
}