From 6c5b0c5a172b7de82a3c0f2790d7af8ceea2bf2d Mon Sep 17 00:00:00 2001 From: Kernc Date: Thu, 28 Nov 2019 05:13:51 +0100 Subject: [PATCH] MNT: Build examples for jupytext >= 1.3 compat --- doc/examples/Multiple Time Frames.py | 4 ++-- doc/examples/Parameter Heatmap.py | 4 ++-- doc/examples/Quick Start User Guide.py | 6 +++--- doc/examples/Strategies Library.py | 4 ++-- setup.py | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/examples/Multiple Time Frames.py b/doc/examples/Multiple Time Frames.py index 59fb4ea..7116046 100644 --- a/doc/examples/Multiple Time Frames.py +++ b/doc/examples/Multiple Time Frames.py @@ -4,8 +4,8 @@ # text_representation: # extension: .py # format_name: light -# format_version: '1.3' -# jupytext_version: 1.0.2 +# format_version: '1.5' +# jupytext_version: 1.3.0 # kernelspec: # display_name: Python 3 # language: python diff --git a/doc/examples/Parameter Heatmap.py b/doc/examples/Parameter Heatmap.py index b505955..7e39e09 100644 --- a/doc/examples/Parameter Heatmap.py +++ b/doc/examples/Parameter Heatmap.py @@ -5,8 +5,8 @@ # text_representation: # extension: .py # format_name: light -# format_version: '1.3' -# jupytext_version: 1.0.2 +# format_version: '1.5' +# jupytext_version: 1.3.0 # kernelspec: # display_name: Python 3 # language: python diff --git a/doc/examples/Quick Start User Guide.py b/doc/examples/Quick Start User Guide.py index 8d29c3b..8c95878 100644 --- a/doc/examples/Quick Start User Guide.py +++ b/doc/examples/Quick Start User Guide.py @@ -5,8 +5,8 @@ # text_representation: # extension: .py # format_name: light -# format_version: '1.3' -# jupytext_version: 1.0.2 +# format_version: '1.5' +# jupytext_version: 1.3.0 # kernelspec: # display_name: Python 3 # language: python @@ -116,7 +116,7 @@ class SmaCross(Strategy): # [`backtesting.lib.crossover()`](https://kernc.github.io/backtesting.py/doc/backtesting/lib.html#backtesting.lib.crossover) # function instead of writing more obscure and confusing conditions, such as: -# + {"active": ""} +# + active="" # def next(self): # if (self.sma1[-2] < self.sma2[-2] and # self.sma1[-1] > self.sma2[-1]): diff --git a/doc/examples/Strategies Library.py b/doc/examples/Strategies Library.py index 2914622..29b3e7a 100644 --- a/doc/examples/Strategies Library.py +++ b/doc/examples/Strategies Library.py @@ -4,8 +4,8 @@ # text_representation: # extension: .py # format_name: light -# format_version: '1.3' -# jupytext_version: 1.0.2 +# format_version: '1.5' +# jupytext_version: 1.3.0 # kernelspec: # display_name: Python 3 # language: python diff --git a/setup.py b/setup.py index 754b700..8b423f2 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ if __name__ == '__main__': extras_require={ 'doc': [ 'pdoc3', - 'jupytext >= 1.0.2', + 'jupytext >= 1.3', 'nbconvert', 'ipykernel', # for nbconvert 'jupyter_client', # for nbconvert