lightweight-charts-python
lightweight-charts-python copied to clipboard
[BUG] Linux black screen
Expected Behavior
Hello, does someone use Linux and as output have a window with a completely black screen? I used this lib also on mac with no problem, I even tried starting from scratch creating a virtual machine but no luck. Anyone have a clue?
Thank's.
Current Behaviour
Using chart debug I have a white browser page, nothing else.
Reproducible Example
if __name__ == '__main__':
startDate = datetime.datetime(2006, 1, 1)
endDate = datetime.datetime(2024, 5, 22)
spy_data = yf.Ticker('SPY')
spy_df = spy_data.history(start=startDate, end=endDate)
spy_df.drop(['Volume', 'Dividends', 'Stock Splits','Capital Gains'],axis = 1,inplace = True)
chart = Chart()
chart.set(spy_df)
chart.show(block=True)
Environment
- OS: Linux Mint / MX Linux
- Library: Last version and tried also on 1.0.21
Refer https://github.com/louisnw01/lightweight-charts-python/issues/334 this.
export WEBKIT_DISABLE_COMPOSITING_MODE="1" Add this to working terminal and hit enter.