<?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: Why my notebook I created in a Repo can be opened safe? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/2911#M144</link>
    <description>&lt;P&gt;Opening in Confined Mode is the most secure choice and you can constantly resume the record in your unique Versus Code window once you decide the document is reliable.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blackbirdpackaging.com/product/custom-labels-and-stickers/" alt="https://blackbirdpackaging.com/product/custom-labels-and-stickers/" target="_blank"&gt;Custom Labels and Stickers&lt;/A&gt; | &lt;A href="https://blackbirdpackaging.com/" alt="https://blackbirdpackaging.com/" target="_blank"&gt;Custom Boxes With Logo&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 17:39:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-22T17:39:31Z</dc:date>
    <item>
      <title>Why my notebook I created in a Repo can be opened safe?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/2909#M142</link>
      <description>&lt;P&gt;I've cloned a Repo during "Get Started with Data Engineering on Databricks".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I'm trying to run another notebook from a cell with a magic %run command.&lt;/P&gt;&lt;P&gt;But I get that the file can't be opened safe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my code:&lt;/P&gt;&lt;P&gt;notebook_a&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;name = "John"
print(f"Hello {name}")
%run ./notebook_b3
print(f"Welcome back John {full_name2}")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;notebook_b3:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;full_name2 = "Todorov"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/databricks/python/lib/python3.10/site-packages/IPython/core/interactiveshell.py:2807: UserWarning: Could not open file &amp;lt;/Workspace/Repos/dnchankov@abv.bg/my_databricks_course/my_folder/notebook_b3&amp;gt; for safe execution.
  warn('Could not open file &amp;lt;%s&amp;gt; for safe execution.' % fname)
NameError: name 'full_name2' is not defined&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 09:15:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/2909#M142</guid>
      <dc:creator>dnchankov</dc:creator>
      <dc:date>2023-06-17T09:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why my notebook I created in a Repo can be opened safe?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/2910#M143</link>
      <description>&lt;P&gt;Hi @Dobromir Chankov​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 13:05:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/2910#M143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-18T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why my notebook I created in a Repo can be opened safe?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/2911#M144</link>
      <description>&lt;P&gt;Opening in Confined Mode is the most secure choice and you can constantly resume the record in your unique Versus Code window once you decide the document is reliable.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blackbirdpackaging.com/product/custom-labels-and-stickers/" alt="https://blackbirdpackaging.com/product/custom-labels-and-stickers/" target="_blank"&gt;Custom Labels and Stickers&lt;/A&gt; | &lt;A href="https://blackbirdpackaging.com/" alt="https://blackbirdpackaging.com/" target="_blank"&gt;Custom Boxes With Logo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 17:39:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/2911#M144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-22T17:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why my notebook I created in a Repo can be opened safe?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/83727#M36995</link>
      <description>&lt;P&gt;It could be that you need to put the &lt;STRONG&gt;%run&lt;/STRONG&gt; in a cell all by itself.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Suggested here: &lt;A href="https://stackoverflow.com/a/72833400/1144966" target="_blank"&gt;https://stackoverflow.com/a/72833400/1144966&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 08:22:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/83727#M36995</guid>
      <dc:creator>petermeissner</dc:creator>
      <dc:date>2024-08-21T08:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why my notebook I created in a Repo can be opened safe?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/144707#M52372</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;!--   ScriptorStartFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;Just sharing this here for future reference in case it helps other users.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;I ran into the same warning/error, and the solution is indeed what &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/116836"&gt;@petermeissner&lt;/a&gt; pointed out.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;The %run command must be in a cell by itself.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;In my case, having a comment in the `%run` cell was the reason the error occurred.&lt;!--   ScriptorEndFragment   --&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jan 2026 08:05:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/144707#M52372</guid>
      <dc:creator>cbossi</dc:creator>
      <dc:date>2026-01-21T08:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why my notebook I created in a Repo can be opened safe?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/144780#M52386</link>
      <description>&lt;P&gt;+1 to all the above comments. Having the %run command along with other commands will confuse the REPL execution. So, have the %run notebook_b3 command alone in a new cell, maybe as the first cell, is notebook_a, which will resolve the issue, and your variables can also be accessed anywhere in notebook_a.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 15:55:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-my-notebook-i-created-in-a-repo-can-be-opened-safe/m-p/144780#M52386</guid>
      <dc:creator>iyashk-DB</dc:creator>
      <dc:date>2026-01-21T15:55:14Z</dc:date>
    </item>
  </channel>
</rss>

