Skip to content

Instantly share code, notes, and snippets.

View bug-author's full-sized avatar

bug-author

View GitHub Profile

keyboard shortcuts for notebook server v6.1.5 taken from Help -> Keyboard Shortcuts menu in Jupyter Notebook for quick access

Command Mode (press Esc to enable)

  • F : find and replace
  • Ctrl-Shift-F : open the command palette
  • Ctrl-Shift-P : open the command palette
  • Enter : enter edit mode
  • P : open the command palette
  • Shift-Enter : run cell, select below
  • Ctrl-Enter : run selected cells
  • Alt-Enter : run cell and insert below
@bug-author
bug-author / pipenv_cheat_sheet.md
Created June 4, 2021 16:09 — forked from bradtraversy/pipenv_cheat_sheet.md
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
pip install pdfplumber
pip install gtts
import pdfplumber
from gtts import gTTS
def pdf_to_text(pdf_path):
pdf_text = ""
with pdfplumber.open(pdf_path) as pdf:
for page in pdf.pages:
pdf_text += page.extract_text()
return pdf_text
pip install pdfplumber
pip install pydub
import pdfplumber
from pydub import AudioSegment
import subprocess
import os
def pdf_to_text(pdf_path, start_page, end_page):
  pdf_text = ""
  with pdfplumber.open(pdf_path) as pdf:
  for page_num in range(start_page, end_page + 1):
  page = pdf.pages[page_num]