Starting Jupyter lab

Currently, SpectroChemPy can be used as a library for python scripts.

For ease of use, we recommend using the JupyterLab application or for those who are more comfortable programming, writing python scripts in a development environment such as PyCharm, VS Code or Spyder.

To launch Jupyter Lab , open a terminal and follow the steps below:

  • Go to your favorite user document folder (e.g., $HOME/workspace or any other folder you want to use to store your work).

$ cd $HOME/workspace
  • Then type the following command:

$ jupyter lab

Your default browser should now be open, and the window should look like this:

fdf15c1841cd485eb1c56359c64a6ffb

From there, it is quite easy to create notebooks or to navigate to already existing ones.

Create a new Jupyter notebook

  • Click on the Notebook python 3 icon

  • A new notebook is created

  • Enter your first command, in the displayed cell, and type SHIFT+ENTER to run the code

from spectrochempy import *
  • You can rename the notebook using context menu in the sidebar

0250e9b061dd4dcfa4ff4fb35313b6c6

  • Then you can click on the + sign to create a new cell. This cell is by default a Code cell which can contain Python code, but you can also enter some text, in Markdown format. Choose the content type of the cell in the dropdown menu, or by typing ESC+M . 8045ea26bfab44868474fd5caf895a11

Markdown cheat sheet

To get more information on Markdown format, you can look here

Using the application in a web browser

In Progress

For the moment we don’t yet have a graphical interface to offer other than Jupyter notebooks or python scripts. It is in any case our preferred way of working with SpectroChemPy because it offers all the necessary flexibility for a fast and above all reproducible realization of the different tasks to be performed on spectroscopic data.

However, we have started to create a simple web interface which will allow in a future version to work perhaps more simply for those who do not have the time or the will to learn to master the rudiments of python or who do not wish to program.

[ ]: