[README] Add instruction to run Jupyter notebooks in new window on Ubuntu (#877)
This commit is contained in:
Родитель
b856585f32
Коммит
bfa1b6b8e3
|
@ -200,10 +200,15 @@ After you are done with editing the notebook, choose ```View -> Cell Toolbar ->
|
||||||
3. To observe your changes when running Q# Jupyter Notebook:
|
3. To observe your changes when running Q# Jupyter Notebook:
|
||||||
1. Set the environment variable `IQSHARP_LOG_LEVEL=Debug`.
|
1. Set the environment variable `IQSHARP_LOG_LEVEL=Debug`.
|
||||||
> The environment variable is case-sensitive.
|
> The environment variable is case-sensitive.
|
||||||
2. Navigate to your project folder and run the following command:
|
2. Navigate to your project folder and run the following command:
|
||||||
|
**For Windows:**
|
||||||
```bash
|
```bash
|
||||||
$ start jupyter notebook <your notebook name>
|
$ start jupyter notebook <your notebook name>
|
||||||
```
|
```
|
||||||
|
**For Ubuntu:**
|
||||||
|
```bash
|
||||||
|
$ gnome-terminal -- start jupyter notebook <your notebook name>
|
||||||
|
```
|
||||||
> This will launch Q# Jupyter Notebooks server in a new window, which is
|
> This will launch Q# Jupyter Notebooks server in a new window, which is
|
||||||
> helpful in debugging the magics since logging is quite noisy.
|
> helpful in debugging the magics since logging is quite noisy.
|
||||||
3. In the Q# Jupyter Notebook you opened, use `%package` magic to load the new NuGet package `Microsoft.Quantum.Katas` by adding and executing the following cell:
|
3. In the Q# Jupyter Notebook you opened, use `%package` magic to load the new NuGet package `Microsoft.Quantum.Katas` by adding and executing the following cell:
|
||||||
|
|
11
README.md
11
README.md
|
@ -193,11 +193,20 @@ $ jupyter notebook index.ipynb
|
||||||
|
|
||||||
This will open the notebook that contains a list of all katas and tutorials, and you will be able to navigate to the one you want using links.
|
This will open the notebook that contains a list of all katas and tutorials, and you will be able to navigate to the one you want using links.
|
||||||
|
|
||||||
> Note that this will start Jupyter Notebooks server in the same command line window you used to run the command. If you want to keep using that window for navigation, you can launch Jupyter Notebooks server in a new window using the following commands (on Windows):
|
> **NOTE:**
|
||||||
|
> This will start Jupyter Notebooks server in the same command line window you used to run the command. If you want to keep using that window for navigation, you can launch Jupyter Notebooks server in a new window using the following commands:
|
||||||
|
>
|
||||||
|
> **For Windows:**
|
||||||
> ```bash
|
> ```bash
|
||||||
> $ cd QuantumKatas/
|
> $ cd QuantumKatas/
|
||||||
> $ start jupyter notebook index.ipynb
|
> $ start jupyter notebook index.ipynb
|
||||||
> ```
|
> ```
|
||||||
|
>
|
||||||
|
> **For Ubuntu:**
|
||||||
|
> ```bash
|
||||||
|
> $ cd QuantumKatas/
|
||||||
|
> $ gnome-terminal -- start jupyter notebook index.ipynb
|
||||||
|
> ```
|
||||||
|
|
||||||
You can also open an individual notebook directly, but this might render internal links invalid:
|
You can also open an individual notebook directly, but this might render internal links invalid:
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче