|
22 | 22 | "with some Q# code that solves the task. To verify your answer, run the cell with Ctrl+Enter (⌘+Enter on macOS)." |
23 | 23 | ] |
24 | 24 | }, |
25 | | - { |
26 | | - "cell_type": "markdown", |
27 | | - "metadata": {}, |
28 | | - "source": [ |
29 | | - "To begin, first prepare this notebook for execution (if you skip the first step, you'll get \"Syntax does not match any known patterns\" error when you try to execute Q# code in the next cells; if you skip the second step, you'll get \"Invalid kata name\" error):" |
30 | | - ] |
31 | | - }, |
32 | | - { |
33 | | - "cell_type": "code", |
34 | | - "execution_count": null, |
35 | | - "metadata": {}, |
36 | | - "outputs": [], |
37 | | - "source": [ |
38 | | - "%package Microsoft.Quantum.Katas::0.12.20082513" |
39 | | - ] |
40 | | - }, |
41 | | - { |
42 | | - "cell_type": "markdown", |
43 | | - "metadata": {}, |
44 | | - "source": [ |
45 | | - "> The package versions in the output of the cell above should always match. If you are running the Notebooks locally and the versions do not match, please install the IQ# version that matches the version of the `Microsoft.Quantum.Katas` package.\n", |
46 | | - "> <details>\n", |
47 | | - "> <summary><u>How to install the right IQ# version</u></summary>\n", |
48 | | - "> For example, if the version of `Microsoft.Quantum.Katas` package above is 0.1.2.3, the installation steps are as follows:\n", |
49 | | - ">\n", |
50 | | - "> 1. Stop the kernel.\n", |
51 | | - "> 2. Uninstall the existing version of IQ#:\n", |
52 | | - "> dotnet tool uninstall microsoft.quantum.iqsharp -g\n", |
53 | | - "> 3. Install the matching version:\n", |
54 | | - "> dotnet tool install microsoft.quantum.iqsharp -g --version 0.1.2.3\n", |
55 | | - "> 4. Reinstall the kernel:\n", |
56 | | - "> dotnet iqsharp install\n", |
57 | | - "> 5. Restart the Notebook.\n", |
58 | | - "> </details>\n" |
59 | | - ] |
60 | | - }, |
61 | | - { |
62 | | - "cell_type": "code", |
63 | | - "execution_count": null, |
64 | | - "metadata": {}, |
65 | | - "outputs": [], |
66 | | - "source": [ |
67 | | - "%workspace reload" |
68 | | - ] |
69 | | - }, |
70 | 25 | { |
71 | 26 | "cell_type": "markdown", |
72 | 27 | "metadata": {}, |
|
0 commit comments