Skip to content

Commit 89ca794

Browse files
committed
fixes #690
1 parent b6af216 commit 89ca794

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

nbs/tutorial.ipynb

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"Jupyter notebook has a terminal window available, so we'll use that:\n",
8888
"1. Start `jupyter notebook`\n",
8989
"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",
9191
"\n",
9292
"When the command completes, you're ready to go."
9393
]
@@ -112,7 +112,9 @@
112112
"source": [
113113
"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",
114114
"\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."
116118
]
117119
},
118120
{
@@ -151,27 +153,6 @@
151153
"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."
152154
]
153155
},
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-
},
175156
{
176157
"cell_type": "markdown",
177158
"metadata": {},
@@ -327,7 +308,9 @@
327308
"outputs": [
328309
{
329310
"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+
],
331314
"text/plain": [
332315
"<IPython.core.display.SVG object>"
333316
]
@@ -1040,9 +1023,34 @@
10401023
"split_at_heading": true
10411024
},
10421025
"kernelspec": {
1043-
"display_name": "Python 3.9.13 64-bit",
1026+
"display_name": "Python 3 (ipykernel)",
10441027
"language": "python",
10451028
"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
10461054
}
10471055
},
10481056
"nbformat": 4,

settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ language = English
1616
custom_sidebar = True
1717
license = apache2
1818
status = 2
19-
requirements = fastcore>=1.5.8 execnb astunparse
19+
requirements = fastcore>=1.5.8 execnb astunparse ghapi
2020
dev_requirements = nbdev-numpy
2121
nbdev-stdlib
2222
pandas

0 commit comments

Comments
 (0)