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

Migrate the JupyterLab preview extension to JLab2 #555

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

echarles
Copy link
Contributor

This PR intent is to migrate the JupyterLab preview extension to JLab2.

For now the code builds, I still need to check if the functionality is not degraded.

@echarles
Copy link
Contributor Author

@jtpio This is working for me on JLab2.

Screenshot 2020-03-12 at 06 13 13

@echarles echarles changed the title [WIP] Migrate the JupyterLab preview extension to JLab2 Migrate the JupyterLab preview extension to JLab2 Mar 12, 2020
@jtpio
Copy link
Member

jtpio commented Mar 12, 2020

Thanks @echarles, this looks good!

@@ -66,7 +68,7 @@ class VoilaRenderButton
const button = new ToolbarButton({
className: "voilaRender",
tooltip: "Render with Voila",
iconClassName: VOILA_ICON_CLASS,
iconClass: VOILA_ICON_CLASS,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thing the icons still support this 👍

We could update to LabIcon at a later stage (in a separate PR).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I have been suprised it was still working fine with that. Upgrading to LabIcon also popped up in my mind for another PR.

Copy link
Member

@jtpio jtpio Mar 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was fixed in jupyterlab/jupyterlab#7947 (icons as css background)

@jtpio
Copy link
Member

jtpio commented Mar 12, 2020

Works well locally 👍

preview-lab-2

Copy link
Member

@jtpio jtpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants