title: I want to run .ipynb file in batch script
body: <p>I have a .ipynb file named &quot;prod.ipynb&quot; i  want to run it in a batch script and i want to schedule it in task scheduler. I installed Anaconda, and when i was trying to run it by converting to python, some tensorflow errors were coming and i can't install .dll files due to company restrictions. I wrote a small python code which will help me run the .ipynb files, it will convert the .ipynb to .py and run it but the script is only working when im running it from anaconda prompt. What i want to do is, i want to write a batch script which will open anaconda prompt and then it will run my python script.</p>
  <pre><code>start activate root c:\Anaconda3\python.exe c:\Users\foo\Desktop\runner.py &quot;c:\users\foo\prod.ipynb&quot;
  </code></pre>
  <p>When im running above script, anaconda prompt opens up.</p>
  <pre><code>(base) C:\Anaconda3\Scripts&gt;
  </code></pre>
  <p>What i wanted to do is, i want to open anaconda prompt and run this particular script,</p>
  <pre><code>c:\Anaconda3\python.exe c:\Users\foo\Desktop\runner.py &quot;c:\users\foo\prod.ipynb&quot;re
  </code></pre>
  <p>and i want to do it in batch script.</p>