Python-related scripts¶

The following Python-related scripts can be used to start:

  • ipython[.bat]: an IPython session;

  • jupyter[.bat]: a Jupyter session;

  • jupyterconsole[.bat]: a Jupyter console, i.e. a terminal frontend for Jupyter kernels;

  • jupyterlab[.bat|.vbs]: a JupyterLab, i.e. a Web-based interactive development environment for Jupyter Notebooks, code and data;

  • jupyternotebook[.bat|.vbs]: a Jupyter Notebook, i.e. a Web application to create and share documents that contain live code, equations, visualizations and narrative text; and

  • pythonshell[.bat]: a Python shell.

This, in OpenCOR’s environment.

ipython[.bat]¶

$ ./ipython
Python 3.7.5 (default, May 27 2022, 16:06:22)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]:

jupyter[.bat]¶

$ ./jupyter
usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
               [--paths] [--json] [--debug]
               [subcommand]
jupyter: error: one of the arguments --version subcommand --config-dir --data-dir --runtime-dir --paths is required

jupyterconsole[.bat]¶

$ ./jupyterconsole
Jupyter console 6.0.0

Jupyter kernel for OpenCOR


In [1]:

jupyterlab[.bat]¶

$ ./jupyterlab
../_images/commandLineInterfacePythonRelatedScripts01.png

jupyternotebook[.bat|.vbs]¶

$ ./jupyternotebook
../_images/commandLineInterfacePythonRelatedScripts02.png

pythonshell[.bat]¶

This script is a shortcut to using the Python shell plugin. Thus,

$ ./pythonshell

is an alias for:

$ ./OpenCOR -c PythonShell "$@"