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

🎨 Update for showing exercises #147

Merged
merged 1 commit into from
May 31, 2023
Merged

🎨 Update for showing exercises #147

merged 1 commit into from
May 31, 2023

Conversation

rowanc1
Copy link
Member

@rowanc1 rowanc1 commented May 30, 2023

@mmcky this PR adds support in JupyterLab-MyST for exercises/solutions. We have also added unknown directives, and fixed a citation.

image

The gated directives should also render in a degraded form, which allows you to have the notebook cells editable in the notebook and then when you use myst/jupyterbook it will stitch them together for rendering.

image

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch executablebooks/jupyterlab-myst/feat/exercise

@rowanc1
Copy link
Member Author

rowanc1 commented May 30, 2023

@agoose77 I will let you have a look if you want in the next few days, but I think this is probably good enough for another patch/minor release. Hopefully easy to merge into your JLab4 branch (minus the yarn-lock).

@agoose77 agoose77 merged commit 29de3e7 into main May 31, 2023
@agoose77 agoose77 deleted the feat/exercise branch May 31, 2023 13:08
@psychemedia
Copy link

This looks really interesting...
Is there any mechanism for being able to style the background of all the exercise cells? Eg in our course materials, which don't use Sphinx exercise, we use cell tags to style all the cells associated with an exercise or activity.

image

@agoose77
Copy link
Collaborator

If we add classes to our rendered exercises, then one can use jupyterlab-plugin-playground to customise the styles in JupyterLab. @rowanc1 thoughts?

@psychemedia
Copy link

@agoose77 A minimal JupyterLab extension that pretty much just imports custom CSS can also then be used to apply styling to added classes.

@agoose77
Copy link
Collaborator

@psychemedia that's the thought. Using jupyterlab-plugin-playground allows you to avoid distributing this extension yourself (it can be a simple gist file), but it's the same end result.

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

Successfully merging this pull request may close these issues.

3 participants