Skip to content

Commit 8953071

Browse files
committed
Update installation instructions in README
1 parent ba8d1d3 commit 8953071

File tree

2 files changed

+15
-26
lines changed

2 files changed

+15
-26
lines changed

README.md

+11-22
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
Pandas cookbook
22
===============
33

4-
5-
Try it with Jupyter Lite
6-
[![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://paddymul.github.io/pandas-cookbook/lab/index.html)
7-
4+
Try it in your browser with Jupyter Lite: [![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://jvns.github.io/pandas-cookbook/lab/index.html)
85

96
[pandas](http://pandas.pydata.org/) is a Python library for doing
107
data analysis. It's really fast and lets you do exploratory work
@@ -54,40 +51,32 @@ Table of Contents
5451
How to use this cookbook
5552
========================
5653

57-
The easiest way is to try it out instantly online using Binder's awesome service. **[Start by clicking here](https://mybinder.org/v2/gh/jvns/pandas-cookbook/master)**, wait for it to launch, then click on "cookbook", and you'll be off to the races! It will let you run all the code interactively without having to install anything on your computer.
54+
You can try it out instantly online using [Jupyter Lite](https://jvns.github.io/pandas-cookbook/lab/index.html), which will run Python with WebAssembly in your browser.
5855

5956
To install it locally, you'll need Jupyter notebook and pandas on your computer.
6057

6158
You can get these using `pip` (you may want to do this inside a virtual environment to avoid conflicting with your other libraries).
6259

6360
```bash
64-
pip install -r requirements.txt
65-
```
61+
# Get the repository
62+
git clone https://github.com/jvns/pandas-cookbook.git
63+
cd pandas-cookbook
6664

67-
This can be difficult to get set up and require you to compile
68-
a whole bunch of things. I instead use and recommend
69-
[Anaconda](https://store.continuum.io/), which is a Python distribution which
70-
will give you everything you need. It's free and open source.
65+
# Set up a virtual environment
66+
python3 -m venv venv
67+
source venv/bin/activate
7168

72-
Once you have pandas and Jupyter, you can get going!
69+
# Install dependencies
70+
pip install -r requirements.txt
7371

74-
```bash
75-
git clone https://github.com/jvns/pandas-cookbook.git
76-
cd pandas-cookbook/cookbook
72+
# Start jupyter
7773
jupyter notebook
7874
```
7975

8076
A tab should open up in your browser at `http://localhost:8888`
8177

8278
Happy pandas!
8379

84-
Running Jupyterlite locally
85-
===========================
86-
```bash
87-
#assuming you checked out into ~/code/pandas-cookbook
88-
cd ~/code/pandas-cookbook/ ; rm -rf _output ; time jupyter lite build --contents ./cookbook/ && cd _output && python -m http.server
89-
```
90-
9180
Running the cookbook inside a Docker container.
9281
===============================================================
9382
This repository contains a Dockerfile and can be built into a docker container.

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
matplotlib==3.7.1
2-
numpy==1.22.3
3-
pandas==1.4.2
4-
jupyter==1.0.0
1+
pandas==2.2.3
2+
jupyter==1.1.1
3+
numpy==2.1.2
4+
matplotlib==3.9.2

0 commit comments

Comments
 (0)