| 1 |
.. _tutorial_extensibility: |
| 2 |
|
| 3 |
:octicon:`video;1em;sd-text-info` Add your own features |
| 4 |
======================================================= |
| 5 |
|
| 6 |
.. meta:: |
| 7 |
:description: Tutorial video on how to add your own features to DataLab, the open-source platform for scientific data analysis |
| 8 |
:keywords: DataLab, scientific data analysis, Python, macro-commands, remote control, plugins |
| 9 |
|
| 10 |
.. only:: html and not latex |
| 11 |
|
| 12 |
.. raw:: html |
| 13 |
|
| 14 |
<iframe width="560" height="315" src="https://www.youtube.com/embed/s_z9SUegYJQ" |
| 15 |
frameborder="0" allowfullscreen></iframe> |
| 16 |
|
| 17 |
.. only:: latex and not html |
| 18 |
|
| 19 |
.. image:: https://img.youtube.com/vi/s_z9SUegYJQ/0.jpg |
| 20 |
:target: https://www.youtube.com/watch?v=s_z9SUegYJQ |
| 21 |
|
| 22 |
.. warning:: |
| 23 |
|
| 24 |
This video shows an older version of DataLab. Some features may have changed |
| 25 |
since then. Please refer to the documentation for the most up-to-date |
| 26 |
information. |
| 27 |
|
| 28 |
In this tutorial, we will show how to add your own features to DataLab using three |
| 29 |
different approaches: |
| 30 |
|
| 31 |
1. Macro-commands, using the integrated macro manager |
| 32 |
2. Remote control of DataLab from an external IDE (e.g. Spyder) or a Jupyter notebook |
| 33 |
3. Plugins |
| 34 |
|
| 35 |
The first common point between these three approaches is that they all rely on DataLab's |
| 36 |
high-level API, which allow to interact with almost every aspect of the software. |
| 37 |
This API is here accessed using Python scripts, but it may also be accessed using |
| 38 |
any other language when using the remote control approach (because it relies on |
| 39 |
a standard communication protocol, XML-RPC). |
| 40 |
|
| 41 |
The second common point is that they all use Python code, and compatible proxy objects, |
| 42 |
so that the same code can be at least partially reused in the three approaches. |