Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] more than one JupyterPlot in one notebook creates infinite output #313

Open
dannygale opened this issue Mar 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dannygale
Copy link

dannygale commented Mar 5, 2024

Expected Behavior

Charts are rendered independently, within or across cells

Current Behaviour

If any two JupyterCharts exist in the same notebook, infinite newlines are produced in the output

Reproducible Example

from lightweight_charts import Chart, JupyterChart
import pandas as pd

# first cell
chart = JupyterChart()

# Columns: time | open | high | low | close | volume 
df = pd.read_csv('ohlcv.csv')
chart.set(df)

chart.load()


# =====
# second cell
chart = JupyterChart()

# Columns: time | open | high | low | close | volume 
df = pd.read_csv('ohlcv.csv')
chart.set(df)

chart.load()

Environment

- OS: MacOS Sonoma 14.3.1
- Same behavior in:
  - VSCode w/python 3.12.1
  - JupyterLab w/python 3.11
@dannygale dannygale added the bug Something isn't working label Mar 5, 2024
@dannygale
Copy link
Author

Trying to use subplots in a Jupyter notebook creates the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant