Glad to help! There's so much time to learn during quarantine!
Writing tests for myself because I <3 them so much;
and because they're the missing half of the code.

Like camper_program.py, IPython is a REPL (Read Evaluate Print Loop :)

```bash
$ pip install ipython; ipython
```

```python
>>> ?
>>> %?
>>> %logstart -h
>>> %logstart -o output_from_this.shell.py
```

## Contents
- Quick Git/GitHub tutorial (and a link to the relevant diff of the PR
(after syntax cleanup); should've `git tag` -ed this revision)
- GitLab tutorial
- Jupyter Notebook / JupyterLab keyboard shortcuts

## Quick Git/GitHub tutorial:
- Open the GitHub repo:
  https://github.com/4dsolutions/python_camp

- Navigate to the file:
  - Type `t` to activate the file finder ('?' shows help)
  - Type `camper_`
  - Press <Enter>
  https://github.com/4dsolutions/python_camp/blob/master/camper_program.py

- Click the **History** button at the top right
  `git log --oneline ./camper_program.py`
  `git log --pretty=oneline; git log --help`

https://github.com/4dsolutions/python_camp/commits/master/camper_program.py

- Find "CLN: camper_program.py: pyflakes: is False, not in" (b95fff4)
  `git show b95fff4`

- Click the **<>** button to "Browse the repository at this point in the
history"

https://github.com/4dsolutions/python_camp/tree/b95fff439ef3750ad7eaac146f6c97be64f7e2c0
  https://github.com/4dsolutions/python_camp/tree/b95fff4

- Navigate to the `camper_program.py` file:

https://github.com/4dsolutions/python_camp/blob/b95fff439ef3750ad7eaac146f6c97be64f7e2c0/camper_program.py
  https://github.com/4dsolutions/python_camp/blob/b95fff4/camper_program.py

- Compare between commits
  `git diff b95fff4 master -- camper_program.py`

  - vim:
    `git difftool --tool=vimdiff b95fff4 master -- camper_program.py` (
requires vim )
  - vscode:
    `git difftool -x "code --wait --diff" b95fff4 master --
camper_program.py`

https://stackoverflow.com/questions/51316233/how-can-i-see-git-diff-on-visual-studio-code-side-by-side-file/56237464#56237464

  - github:

https://help.github.com/en/github/committing-changes-to-your-project/comparing-commits

    https://github.com/4dsolutions/python_camp/compare/b95fff4..master

    - Click the Unified / **Split** button at the top right
    - Click the Showing '5 changed files` link
    - Click 'camper_program.py' (to jump to that file in the diff)

https://github.com/4dsolutions/python_camp/compare/b95fff4..master?diff=split#diff-eeb571aff0d4c7b51323fda6f2211df7

GitHub Keyboard Shortcuts:
https://help.github.com/en/github/getting-started-with-github/keyboard-shortcuts

...

GitLab's interface is a bit different:

Here's the *merge request* that added Markdown support to HyperKitty:
https://gitlab.com/mailman/hyperkitty/-/merge_requests/160

# Review the pipeline job log
- Click "Pipelines"
- Click the check mark in the status column (or the build number) of the
first row (the most recent GitLab CI Pipeline)
- Click the "py37-django-3.0" job in the Test column
- Scroll through the job log
  - Find "Creating test database for alias 'default'..."
  - Find "Ran 288 tests in 210.467s"

# Review the merge request (the MR diff)
- Click and hold the browser back arrow (to see history); move the mouse to
the merge request page title; release the mouse
- Click the "Changes" tab
- Click the icon to the left of "Compare"

GitLab Keyboard Shortcuts:
https://docs.gitlab.com/ce/user/shortcuts.html
https://docs.gitlab.com/ee/user/shortcuts.html

...
I could create a Jupyter notebook from this almost- Markdown email.
I could've just created a notebook and saved it as markdown manually (or
automatically with jupytext) and pasted it as this email.

To create a notebook from this:

- Single-click at the beginning of this email, <Shift>Click at the End,
<Ctrl-C> to Copy
- Create new notebook- Select the first cell, press <Esc> (to enter command
mode), then press M (to make a markdown cell)- Press <Enter> (to enter edit
mode)
- <Ctrl-V> to paste- <Ctrl-Shift-Minus> [ <Ctrl-+> ] to split the cell at
the cursor

Jupyter Notebook keyboard shortcuts:
- Open a notebook
- Help > Keyboard Shortcuts

Jupyter Lab keyboard shortcuts:
- <Ctrl-Shift-C> to open the Command Palette

On Sat, Apr 11, 2020 at 3:56 PM kirby urner <kirby.ur...@gmail.com> wrote:

>
> Yikes. My attempt at hand-coding markdown links formatting as [word](
> http://address) didn't work well at all in the HyperKitty Mailman3 view,
> my apologies.
>
> Here are the links again, in the order linked...
>
> This thread:
>
> https://mail.python.org/archives/list/edu-sig@python.org/thread/H6KKJR57V7G4CIPDPJ7FUCXWDHMRUYUT/
>
> My context manager pattern:
> https://github.com/4dsolutions/python_camp/blob/master/ContextManager.ipynb
>
>
> Super fluent thanks to Wes (pull requests):
> https://github.com/4dsolutions/python_camp/blob/master/camper_program.py
>
> "Covid Camps" (souvenir):
>  https://flic.kr/p/2iLG2qU
>
> Kirby
>
>
> _______________________________________________
> Edu-sig mailing list -- edu-sig@python.org
> To unsubscribe send an email to edu-sig-le...@python.org
> https://mail.python.org/mailman3/lists/edu-sig.python.org/
>
_______________________________________________
Edu-sig mailing list -- edu-sig@python.org
To unsubscribe send an email to edu-sig-le...@python.org
https://mail.python.org/mailman3/lists/edu-sig.python.org/

Reply via email to