From 8f0a791d0895247cbb1650e37ce39a09aee17d33 Mon Sep 17 00:00:00 2001 From: simon_graphkite Date: Thu, 20 Jun 2019 15:35:02 +0200 Subject: [PATCH] Support for offline mode. Adds feature requested in [#177]. Offline mode is turned on by default. In this mode, no internet is required as the assets are stored in the profile report. Obviously this increases the size of the HTML report. To use CDN assets and reduce the local file size, set `use_local_assets` to `True`. --- README.md | 1 - docs/index.html | 6 +- examples/titanic/titanic_report.html | 77 ++++++++++++------- pandas_profiling/__init__.py | 2 + pandas_profiling/config_default.yaml | 3 + .../templates/assets/bootstrap-theme.min.css | 6 ++ .../view/templates/assets/bootstrap.min.css | 6 ++ .../view/templates/assets/bootstrap.min.js | 7 ++ .../templates/assets/jquery-latest.min.js | 4 + .../view/templates/{ => assets}/style.css | 0 .../view/templates/javascript.html | 34 ++++++++ pandas_profiling/view/templates/style.html | 15 ++++ pandas_profiling/view/templates/wrapper.html | 37 +-------- 13 files changed, 133 insertions(+), 65 deletions(-) create mode 100644 pandas_profiling/view/templates/assets/bootstrap-theme.min.css create mode 100644 pandas_profiling/view/templates/assets/bootstrap.min.css create mode 100644 pandas_profiling/view/templates/assets/bootstrap.min.js create mode 100644 pandas_profiling/view/templates/assets/jquery-latest.min.js rename pandas_profiling/view/templates/{ => assets}/style.css (100%) create mode 100644 pandas_profiling/view/templates/javascript.html create mode 100644 pandas_profiling/view/templates/style.html diff --git a/README.md b/README.md index ed48a2612..b4282244b 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,6 @@ profile.to_file(output_file="output.html") ## Dependencies -* **An internet connection.** Pandas-profiling requires an internet connection to download the Bootstrap and JQuery libraries. I might change this in the future, let me know if you want that sooner than later. * python ([>= 3.5](https://python3statement.org/)) * pandas (>=0.19) * matplotlib (>=1.4) diff --git a/docs/index.html b/docs/index.html index 0924a7d88..4a36a791a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -113,7 +113,6 @@

Advanced usage

Dependencies