Skip to content

franknb/MyEnv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MyEnv

Setting up environment for new working space

Example for setting up jupyter notebook on google cloud instance:

  1. Create an instance, with http/https allowed

  2. Set external ip address to static

  3. connect to your instance

gcloud compute ssh --project hazel-cipher-265321 --zone us-central1-a instance-1
  1. Git Clone
sudo apt-get install git

then

ssh-keygen -t rsa
git clone [email protected]:Frank-Xu-Huaze/MyEnv.git

or

git clone https://github.com/Frank-Xu-Huaze/MyEnv.git
  1. Make sure the env is complete
sudo apt-get install python3-venv
sudo apt-get install --reinstall build-essential
  1. Makefile
cd MyEnv

make setup

source ~/.env/bin/activate

make install
  1. Download data
gsutil cp gs://franksbucket/data1.pkl ~/ && gsutil cp gs://franksbucket/Model2.ipynb ~/
  1. Setup and Configure jupyter file
jupyter notebook --ip=0.0.0.0 --port=8888 --no-browser &
  1. Open up the lab interface
https://<external static IP>:8888

About

Set up environment for new working space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published