Last active
December 31, 2015 05:49
-
-
Save marekjelen/7942996 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rhc app create ip diy | |
rhc ssh ip | |
scl enable python27 bash | |
cd $OPENSHIFT_DATA_DIR | |
virtualenv ipython | |
cd ipython | |
./bin/pip install ipython pyzmq tornado jinja2 | |
killall ruby | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
ln -s ${OPENSHIFT_DATA_DIR}notebooks /sandbox/ipython | |
${OPENSHIFT_DATA_DIR}ipython/bin/ipython profile create openshift --profile-dir=/sandbox/ipython | |
${OPENSHIFT_DATA_DIR}ipython/bin/ipython notebook --NotebookApp.ip=${OPENSHIFT_DIY_IP} --KernelManager.ip=${OPENSHIFT_DIY_IP} --IPKernelApp.ip=${OPENSHIFT_DIY_IP} --NotebookApp.port=${OPENSHIFT_DIY_PORT} --transport=ipc --IPKernelApp.transport=ipc --KernelManager.transport=ipc --notebook-dir=/sandbox/ipython --profile-dir=/sandbox/ipython --ipython-dir=/sandbox/ipython --no-browser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rhc app create ip python-2.7 | |
rhc ssh ip | |
pip install ipython pyzmq tornado | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
killall httpd | |
ipython notebook --ip=${OPENSHIFT_PYTHON_IP} --port=${OPENSHIFT_PYTHON_PORT} --no-browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I set the environment vars from rhc: