Report environment construction by python (matplotlib, pandas, sphinx) + wkhtmltopdf

Purpose

I made a report creation tool that works with the following specifications, so make a note of the operating environment. A general-purpose part will be released at a later date.

  1. Chart the results of data analysis with pandas using matplotlib.
  2. Generate html with sphinx using the result of 1.
  3. Convert the created html to pdf using wkhtmltopdf.

environment

- windows7,32bit - python2.7.10 -Module (ipython, numpy, pandas, matplotlib, scipy, sphinx) -Install wkhtmltopdf as well.

Installation work

python body

Because python is not included in window by default Install from the following.

https://www.python.org/downloads/ 2.7.11 Windows x86 MSI installer

If you add the following to your PATH, you can hit python and pip from the command prompt.

C:\Python27;C:\Python27\Scripts;


It seems that pip is attached to the package after python2.7.9.

modules

First, keep pip up to date.

pip install —upgrade pip

Then add various modules with pip.

pip install ipython
pip install numpy 
pip install pandas
pip install sphinx

I installed scipy from the official website. https://sourceforge.net/projects/scipy/files/scipy/0.16.1/

Then install matplotlib.

pip install matplotlib

Finally, the list installed by the confirmation command I will confirm it. The above modules (including dependent modules)

pip list

wkhtmltopdf Obtain stable (stable version) according to the environment from the following site and install it. http://wkhtmltopdf.org/downloads.html

By the way, I installed the following version this time. Windows 0.12.3.2 32-bit

Finally, add the following to your PATH and you're good to go.  C:\Program Files\wkhtmltopdf\bin

Summary

Each role is as follows.

I recently started data analysis using pandas, As a result of examining the method of automatically generating the report (pdf format) I think it would be good to do it in such an environment.

I would be grateful if you could tell me if there is another way to do it.

Reference site

Install Python machine learning / numerical calculation environment (NumPy, SciPy, matplotlib, scikit-learn) on Windows http://www.terabo.net/blog/python-on-windows/ How to create beautiful Japanese PDF quickly and easily with Sphinx http://dxd8.com/archives/225/

Recommended Posts

Report environment construction by python (matplotlib, pandas, sphinx) + wkhtmltopdf
[docker] python3.5 + numpy + matplotlib environment construction
Python environment construction
Environment construction (python)
python environment construction
Python --Environment construction
Python environment construction
python environment construction
Python 3.x environment construction by Pyenv (CentOS, Ubuntu)
python windows environment construction
homebrew python environment construction
Python development environment construction
python2.7 development environment construction
Mac environment construction Python
Python environment construction @ Win7
Data analysis environment construction with Python (IPython notebook + Pandas)
Python + Anaconda + Pycharm environment construction
pandas Matplotlib Summary by usage
Python environment construction (Windows10 + Emacs)
CI environment construction ~ Python edition ~
Python environment construction For Mac
Anaconda3 python environment construction procedure
Python3 environment construction (for beginners)
NumPy and matplotlib environment construction
Python environment construction under Windows7 environment
[MEMO] [Development environment construction] Python
Environment construction of python2 & 3 (OSX)
Environment construction of python and opencv
Python environment construction memo on Windows 10
Get started with Python! ~ ① Environment construction ~
Anaconda python environment construction on Windows 10
Python + Unity Reinforcement learning environment construction
I checked Mac Python environment construction
Python environment construction memo on Mac
Python environment construction (pyenv, anaconda, tensorflow)
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
Python environment construction (pyenv + poetry + pipx)
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Python3 TensorFlow for Mac environment construction
Emacs Python development environment construction memo
pytorch @ python3.8 environment construction with pipenv
Python3.6 environment construction (using Win environment Anaconda)
OpenCV3 & Python3 environment construction on Ubuntu
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
Python project environment construction procedure (for windows)
[Python] Road to snake charmer (1) Environment construction
Python3 + venv + VSCode + macOS development environment construction
VScode environment construction (Windows10, Python, C ++, C, Git)
Environment construction procedure: Ubuntu + Apache2 + Python + Pyramid
Pandas of the beginner, by the beginner, for the beginner [Python]
Python and machine learning environment construction (macOS)
Let's get along with Python # 0 (Environment construction)
Windows + gVim + Poetry python development environment construction
Collecting information from Twitter with Python (Environment construction)
VS Code + Azure Functions + Python environment construction procedure
[Note] Python environment construction on rental server "CORESERVER"
Install Python3, numpy, pandas, matplotlib, etc. on Windows
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Python explosive environment construction starting from zero (Mac)