modernize-scientific-stack

Convert Python 2 scientific code to Python 3 with updated libraries.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/Zurybr/lefarma-skills --skill modernize-scientific-stack-zurybr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modernize-scientific-stack
Source: https://github.com/Zurybr/lefarma-skills/tree/main/letta/benchmarks/trajectory-only/modernize-scientific-stack
Command: npx skills add https://github.com/Zurybr/lefarma-skills --skill modernize-scientific-stack-zurybr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps modernize outdated Python 2 scientific computing code, migrating it to Python 3 and updating to current libraries.

Core Features & Use Cases

  • Python 2 to 3 Conversion: Handles syntax changes like print statements and exception handling.
  • Library Modernization: Replaces deprecated libraries (e.g., ConfigParser, cPickle) with modern equivalents (e.g., configparser, pickle).
  • Use Case: You have a critical data analysis script written in Python 2 that relies on old libraries. This Skill will guide you through converting it to a robust Python 3 script using NumPy, pandas, and SciPy.

Quick Start

Use the modernize-scientific-stack skill to convert the provided Python 2 script to Python 3.

Frequently Asked Questions about modernize-scientific-stack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert legacy Python 2 scientific computing code to Python 3?

To convert legacy Python 2 scientific computing code to Python 3, you update deprecated syntax like print statements and exception handling, while replacing outdated libraries such as cPickle and urllib2 with modern equivalents.

What deprecated Python 2 libraries need replacing during scientific code modernization?

During scientific code modernization, deprecated Python 2 libraries like ConfigParser, cPickle, and urllib2 must be replaced with their Python 3 equivalents: configparser, pickle, and updated urllib modules.

How do I update a Python 2 data analysis script to use NumPy, pandas, and SciPy?

To update a Python 2 data analysis script, migrate the syntax to Python 3 and configure the environment to utilize the modern Python 3 scientific stack, integrating current versions of NumPy, pandas, and SciPy.

Can I modernize a Python 2 data processing pipeline without changing its core logic?

Yes, you can modernize a Python 2 data processing pipeline by focusing on syntax conversion and library replacements to achieve Python 3 compatibility while preserving the original data processing and analysis logic.

What are the common syntax changes when migrating Python 2 scientific scripts to Python 3?

Common syntax changes when migrating Python 2 scientific scripts include converting print statements to print functions and updating exception handling syntax to use the 'as' keyword for catching errors.