From b6fef4fc553d579331edcf481ec205b2b6ea54ff Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Wed, 10 Apr 2024 16:54:13 +0200 Subject: [PATCH 1/3] Update live_code.ipynb --- book/features/live_code.ipynb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/book/features/live_code.ipynb b/book/features/live_code.ipynb index 7b8f766..17bd50b 100644 --- a/book/features/live_code.ipynb +++ b/book/features/live_code.ipynb @@ -74,11 +74,7 @@ "\n", "## Instructions: local build\n", "\n", - "To test the fuctionality, you have to run a local server, otherwise the interactivity doens't work. So, you cannot just open the `index.html` file any more. This can be done with the following steps:\n", - "1. build the book by running ` jupyter book build `. If you are using Windows you should use the Git Bash terminal. Set this as your default in VS Code, then open it using \"New Terminal.\" If you have not already done so, you will need to allow Git Bash to use your Python libraries by running the command `conda init bash`.\n", - "2. Set up a server by running `python -m http.server 8000`.\n", - "3. Open the book by going to [http://localhost:8000/](http://localhost:8000/) in your browser. You may need to reload the page once the rebuild is complete. You can do this on Chrome by right-clicking somewhere on the page, select \"Inspect\", open the \"Network\" tab, then reload with `CTRL+R`. Or try `ctrl`+`F5`\n", - "4. Go to any page that is created from a Jupyter notebook\n", + "To test the fuctionality, you have to run a local server, otherwise the interactivity doens't work. So, you cannot just open the `index.html` file any more. This can be done with the steps shown in {setup-local-server}`view the book using a lcoal webserver`.\n", "\n", "If you push to main, you can test the interactivity on the book-draft website as well.\n", "\n", @@ -115,11 +111,6 @@ "%pip install package_name\n", "```\n" ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [] } ], "metadata": { From b08cb0a918ab0908602d50d2b0761e4d2c555f0b Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Wed, 10 Apr 2024 16:59:22 +0200 Subject: [PATCH 2/3] Addec ctrl+F5 --- book/installation-and-setup/jupyter-book-setup.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/book/installation-and-setup/jupyter-book-setup.md b/book/installation-and-setup/jupyter-book-setup.md index 24e726c..f2e4fd9 100644 --- a/book/installation-and-setup/jupyter-book-setup.md +++ b/book/installation-and-setup/jupyter-book-setup.md @@ -32,4 +32,5 @@ Some features like JupyterLite and Grasple only work when a webserver serves the 2. Port 8000 is usually used by default, but depending on your OS it will tell you in the output. 3. To visit your site, just enter the address in your web browser, followed by a colon, and then the port number. By default, that would be: `127.0.0.1:8000`. 4. You will get a website that looks like a file browser, to visit your site just navigate to `book/_build/html/` (if you've started this command from this folder you see the book immediately -5. All interactive features like the JupyterLite consoles, Grasple/H5p iframe exercises, Sphinx-thebe python interactivity and HTML/Javascript elements should now work as well. +5. You may need to reload the page once the rebuild is complete. You can do this on Chrome by right-clicking somewhere on the page, select \"Inspect\", open the \"Network\" tab, then reload with `CTRL+R`. Or try `ctrl`+`F5`\n" +6. All interactive features like the JupyterLite consoles, Grasple/H5p iframe exercises, Sphinx-thebe python interactivity and HTML/Javascript elements should now work as well. From 40a1977b7e9fb38b7dea80e7225dc5a1a2a3dc45 Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Wed, 10 Apr 2024 17:01:25 +0200 Subject: [PATCH 3/3] Now correct cross-reference --- book/features/live_code.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/features/live_code.ipynb b/book/features/live_code.ipynb index 17bd50b..98ff7f9 100644 --- a/book/features/live_code.ipynb +++ b/book/features/live_code.ipynb @@ -74,7 +74,7 @@ "\n", "## Instructions: local build\n", "\n", - "To test the fuctionality, you have to run a local server, otherwise the interactivity doens't work. So, you cannot just open the `index.html` file any more. This can be done with the steps shown in {setup-local-server}`view the book using a lcoal webserver`.\n", + "To test the fuctionality, you have to run a local server, otherwise the interactivity doens't work. So, you cannot just open the `index.html` file any more. This can be done with the steps shown in {ref}`setup-local-server`.\n", "\n", "If you push to main, you can test the interactivity on the book-draft website as well.\n", "\n",