Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

JupyterLab extensions that only operate within a notebook do not all work in RetroLab #258

Closed
gutow opened this issue Oct 30, 2021 · 2 comments · Fixed by #262
Closed

JupyterLab extensions that only operate within a notebook do not all work in RetroLab #258

gutow opened this issue Oct 30, 2021 · 2 comments · Fixed by #262
Labels
bug Something isn't working

Comments

@gutow
Copy link
Contributor

gutow commented Oct 30, 2021

Description

I understand that some JupyterLab extensions that access non-notebook areas in JupyterLab are not yet expected to work in RetroLab. However, something is inconsistent about the way RetroLab handles JupyterLab extensions that operate only within a notebook without modifying anything in the other Jupyterlab areas. Extensions/widgets this is known to impact: plotly

Reproduce

  1. pip install plotly numpy pandas into the environment of JupyterLab/RetroLab.
  2. In a new notebook create a simple data set to plot.
import pandas as pd
import numpy as np
X = [k*np.pi/10 for k in range(-30,30)]
Y = np.sin(X)
df = pd.DataFrame({'X':X, 'Y':Y})
df['size']=df['X']/3/np.pi
  1. Plot it.
from plotly import graph_objects as go
fig = go.Figure()
fig.add_trace(go.Scatter(x=df["X"], y=df['Y'],mode='lines+markers',name='sin(x)'))
fig.add_trace(go.Scatter(x=df["X"], y=df['size'],mode='lines',name='y = x')) 
fig.update_layout(template='simple_white')
fig.update_xaxes(mirror='ticks')
fig.update_yaxes(mirror=True)
fig.show()

This works in an .ipynb running in JupyterLab but in RetroLab nothing is displayed.

Expected behavior

Expect the same graph displayed in JupyterLab and RetroLab

Context

  • Operating System and version: Linux Ubuntu 20.04
  • Browser and version: FireFox 93.0 or Chromium 95.0.4638.54
  • JupyterLab version: RetroLab 0.3.11
@gutow gutow added the bug Something isn't working label Oct 30, 2021
@welcome
Copy link

welcome bot commented Oct 30, 2021

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@jtpio
Copy link
Member

jtpio commented Oct 30, 2021

Thanks @gutow for reporting.

I just opened #262 which should fix the issue (if you want to try it on Binder)

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

Successfully merging a pull request may close this issue.

2 participants