Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2f0f261

Browse files
Analytics.
1 parent e781396 commit 2f0f261

File tree

5 files changed

+115
-60
lines changed

5 files changed

+115
-60
lines changed

‎Pipfile.lock‎

Lines changed: 79 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎README.md‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,30 @@ Live demo: https://plotlydashflask.hackersandslackers.app/
1818

1919
Tutorial: https://hackersandslackers.com/plotly-dash-with-flask/
2020

21-
## Getting Started
21+
## Installation
2222

23-
Installation is recommended with [Pipenv](https://pipenv-fork.readthedocs.io/en/latest/):
23+
**Installation via `requirements.txt`**:
2424

2525
```shell
2626
$ git clone https://github.com/toddbirchard/plotlydash-flask-tutorial.git
2727
$ cd plotlydash-flask-tutorial
28-
$ pipenv shell
29-
$ pipenv update
28+
$ python3 -m venv myenv
29+
$ source myenv/bin/activate
30+
$ pip3 install -r requirements.txt
3031
$ flask run
3132
```
3233

33-
Alternatively, try installing via `requirements.txt`:
34+
**Installation via [Pipenv](https://pipenv-fork.readthedocs.io/en/latest/)**:
3435

3536
```shell
3637
$ git clone https://github.com/toddbirchard/plotlydash-flask-tutorial.git
3738
$ cd plotlydash-flask-tutorial
38-
$ python3 -m pip install -r requirements.txt
39+
$ pipenv shell
40+
$ pipenv update
3941
$ flask run
4042
```
4143

44+
4245
-----
4346

4447
**Hackers and Slackers** tutorials are free of charge. If you found this tutorial helpful, a [small donation](https://www.buymeacoffee.com/hackersslackers) would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script type="text/javascript">
2+
var _gauges = _gauges || [];
3+
(function() {
4+
var t = document.createElement('script');
5+
t.type = 'text/javascript';
6+
t.async = true;
7+
t.id = 'gauges-tracker';
8+
t.setAttribute('data-site-id', '5eb65b115292fb396cffe189');
9+
t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');
10+
t.src = 'https://d2fuc4clr7gvcn.cloudfront.net/track.js';
11+
var s = document.getElementsByTagName('script')[0];
12+
s.parentNode.insertBefore(t, s);
13+
})();
14+
</script>

‎application/templates/layout.jinja2‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="HandheldFriendly" content="True" />
88
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
99
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
10-
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/styles.css') }}">
10+
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/styles.css') }}" />
1111
<link rel="stylesheet" href="https://use.typekit.net/uqq2lcv.css">
1212
<link rel="shortcut icon" href="{{ url_for('static', filename='dist/img/favicon.png') }}" type="image/x-icon" />
1313
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
@@ -16,6 +16,7 @@
1616
<div class="container">
1717
{% block content %}{% endblock %}
1818
</div>
19+
{% include 'analytics.jinja2' %}
1920
</body>
2021

2122
</html>

‎requirements.txt‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
click==7.1.1
2-
cssmin==0.2.0
3-
dash==1.11.0
4-
dash-core-components==1.9.1
1+
Brotli==1.0.7
2+
click==7.1.2
3+
dash==1.12.0
4+
dash-core-components==1.10.0
55
dash-html-components==1.0.3
6-
dash-renderer==1.4.0
7-
dash-table==4.6.2
6+
dash-renderer==1.4.1
7+
dash-table==4.7.0
88
Flask==1.1.2
99
Flask-Assets==2.0
10-
Flask-Compress==1.4.0
10+
Flask-Compress==1.5.0
1111
future==0.18.2
1212
itsdangerous==1.1.0
1313
Jinja2==2.11.2
14-
lesscpy==0.14.0
1514
MarkupSafe==1.1.1
16-
numpy==1.18.3
15+
numpy==1.18.4
1716
pandas==1.0.3
18-
plotly==4.6.0
19-
ply==3.11
17+
pathlib==1.0.1
18+
plotly==4.7.1
2019
python-dateutil==2.8.1
2120
python-dotenv==0.13.0
22-
pytz==2019.3
21+
pytz==2020.1
2322
retrying==1.3.3
2423
six==1.14.0
2524
webassets==2.0

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /