nwhitehead / pineapple

http://nwhitehead.github.io/pineapple/
Other
352 stars 26 forks source link

GUI only #44

Open bmtgoncalves opened 9 years ago

bmtgoncalves commented 9 years ago

Hi,

Would it be possible to have a GUI only version? What I mean is a distribution that simply uses whatever I already have installed on my system without the need to have (and manage) yet another Python distribution?

Best,

Bruno

nwhitehead commented 9 years ago

Yes, that's not a bad idea.

The highest priority is adding the option of using your existing Python as the kernel for notebooks so you can use all your normal libraries inside your notebooks. That way you don't have to worry about the Python inside Pineapple. Going all the way and removing Python entirely is possible but adds a bit of risk since the notebook server is in Python, so any incompatibilities in versions could prevent Pineapple from opening at all.

bmtgoncalves commented 9 years ago

"The highest priority is adding the option of using your existing Python as the kernel for notebooks so you can use all your normal libraries inside your notebooks."

Yes, this is what I meant. If there's anyway I can help, let me know.

ablock92 commented 9 years ago

Workaround solution that I just set up on my Mac. Haven't tested much to see if anything breaks so make sure to back up the bundled python install in step 2:

  1. go to resource directory $ cd /Applications/Pineapple.app/Contents/Resources
  2. backup python bundle $ mv python2.7 python 2.7_
  3. symlink to your python installation $ ln -s /Library/Frameworks/Python.framework/Versions/2.7/ python2.7
  4. Run the Pineapple executable from the command line $ /Applications/Pineapple-Pro.app/Contents/MacOS/Pineapple
  5. The executable depends on certain pip modules (I don't know all of them...@nwhitehead may know).
    • You may see an error like "ImportError: No module named notebook.notebookapp"
      • pip install the missing modules
      • $pip install notebook
    • Stop the process with ctrl+c.
    • Run Step 4. Repeat installation of modules until it works.
guyest commented 8 years ago

This now seems to work seamlessly for python3 directly by symlinking the "Frameworks" directory in the app bundle to the corresponding folder in the desired system version of python3.

GNHua commented 7 years ago

@guygma What exactly did you symlink? I have anaconda installed. I tried symlink "Frameworks" folder to anaconda/ and anaconda/bin/, neither of which worked.