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

Best way to hide code cells? #26

Open
joaquinvanschoren opened this issue Mar 14, 2023 · 2 comments
Open

Best way to hide code cells? #26

joaquinvanschoren opened this issue Mar 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@joaquinvanschoren
Copy link

Description

Is there an easy way to hide code cells in the generated RISE slides?

In the notebook version there are plugins to hide all code cells with the 'hide-input' tag, which also makes them invisible in the RISE slides.

I tried doing the same in jupyter lab. Eg. the jupyterlab-hide-code does hide the code cells in jupyter lab, but they are still visible in the jupyterlab-rise slides.

Is there a known solution on how to do this?

Reproduce

Create any notebook with code cells and set the 'hide-input' tag.
The code cells are not hidden in Jupyter Lab but not in the RISE slides, see screenshot:

Screenshot 2023-03-14 at 22 50 23

@joaquinvanschoren joaquinvanschoren added the bug Something isn't working label Mar 14, 2023
@dhirschfeld
Copy link

dhirschfeld commented Nov 10, 2023

I think it would be ideal if there were a hide_code boolean in the cell metadata which you could easily toggle with a dropdown in the Property Inspector similar to how you can already do with Slide Type - e.g.

{
    "trusted": true,
    "execution": {
        "iopub.status.busy": "2023-11-10T04:41:22.157874Z",
        "iopub.execute_input": "2023-11-10T04:41:22.158409Z",
        "iopub.status.idle": "2023-11-10T04:41:22.166432Z",
        "shell.execute_reply.started": "2023-11-10T04:41:22.158409Z",
        "shell.execute_reply": "2023-11-10T04:41:22.164817Z"
    },
    "editable": true,
    "slideshow": {
        "slide_type": "fragment",
        "hide_code": true
    },
    "tags": []
}

@joaquinvanschoren
Copy link
Author

Hi! Any news on this?
I can't find any way to make this work, which is a pity because this tool is otherwise really neat.

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

2 participants