mangecoeur / ipython-desktop

IPython Notebook desktop interface
125 stars 11 forks source link

Command not stored #9

Open goerz opened 10 years ago

goerz commented 10 years ago

The setting for the "Command" in the Notebook server config is lost on exiting the app.

mangecoeur commented 10 years ago

Hum, that should work (it does for me)... I assume you have the lastest bundle and that you remembered to click Save after editing the commend ;).

Can you tell me:

What folder you put ipython-desktop.app in (could be something to do with the app needed some limited write permission)

What version of OSX you are using

What is in the "command" field after each step -

  1. Install bundle and run ipython-desktop.
  2. Close and re-open ipython-desktop.
  3. Edit "command", DO NOT CLICK SAVE but instead close, and re-open
  4. Edit "command" CLICK SAVE, close and re-open
goerz commented 10 years ago

Yes, downloaded the bundle today (Version 0.2.0 (0.2.0))

The app in in /Applications, to which I don't have write access (when dragging in applications, I have to give my password). The app doesn't store its settings somewhere in my ~/Library folder?

Value of the command field:

  1. Install bundle and run ipython-desktop.
    /usr/bin/ipython notebook --no-browser
  2. Close and re-open ipython-desktop.
    /usr/bin/ipython notebook --no-browser
  3. Edit "command" to /Volumes/HOME/goerz/Library/Enthought/Canopy_64bit/User/bin/ipython notebook --no-browser, DO NOT CLICK SAVE but instead close, and re-open.
    /usr/bin/ipython notebook --no-browser
  4. Edit "command" to /Volumes/HOME/goerz/Library/Enthought/Canopy_64bit/User/bin/ipython notebook --no-browser, CLICK SAVE, close, and re-open.
    /usr/bin/ipython notebook --no-browser

That is, no matter what I do, after closing and re-opening the app, the command is always /usr/bin/ipython notebook --no-browser

mangecoeur commented 10 years ago

Hum... actually the app doesn't store config in ~/Library, instead it uses the local storage features of node-webkit (more cross platform, also just faster prototyping). In theory that should Just Work, but clearly not. I don't have much of time right now to fix this I'm afraid, but will try and squeeze in some time to try and figure this out.

If you are feeling bold and have some spare time, you are more than welcome to download/build ipython-desktop yourself and have a poke around, I can also guide you through the build.

goerz commented 10 years ago

No worries... just wanted to put it out there.. It's not my primary use case at the moment, anyway.

mangecoeur commented 10 years ago

@goerz I think i found the bug that was causing the config to be overwritten (checking property of json string instead of parsed json object, duh). Latest version improves configuration and process handling, give it a whirl (if you dare)