From adda81f7cf632ecdb43c302111e2911b2fbc79a7 Mon Sep 17 00:00:00 2001 From: ben stear Date: Wed, 6 Mar 2024 17:35:00 -0500 Subject: [PATCH] Update launch_on_server.md --- scripts/launch_on_server.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/scripts/launch_on_server.md b/scripts/launch_on_server.md index 017d6d5..55dab17 100644 --- a/scripts/launch_on_server.md +++ b/scripts/launch_on_server.md @@ -1,6 +1,15 @@ # Instructions on how to launch and query Petagraph on the Taylor server +#### (Optional) Prerequisites +a.) Set up ssh keys for password free login +b.) Install pip on server +c.) Use virtualenv to create a virtural environment and install python3.11 + + +Install packages: jupyter, graphdatascience, neo4j, + + #### 1. ssh into the server: `$ ssh RESLNTAYLORD01.research.chop.edu` #### 2. start the database: @@ -29,7 +38,21 @@ driver = GraphDatabase.driver(NEO4J_URI, auth=(NEO4J_USER, NEO4J_PASSWORD)) #### 5. Activate virtual environment so you can use a newer version of Python in jupyter lab The default Python is python3.6, but neo4js python graph data science plugin `graphdatascience==1.8` needs a newer version of python. To use a newer version of Python follow these steps: -5a. Use method 2 from https://tecadmin.net/how-to-install-python-3-11-on-ubuntu/ to d/l Python and PIP. +5a. Use method 2 from https://tecadmin.net/how-to-install-python-3-11-on-ubuntu/ to d/l Python and PIP... +``` +sudo wget https://www.python.org/ftp/python/3.11.3/Python-3.11.3.tgz; +sudo tar xzf Python-3.11.3.tgz; +cd Python-3.11.3 ; +sudo ./configure --enable-optimizations; +sudo make altinstall ; +python3.11 -V ; +``` + +``` +curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11; +pip3.11 -V +``` + 5b. Create venv to create new kernel https://saturncloud.io/blog/how-to-add-a-python-3-kernel-to-jupyter-ipython/#step-3-install-the-ipython-kernel-package 5c. #export PATH="/usr/local/lib/python3.11:$PATH"