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 Code cell with Import package - run after finish slides content

from sslides import sshow
sshow()

2 #| s to tell sslides all cells below are your slides 3 # header creaate the title slide 4 ## header creates regular slides - all content below heading is the slide content 5 run sslides

# from sslides import sshow
# sshow()

Introducing sslides

What is sslides

A tool for creating beautiful presentations from your solveit dialogs and research.

Share your learning by creating a slide deck from dialog.

Editing and navigation of slides without leaving the Dialog.

Create slides

  1. Import sslides and function
from sslides import sshow
sshow()
  1. #| s marks the begining of slides
  2. # Creates a title slide
  3. ## Creates a regular slides - all Markdown and code cells become content of in slide
  4. Run sshow()

Navigate sslides

  • Click on preview window to make it active
  • Navigate with arrow keys
  • Navigate with mouse - hover on bottom right corner to see controls and page number
  • f key enters fullscreen mode
  • esc key exits fullscreen

Content Suported

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

All latex support

## Latex - Content too long, scroll available

### 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}$$

Latex - Content too long, scroll available

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.27.tar.gz (83.1 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.27-py3-none-any.whl (80.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sslides-0.0.27.tar.gz
  • Upload date:
  • Size: 83.1 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.27.tar.gz
Algorithm Hash digest
SHA256 f48a96d3c4f245f9eea1fba2f881c6342b749e5b440529d1624265a07591b2bd
MD5 5134eb5ec8afcd06e097e335ec36ef85
BLAKE2b-256 710a2b5a955db00b4c5ac67d785e7ca965a6d9cc539a5e9b30265bca7a40ca50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sslides-0.0.27-py3-none-any.whl
  • Upload date:
  • Size: 80.2 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.27-py3-none-any.whl
Algorithm Hash digest
SHA256 856d5126422bc732bb35b9bc950d836d9005860b5cd90a995c81514b62c77402
MD5 4d07e76046ff76b34c30363dafa029fd
BLAKE2b-256 857c5a9b30ecb10033e2cedcd6ae6acda01a0ca855445e3fe0fae4cf3606c586

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