Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>A neat trick for those using IPython in windows</strong> is that you can make an ipython icon in each of your project directories designed to open with the notebook pointing at that chosen project. This helps keep things separate.</p> <p>For example if you have a new project in C:\fake\example\directory</p> <p>Copy an ipython notebook icon to the directory or create a new link to the windows "cmd" shell. Then right click on the icon and "Edit Properties"</p> <p>Set the shortcut properties to:</p> <pre><code>Target: C:\Windows\System32\cmd.exe /k "cd C:\fake\example\directory &amp; C: &amp; ipython notebook --pylab inline" Start in: C:\fake\example\directory\ </code></pre> <p>(Note the added slash at the end of "start in")</p> <p>This runs windows command line, changes to your working directory, and runs the ipython notebook pointed at that directory.</p> <p>Drop one of these in each project folder and you'll have ipython notebook groups kept nice and separate while still just a doubleclick away.</p> <p>UPDATE: IPython has removed support for the command line inlining of pylab so the fix for that with this trick is to just eliminate "--pylab inline" if you have a newer IPython version (or just don't want pylab obviously).</p> <p>UPDATE FOR JUPYTER NOTEBOOK ~ version 4.1.1</p> <p>On my test machines and as reported in comments below, the newest jupyter build appears to check the start directory and launch with that as the working directory. This means that the working directory override is not needed.</p> <p>Thus your shortcut can be as simple as:</p> <pre><code>Target (if jupyter notebook in path): jupyter notebook Target (if jupyter notebook NOT in path): C:\Users\&lt;Your Username Here&gt;\Anaconda\Scripts\jupyter.exe notebook </code></pre> <p>If jupyter notebook is not in your PATH you just need to add the full directory reference in front of the command. If that doesn't work please try working from the earlier version. Very conveniently, now "Start in:" can be empty in my tests with 4.1.1 and later. Perhaps they read this entry on SO and liked it, so long upvotes, nobody needs this anymore :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload