<?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: Running Jupyter Notebook from JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211561#M42381</link>
    <description>&lt;P&gt;re-reading...and searching a bit more...&lt;/P&gt;
&lt;P&gt;It looks like the .exe is probably jupyter-notebook.exe and that may not be on the path when JMP launches RunProgram.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2019 13:19:00 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2019-06-03T13:19:00Z</dc:date>
    <item>
      <title>Running Jupyter Notebook from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211312#M42323</link>
      <description>&lt;P&gt;I'd like to run a Jupyter notebook from a JSL script.&amp;nbsp; I tried the following but without success:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//================================================================
// Open Jupyter notebook
//
RunProgram(
Executable( "C:/Users/Owner/Anaconda3/Scripts/jupyter.exe " ),
Options(
{"notebook", "C:/temp/meteorites.ipynb"}
),
Read Function( "text" ),
);
//================================================================&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I run this from a command like, the notebook opens as expected:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;C:/Users/Owner/Anaconda3/Scripts/jupyter.exe notebook C:\temp\meteorites.ipynb
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using JMP 14 on a Windows laptop.&amp;nbsp; Any suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Walt Paczkowski&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 00:54:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211312#M42323</guid>
      <dc:creator>waltp</dc:creator>
      <dc:date>2019-05-31T00:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running Jupyter Notebook from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211506#M42366</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1623"&gt;@waltp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I noticed your CMD line prompt uses back slashes (\) for the file name and forward slashe (/) for the JMP option.&amp;nbsp; You might want to make the JMP option consistent and give it a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I vaguely recall someone had a security set on their PC that wouldn't allow something like a script calling an executable. Sorry, I don't recall the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck. Let the blog know if you get it to work.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 23:03:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211506#M42366</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-06-02T23:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Running Jupyter Notebook from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211510#M42370</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&amp;nbsp; I made sure the slashes are the same in the JMP script -- still doesn't work.&amp;nbsp; The error message in the log is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//&lt;BR /&gt;// Open Jupyter notebook&lt;/P&gt;
&lt;PRE&gt;//
RunProgram(
Executable( "C:/Users/Owner/Anaconda3/Scripts/jupyter.exe " ),
Options(
{"notebook", "C:/temp/meteorites.ipynb"}
),
Read Function( "text" ),
);
/*:
"Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2
"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that I can open a notebook from a command prompt; it works.&amp;nbsp; But it does't work from a script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Walt&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 13:24:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211510#M42370</guid>
      <dc:creator>waltp</dc:creator>
      <dc:date>2019-06-03T13:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running Jupyter Notebook from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211560#M42380</link>
      <description>&lt;P&gt;Maybe a PATH issue. Maybe a VirtualEnv issue. I've barely looked at Jupyter, on Linux, so take with grain of salt...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One or two of the scripting index examples use CMD.EXE to run commands. That might get the environment set up the way you need it, or allow you to run a PATH or virtualenv command before starting the notebook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 13:16:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211560#M42380</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-06-03T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running Jupyter Notebook from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211561#M42381</link>
      <description>&lt;P&gt;re-reading...and searching a bit more...&lt;/P&gt;
&lt;P&gt;It looks like the .exe is probably jupyter-notebook.exe and that may not be on the path when JMP launches RunProgram.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 13:19:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211561#M42381</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-06-03T13:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Running Jupyter Notebook from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211563#M42382</link>
      <description>&lt;P&gt;Good point about the slashes. The command line options probably have to be the normal windows \ ; JMP won't be looking at that value and Jupyter might or might not try to fix it up. (Many of JMP's internal filename operations do some normalization of the \ and / characters for MAC and WIN, but only when JMP knows it is a file name.)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 13:28:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Running-Jupyter-Notebook-from-JSL/m-p/211563#M42382</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-06-03T13:28:27Z</dc:date>
    </item>
  </channel>
</rss>

