lightweight-charts-python icon indicating copy to clipboard operation
lightweight-charts-python copied to clipboard

[BUG] Linux black screen

Open edofe99 opened this issue 1 year ago • 2 comments

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?

image

Thank's.

Current Behaviour

Using chart debug I have a white browser page, nothing else.

image

image

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

edofe99 avatar Jun 22 '24 16:06 edofe99

Refer https://github.com/louisnw01/lightweight-charts-python/issues/334 this.

armeya25 avatar Jul 10 '24 14:07 armeya25

export WEBKIT_DISABLE_COMPOSITING_MODE="1" Add this to working terminal and hit enter.

armeya25 avatar Jul 10 '24 14:07 armeya25