This process is derived from the [official guide][official-guide], but lightly tweaked to make the process smoother and produce an installation that comes up automatically on boot (no need to enter desktop mode) and survives system updates.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wezterm = require 'wezterm' | |
local config = {} | |
if wezterm.config_builder then | |
config = wezterm.config_builder() | |
end | |
-- SET DEFAULT SHELL | |
config.default_prog = { 'C:\\Program Files\\PowerShell\\7\\pwsh.exe', '-l' } |
- Add a filter to git config by running the following command in bash inside the repo:
git config filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'
-
Create a
.gitattributes
file inside the directory with the notebooks -
Add the following to that file:
*.ipynb filter=strip-notebook-output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sqlite3 | |
import os | |
DB_PATH = "C:/ProgramData/Cold Turkey/data-app.db" | |
def activate(): |