Code Monkey home page Code Monkey logo

revealables.jl-b38e88e0-6e0b-5351-bce7-ec5fd20bf074's Introduction

Revealables

This module allows Markdown (and most HTML) to be hidden and revealed by pressing a button in an Jupyter notebook. You can also encode and decode the content using a Caesar cipher.

Revealables is useful for hiding and revealing answers to practice problems. When you choose, you can give students the password so they can decode the answers.

Installation

Pkg.add("Revealables")

You will generally want to use Revealables.jl with the hide_input Jupyter extension installed. This extension hides the code cells. Revealables will reveal the output when a button is pressed. If the extension is not installed, then the code will not be hidden. You can unhide the code cells by clicking on the chevron-up icon.

Instructions for installing Jupyter extensions can be found here. If you are using anaconda, which supplies the conda command, you can run the following:

conda install -c conda-forge jupyter_contrib_nbextensions

Then you must run:

jupyter contrib nbextension install --user
jupyter nbextension enable hide_input/main

Use

Hide and show blocks of Markdown through code like this:

revealable("""Any Markdown can go here!""", "Button Label")

Please see the example notebook for more detail.

revealables.jl-b38e88e0-6e0b-5351-bce7-ec5fd20bf074's People

Contributors

rtrochet avatar mykelk avatar tkelman avatar jgmorton avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.