Skip to main content

Create awsome Solveit slides

Project description

sslides

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/rleyvasal/sslides.git

or from pypi

$ pip install sslides

Documentation

Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on pypi.

How to use

  1. Import sslides functions from sslides import sshow ssave
  2. Create a note with #| s to tell sslides all markdown below are your slides
  3. The first note with # header becomes the title page
  4. Create as many slides as you want with ## header - all content below that heading is the slide content
  5. At the end of slides show or save (standalone html) sshow() or ssave()
from sslides import sshow

If you are new to using nbdev here are some useful pointers to get you started.

Introducing sslides

What is sslides

A tool for creating beautiful presentations from your solveit dialogs and research. - At the end of dialog create your slides - #| s marks the begining of slides - All Markdown and code cells below will be in slides - Code and code output hidden in dialog will be hidden in the slides - Navigate with arrow keys or hover on bottom right to see controls

Content Suported

  • Markdown
  • Bullet lists
  • Latex Math
  • Attachments from screenshots
  • Code - highlighted by Pygments

Latex - Content too long, scroll option

Scaled Dot-Product Attention

The attention mechanism from “Attention is All You Need”:

$$\text{Attention}(Q, K, V) = \text{softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V$$

Where $Q$ is queries, $K$ is keys, $V$ is values, and $d_k$ is the dimension of the keys.

Math Examples

Inline math: The quadratic formula is $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$

Display math: $$\int_a^b f(x)dx = F(b) - F(a)$$

Statistics: $$\bar{x} = \frac{1}{n}\sum_{i=1}^n x_i$$

Calculus derivative: $$\frac{d}{dx}(x^n) = nx^{n-1}$$

Matrix: $$\begin{bmatrix} a & b \ c & d \end{bmatrix}$$

Attachments

Plots

Activation Functions Comparisons

  • Code hidden in Solveit = Code hidden in slides
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(-3, 3, 1000)

# Activation functions
relu = np.maximum(0, x)
gelu = 0.5 * x * (1 + np.tanh(np.sqrt(2/np.pi) * (x + 0.044715 * x**3)))
swish = x / (1 + np.exp(-x))
leaky_relu = np.where(x > 0, x, 0.01 * x)

fig, ax = plt.subplots(figsize=(10, 6))
ax.plot(x, relu, label='ReLU', linewidth=2)
ax.plot(x, gelu, label='GELU', linewidth=2)
ax.plot(x, swish, label='Swish', linewidth=2)
ax.plot(x, leaky_relu, label='Leaky ReLU', linewidth=2, linestyle='--')

ax.axhline(0, color='black', linewidth=0.5, alpha=0.3)
ax.axvline(0, color='black', linewidth=0.5, alpha=0.3)
ax.grid(True, alpha=0.3)
ax.legend(fontsize=12)
ax.set_xlabel('Input', fontsize=12)
ax.set_ylabel('Output', fontsize=12)
ax.set_title('Activation Functions Comparison', fontsize=14, pad=15)
plt.tight_layout()
plt.show()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sslides-0.0.15.tar.gz (82.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sslides-0.0.15-py3-none-any.whl (80.1 kB view details)

Uploaded Python 3

File details

Details for the file sslides-0.0.15.tar.gz.

File metadata

  • Download URL: sslides-0.0.15.tar.gz
  • Upload date:
  • Size: 82.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for sslides-0.0.15.tar.gz
Algorithm Hash digest
SHA256 b1bc0557fd5578f9c2d7f2c7624dcefcae2e31d9a295c595cc8d3096f2bb0b49
MD5 52d0981d617029c791ecaba989340113
BLAKE2b-256 5ca81b1c6d1c7490281348ac3a2db9597c7f6ab84169c4cac2e92b78d9d4a9f9

See more details on using hashes here.

File details

Details for the file sslides-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: sslides-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 80.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for sslides-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 389869217163e0fa606aa4f709d60f83e31dff6116b978a74a0fee6ab686ab43
MD5 9c5b45c143a6c7209783f7d7a2c25592
BLAKE2b-256 9e96606b8a3b54af405e8d64eb5e6a61ef5496df8f1b782e1c79ba921c8b7d31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page