pineapple icon indicating copy to clipboard operation
pineapple copied to clipboard

GUI only

Open bmtgoncalves opened this issue 9 years ago • 5 comments

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

bmtgoncalves avatar Sep 25 '15 12:09 bmtgoncalves

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.

nwhitehead avatar Sep 26 '15 18:09 nwhitehead

"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.

bmtgoncalves avatar Sep 27 '15 10:09 bmtgoncalves

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.

ablock92 avatar Sep 29 '15 19:09 ablock92

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.

guyest avatar Jul 14 '16 09:07 guyest

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

GNHua avatar Apr 03 '17 16:04 GNHua