Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs-fixes #1

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


make a documents of the source code of your project.

like make notebooks for the python code
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions notebook-ed/converter.py → notebook_ed/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import sys
from colorama import init, Fore


# Initialize colorama
init()

Expand Down Expand Up @@ -78,7 +77,6 @@ def show_animation(count):
"""Show ASCII animation while converting."""
frames = [
f"{Fore.GREEN}•{Fore.RED}•{Fore.GREEN} •",
# f"{Fore.GREEN}• {Fore.GREEN}•{Fore.GREEN} •",
f"{Fore.GREEN}• {Fore.RED}•{Fore.GREEN} •",
f"{Fore.GREEN}•{Fore.GREEN} •{Fore.GREEN} •",
f"{Fore.GREEN}• {Fore.RED}•{Fore.GREEN}•",
Expand All @@ -95,7 +93,6 @@ def show_success_animation(file_path):
sys.stdout.flush()

def main():

from .argumentParser import ArgumentParser
args, parser = ArgumentParser()

Expand Down
File renamed without changes.
Empty file added notebook_ed/test/__init__.py
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
import os
from py2nb import delete_file, convert_py_to_ipynb, process_directory
from notebook_ed import delete_file, convert_py_to_ipynb, process_directory

class TestConverter(unittest.TestCase):

Expand Down
472 changes: 472 additions & 0 deletions notebook_ed_venv/Scripts/Activate.ps1

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions notebook_ed_venv/Scripts/activate
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly

deactivate () {
# reset old environment variables
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
PATH="${_OLD_VIRTUAL_PATH:-}"
export PATH
unset _OLD_VIRTUAL_PATH
fi
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
export PYTHONHOME
unset _OLD_VIRTUAL_PYTHONHOME
fi

# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
hash -r 2> /dev/null
fi

if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
PS1="${_OLD_VIRTUAL_PS1:-}"
export PS1
unset _OLD_VIRTUAL_PS1
fi

unset VIRTUAL_ENV
unset VIRTUAL_ENV_PROMPT
if [ ! "${1:-}" = "nondestructive" ] ; then
# Self destruct!
unset -f deactivate
fi
}

# unset irrelevant variables
deactivate nondestructive

VIRTUAL_ENV="I:\static\notebook-ed\notebook_ed_venv"
export VIRTUAL_ENV

_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/Scripts:$PATH"
export PATH

# unset PYTHONHOME if set
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
# could use `if (set -u; : $PYTHONHOME) ;` in bash
if [ -n "${PYTHONHOME:-}" ] ; then
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
unset PYTHONHOME
fi

if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
_OLD_VIRTUAL_PS1="${PS1:-}"
PS1="(notebook_ed_venv) ${PS1:-}"
export PS1
VIRTUAL_ENV_PROMPT="(notebook_ed_venv) "
export VIRTUAL_ENV_PROMPT
fi

# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
hash -r 2> /dev/null
fi
34 changes: 34 additions & 0 deletions notebook_ed_venv/Scripts/activate.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@echo off

rem This file is UTF-8 encoded, so we need to update the current code page while executing it
for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do (
set _OLD_CODEPAGE=%%a
)
if defined _OLD_CODEPAGE (
"%SystemRoot%\System32\chcp.com" 65001 > nul
)

set VIRTUAL_ENV=I:\static\notebook-ed\notebook_ed_venv

if not defined PROMPT set PROMPT=$P$G

if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT%
if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%

set _OLD_VIRTUAL_PROMPT=%PROMPT%
set PROMPT=(notebook_ed_venv) %PROMPT%

if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%
set PYTHONHOME=

if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%
if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH%

set PATH=%VIRTUAL_ENV%\Scripts;%PATH%
set VIRTUAL_ENV_PROMPT=(notebook_ed_venv)

:END
if defined _OLD_CODEPAGE (
"%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul
set _OLD_CODEPAGE=
)
22 changes: 22 additions & 0 deletions notebook_ed_venv/Scripts/deactivate.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@echo off

if defined _OLD_VIRTUAL_PROMPT (
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
)
set _OLD_VIRTUAL_PROMPT=

if defined _OLD_VIRTUAL_PYTHONHOME (
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
set _OLD_VIRTUAL_PYTHONHOME=
)

if defined _OLD_VIRTUAL_PATH (
set "PATH=%_OLD_VIRTUAL_PATH%"
)

set _OLD_VIRTUAL_PATH=

set VIRTUAL_ENV=
set VIRTUAL_ENV_PROMPT=

:END
Binary file added notebook_ed_venv/Scripts/jsonschema.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/jupyter-migrate.exe
Binary file not shown.
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/jupyter-trust.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/jupyter.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/notebook-ed.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/pip.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/pip3.11.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/pip3.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/python.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/python_d.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/pythonw.exe
Binary file not shown.
Binary file added notebook_ed_venv/Scripts/pythonw_d.exe
Binary file not shown.
Loading
Loading