<?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: Python coding in notebook with a (long) token in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/python-coding-in-notebook-with-a-long-token/m-p/116033#M9859</link>
    <description>&lt;P&gt;Yes, that's a good suggestion, thanks.&amp;nbsp; However,&amp;nbsp;I've spotted that even though notebook inserts what appears to be a new line after any '.' characters, my token string still only occupies &lt;STRONG&gt;one&lt;/STRONG&gt; record (in the notebook). This leads me to think that it retains its fidelity (despite the quirky formatting). I'll include a pic of a long-dead token to show you what I mean.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Apr 2025 07:32:16 GMT</pubDate>
    <dc:creator>phguk</dc:creator>
    <dc:date>2025-04-21T07:32:16Z</dc:date>
    <item>
      <title>Python coding in notebook with a (long) token</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-coding-in-notebook-with-a-long-token/m-p/115693#M6176</link>
      <description>&lt;P&gt;I have written a python program (called by a trigger) that uses a token issued by a third party app (it's circa 400 bytes long including '.' and '-'). When I copy/paste this token into a Databricks notebook - curious formatting takes place and a couple of line breaks &lt;EM&gt;appear&lt;/EM&gt; to be inserted. I believe this formatting corrupts my token (and my program fails). In contrast, when I recreate the &lt;EM&gt;same&lt;/EM&gt; program into a juypter notebook, along with a new pasted copy of the token - it appears as a single uninterrupted record (and my program works).&lt;/P&gt;&lt;P&gt;My suspicion is the Notebook GUI is trying to be clever (but in the case of my token - it's corrupted). What can I do to get the same behaviour as with Juypter ? I've seen mention of a Black python code formatter but I don't believe I'm using this - simply default Notebook. Alternatively - must I do something else to &lt;EM&gt;encapsulate&lt;/EM&gt; the token so that its integrity is preserved ?&lt;/P&gt;&lt;P&gt;Thanks Paul&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 22:22:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-coding-in-notebook-with-a-long-token/m-p/115693#M6176</guid>
      <dc:creator>phguk</dc:creator>
      <dc:date>2025-04-16T22:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python coding in notebook with a (long) token</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-coding-in-notebook-with-a-long-token/m-p/115715#M6177</link>
      <description>&lt;P&gt;Hey Paul, You can use databricks secrets for preserving the integrity of the token.&lt;BR /&gt;&lt;BR /&gt;Here's the databricks doc for refernece :&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/security/secrets" target="_blank"&gt;https://docs.databricks.com/aws/en/security/secrets&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 06:05:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-coding-in-notebook-with-a-long-token/m-p/115715#M6177</guid>
      <dc:creator>ashraf1395</dc:creator>
      <dc:date>2025-04-17T06:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python coding in notebook with a (long) token</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-coding-in-notebook-with-a-long-token/m-p/116033#M9859</link>
      <description>&lt;P&gt;Yes, that's a good suggestion, thanks.&amp;nbsp; However,&amp;nbsp;I've spotted that even though notebook inserts what appears to be a new line after any '.' characters, my token string still only occupies &lt;STRONG&gt;one&lt;/STRONG&gt; record (in the notebook). This leads me to think that it retains its fidelity (despite the quirky formatting). I'll include a pic of a long-dead token to show you what I mean.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 07:32:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-coding-in-notebook-with-a-long-token/m-p/116033#M9859</guid>
      <dc:creator>phguk</dc:creator>
      <dc:date>2025-04-21T07:32:16Z</dc:date>
    </item>
  </channel>
</rss>

