Creating Your First Notebook

Learn to Code Today!

Learn 10x faster: coding, no-code and data skills. Join millions of users mastering new tech skills and accelerating their career with Enki.
Get started

This is part of the “Intro to Data Analysis with Python” series of posts, with content from the Enki app. If you stumbled upon this, you could start from the beginning.

Open your terminal and type jupyter-lab if you installed the application locally or go to their website to open the online version.

Next, to create a new notebook go to File - > New -> Notebook.

This will give you an empty notebook with a single empty cell.

At the top, you can choose what kind of cell this will be. There are two types; Code and Text/Markdown cells.

  • Code is used for any code you want to write and run.
  • Text/Markdown is used for adding text as well as elements like headers, paragraphs, and others.


The first two cells are Text/Markdown cells. The first one contains markdown and the second one contains that same markdown but executed to show the resulting text.

💡 To learn more about markdown, check the Learn More section.

The third cell is a Code cell. The [1]: to the left of it means that it was the first Code cell that was executed. This cell prints "Hello World" to the console, which is shown underneath it.

The final two cells both have a [2]: before them.

The first [2]: is shown because that was the second Code line that was executed. The next [2]: is shown because it matches the output of the previous cell. We returned the variable x and its resulting output is "I am a String".

Any Code cell that returns something will have a matching cell after it with the same number.

💡 The cell numbers don't have to be in order! If you run the same cell again or run a different cell, the number will increase.

Once you're done playing with the example, save the notebook.

💡 We will be using the same notebook in the next few workouts to import and analyze a dataset.

About Enki

  • Fully personalized online up-skilling
  • Unlimited AI coaching
  • Designed by Silicon Valley experts

More articles

Meet your AI-enabled coach

Professional athletes have a coach for every aspect of their performance. Why can’t you for your work? Enki’s AI-powered coaching on-demand - combined with state of the art, structured learning content - makes this a reality.
1
1:1 AI Coaching
How do I remove duplicate emails?
Convert the list to a set and back to a list. Sets automatically remove duplicates.
2
Personalized Exercises
3
Interactive practice

Unlock full access to all skills on Enki with a 7-day free trial

Get started