View on GitHub

Carme-Docu

Documentation Project for Carme

How to create a file

Here, we create a Jupyter notebook file.

Note: You cannot create files in the parent home directory.

Using the terminal

  1. Open the terminal and type:
      cd /home/<username>
    
  2. Create the file.
      touch filename.ipynb
    

Using the UI

  1. Go to your /home/<username> directory. Refer to: How to navigate to a different directory.

    Note: You must be in the /home/<username> directory to create a file.

  2. As shown in Fig. 1 in red, there are two possible ways to create a file:
    • METHOD 1: Click on the Python icon in the Launcher. If you don’t have a kernel, choose the icon with the default kernel, e.g., Python 3 (ipykernel). Otherwise, Install a Jupyter kernel.
    • METHOD 2: Go to File -> New -> Notebook.

    jupyterlab-file-create-1.png

    Fig. 1.

  3. If you consider METHOD 2, a box opens for you to choose a kernel. If you don’t have one, choose the default kernel Python 3 (ipykernel) and click on Select. Refer to Fig. 2.

    jupyterlab-file-create-2.png

    Fig. 2.

  4. The file Untitled1.ipynb is created. Now you can write your code. Refer to Fig. 3.

    jupyterlab-file-create-3.png

    Fig. 3.

  5. To save the file, go to File -> Save Notebook. Refer to Fig. 4.

    jupyterlab-file-create-4.png

    Fig. 4.

  6. A box opens for you to rename the file. Choose a name and click on Rename. Refer to Fig. 5.

    jupyterlab-file-create-5.png

    Fig. 5.