[README] Add instruction to run Jupyter notebooks in new window on Ubuntu (#877)

This commit is contained in:
Manvi-Agrawal 2023-03-03 03:59:55 +05:30 коммит произвёл GitHub
Родитель b856585f32
Коммит bfa1b6b8e3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 16 добавлений и 2 удалений

7
.github/CONTRIBUTING.md поставляемый
Просмотреть файл

@ -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:
1. Set the environment variable `IQSHARP_LOG_LEVEL=Debug`.
> 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
$ 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
> 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:

Просмотреть файл

@ -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.
> 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
> $ cd QuantumKatas/
> $ 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: