| 1 |
{ |
| 2 |
"cells": [ |
| 3 |
{ |
| 4 |
"cell_type": "markdown", |
| 5 |
"metadata": {}, |
| 6 |
"source": [ |
| 7 |
"# Installation" |
| 8 |
] |
| 9 |
}, |
| 10 |
{ |
| 11 |
"cell_type": "markdown", |
| 12 |
"metadata": {}, |
| 13 |
"source": [ |
| 14 |
"## anaconda (recommended)\n", |
| 15 |
"\n", |
| 16 |
"The easiest way to install **scikit-rf** is to first install \n", |
| 17 |
"[anaconda](http://continuum.io/downloads), a binary package manager for python modules. Once anaconda is setup you can install scikit-rf by entering the following into a terminal (do not forget the `-c conda-forge` option):\n", |
| 18 |
"\n", |
| 19 |
" conda install -c conda-forge scikit-rf" |
| 20 |
] |
| 21 |
}, |
| 22 |
{ |
| 23 |
"cell_type": "markdown", |
| 24 |
"metadata": {}, |
| 25 |
"source": [ |
| 26 |
"## pip\n", |
| 27 |
"\n", |
| 28 |
"\n", |
| 29 |
"Using the [Python Package Index (PyPi)](https://pypi.org/), you can install **scikit-rf** using:\n", |
| 30 |
"\n", |
| 31 |
" pip install scikit-rf" |
| 32 |
] |
| 33 |
}, |
| 34 |
{ |
| 35 |
"cell_type": "markdown", |
| 36 |
"metadata": {}, |
| 37 |
"source": [ |
| 38 |
"## git\n", |
| 39 |
"\n", |
| 40 |
"The bleeding-edge development version of **scikit-rf** may be installed from our [github page](https://github.com/scikit-rf/scikit-rf). You can use git directly, or download a zipfile.\n", |
| 41 |
"\n", |
| 42 |
" git clone [email protected]:scikit-rf/scikit-rf.git\n", |
| 43 |
" cd scikit-rf\n", |
| 44 |
" python setup.py install" |
| 45 |
] |
| 46 |
}, |
| 47 |
{ |
| 48 |
"cell_type": "markdown", |
| 49 |
"metadata": {}, |
| 50 |
"source": [ |
| 51 |
"## Optional Modules\n", |
| 52 |
"\n", |
| 53 |
"Some features of scikit-rf won't be available until you install additional\n", |
| 54 |
"modules. You can install these using conda or pip." |
| 55 |
] |
| 56 |
}, |
| 57 |
{ |
| 58 |
"attachments": {}, |
| 59 |
"cell_type": "markdown", |
| 60 |
"metadata": {}, |
| 61 |
"source": [ |
| 62 |
"### Instrument Control\n", |
| 63 |
"\n", |
| 64 |
"To use the vi module, you must install all of its dependencies. This can be done\n", |
| 65 |
"with\n", |
| 66 |
"\n", |
| 67 |
"$ pip install scikit-rf[visa]\n", |
| 68 |
"\n", |
| 69 |
"which will install the following:\n", |
| 70 |
"\n", |
| 71 |
"- [pyvisa](https://pyvisa.readthedocs.io/en/latest/)\n", |
| 72 |
"- [pyvisa-py](https://pyvisa.readthedocs.io/projects/pyvisa-py/en/latest/)" |
| 73 |
] |
| 74 |
}, |
| 75 |
{ |
| 76 |
"attachments": {}, |
| 77 |
"cell_type": "markdown", |
| 78 |
"metadata": {}, |
| 79 |
"source": [ |
| 80 |
"<div class=\"alert alert-warning\">\n", |
| 81 |
" Warning about instrument communications\n", |
| 82 |
"\n", |
| 83 |
" The above should be enough to communicate with many instruments. However,\n", |
| 84 |
" some of us have had difficult to resolve issues with certain instrument\n", |
| 85 |
" configurations that require particular setups. For example, to communicate\n", |
| 86 |
" with Keysight's N5227B PNA over GPIB, we had to install the \n", |
| 87 |
" <a href=\"https://www.keysight.com/us/en/lib/software-detail/computer-software/io-libraries-suite-downloads-2175637.html\">Keysight IO Libraries Suite</a> \n", |
| 88 |
"\n", |
| 89 |
" When using the virtual instrument module, you have the option of specifying\n", |
| 90 |
" the backend that PyVISA uses to communicate with instruments. By default,\n", |
| 91 |
" this is PyVISA-py, the fully Python VISA implementation, but in the case\n", |
| 92 |
" above with the Keysight Analyzer, we had to specify the exact .dll of the\n", |
| 93 |
" VISA driver. More information can be found\n", |
| 94 |
" [here](https://pyvisa.readthedocs.io/en/latest/advanced/backends.html) on\n", |
| 95 |
" VISA backends, but if you have issues, please submit a detailed bug report!\n", |
| 96 |
"</div>" |
| 97 |
] |
| 98 |
}, |
| 99 |
{ |
| 100 |
"cell_type": "markdown", |
| 101 |
"metadata": {}, |
| 102 |
"source": [ |
| 103 |
"### Excel file export\n", |
| 104 |
"\n", |
| 105 |
"* xlrd\n", |
| 106 |
"* xlwt http://www.python-excel.org/ - for xls reading/writing" |
| 107 |
] |
| 108 |
}, |
| 109 |
{ |
| 110 |
"cell_type": "code", |
| 111 |
"execution_count": null, |
| 112 |
"metadata": {}, |
| 113 |
"outputs": [], |
| 114 |
"source": [] |
| 115 |
} |
| 116 |
], |
| 117 |
"metadata": { |
| 118 |
"anaconda-cloud": {}, |
| 119 |
"celltoolbar": "Raw Cell Format", |
| 120 |
"kernelspec": { |
| 121 |
"display_name": "Python 3.10.4 ('skrf')", |
| 122 |
"language": "python", |
| 123 |
"name": "python3" |
| 124 |
}, |
| 125 |
"language_info": { |
| 126 |
"codemirror_mode": { |
| 127 |
"name": "ipython", |
| 128 |
"version": 3 |
| 129 |
}, |
| 130 |
"file_extension": ".py", |
| 131 |
"mimetype": "text/x-python", |
| 132 |
"name": "python", |
| 133 |
"nbconvert_exporter": "python", |
| 134 |
"pygments_lexer": "ipython3", |
| 135 |
"version": "3.10.4" |
| 136 |
}, |
| 137 |
"toc": { |
| 138 |
"base_numbering": 1, |
| 139 |
"nav_menu": {}, |
| 140 |
"number_sections": true, |
| 141 |
"sideBar": true, |
| 142 |
"skip_h1_title": false, |
| 143 |
"title_cell": "Table of Contents", |
| 144 |
"title_sidebar": "Contents", |
| 145 |
"toc_cell": false, |
| 146 |
"toc_position": {}, |
| 147 |
"toc_section_display": "block", |
| 148 |
"toc_window_display": false |
| 149 |
}, |
| 150 |
"vscode": { |
| 151 |
"interpreter": { |
| 152 |
"hash": "6e9ab46c0308d25f8ecf2297d605bcf30c0184a06f23fc8ad30aef47f26c08c0" |
| 153 |
} |
| 154 |
} |
| 155 |
}, |
| 156 |
"nbformat": 4, |
| 157 |
"nbformat_minor": 1 |
| 158 |
} |