<?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 JSL - Escape Character Syntax Error? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Escape-Character-Syntax-Error/m-p/773361#M95443</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;(JMP Pro 17 user) I am running into a strange issue where escape characters don't work in JSL, specifically within Application Builder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Example:&lt;BR /&gt;Python Submit("print(dt1)");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This does not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Example:&lt;BR /&gt;Python Submit("\[print (dt1)]\");&lt;BR /&gt;&lt;BR /&gt;// this&amp;nbsp;is&amp;nbsp;what&amp;nbsp;I&amp;nbsp;want&amp;nbsp;to&amp;nbsp;use&amp;nbsp;it&amp;nbsp;with, statement is impossible without escape characters:&amp;nbsp;&lt;BR /&gt;Python Submit("\[&lt;BR /&gt;    dt1 = dt1[~dt1["Column 1"].str.contains("#")]&lt;BR /&gt;]\");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When it works, it prints the data table associated with&amp;nbsp;&lt;STRONG&gt;dt1&lt;/STRONG&gt;, but when escape characters are placed, this is the log output (just repeats what's within the escape characters):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/**********/

	
	print (dt1)
	
	
/**********/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm not sure what is going wrong here, perhaps a syntax error on my end?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 17:06:42 GMT</pubDate>
    <dc:creator>CircularHazard2</dc:creator>
    <dc:date>2024-07-16T17:06:42Z</dc:date>
    <item>
      <title>JSL - Escape Character Syntax Error?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Escape-Character-Syntax-Error/m-p/773361#M95443</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;(JMP Pro 17 user) I am running into a strange issue where escape characters don't work in JSL, specifically within Application Builder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Example:&lt;BR /&gt;Python Submit("print(dt1)");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This does not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Example:&lt;BR /&gt;Python Submit("\[print (dt1)]\");&lt;BR /&gt;&lt;BR /&gt;// this&amp;nbsp;is&amp;nbsp;what&amp;nbsp;I&amp;nbsp;want&amp;nbsp;to&amp;nbsp;use&amp;nbsp;it&amp;nbsp;with, statement is impossible without escape characters:&amp;nbsp;&lt;BR /&gt;Python Submit("\[&lt;BR /&gt;    dt1 = dt1[~dt1["Column 1"].str.contains("#")]&lt;BR /&gt;]\");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When it works, it prints the data table associated with&amp;nbsp;&lt;STRONG&gt;dt1&lt;/STRONG&gt;, but when escape characters are placed, this is the log output (just repeats what's within the escape characters):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/**********/

	
	print (dt1)
	
	
/**********/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm not sure what is going wrong here, perhaps a syntax error on my end?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 17:06:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Escape-Character-Syntax-Error/m-p/773361#M95443</guid>
      <dc:creator>CircularHazard2</dc:creator>
      <dc:date>2024-07-16T17:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Escape Character Syntax Error?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Escape-Character-Syntax-Error/m-p/773371#M95444</link>
      <description>&lt;P&gt;Not sure how to edit, but apologies for the messed up formatting.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 17:12:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Escape-Character-Syntax-Error/m-p/773371#M95444</guid>
      <dc:creator>CircularHazard2</dc:creator>
      <dc:date>2024-07-16T17:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Escape Character Syntax Error?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Escape-Character-Syntax-Error/m-p/773372#M95445</link>
      <description>&lt;P&gt;I think I may have resolved this. For some reason it had to be in one line. Putting in line breaks to make the block of code more pretty seemed to break it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, this works:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Python Submit("\[dt1 = dt1[~dt1["Column 1"].str.contains("#")]]\");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But this didn't:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Python Submit("\[
	
	dt1 = dt1[~dt1["Column 1"].str.contains("#")]
		
]\");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not sure why this could be, but I'm glad it's at least working.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 17:22:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Escape-Character-Syntax-Error/m-p/773372#M95445</guid>
      <dc:creator>CircularHazard2</dc:creator>
      <dc:date>2024-07-16T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Escape Character Syntax Error?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Escape-Character-Syntax-Error/m-p/773375#M95446</link>
      <description>&lt;P&gt;The issue could be caused by incorrect indentation of the python code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is from JMP18, but I would guess it is same in JMP17&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1721150953229.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66227i47B1FA2DEFDBEC10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1721150953229.png" alt="jthi_0-1721150953229.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="jthi_1-1721150964186.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66228i27FBD1091676B74E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1721150964186.png" alt="jthi_1-1721150964186.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 17:29:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Escape-Character-Syntax-Error/m-p/773375#M95446</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-16T17:29:44Z</dc:date>
    </item>
  </channel>
</rss>

