Last active
April 20, 2020 12:21
-
-
Save acokikoy/d05620a6990fbd0727fc7420f31f2879 to your computer and use it in GitHub Desktop.
notes about JupyterLab
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 16, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"# ブックマーク追加\n", | |
"%bookmark _slack /Users/acokikoy/projects/slack_change_status" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 17, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"%bookmark _heijitu /Users/acokikoy/projects/heijitu-ganbaru\n", | |
"%bookmark _algo /Users/acokikoy/projects/algorithm" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 18, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"Current bookmarks:\n", | |
"_algo -> /Users/acokikoy/projects/algorithm\n", | |
"_heijitu -> /Users/acokikoy/projects/heijitu-ganbaru\n", | |
"_slack -> /Users/acokikoy/projects/slack_change_status\n" | |
] | |
} | |
], | |
"source": [ | |
"# ブックマークの一覧\n", | |
"%bookmark -l" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 19, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"/Users/acokikoy\n" | |
] | |
}, | |
{ | |
"data": { | |
"text/plain": [ | |
"'/Users/acokikoy'" | |
] | |
}, | |
"execution_count": 19, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"%cd ~\n", | |
"%pwd" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 20, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"(bookmark:_algo) -> /Users/acokikoy/projects/algorithm\n", | |
"/Users/acokikoy/projects/algorithm\n" | |
] | |
}, | |
{ | |
"data": { | |
"text/plain": [ | |
"'/Users/acokikoy/projects/algorithm'" | |
] | |
}, | |
"execution_count": 20, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"# ブックマークに移動\n", | |
"%cd _algo\n", | |
"%pwd" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# bookmarkまとめ \n", | |
"マジックコマンドのドキュメント \n", | |
"[Built-in magic commands — IPython 7.13.0 documentation](https://ipython.readthedocs.io/en/stable/interactive/magics.html)\n", | |
"\n", | |
"```sh\n", | |
"%bookmark <name> - カレントディレクトリを<name>でブックマーク \n", | |
"%bookmark <name> <dir> - ディレクトリ <dir> を <name>でブックマーク \n", | |
"%bookmark -l - ブックマークを一覧 \n", | |
"%bookmark -d <name> - 指定名のブックマークを削除 \n", | |
"%bookmark -r - 全ブックマークを削除\n", | |
"```" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.8.0" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment