|
87 | 87 | "Jupyter notebook has a terminal window available, so we'll use that:\n", |
88 | 88 | "1. Start `jupyter notebook`\n", |
89 | 89 | "2. From the \"New\" dropdown on the right side, choose `Terminal`.\n", |
90 | | - "3. Enter \"`python -m pip install nbdev`\" (or use conda as specified above)\n", |
| 90 | + "3. Enter \"`pip install nbdev`\" (or use conda as specified above)\n", |
91 | 91 | "\n", |
92 | 92 | "When the command completes, you're ready to go." |
93 | 93 | ] |
|
112 | 112 | "source": [ |
113 | 113 | "To create your new project repo, use the cli command `nbdev_new` to **create a new nbdev project from an existing GitHub repo that you have cloned locally.** _To create a new GitHub repo locally, we recommend the [gh cli](https://cli.github.com/) tool, which allows you to create a new repo with the command `gh repo create`._\n", |
114 | 114 | "\n", |
115 | | - "Alternatively, you can create a new empty github repository using [this link](https://github.com/new), and follow the instructions on github to clone the repository locally before running the command `nbdev_new`" |
| 115 | + "Alternatively, you can create a new empty github repository using [this link](https://github.com/new), and follow the instructions on github to clone the repository locally before running the command `nbdev_new`.\n", |
| 116 | + "\n", |
| 117 | + "In GitHub, click the settings cog in the top right of the repo page (next to \"**About**\") and fill in the description and tags, since nbdev will use these automatically." |
116 | 118 | ] |
117 | 119 | }, |
118 | 120 | { |
|
151 | 153 | "Next, edit the `settings.ini` file in your cloned repo. This file contains all the necessary information for when you'll be ready to package your library. The basic structure (that can be personalized provided you change the relevant information in `settings.ini`) is that the root of the repo will contain your notebooks, the `docs` folder will contain your auto-generated docs, and a folder with a name you select will contain your auto-generated modules." |
152 | 154 | ] |
153 | 155 | }, |
154 | | - { |
155 | | - "cell_type": "markdown", |
156 | | - "metadata": {}, |
157 | | - "source": [ |
158 | | - "You'll see these commented out lines in `settings.ini`. Uncomment them, and set each value as needed.\n", |
159 | | - "\n", |
160 | | - "```\n", |
161 | | - "# lib_name = your_project_name\n", |
162 | | - "# repo_name = name of github repo\n", |
163 | | - "# user = your_github_username\n", |
164 | | - "# description = A description of your project\n", |
165 | | - "# keywords = some keywords\n", |
166 | | - "# author = Your Name\n", |
167 | | - "# author_email = [email protected]\n", |
168 | | - "# copyright = Your Name or Company Name\n", |
169 | | - "# branch = The default branch of your GitHub repo (usually either master or main)\n", |
170 | | - "```\n", |
171 | | - "\n", |
172 | | - "We'll see some other settings we can change later." |
173 | | - ] |
174 | | - }, |
175 | 156 | { |
176 | 157 | "cell_type": "markdown", |
177 | 158 | "metadata": {}, |
|
327 | 308 | "outputs": [ |
328 | 309 | { |
329 | 310 | "data": { |
330 | | - "image/svg+xml": "<svg height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\"/></svg>", |
| 311 | + "image/svg+xml": [ |
| 312 | + "<svg height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\"/></svg>" |
| 313 | + ], |
331 | 314 | "text/plain": [ |
332 | 315 | "<IPython.core.display.SVG object>" |
333 | 316 | ] |
|
1040 | 1023 | "split_at_heading": true |
1041 | 1024 | }, |
1042 | 1025 | "kernelspec": { |
1043 | | - "display_name": "Python 3.9.13 64-bit", |
| 1026 | + "display_name": "Python 3 (ipykernel)", |
1044 | 1027 | "language": "python", |
1045 | 1028 | "name": "python3" |
| 1029 | + }, |
| 1030 | + "language_info": { |
| 1031 | + "codemirror_mode": { |
| 1032 | + "name": "ipython", |
| 1033 | + "version": 3 |
| 1034 | + }, |
| 1035 | + "file_extension": ".py", |
| 1036 | + "mimetype": "text/x-python", |
| 1037 | + "name": "python", |
| 1038 | + "nbconvert_exporter": "python", |
| 1039 | + "pygments_lexer": "ipython3", |
| 1040 | + "version": "3.9.13" |
| 1041 | + }, |
| 1042 | + "toc": { |
| 1043 | + "base_numbering": 1, |
| 1044 | + "nav_menu": {}, |
| 1045 | + "number_sections": false, |
| 1046 | + "sideBar": true, |
| 1047 | + "skip_h1_title": false, |
| 1048 | + "title_cell": "Table of Contents", |
| 1049 | + "title_sidebar": "Contents", |
| 1050 | + "toc_cell": false, |
| 1051 | + "toc_position": {}, |
| 1052 | + "toc_section_display": true, |
| 1053 | + "toc_window_display": false |
1046 | 1054 | } |
1047 | 1055 | }, |
1048 | 1056 | "nbformat": 4, |
|
0 commit comments