-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bae9a5
commit e3add20
Showing
4 changed files
with
90 additions
and
42 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
from pathlib import Path | ||
from os import getcwd | ||
|
||
|
||
CHECK_ICON = "\u2714" # Check mark | ||
CROSS_ICON = "\u2716" # Cross mark | ||
WARNING_ICON = "\u26A0" # Warning sign | ||
LOADING_ICON = "\u27F3" # Loading sign | ||
INFO_ICON = "\u24D8" # Information sign | ||
|
||
|
||
|
||
CWD = Path(getcwd()) | ||
|
||
HELLO = """ | ||
🎣 Welcome to Tuna | ||
Commands: | ||
tuna --init : Initialize Tuna in your current directory | ||
tuna --serve : Run Tuna in JupyterLab | ||
tuna --refresh : Refresh GitHub cache in your current directory | ||
tuna --edit : Edit the Tuna notebook in your current directory | ||
tuna : Redisplay this message | ||
⋅ tuna init : Initialize Tuna in your current directory | ||
⋅ tuna serve : Run Tuna in JupyterLab, no automatic browser opening | ||
⋅ tuna serve --open : Same as above with automatic browser opening | ||
⋅ tuna serve --no-open : Same as "tuna serve" | ||
⋅ tuna refresh : Refresh GitHub cache in your current directory | ||
⋅ tuna : Redisplay this message | ||
Help : Contact [email protected] | ||
|
@@ -23,6 +33,10 @@ | |
CONFIG_FILE = TUNA_DIR / 'tuna.config.json' | ||
AUTH_FILE = TUNA_DIR / 'auth.config.json' | ||
|
||
TUNA_GITIGNORE = """ | ||
ipynb_checkpoints/ | ||
auth.config.json | ||
""" | ||
|
||
IPYNB_REQUIREMENTS = """ | ||
transformers | ||
|
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
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