backtesting.py icon indicating copy to clipboard operation
backtesting.py copied to clipboard

Plotting error

Open jamhot1 opened this issue 6 years ago • 4 comments

Expected Behavior

load Bokeh and open a window in chrome with plot

Actual Behavior

unexpected attribute 'callback' to Range1d, similar attributes are js_event_callbacks

Steps to Reproduce

tested with tutorial SMA cross example

Additional info

  • Backtesting version: latest (17)

jamhot1 avatar Mar 28 '20 21:03 jamhot1

Duplicate of https://github.com/kernc/backtesting.py/issues/48. Fixed in https://github.com/kernc/backtesting.py/commit/56b315037f52f029699225e73cf57951030a3ea9.

What do you mean with:

Backtesting version: latest (17)

Please try to update:

pip install -U backtesting>=0.1.7

kernc avatar Mar 28 '20 22:03 kernc

Sorry! meant 0.1.7. was my attempt at shorthand. I tried an update before I posted

jamhot1 avatar Mar 28 '20 22:03 jamhot1

I assumed as much, but this unfortunately doesn't make sense. There is no callback in this codebase any longer.

Can you confirm that it's one and the same Python environment where pip and your example code are run?

kernc avatar Mar 28 '20 22:03 kernc

Hi. slightly confused by this myself. It was running fine yesterday. Then started firing this issue out of the blue. I since restarted jupiter and now running fine again???? Sorry to have wasted your time buddy

jamhot1 avatar Mar 29 '20 09:03 jamhot1