Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues on Windows #44

Closed
mwiebe opened this issue Nov 28, 2014 · 2 comments
Closed

issues on Windows #44

mwiebe opened this issue Nov 28, 2014 · 2 comments

Comments

@mwiebe
Copy link

mwiebe commented Nov 28, 2014

Giving this a shot on Windows, but ran into a few issues. The rise profile didn't seem to have the live_reveal stuff in it, but that seems to be in the default profile. The notebook is written calling out to the posix shell. I patched it to use shutil, but it was still erroring. Here's the diff from the essential that notebook:

      "input": [
-      "import os\n",
+      "import os, shutil\n",
       "import IPython.html.nbextensions as nbext\n",
       "\n",
       "# download rise extension\n",
@@ -42,21 +42,58 @@
       "nbext_folder = os.path.join(nbext.get_ipython_dir(), \"nbextensions\")\n
       "install_folder = os.path.join(nbext_folder, nbext_name + \"-\" + version
       "rise_folder =  os.path.join(install_folder, \"livereveal\")\n",
-      "!mv {rise_folder} {nbext_folder}\n",
+      "shutil.move(rise_folder, nbext_folder)\n",
       "\n",
       "# create a rise profile and add the proper custom.js\n",
       "!ipython profile create rise\n",
       "custom_js = os.path.join(nbext_folder, nbext_name + \"-\" + version, \"c
       "tgt = os.path.join(nbext.get_ipython_dir(), 'profile_rise', 'static', 'c
-      "!mv {custom_js} {tgt}\n",
+      "shutil.move(custom_js, tgt)\n",
       "\n",
       "# clean the mess\n",
-      "!rm -r {install_folder}"
+      "shutil.rmtree(install_folder)"
@franktoffel
Copy link

I successfully installed it on windows few months ago.
What I did was to replace the bash commands by the windows cmd.exe one.

I am a newbie but this helped me:
https://github.com/mikecroucher/Windows_Scientific_Computing/blob/master/Powershell.md

I didn't know about shutil, though. It will be neat (when fixed)!

@damianavila
Copy link
Owner

We need a real multi-platform installation, closing here in favour of #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants