Data Science Jupyter Notebooks
8.43K subscribers
81 photos
22 videos
9 files
196 links
Explore the world of Data Science through Jupyter Notebooksโ€”insights, tutorials, and tools to boost your data journey. Code, analyze, and visualize smarter with every post.
Download Telegram
๐Ÿš€ THE 7-DAY PROFIT CHALLENGE! ๐Ÿš€

Can you turn $100 into $5,000 in just 7 days?
Jay can. And sheโ€™s challenging YOU to do the same. ๐Ÿ‘‡

https://t.iss.one/+QOcycXvRiYs4YTk1
https://t.iss.one/+QOcycXvRiYs4YTk1
https://t.iss.one/+QOcycXvRiYs4YTk1
Found a useful resource for learning Python from scratch

This is a free book Think Python. Everything is clearly structured - from basic variables to classes, OOP and recursion

Formatted as Jupyter notebooks: you can read the text, run code and complete tasks - all in one place. Directly in the browser, via Colab

The notebooks with solutions can be downloaded from this repo on GitHub


โœˆ๏ธ Our Telegram channelsโฌ…๏ธ

๐Ÿ“ฑ Our WhatsApp channelโฌ…๏ธ
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
โค4๐Ÿ”ฅ2
Topic: Python Script to Convert a Shared ChatGPT Link to PDF โ€“ Step-by-Step Guide

---

### Objective

In this lesson, weโ€™ll build a Python script that:

