forked from kernc/backtesting.py
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Solution to Issue cannot be found in the documentation or other Issues and also occurs in the latest version of this library.
- I checked the documentation and other Issues. I am using the latest version of this library.
Version of this library.
Python implementation: CPython
Python version : 3.11.9
IPython version : 8.25.0
backtesting: 1.0.0
Hardware?
Local server/workstation
Operating System?
Windows
Python version?
Python3.11
Installed wheel files
I'm on windows. I don't have grep.Installed packages
(blk_ml_strats) D:\PERSONAL\CODE_PROJECTS\blk_ml_strats git:[master]
conda list
# packages in environment at C:\Users\kngka\miniconda3\envs\blk_ml_strats:
#
# Name Version Build Channel
annotated-types 0.7.0 pyhd8ed1ab_0 conda-forge
anyio 4.4.0 pyhd8ed1ab_0 conda-forge
appdirs 1.4.4 pyh9f0ad1d_0 conda-forge
argon2-cffi 23.1.0 pyhd8ed1ab_0 conda-forge
argon2-cffi-bindings 21.2.0 py311ha68e1ae_4 conda-forge
arrow 1.3.0 pyhd8ed1ab_0 conda-forge
asttokens 2.4.1 pyhd8ed1ab_0 conda-forge
async-lru 2.0.4 pyhd8ed1ab_0 conda-forge
attrs 23.2.0 pyh71513ae_0 conda-forge
aws-c-auth 0.7.22 h67aab5a_5 conda-forge
aws-c-cal 0.6.15 h750c3ff_0 conda-forge
aws-c-common 0.9.19 h2466b09_0 conda-forge
aws-c-compression 0.2.18 h750c3ff_6 conda-forge
aws-c-event-stream 0.4.2 hd0fc785_13 conda-forge
aws-c-http 0.8.2 he5605a3_2 conda-forge
aws-c-io 0.14.9 h22d870b_2 conda-forge
aws-c-mqtt 0.10.4 h9c13125_6 conda-forge
aws-c-s3 0.5.10 h5bc95ef_3 conda-forge
aws-c-sdkutils 0.1.16 h750c3ff_2 conda-forge
aws-checksums 0.1.18 h750c3ff_6 conda-forge
aws-crt-cpp 0.26.12 h819e545_0 conda-forge
aws-sdk-cpp 1.11.329 hab43c70_5 conda-forge
babel 2.14.0 pyhd8ed1ab_0 conda-forge
beautifulsoup4 4.12.3 pyha770c72_0 conda-forge
black 24.4.2 py311h1ea47a8_0 conda-forge
bleach 6.1.0 pyhd8ed1ab_0 conda-forge
blk-ml 0.0.1 pypi_0 pypi
blk-utils 0.1.3 pypi_0 pypi
blosc 1.21.5 hbd69f2e_1 conda-forge
bokeh 2.4.3 pypi_0 pypi
brotli 1.1.0 hcfcfb64_1 conda-forge
brotli-bin 1.1.0 hcfcfb64_1 conda-forge
brotli-python 1.1.0 py311h12c1d0e_1 conda-forge
bzip2 1.0.8 hcfcfb64_5 conda-forge
c-ares 1.28.1 hcfcfb64_0 conda-forge
c-blosc2 2.14.4 h183a6f4_1 conda-forge
ca-certificates 2024.6.2 h56e8100_0 conda-forge
cached-property 1.5.2 hd8ed1ab_1 conda-forge
cached_property 1.5.2 pyha770c72_1 conda-forge
certifi 2024.6.2 pyhd8ed1ab_0 conda-forge
cffi 1.16.0 py311ha68e1ae_0 conda-forge
charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge
click 8.1.7 win_pyh7428d3b_0 conda-forge
colorama 0.4.6 pyhd8ed1ab_0 conda-forge
colorcet 3.1.0 pyhd8ed1ab_0 conda-forge
comm 0.2.2 pyhd8ed1ab_0 conda-forge
contourpy 1.2.1 py311h005e61a_0 conda-forge
cramjam 2.8.3 py311h9a9e57f_0 conda-forge
cycler 0.12.1 pyhd8ed1ab_0 conda-forge
debugpy 1.8.1 py311h12c1d0e_0 conda-forge
decorator 5.1.1 pyhd8ed1ab_0 conda-forge
defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge
entrypoints 0.4 pyhd8ed1ab_0 conda-forge
exceptiongroup 1.2.0 pyhd8ed1ab_2 conda-forge
executing 2.0.1 pyhd8ed1ab_0 conda-forge
fastparquet 2024.5.0 py311h0a17f05_0 conda-forge
flake8 7.1.0 pyhd8ed1ab_0 conda-forge
fonttools 4.53.0 py311he736701_0 conda-forge
fqdn 1.5.1 pyhd8ed1ab_0 conda-forge
freetype 2.12.1 hdaf720e_2 conda-forge
frozendict 2.4.4 py311he736701_0 conda-forge
fsspec 2024.6.0 pyhff2d567_0 conda-forge
glib 2.80.2 h7025463_1 conda-forge
glib-tools 2.80.2 h4394cf3_1 conda-forge
gst-plugins-base 1.24.4 hba88be7_0 conda-forge
gstreamer 1.24.4 h5006eae_0 conda-forge
h11 0.14.0 pyhd8ed1ab_0 conda-forge
h2 4.1.0 pyhd8ed1ab_0 conda-forge
hdf5 1.14.3 nompi_h2b43c12_105 conda-forge
holoviews 1.19.0 pyhd8ed1ab_0 conda-forge
hpack 4.0.0 pyh9f0ad1d_0 conda-forge
html5lib 1.1 pyh9f0ad1d_0 conda-forge
httpcore 1.0.5 pyhd8ed1ab_0 conda-forge
httpx 0.27.0 pyhd8ed1ab_0 conda-forge
hvplot 0.10.0 pyhd8ed1ab_0 conda-forge
hyperframe 6.0.1 pyhd8ed1ab_0 conda-forge
hypothesis 6.103.2 pypi_0 pypi
icu 73.2 h63175ca_0 conda-forge
idna 3.7 pyhd8ed1ab_0 conda-forge
importlib-metadata 7.1.0 pyha770c72_0 conda-forge
importlib_metadata 7.1.0 hd8ed1ab_0 conda-forge
importlib_resources 6.4.0 pyhd8ed1ab_0 conda-forge
iniconfig 2.0.0 pyhd8ed1ab_0 conda-forge
intel-openmp 2023.2.0 h57928b3_50497 conda-forge
ipykernel 6.29.4 pyh4bbf305_0 conda-forge
ipython 8.25.0 pyh7428d3b_0 conda-forge
isoduration 20.11.0 pyhd8ed1ab_0 conda-forge
isort 5.13.2 pyhd8ed1ab_0 conda-forge
jedi 0.19.1 pyhd8ed1ab_0 conda-forge
jinja2 3.1.4 pyhd8ed1ab_0 conda-forge
joblib 1.4.2 pyhd8ed1ab_0 conda-forge
json5 0.9.25 pyhd8ed1ab_0 conda-forge
jsonpointer 3.0.0 py311h1ea47a8_0 conda-forge
jsonschema 4.22.0 pyhd8ed1ab_0 conda-forge
jsonschema-specifications 2023.12.1 pyhd8ed1ab_0 conda-forge
jsonschema-with-format-nongpl 4.22.0 pyhd8ed1ab_0 conda-forge
jupyter-black 0.3.4 pypi_0 pypi
jupyter-lsp 2.2.5 pyhd8ed1ab_0 conda-forge
jupyter_client 8.6.2 pyhd8ed1ab_0 conda-forge
jupyter_core 5.7.2 py311h1ea47a8_0 conda-forge
jupyter_events 0.10.0 pyhd8ed1ab_0 conda-forge
jupyter_server 2.14.1 pyhd8ed1ab_0 conda-forge
jupyter_server_terminals 0.5.3 pyhd8ed1ab_0 conda-forge
jupyterlab 4.2.2 pyhd8ed1ab_0 conda-forge
jupyterlab_pygments 0.3.0 pyhd8ed1ab_1 conda-forge
jupyterlab_server 2.27.2 pyhd8ed1ab_0 conda-forge
kiwisolver 1.4.5 py311h005e61a_1 conda-forge
krb5 1.21.2 heb0366b_0 conda-forge
lcms2 2.16 h67d730c_0 conda-forge
lerc 4.0.0 h63175ca_0 conda-forge
libabseil 20240116.2 cxx17_h63175ca_0 conda-forge
libaec 1.1.3 h63175ca_0 conda-forge
libarrow 16.1.0 h08bbd85_9_cpu conda-forge
libarrow-acero 16.1.0 he0c23c2_9_cpu conda-forge
libarrow-dataset 16.1.0 he0c23c2_9_cpu conda-forge
libarrow-substrait 16.1.0 h1f0e801_9_cpu conda-forge
libblas 3.9.0 20_win64_mkl conda-forge
libbrotlicommon 1.1.0 hcfcfb64_1 conda-forge
libbrotlidec 1.1.0 hcfcfb64_1 conda-forge
libbrotlienc 1.1.0 hcfcfb64_1 conda-forge
libcblas 3.9.0 20_win64_mkl conda-forge
libclang13 18.1.7 default_h97ce8ae_0 conda-forge
libcrc32c 1.1.2 h0e60522_0 conda-forge
libcurl 8.8.0 hd5e4a3a_0 conda-forge
libdeflate 1.20 hcfcfb64_0 conda-forge
libevent 2.1.12 h3671451_1 conda-forge
libexpat 2.6.2 h63175ca_0 conda-forge
libffi 3.4.2 h8ffe710_5 conda-forge
libglib 2.80.2 h7025463_1 conda-forge
libgoogle-cloud 2.25.0 h5e7cea3_0 conda-forge
libgoogle-cloud-storage 2.25.0 hce61461_0 conda-forge
libgrpc 1.62.2 h5273850_0 conda-forge
libhwloc 2.10.0 default_h8125262_1001 conda-forge
libiconv 1.17 hcfcfb64_2 conda-forge
libintl 0.22.5 h5728263_2 conda-forge
libintl-devel 0.22.5 h5728263_2 conda-forge
libjpeg-turbo 3.0.0 hcfcfb64_1 conda-forge
liblapack 3.9.0 20_win64_mkl conda-forge
libogg 1.3.4 h8ffe710_1 conda-forge
libparquet 16.1.0 h178134c_9_cpu conda-forge
libpng 1.6.43 h19919ed_0 conda-forge
libprotobuf 4.25.3 h503648d_0 conda-forge
libre2-11 2023.09.01 hf8d8778_2 conda-forge
libsodium 1.0.18 h8d14728_1 conda-forge
libsqlite 3.46.0 h2466b09_0 conda-forge
libssh2 1.11.0 h7dfc565_0 conda-forge
libthrift 0.19.0 ha2b3283_1 conda-forge
libtiff 4.6.0 hddb2be6_3 conda-forge
libutf8proc 2.8.0 h82a8f57_0 conda-forge
libvorbis 1.3.7 h0e60522_0 conda-forge
libwebp-base 1.4.0 hcfcfb64_0 conda-forge
libxcb 1.16 hcd874cb_0 conda-forge
libxml2 2.12.7 h283a6d9_1 conda-forge
libxslt 1.1.39 h3df6e99_0 conda-forge
libzlib 1.3.1 h2466b09_1 conda-forge
linkify-it-py 2.0.3 pyhd8ed1ab_0 conda-forge
llvmlite 0.42.0 py311h5bc0dda_1 conda-forge
loguru 0.7.2 py311h1ea47a8_1 conda-forge
lucit-backtesting 1.0.0 pypi_0 pypi
lxml 5.2.2 py311h12967d8_0 conda-forge
lz4-c 1.9.4 hcfcfb64_0 conda-forge
m2w64-gcc-libgfortran 5.3.0 6 conda-forge
m2w64-gcc-libs 5.3.0 7 conda-forge
m2w64-gcc-libs-core 5.3.0 7 conda-forge
m2w64-gmp 6.1.0 2 conda-forge
m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge
markdown 3.6 pyhd8ed1ab_0 conda-forge
markdown-it-py 3.0.0 pyhd8ed1ab_0 conda-forge
markupsafe 2.1.5 py311ha68e1ae_0 conda-forge
matplotlib 3.8.4 py311h1ea47a8_2 conda-forge
matplotlib-base 3.8.4 py311h9b31f6e_2 conda-forge
matplotlib-inline 0.1.7 pyhd8ed1ab_0 conda-forge
mccabe 0.7.0 pyhd8ed1ab_0 conda-forge
mdit-py-plugins 0.4.1 pyhd8ed1ab_0 conda-forge
mdurl 0.1.2 pyhd8ed1ab_0 conda-forge
mistune 3.0.2 pyhd8ed1ab_0 conda-forge
mkl 2023.2.0 h6a75c08_50497 conda-forge
mlxtend 0.23.1 pyhd8ed1ab_0 conda-forge
msys2-conda-epoch 20160418 1 conda-forge
multitasking 0.0.9 pyhd8ed1ab_0 conda-forge
munkres 1.1.4 pyh9f0ad1d_0 conda-forge
mypy_extensions 1.0.0 pyha770c72_0 conda-forge
nbautoexport 0.5.2 pyhd8ed1ab_0 conda-forge
nbclient 0.10.0 pyhd8ed1ab_0 conda-forge
nbconvert 7.16.4 hd8ed1ab_1 conda-forge
nbconvert-core 7.16.4 pyhd8ed1ab_1 conda-forge
nbconvert-pandoc 7.16.4 hd8ed1ab_1 conda-forge
nbformat 5.10.4 pyhd8ed1ab_0 conda-forge
nest-asyncio 1.6.0 pyhd8ed1ab_0 conda-forge
notebook 7.2.1 pyhd8ed1ab_0 conda-forge
notebook-shim 0.2.4 pyhd8ed1ab_0 conda-forge
numba 0.59.1 py311h2c0921f_0 conda-forge
numexpr 2.10.0 mkl_py311hc8aec83_0 conda-forge
numpy 1.26.4 py311h0b4df5a_0 conda-forge
openjpeg 2.5.2 h3d672ee_0 conda-forge
openssl 3.3.1 h2466b09_0 conda-forge
orc 2.0.1 h7e885a9_1 conda-forge
overrides 7.7.0 pyhd8ed1ab_0 conda-forge
packaging 24.1 pyhd8ed1ab_0 conda-forge
pandas 2.2.2 py311hcf9f919_1 conda-forge
pandoc 3.2 h57928b3_0 conda-forge
pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge
panel 1.4.4 pyhd8ed1ab_0 conda-forge
param 2.1.0 pyhca7485f_0 conda-forge
parso 0.8.4 pyhd8ed1ab_0 conda-forge
pathspec 0.12.1 pyhd8ed1ab_0 conda-forge
patsy 0.5.6 pyhd8ed1ab_0 conda-forge
pcre2 10.44 h3d7b363_0 conda-forge
peewee 3.17.3 py311had142b2_0 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pillow 10.3.0 py311h5592be9_1 conda-forge
pip 24.0 pyhd8ed1ab_0 conda-forge
pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1 conda-forge
platformdirs 4.2.2 pyhd8ed1ab_0 conda-forge
pluggy 1.5.0 pyhd8ed1ab_0 conda-forge
ply 3.11 pyhd8ed1ab_2 conda-forge
prometheus_client 0.20.0 pyhd8ed1ab_0 conda-forge
prompt-toolkit 3.0.47 pyha770c72_0 conda-forge
psutil 5.9.8 py311ha68e1ae_0 conda-forge
pthread-stubs 0.4 hcd874cb_1001 conda-forge
pthreads-win32 2.9.1 hfa6e2cd_3 conda-forge
pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge
py-cpuinfo 9.0.0 pyhd8ed1ab_0 conda-forge
pyarrow 16.1.0 py311h06a5be4_3 conda-forge
pyarrow-core 16.1.0 py311hf9a78b3_3_cpu conda-forge
pycodestyle 2.12.0 pyhd8ed1ab_0 conda-forge
pycparser 2.22 pyhd8ed1ab_0 conda-forge
pydantic 2.7.4 pyhd8ed1ab_0 conda-forge
pydantic-core 2.18.4 py311h533ab2d_0 conda-forge
pyflakes 3.2.0 pyhd8ed1ab_0 conda-forge
pygments 2.18.0 pyhd8ed1ab_0 conda-forge
pyparsing 3.1.2 pyhd8ed1ab_0 conda-forge
pyqt 5.15.9 py311h125bc19_5 conda-forge
pyqt5-sip 12.12.2 py311h12c1d0e_5 conda-forge
pysocks 1.7.1 pyh0701188_6 conda-forge
pytables 3.9.2 py311hdb33602_2 conda-forge
pytest 8.2.2 pyhd8ed1ab_0 conda-forge
python 3.11.9 h631f459_0_cpython conda-forge
python-dateutil 2.9.0 pyhd8ed1ab_0 conda-forge
python-dotenv 1.0.1 pypi_0 pypi
python-fastjsonschema 2.20.0 pyhd8ed1ab_0 conda-forge
python-json-logger 2.0.7 pyhd8ed1ab_0 conda-forge
python-tzdata 2024.1 pyhd8ed1ab_0 conda-forge
python_abi 3.11 4_cp311 conda-forge
pytz 2024.1 pyhd8ed1ab_0 conda-forge
pyviz_comms 3.0.2 pyhd8ed1ab_1 conda-forge
pywin32 306 py311h12c1d0e_2 conda-forge
pywinpty 2.0.13 py311h12c1d0e_0 conda-forge
pyyaml 6.0.1 py311ha68e1ae_1 conda-forge
pyzmq 26.0.3 py311h484c95c_0 conda-forge
qt-main 5.15.8 hcef0176_21 conda-forge
quantstats 0.0.62 pyhd8ed1ab_0 conda-forge
re2 2023.09.01 hd3b24a8_2 conda-forge
referencing 0.35.1 pyhd8ed1ab_0 conda-forge
requests 2.32.3 pyhd8ed1ab_0 conda-forge
rfc3339-validator 0.1.4 pyhd8ed1ab_0 conda-forge
rfc3986-validator 0.1.1 pyh9f0ad1d_0 conda-forge
rich 13.7.1 pyhd8ed1ab_0 conda-forge
rpds-py 0.18.1 py311h533ab2d_0 conda-forge
scikit-learn 1.5.0 py311hdcb8d17_1 conda-forge
scipy 1.13.1 py311hd4686c6_0 conda-forge
seaborn 0.13.2 hd8ed1ab_2 conda-forge
seaborn-base 0.13.2 pyhd8ed1ab_2 conda-forge
send2trash 1.8.3 pyh5737063_0 conda-forge
setuptools 70.0.0 pyhd8ed1ab_0 conda-forge
shellingham 1.5.4 pyhd8ed1ab_0 conda-forge
sip 6.7.12 py311h12c1d0e_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
snappy 1.2.0 hfb803bf_1 conda-forge
sniffio 1.3.1 pyhd8ed1ab_0 conda-forge
sortedcontainers 2.4.0 pypi_0 pypi
soupsieve 2.5 pyhd8ed1ab_1 conda-forge
stack_data 0.6.2 pyhd8ed1ab_0 conda-forge
statsmodels 0.14.2 py311h0a17f05_0 conda-forge
ta 0.11.0 pypi_0 pypi
tabulate 0.9.0 pyhd8ed1ab_1 conda-forge
tbb 2021.12.0 hc790b64_1 conda-forge
terminado 0.18.1 pyh5737063_0 conda-forge
threadpoolctl 3.5.0 pyhc1e730c_0 conda-forge
timeutils 0.3.2 pypi_0 pypi
tinycss2 1.3.0 pyhd8ed1ab_0 conda-forge
tk 8.6.13 h5226925_1 conda-forge
tokenize-rt 5.2.0 pypi_0 pypi
toml 0.10.2 pyhd8ed1ab_0 conda-forge
tomli 2.0.1 pyhd8ed1ab_0 conda-forge
tornado 6.4.1 py311he736701_0 conda-forge
tqdm 4.66.4 pyhd8ed1ab_0 conda-forge
traitlets 5.14.3 pyhd8ed1ab_0 conda-forge
typer 0.12.3 pyhd8ed1ab_0 conda-forge
typer-slim 0.12.3 pyhd8ed1ab_0 conda-forge
typer-slim-standard 0.12.3 hd8ed1ab_0 conda-forge
types-python-dateutil 2.9.0.20240316 pyhd8ed1ab_0 conda-forge
typing-extensions 4.12.2 hd8ed1ab_0 conda-forge
typing_extensions 4.12.2 pyha770c72_0 conda-forge
typing_utils 0.1.0 pyhd8ed1ab_0 conda-forge
tzdata 2024a h0c530f3_0 conda-forge
uc-micro-py 1.0.3 pyhd8ed1ab_0 conda-forge
ucrt 10.0.22621.0 h57928b3_0 conda-forge
uri-template 1.3.0 pyhd8ed1ab_0 conda-forge
urllib3 2.2.2 pyhd8ed1ab_0 conda-forge
vc 14.3 ha32ba9b_20 conda-forge
vc14_runtime 14.40.33810 ha82c5b3_20 conda-forge
vs2015_runtime 14.40.33810 h3bf8584_20 conda-forge
watermark 2.4.3 pypi_0 pypi
wcwidth 0.2.13 pyhd8ed1ab_0 conda-forge
webcolors 24.6.0 pyhd8ed1ab_0 conda-forge
webencodings 0.5.1 pyhd8ed1ab_2 conda-forge
websocket-client 1.8.0 pyhd8ed1ab_0 conda-forge
wheel 0.43.0 pyhd8ed1ab_1 conda-forge
win32_setctime 1.1.0 pyhd8ed1ab_0 conda-forge
win_inet_pton 1.1.0 pyhd8ed1ab_6 conda-forge
winpty 0.4.3 4 conda-forge
xorg-libxau 1.0.11 hcd874cb_0 conda-forge
xorg-libxdmcp 1.1.3 hcd874cb_0 conda-forge
xyzservices 2024.6.0 pyhd8ed1ab_0 conda-forge
xz 5.2.6 h8d14728_0 conda-forge
yaml 0.2.5 h8ffe710_2 conda-forge
yfinance 0.2.40 pyhd8ed1ab_0 conda-forge
zeromq 4.3.5 he1f189c_4 conda-forge
zipp 3.19.2 pyhd8ed1ab_0 conda-forge
zlib-ng 2.0.7 hcfcfb64_0 conda-forge
zstd 1.5.6 h0ea2cb4_0 conda-forge
### Logging output
```shell
C:\Users\kngka\miniconda3\envs\blk_ml_strats\Lib\site-packages\backtesting\_plotting.py:456: FutureWarning: 'M' is deprecated and will be removed in a future version, please use 'ME' instead.
.resample(resample_rule, label='left')
C:\Users\kngka\miniconda3\envs\blk_ml_strats\Lib\site-packages\backtesting\_plotting.py:660: UserWarning: found multiple competing values for 'toolbar.active_drag' property; using the latest value
fig = gridplot(
C:\Users\kngka\miniconda3\envs\blk_ml_strats\Lib\site-packages\backtesting\_plotting.py:660: UserWarning: found multiple competing values for 'toolbar.active_scroll' property; using the latest value
fig = gridplot(
GridPlot( id = 'p2485', …)
Issue
Using the demo example the bokeh plot of the backtest result won't render in jupyter notebook or open if I save the file first and then try to open it.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working