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

Document how to customize the Voila Preview widget shell area #1327

Merged
merged 3 commits into from
Jul 31, 2023

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Jun 14, 2023

References

This should help address the point mentioned in #1304 (comment).

This will also help with jupyter/notebook#6386.

Code changes

  • Rename the factory to Voila Preview for consistency with the Markdown Preview factory in JupyterLab
  • Add documentation

User-facing changes

End users can configure the JupyterLab layout to open the Voila preview in a different area than main.

image

Backwards-incompatible changes

None

@jtpio jtpio added the enhancement New feature or request label Jun 14, 2023
@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch jtpio/voila/shell-type

@@ -193,7 +193,8 @@ const extension: JupyterFrontEndPlugin<IVoilaPreviewTracker> = {
path: context.path,
factory: 'Voila-preview',
options: {
mode: 'split-right'
mode: 'split-right',
type: 'Voila Preview'
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: Actually need to check if the factory is already enough.

Copy link
Member Author

Choose a reason for hiding this comment

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

If so we can update this PR to provide documentation about widget positioning.

@jtpio jtpio added this to the 0.5.0 milestone Jun 14, 2023
@jtpio jtpio changed the title Add type option when opening the preview Document how to customize the Voila Preview widget area Jun 14, 2023
@jtpio jtpio changed the title Document how to customize the Voila Preview widget area Document how to customize the Voila Preview widget shell area Jun 14, 2023
@trungleduc
Copy link
Member

Hi @jtpio, would you mind if I take over this PR?

@jtpio
Copy link
Member Author

jtpio commented Jul 31, 2023

Thanks @trungleduc, yes feel free thanks!

Happy to review afterwards.

@trungleduc trungleduc marked this pull request as ready for review July 31, 2023 11:48
@trungleduc
Copy link
Member

Failed CI test is not related.

@jtpio
Copy link
Member Author

jtpio commented Jul 31, 2023

Thanks @trungleduc!

@jtpio jtpio merged commit 39d37df into voila-dashboards:main Jul 31, 2023
18 of 21 checks passed
@jtpio jtpio deleted the shell-type branch July 31, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants