<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting Started with Notebooks in Databricks in Community Articles</title>
    <link>https://community.databricks.com/t5/community-articles/getting-started-with-notebooks-in-databricks/m-p/131361#M660</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/152834"&gt;@Advika&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Sep 2025 10:02:57 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-09-09T10:02:57Z</dc:date>
    <item>
      <title>Getting Started with Notebooks in Databricks</title>
      <link>https://community.databricks.com/t5/community-articles/getting-started-with-notebooks-in-databricks/m-p/131049#M654</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Databricks notebooks are a powerful tool for data scientists and engineers to collaborate, explore data, and build machine learning models. This guide will help you get started with creating and using notebooks in Databricks.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2 id="d5c4"&gt;&lt;span class="lia-unicode-emoji" title=":notebook:"&gt;📓&lt;/span&gt;Why Use Databricks Notebooks?&lt;/H2&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;STRONG&gt;Interactive Development&lt;/STRONG&gt;: Write and execute code in real-time.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Collaboration&lt;/STRONG&gt;: Share notebooks with your team and collaborate seamlessly.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Visualization&lt;/STRONG&gt;: Easily visualize data with built-in charting tools.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Integration&lt;/STRONG&gt;: Integrate with various data sources and libraries.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanu_gautam_0-1757091779506.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19758i06BF2692411036F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhanu_gautam_0-1757091779506.png" alt="bhanu_gautam_0-1757091779506.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2 id="533e"&gt;🪜Step-by-Step: How to Create and Use Notebooks in Databricks&lt;/H2&gt;&lt;H2 id="1789"&gt;Step 1: Create a New Notebook&lt;/H2&gt;&lt;OL class=""&gt;&lt;LI&gt;Either click on New in Welcome Page or In your Databricks workspace, click on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Workspace&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab on the left sidebar.&lt;/LI&gt;&lt;LI&gt;Click on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Create&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button and select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Notebook&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Enter a name for your notebook.&lt;/LI&gt;&lt;LI&gt;Choose the default language (Python, SQL, Scala, or R).&lt;/LI&gt;&lt;LI&gt;Click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Create&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanu_gautam_3-1757091812187.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19761i6816726973000148/image-size/large?v=v2&amp;amp;px=999" role="button" title="bhanu_gautam_3-1757091812187.png" alt="bhanu_gautam_3-1757091812187.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanu_gautam_4-1757091847706.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19762i377CF32A3A8FF11E/image-size/large?v=v2&amp;amp;px=999" role="button" title="bhanu_gautam_4-1757091847706.jpeg" alt="bhanu_gautam_4-1757091847706.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2 id="f4c1"&gt;Step 2: Attach a Cluster&lt;/H2&gt;&lt;OL class=""&gt;&lt;LI&gt;In your new notebook, click on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Attach&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button at the top.&lt;/LI&gt;&lt;LI&gt;Select an existing cluster or create a new one.&lt;/LI&gt;&lt;LI&gt;Wait for the cluster to start and attach to your notebook.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanu_gautam_5-1757091871939.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19763i3C1D84417CB08EB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="bhanu_gautam_5-1757091871939.jpeg" alt="bhanu_gautam_5-1757091871939.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2 id="642b"&gt;Step 3: Write and Execute Code&lt;/H2&gt;&lt;OL class=""&gt;&lt;LI&gt;In a code cell, write your code. There are 4 languages which can be used, and we will use Python in this example and a sample table. For example, to read a table:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="cpp"&gt;%python
df = spark.read.table("samples.accuweather.forecast_daily_calendar_imperial")&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanu_gautam_6-1757091957142.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19764i106B1B4BEFA76D72/image-size/large?v=v2&amp;amp;px=999" role="button" title="bhanu_gautam_6-1757091957142.png" alt="bhanu_gautam_6-1757091957142.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;2.Execute the cell by pressing&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Shift + Enter&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or clicking the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Run&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button.&lt;/P&gt;&lt;H2 id="beb5"&gt;Step 4: Display Data&lt;/H2&gt;&lt;OL class=""&gt;&lt;LI&gt;To display a Data Frame, use the display function:&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="cpp"&gt;%python
display(df)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanu_gautam_7-1757092019039.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19765i65A0248F58A465D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="bhanu_gautam_7-1757092019039.png" alt="bhanu_gautam_7-1757092019039.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2 id="384d"&gt;Step 5: To Print Schema of Data&lt;/H2&gt;&lt;OL class=""&gt;&lt;LI&gt;Use PrintSchema function&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="cpp"&gt;%python
df.printSchema()&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanu_gautam_8-1757092078221.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19766i15A144BE2DCBB9D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="bhanu_gautam_8-1757092078221.png" alt="bhanu_gautam_8-1757092078221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2 id="4b54"&gt;Step 6: We can use Markdown cell to give heading&lt;/H2&gt;&lt;OL class=""&gt;&lt;LI&gt;Click on + and then Text to select Markdown cell&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanu_gautam_9-1757092117192.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19767i2760E936748DC16D/image-size/large?v=v2&amp;amp;px=999" role="button" title="bhanu_gautam_9-1757092117192.png" alt="bhanu_gautam_9-1757092117192.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2 id="f734"&gt;Step 7: Rename the Notebook&lt;/H2&gt;&lt;OL class=""&gt;&lt;LI&gt;Double click on top left to rename the notebook and you are all set as there is no need to save it manually&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanu_gautam_10-1757092158177.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19768i248EED7FDFE88D60/image-size/large?v=v2&amp;amp;px=999" role="button" title="bhanu_gautam_10-1757092158177.jpeg" alt="bhanu_gautam_10-1757092158177.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2 id="5409"&gt;Pro Tips for Using Databricks Notebooks&lt;/H2&gt;&lt;UL class=""&gt;&lt;LI&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Markdown cells&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to add documentation and explanations.&lt;/LI&gt;&lt;LI&gt;Utilize&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Magic Commands&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(e.g., %sql, %md) to switch between languages.&lt;/LI&gt;&lt;LI&gt;Leverage&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Widgets&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to create interactive controls for your notebook.&lt;/LI&gt;&lt;LI&gt;Explore the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Databricks Documentation&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for advanced features and best practices.&lt;/LI&gt;&lt;/UL&gt;&lt;H2 id="dbf6"&gt;Final Thoughts&lt;/H2&gt;&lt;P class=""&gt;Databricks notebooks are an essential tool for data professionals. They provide an interactive and collaborative environment for data exploration, analysis, and machine learning. By following this guide, you can quickly get started with notebooks in Databricks and unlock their full potential.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 17:23:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/getting-started-with-notebooks-in-databricks/m-p/131049#M654</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-09-05T17:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with Notebooks in Databricks</title>
      <link>https://community.databricks.com/t5/community-articles/getting-started-with-notebooks-in-databricks/m-p/131217#M656</link>
      <description>&lt;P&gt;Thanks for sharing&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/127282"&gt;@bhanu_gautam&lt;/a&gt;.&amp;nbsp;This will surely help beginners get started with Databricks Notebooks.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 10:22:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/getting-started-with-notebooks-in-databricks/m-p/131217#M656</guid>
      <dc:creator>Advika</dc:creator>
      <dc:date>2025-09-08T10:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with Notebooks in Databricks</title>
      <link>https://community.databricks.com/t5/community-articles/getting-started-with-notebooks-in-databricks/m-p/131361#M660</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/152834"&gt;@Advika&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 10:02:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/getting-started-with-notebooks-in-databricks/m-p/131361#M660</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-09-09T10:02:57Z</dc:date>
    </item>
  </channel>
</rss>

