Baktaawar
Baktaawar

Reputation: 7490

Installing Anaconda on Server

I have a Unix server where I have Python3 installed. I ssh to the server from my mac.

I was wondering if it possible to install Anaconda and Jupyter (will come with Anaconda) on the server so that I can just pull up Jupyter on the server terminal and run codes on jupyter running on the server.

Is it possible? And if yes, could someone guide me to the right link?

Upvotes: 5

Views: 36099

Answers (3)

Bruno Carballo
Bruno Carballo

Reputation: 1196

in a terminal on your remote server:

#download anaconda (change version if you want)
wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh

# run the installer
bash Anaconda3-5.1.0-Linux-x86-64.sh

# so changes in your path take place in you current session:
source ~/.bashrc

#To run a remote notebook, replace XXXX with your choice of four numbers like 9191
jupyter notebook --no-browser --port=XXXX
#copy the url that you get as a result

Then in your local machine, open up a terminal and write:

#XXXX is the port you specified in the previous step, YYYY is a local port, for example 9999 to keep it simple
ssh -f [USER]@[SERVER] -L YYYY:localhost:XXXX -N

Then copy the url from the previous step, paste it in a browser, since you used the same port, you don't have to change anything on the url

Upvotes: 15

BetaDev
BetaDev

Reputation: 4674

Yes you can install anaconda on your linux machine (Server) and manage the python environment. But if just need Jupyter hosted in a server, just install Jupyter only and start the service which will server Jupyter Notebook. Access Jupyter notebook using your browser on any other PC.

Make a google search that how to install anaconda on Linux machine (Centos/Ubuntu etc) After installation run following command

conda info

and then configure the Jupyter and run.

Simple way (Install Jupyter on a server): Install, Run, and Connect to Jupyter Notebook on a Remote Server

Upvotes: 0

Ramesh Kumar
Ramesh Kumar

Reputation: 1568

you can download anaconda using:wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh and install using: bash Anaconda3-5.1.0-Linux-x86_64.sh

After that just source the path of Anaconda in .bashrc file, it should work.

To access jupyter notebook, you can use ssh and run notebook in your browser on your host. Steps are mentioned in this link

Upvotes: 1

Related Questions