Skip to content

Commit

Permalink
Update launch_on_server.md
Browse files Browse the repository at this point in the history
  • Loading branch information
benstear authored Mar 6, 2024
1 parent 73c49a4 commit adda81f
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion scripts/launch_on_server.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit adda81f

Please sign in to comment.