Anaconda

Anaconda® Distribution

Anaconda® Distribution is a powerful platform for streamlined data science, featuring essential tools for Python and R programming. Whether you’re a seasoned data professional or just starting your data journey, Anaconda simplifies package management, data analysis, and machine learning model development within a unified and accessible environment.

Key Features

  1. Effortless Package Management: Simplify library management with Anaconda’s conda package manager, ensuring consistent dependencies.
  2. Robust Data Analysis and Visualization: Explore and visualize datasets efficiently with Anaconda’s rich set of data science libraries.
  3. Streamlined Machine Learning Workflow: Accelerate machine learning development using popular frameworks and tools seamlessly integrated into Anaconda.
  4. User-Friendly Interface: Navigate complexities with ease. Anaconda’s interface is designed for both beginners and experienced practitioners.
  5. Community and Support: Join a vibrant community for collaborative knowledge-sharing. Access a wealth of resources, tutorials, and support to enhance your skills.

Experience the power of Anaconda with a single click using the Droplet 1-Click deployment. The Anaconda® Distribution Droplet allows you to instantly access the full capabilities of Anaconda, eliminating the need for complex installations. Launch your data science and machine learning projects seamlessly, now just a click away.

Software Included

Package Version License
Anaconda 2023.09-0 Non-Commericial Use Only

Creating an App using the Control Panel

Click the Deploy to DigitalOcean button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.

Deploy to DO

Creating an App using the API

In addition to creating a Droplet from the Anaconda 1-Click App using the control panel, you can also use the DigitalOcean API. As an example, to create a 4GB Anaconda Droplet in the SFO2 region, you can use the following curl command. You need to either save your API access token) to an environment variable or substitute it in the command below.

curl -X POST -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer '$TOKEN'' -d \
        '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image": "sharklabs-anaconda"}' \
        "https://api.digitalocean.com/v2/droplets"

Getting Started After Deploying Anaconda

Before You Deploy

Before deploying this Droplet, consider the following guidance to ensure you choose the right configuration for your needs:

  • Droplet Size: Depending on your data processing requirements, select a Droplet size that offers sufficient CPU, memory, and storage resources. Consider the complexity and scale of your projects when making this decision.
  • Volume: If you anticipate working with large datasets or require additional storage, it is recommended to attach a Volume to your Droplet. This will provide you with the necessary space to store and access your data conveniently.

Getting Started with Anaconda

Congratulations on successfully installing Anaconda! Now that you have the powerful data science platform at your fingertips, let’s get started with some essential steps to make the most out of your Anaconda installation.

  1. Update Conda and Anaconda Navigator

Ensure that your Anaconda tools are up to date. Open a terminal and run the following commands:

conda update conda
conda update anaconda-navigator

This will ensure you have the latest versions and bug fixes.

  1. Create and Activate a Virtual Environment

Create a virtual environment to manage your project dependencies. Replace myenv with your preferred environment name.

conda create --name myenv
conda activate myenv

This isolates your project from the global Python environment, preventing potential conflicts.

  1. Install Jupyter Notebooks

Jupyter Notebooks are a fantastic way to create and share live code, equations, visualizations, and narrative text. Install it with:

conda install jupyter

To be able to manage Jupyter Notebooks remotely, create jupyter_notebook_config.py file if it does not exist under ~/.jupyter directory by running the following command:

jupyter notebook --generate-config

Edit the following lines on your jupyter_notebook_config.py file:

 #The IP address the notebook server will listen on.
c.ServerApp.ip = '0.0.0.0' # default value is 'localhost'

# Whether to open in a browser after starting.
c.ServerApp.open_browser = False
# If you want to run jupyter notebook command as root
c.ServerApp.allow_root = True

Start a new Jupyter Notebook with:

jupyter notebook

To connect to the Jupyter Notebook server from your browser allow the required ports in the firewall by running the following commands:

ufw allow 8888/tcp
ufw allow 8889/tcp

Once you see the following message, connect to the server using the server URL

To access the server, open this file in a browser:

file:///root/.local/share/jupyter/runtime/jpserver-22627-open.html

Or copy and paste one of these URLs:

http://anaconda2023090onubuntu2204lts-s-2vcpu-4gb-120gb-intel-sfo3-01:8889/tree?token=2641aecf9907b6b5fec09059be84bb0014abdc3e1424832d

http://127.0.0.1:8889/tree?token=2641aecf9907b6b5fec09059be84bb0014abdc3e1424832d

Connect to the server using the following URL

http://{YOUR_DROPLET_IP}:8889/tree?token={YOUR_TOKEN}
  1. Explore Anaconda Navigator

Anaconda Navigator provides a graphical interface to manage your packages, environments, and applications. Launch it by running:

anaconda-navigator

Explore the Navigator to manage your environments, install packages, and launch applications like Jupyter Notebooks and Spyder.

  1. Install Additional Packages

Anaconda includes many essential packages, but you may need additional ones for your projects. Use conda install to install packages. For example:

conda install numpy pandas matplotlib
  1. Join the Anaconda Community

Connect with the Anaconda Community to get help, share knowledge, and stay updated on the latest developments. Visit the community to join discussions, ask questions, and explore tutorials.

For more detailed information, refer to the Anaconda Reference Guide.