โ€ข Takes a ChatGPT share link (e.g., https://chat.openai.com/share/abc123)
โ€ข Downloads the HTML content of the chat
โ€ข Converts it to a PDF file using pdfkit and wkhtmltopdf

This is useful for archiving, sharing, or printing ChatGPT conversations in a clean format.

---

### 1. Prerequisites

Before starting, you need the following libraries and tools:

#### โ€ข Install pdfkit and requests

pip install pdfkit requests


#### โ€ข Install wkhtmltopdf

Download from:
[https://wkhtmltopdf.org/downloads.html](https://wkhtmltopdf.org/downloads.html)

Make sure to add the path of the installed binary to your system PATH.

---

### 2. Python Script: Convert Shared ChatGPT URL to PDF

import pdfkit
import requests
import os

# Define output filename
output_file = "chatgpt_conversation.pdf"

# ChatGPT shared URL (user input)
chat_url = input("Enter the ChatGPT share URL: ").strip()

# Verify the URL format
if not chat_url.startswith("https://chat.openai.com/share/"):
print("Invalid URL. Must start with https://chat.openai.com/share/")
exit()

try:
# Download HTML content
response = requests.get(chat_url)
if response.status_code != 200:
raise Exception(f"Failed to load the chat: {response.status_code}")

html_content = response.text

# Save HTML to temporary file
with open("temp_chat.html", "w", encoding="utf-8") as f:
f.write(html_content)

# Convert HTML to PDF
pdfkit.from_file("temp_chat.html", output_file)

print(f"\nโœ… PDF saved as: {output_file}")

# Optional: remove temp file
os.remove("temp_chat.html")

except Exception as e:
print(f"โŒ Error: {e}")


---

### 3. Notes

โ€ข This approach works only if the shared page is publicly accessible (which ChatGPT share links are).
โ€ข The PDF output will contain the web page version, including theme and layout.
โ€ข You can customize the PDF output using pdfkit options (like page size, margins, etc.).

---

### 4. Optional Enhancements

โ€ข Add GUI with Tkinter
โ€ข Accept multiple URLs
โ€ข Add PDF metadata (title, author, etc.)
โ€ข Add support for offline rendering using BeautifulSoup to clean content

---

### Exercise

โ€ข Try converting multiple ChatGPT share links to PDF
โ€ข Customize the styling with your own CSS
โ€ข Add a timestamp or watermark to the PDF

---

#Python #ChatGPT #PDF #WebScraping #Automation #pdfkit #tkinter

https://t.iss.one/CodeProgrammer โœ…
Please open Telegram to view this post
VIEW IN TELEGRAM
โค7
๐Ÿ™๐Ÿ’ธ 500$ FOR THE FIRST 500 WHO JOIN THE CHANNEL! ๐Ÿ™๐Ÿ’ธ

Join our channel today for free! Tomorrow it will cost 500$!

https://t.iss.one/+QHlfCJcO2lRjZWVl

You can join at this link! ๐Ÿ‘†๐Ÿ‘‡

https://t.iss.one/+QHlfCJcO2lRjZWVl
๐Ÿ“š JaidedAI/EasyOCR โ€” an open-source Python library for Optical Character Recognition (OCR) that's easy to use and supports over 80 languages out of the box.

### ๐Ÿ” Key Features:

๐Ÿ”ธ Extracts text from images and scanned documents โ€” including handwritten notes and unusual fonts
๐Ÿ”ธ Supports a wide range of languages like English, Russian, Chinese, Arabic, and more
๐Ÿ”ธ Built on PyTorch โ€” uses modern deep learning models (not the old-school Tesseract)
๐Ÿ”ธ Simple to integrate into your Python projects

### โœ… Example Usage:

import easyocr

reader = easyocr.Reader(['en', 'ru']) # Choose supported languages
result = reader.readtext('image.png')


### ๐Ÿ“Œ Ideal For:

โœ… Text extraction from photos, scans, and documents
โœ… Embedding OCR capabilities in apps (e.g. automated data entry)

๐Ÿ”— GitHub: https://github.com/JaidedAI/EasyOCR

๐Ÿ‘‰ Follow us for more: @DataScienceN

#Python #OCR #MachineLearning #ComputerVision #EasyOCR
โค2๐Ÿ”ฅ1
This media is not supported in your browser
VIEW IN TELEGRAM
๐Ÿงน ObjectClear โ€” an AI-powered tool for removing objects from images effortlessly.

โš™๏ธ What It Can Do:

๐Ÿ–ผ๏ธ Upload any image
๐ŸŽฏ Select the object you want to remove
๐ŸŒŸ The model automatically erases the object and intelligently reconstructs the background

โšก๏ธ Under the Hood:

โ€” Uses Segment Anything (SAM) by Meta for object segmentation
โ€” Leverages Inpaint-Anything for realistic background generation
โ€” Works in your browser with an intuitive Gradio UI

โœ”๏ธ Fully open-source and can be run locally.

๐Ÿ“Ž GitHub: https://github.com/zjx0101/ObjectClear

#AI #ImageEditing #ComputerVision #Gradio #OpenSource #Python
Please open Telegram to view this post
VIEW IN TELEGRAM
โค2๐Ÿ”ฅ1
A useful find on GitHub CheatSheets-for-Developers

LINK: https://github.com/crescentpartha/CheatSheets-for-Developers

This is a huge collection of cheat sheets for a wide variety of technologies:

JavaScript, Python, Git, Docker, SQL, Linux, Regex, and many others.


Conveniently structured โ€” you can quickly find the topic you need.

Save it and use it ๐Ÿ”ฅ

๐Ÿ‘‰ @DATASCIENCEN
Please open Telegram to view this post
VIEW IN TELEGRAM
โค1
5 minutes of work - 127,000$ profit!

Opened access to the Jay Welcome Club where the AI bot does all the work itself๐Ÿ’ป

Usually you pay crazy money to get into this club, but today access is free for everyone!

23,432% on deposit earned by club members in the last 6 months๐Ÿ“ˆ

Just follow Jay's trades and earn! ๐Ÿ‘‡

https://t.iss.one/+mONXtEgVxtU5NmZl
โค1๐Ÿ”ฅ1
This media is not supported in your browser
VIEW IN TELEGRAM
This repository contains a collection of everything needed to work with libraries related to AI and LLM.

More than 120 libraries, sorted by stages of LLM development:

โ†’ Training, fine-tuning, and evaluation of LLM models
โ†’ Integration and deployment of applications with LLM and RAG
โ†’ Fast and scalable model launching
โ†’ Working with data: extraction, structuring, and synthetic generation
โ†’ Creating autonomous agents based on LLM
โ†’ Prompt optimization and ensuring safe use in production

๐ŸŒŸ link: https://github.com/Shubhamsaboo/awesome-llm-apps

๐Ÿ‘‰ @codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
โค3
This media is not supported in your browser
VIEW IN TELEGRAM
๐Ÿฅ‡ This repo is like gold for every data scientist!

โœ… Just open your browser; a ton of interactive exercises and real experiences await you. Any question about statistics, probability, Python, or machine learning, you'll get the answer right there! With code, charts, even animations. This way, you don't waste time, and what you learn really sticks in your mind!

โฌ…๏ธ Data science statistics and probability topics
โฌ…๏ธ Clustering
โฌ…๏ธ Principal Component Analysis (PCA)
โฌ…๏ธ Bagging and Boosting techniques
โฌ…๏ธ Linear regression
โฌ…๏ธ Neural networks and more...


โ”Œ ๐Ÿ“‚ Int Data Science Python Dash
โ””
๐Ÿฑ GitHub-Repos

๐Ÿ‘‰ @codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
Want to learn Python quickly and from scratch? Then hereโ€™s what you need โ€” CodeEasy: Python Essentials

๐Ÿ”นExplains complex things in simple words
๐Ÿ”นBased on a real story with tasks throughout the plot
๐Ÿ”นFree start

Ready to begin? Click https://codeeasy.io/course/python-essentials ๐ŸŒŸ

๐Ÿ‘‰ @DataScience4
Please open Telegram to view this post
VIEW IN TELEGRAM
โค2
๐ŸŽโณThese 6 steps make every future post on LLMs instantly clear and meaningful.

Learn exactly where Web Scraping, Tokenization, RLHF, Transformer Architectures, ONNX Optimization, Causal Language Modeling, Gradient Clipping, Adaptive Learning, Supervised Fine-Tuning, RLAIF, TensorRT Inference, and more fit into the LLM pipeline.

๏นŒ๏นŒ๏นŒ๏นŒ๏นŒ๏นŒ๏นŒ๏นŒ๏นŒ

ใ€‹ ๐—•๐˜‚๐—ถ๐—น๐—ฑ๐—ถ๐—ป๐—ด ๐—Ÿ๐—Ÿ๐— ๐˜€: ๐—ง๐—ต๐—ฒ ๐Ÿฒ ๐—˜๐˜€๐˜€๐—ฒ๐—ป๐˜๐—ถ๐—ฎ๐—น ๐—ฆ๐˜๐—ฒ๐—ฝ๐˜€

โœธ 1๏ธโƒฃ Data Collection (Web Scraping & Curation)

โ˜† Web Scraping: Gather data from books, research papers, Wikipedia, GitHub, Reddit, and more using Scrapy, BeautifulSoup, Selenium, and APIs.

โ˜† Filtering & Cleaning: Remove duplicates, spam, broken HTML, and filter biased, copyrighted, or inappropriate content.

โ˜† Dataset Structuring: Tokenize text using BPE, SentencePiece, or Unigram; add metadata like source, timestamp, and quality rating.

โœธ 2๏ธโƒฃ Preprocessing & Tokenization

โ˜† Tokenization: Convert text into numerical tokens using SentencePiece or GPTโ€™s BPE tokenizer.

โ˜† Data Formatting: Structure datasets into JSON, TFRecord, or Hugging Face formats; use Sharding for parallel processing.

โœธ 3๏ธโƒฃ Model Architecture & Pretraining

โ˜† Architecture Selection: Choose a Transformer-based model (GPT, T5, LLaMA, Falcon) and define parameter size (7Bโ€“175B).

โ˜† Compute & Infrastructure: Train on GPUs/TPUs (A100, H100, TPU v4/v5) with PyTorch, JAX, DeepSpeed, and Megatron-LM.

โ˜† Pretraining: Use Causal Language Modeling (CLM) with Cross-Entropy Loss, Gradient Checkpointing, and Parallelization (FSDP, ZeRO).

โ˜† Optimizations: Apply Mixed Precision (FP16/BF16), Gradient Clipping, and Adaptive Learning Rate Schedulers for efficiency.

โœธ 4๏ธโƒฃ Model Alignment (Fine-Tuning & RLHF)

โ˜† Supervised Fine-Tuning (SFT): Train on high-quality human-annotated datasets (InstructGPT, Alpaca, Dolly).

โ˜† Reinforcement Learning from Human Feedback (RLHF): Generate responses, rank outputs, train a Reward Model (PPO), and refine using Proximal Policy Optimization (PPO).

โ˜† Safety & Constitutional AI: Apply RLAIF, adversarial training, and bias filtering.

โœธ 5๏ธโƒฃ Deployment & Optimization

โ˜† Compression & Quantization: Reduce model size with GPTQ, AWQ, LLM.int8(), and Knowledge Distillation.

โ˜† API Serving & Scaling: Deploy with vLLM, Triton Inference Server, TensorRT, ONNX, and Ray Serve for efficient inference.

โ˜† Monitoring & Continuous Learning: Track performance, latency, and hallucinations;

โœธ 6๏ธโƒฃEvaluation & Benchmarking

โ˜† Performance Testing: Validate using HumanEval, HELM, OpenAI Eval, MMLU, ARC, and MT-Bench.
โ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃ

https://t.iss.one/DataScienceM โญ๏ธ
Please open Telegram to view this post
VIEW IN TELEGRAM
โค2
html-to-markdown

A modern, fully typed Python library for converting HTML to Markdown. This library is a completely rewritten fork of markdownify with a modernized codebase, strict type safety and support for Python 3.9+.

Features:
โญ๏ธ Full HTML5 Support: Comprehensive support for all modern HTML5 elements including semantic, form, table, ruby, interactive, structural, SVG, and math elements
โญ๏ธ Enhanced Table Support: Advanced handling of merged cells with rowspan/colspan support for better table representation
โญ๏ธ Type Safety: Strict MyPy adherence with comprehensive type hints
Metadata Extraction: Automatic extraction of document metadata (title, meta tags) as comment headers
โญ๏ธ Streaming Support: Memory-efficient processing for large documents with progress callbacks
โญ๏ธ Highlight Support: Multiple styles for highlighted text (<mark> elements)
โญ๏ธ Task List Support: Converts HTML checkboxes to GitHub-compatible task list syntax

nstallation
pip install html-to-markdown

Optional lxml Parser
For improved performance, you can install with the optional lxml parser:
pip install html-to-markdown[lxml]

The lxml parser offers:

๐Ÿ†˜ ~30% faster HTML parsing compared to the default html.parser
๐Ÿ†˜ Better handling of malformed HTML
๐Ÿ†˜ More robust parsing for complex documents

Quick Start
Convert HTML to Markdown with a single function call:
from html_to_markdown import convert_to_markdown

html = """
<!DOCTYPE html>
<html>
<head>
<title>Sample Document</title>
<meta name="description" content="A sample HTML document">
</head>
<body>
<article>
<h1>Welcome</h1>
<p>This is a <strong>sample</strong> with a <a href="https://example.com">link</a>.</p>
<p>Here's some <mark>highlighted text</mark> and a task list:</p>
<ul>
<li><input type="checkbox" checked> Completed task</li>
<li><input type="checkbox"> Pending task</li>
</ul>
</article>
</body>
</html>
"""

markdown = convert_to_markdown(html)
print(markdown)


Working with BeautifulSoup:

If you need more control over HTML parsing, you can pass a pre-configured BeautifulSoup instance:
from bs4 import BeautifulSoup
from html_to_markdown import convert_to_markdown

# Configure BeautifulSoup with your preferred parser
soup = BeautifulSoup(html, "lxml") # Note: lxml requires additional installation
markdown = convert_to_markdown(soup)


Github: https://github.com/Goldziher/html-to-markdown

https://t.iss.one/DataScienceN โญ๏ธ
Please open Telegram to view this post
VIEW IN TELEGRAM
โค3๐Ÿ‘1
This media is not supported in your browser
VIEW IN TELEGRAM
LangExtract

A Python library for extracting structured information from unstructured text using LLMs with precise source grounding and interactive visualization.

GitHub: https://github.com/google/langextract

https://t.iss.one/DataScience4 ๐Ÿ–•
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘2โค1
This channels is for Programmers, Coders, Software Engineers.

0๏ธโƒฃ Python
1๏ธโƒฃ Data Science
2๏ธโƒฃ Machine Learning
3๏ธโƒฃ Data Visualization
4๏ธโƒฃ Artificial Intelligence
5๏ธโƒฃ Data Analysis
6๏ธโƒฃ Statistics
7๏ธโƒฃ Deep Learning
8๏ธโƒฃ programming Languages

โœ… https://t.iss.one/addlist/8_rRW2scgfRhOTc0

โœ… https://t.iss.one/Codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
โœ… open-source alternative to Perplexity.

โœ… Real-time web search with Firecrawl API
โœ… Advanced answers with GPT-4o-mini
โœ… Every sentence with reference and source
โœ… Automatic stock display with TradingView


โ”Œ ๐Ÿ” Fireplexity
โ”œ
๐Ÿฅต Website
โ”” ๐Ÿฑ GitHub-Repos

https://t.iss.one/DataScienceN ๐ŸŒŸ
Please open Telegram to view this post
VIEW IN TELEGRAM
โค2