<?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 How to fetch environmental variables saved in one notebook into another notebook in Databricks Repos and Notebooks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-fetch-environmental-variables-saved-in-one-notebook-into/m-p/17808#M11754</link>
    <description>&lt;P&gt;I have this &lt;A href="https://config.py" alt="https://config.py" target="_blank"&gt;config.py&lt;/A&gt; file which is used to store environmental variables&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PUSH_API_ACCOUNT_ID = '*******'
PUSH_API_PASSCODE = '***********************'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this to fetch the variables and use it  in my &lt;A href="https://file.py" alt="https://file.py" target="_blank"&gt;file.py&lt;/A&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import sys
&amp;nbsp;
sys.path.append("..")
&amp;nbsp;
from folder import config
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
# create header for  push API
headers = {
    'Account-Id': PUSH_API_ACCOUNT_ID,
    'Passcode': PUSH_API_PASSCODE,
    'Content-Type': 'application/json',
    }
#Push API url
url = "https://fetch.api.netscape.news.com/1/send/push.json"
#call  API
response = requests.request("POST", url, headers=headers, data = data)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it in Repos and Workspace section&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 05:30:12 GMT</pubDate>
    <dc:creator>shubhamb</dc:creator>
    <dc:date>2022-06-13T05:30:12Z</dc:date>
    <item>
      <title>How to fetch environmental variables saved in one notebook into another notebook in Databricks Repos and Notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-fetch-environmental-variables-saved-in-one-notebook-into/m-p/17808#M11754</link>
      <description>&lt;P&gt;I have this &lt;A href="https://config.py" alt="https://config.py" target="_blank"&gt;config.py&lt;/A&gt; file which is used to store environmental variables&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PUSH_API_ACCOUNT_ID = '*******'
PUSH_API_PASSCODE = '***********************'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this to fetch the variables and use it  in my &lt;A href="https://file.py" alt="https://file.py" target="_blank"&gt;file.py&lt;/A&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import sys
&amp;nbsp;
sys.path.append("..")
&amp;nbsp;
from folder import config
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
# create header for  push API
headers = {
    'Account-Id': PUSH_API_ACCOUNT_ID,
    'Passcode': PUSH_API_PASSCODE,
    'Content-Type': 'application/json',
    }
#Push API url
url = "https://fetch.api.netscape.news.com/1/send/push.json"
#call  API
response = requests.request("POST", url, headers=headers, data = data)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it in Repos and Workspace section&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 05:30:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-fetch-environmental-variables-saved-in-one-notebook-into/m-p/17808#M11754</guid>
      <dc:creator>shubhamb</dc:creator>
      <dc:date>2022-06-13T05:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch environmental variables saved in one notebook into another notebook in Databricks Repos and Notebooks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-fetch-environmental-variables-saved-in-one-notebook-into/m-p/17811#M11757</link>
      <description>&lt;P&gt;Hey there @Shubham Biswas​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 15:27:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-fetch-environmental-variables-saved-in-one-notebook-into/m-p/17811#M11757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T15:27:40Z</dc:date>
    </item>
  </channel>
</rss>

