News
NEWeSAR for NBA Accreditation of Electronics & Communication Engineering Department Submitted to NBA – View Document(27 Feb 2026)NEWAdmissions Open for Academic Year 2026-27 – Apply Now via ACPDC Portal(1 Feb 2026)NEWGTU Winter Examination 2025 – Revised Timetable Published(25 Jan 2026)NEWGuest Faculty Recruitment 2026 – Applications Invited for Engineering Departments(20 Jan 2026)SSIP Grant 2025-26 – Submit Your Innovation Proposals by 28 February 2026(15 Jan 2026)Annual Technical Fest "INNOVATE 2026" – Registration Open for All Events(10 Jan 2026)GTU Semester 3 Examination Results Declared – Check Results on GTU Portal(5 Jan 2026)Library: 250+ New Technical Books Added – Available for Borrowing from 1 Feb 2026(2 Jan 2026)Holiday List for Year 2026 Published – View Official Calendar(1 Jan 2026)NEW(27 Feb 2026)NEW(1 Feb 2026)NEW(25 Jan 2026)NEW(20 Jan 2026)(15 Jan 2026)(10 Jan 2026)GTU Semester 3 Examination Results Declared – Check Results on GTU Portal(5 Jan 2026)(2 Jan 2026)(1 Jan 2026)
Comprehensive Data Science Environment Setup

Comprehensive Data Science Environment Setup

March 5, 2023
4 min read

This guide will walk you through setting up a complete data science environment with Anaconda, Jupyter Notebooks, Python, IntelliJ IDEA, R, and RStudio. By the end, you'll have a powerful and flexible workspace for all your data science projects.

1. Installing Anaconda

Anaconda is a distribution of Python and R for scientific computing that simplifies package management and deployment.

Download and Install Anaconda

Visit the Anaconda download page and get the appropriate version for your platform. This guide focuses on Linux, but the process is similar for Windows and macOS.

# For Linux, after downloading the .sh file, make it executable:
chmod +x Anaconda3-2023.X-Linux-x86_64.sh

# Run the installer
./Anaconda3-2023.X-Linux-x86_64.sh

# Follow the prompts to complete installation
# Remember to say "yes" when asked if you want to initialize Anaconda3

After installation, restart your terminal or run:

source ~/.bashrc

2. Setting Up Jupyter Notebooks with Enhancements

Install Conda Extensions for Jupyter

These extensions allow you to manage conda environments directly from Jupyter:

# Install nb_conda for environment management in Jupyter
conda install -c anaconda nb_conda

# If you need development features
conda install -c anaconda-nb-extensions/label/dev nb_conda

Install Jupyter Extensions

Jupyter extensions add useful features like code formatting, table of contents, and more:

# Install contrib extensions (collection of community-contributed extensions)
conda install -c conda-forge jupyter_contrib_nbextensions 

# Install configurator to enable/disable extensions via web interface
conda install -c conda-forge jupyter_nbextensions_configurator

Customize Jupyter Appearance

You can customize the look and feel of Jupyter notebooks:

# Install Jupyter themes
conda install -c conda-forge jupyterthemes

# Set a dark theme (chesterish in this example)
jt -t chesterish

# Reset to default theme (if needed)
jt -r

3. Setting Up IntelliJ IDEA for Python Development

IntelliJ IDEA with the Python plugin provides a powerful IDE for Python development.

Download and Install IntelliJ IDEA

  1. Download IntelliJ IDEA from the official website
  2. Extract the downloaded archive:
    tar -xzf ideaIC-*.tar.gz
    
  3. Navigate to the bin directory and run the setup script:
    cd idea-IC-*/bin
    ./idea.sh
    
  4. Follow the installation prompts
  5. Make sure to select "Create Desktop Entry" for easy access

Configure Python Support in IntelliJ IDEA

  1. Launch IntelliJ IDEA
  2. Install the Python Community Edition Plugin:
    • Go to File → Settings → Plugins
    • Search for "Python Community Edition"
    • Click Install and restart the IDE when prompted
  3. Configure your Python/Conda environment:
    • Go to File → Project Structure → SDKs
    • Click the "+" button and select "Python SDK"
    • Choose "Conda Environment" → "Existing environment"
    • Navigate to your Anaconda installation (typically in ~/anaconda3)
    • Or create a new virtual environment specific to your project

4. Setting Up R and RStudio Support

Install R Kernel for Jupyter

To use R within Jupyter notebooks:

# Install R and the IRKernel package
conda install -c r r-irkernel

Install RStudio (Optional)

If you prefer a dedicated R environment alongside Jupyter:

# For Ubuntu/Debian-based distributions:
wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-2023.X.X-XXX-amd64.deb
sudo dpkg -i rstudio-2023.X.X-XXX-amd64.deb
sudo apt-get install -f  # To resolve dependencies if needed

5. Launching Your Data Science Environment

Starting Jupyter Notebook

# Start Jupyter Notebook server
jupyter notebook

Your browser will open with the Jupyter interface. You can now create new notebooks with either Python or R kernels.

Using Jupyter Extensions

  1. In the Jupyter interface, navigate to the "Nbextensions" tab
  2. Enable the extensions you want to use
  3. Return to the "Files" tab to create or open notebooks

Working with Projects in IntelliJ IDEA

  1. Launch IntelliJ IDEA
  2. Select "New Project" or "Open"
  3. Choose "Python" as the project type
  4. Select your configured Python/Conda interpreter
  5. Start developing your Python code with full IDE support

Troubleshooting

Common Issues

  1. "Command not found" after installing Anaconda: Make sure to restart your terminal or source your .bashrc file.
  2. Missing packages in Jupyter: Ensure you've activated the correct environment.
  3. IntelliJ not recognizing Python: Verify your Python SDK configuration in Project Structure.

Environment Management

Keep track of your environments and installed packages:

# List all conda environments
conda env list

# List packages in current environment
conda list

# Export environment for sharing/backup
conda env export > environment.yml

# Create environment from exported file
conda env create -f environment.yml

This setup provides a complete data science environment with both GUI tools and command-line capabilities. You now have the flexibility to work with Python and R in both notebook and IDE formats, giving you the best of all worlds for data science projects.

Related Posts

Comprehensive Guide to OpenCV with Python

OpenCV (Open Source Computer Vision Library) is a powerful tool for image processing and computer vision tasks. This guide provides practical example...

python
opencv
computer vision
+3

This collection features carefully selected educational YouTube playlists across various disciplines. All resources are free to access and organized ...

education
tutorials
YouTube playlists
+8

## Introduction [Coursera](https://coursera.org/) is one of the most popular and extensive online educational platforms available today. It has part...

coursera
online learning
coursera-dlp
+5