fibred rc sections tool
Project description
1. Setup Python and JupyterLab
If you're on Windows 11, open the Terminal app; if you're still running Windows 10, open Windows PowerShell.
Install uv with
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Next, make uv to play nice with SYSTRA firewall and point it to download packages from our repository
setx UV_NATIVE_TLS true
Then restart the terminal.
Move to a directory of you liking, then create the jupyterlab python environment with
uv init --python 3.12
uv add jupyterlab jupyter-lsp jupyterlab-lsp python-lsp-server[all]
NOTE: as of today (2025-05-21) ifcopenshell doesn't support versions newer than 3.12, this is why we added
--python 3.12option touv init
verify it is working with
uv run jupyter-lab
NOTE: every time you want to start jupyter lab, you need to be in the same directory! But we can create a shortcut to always start jupyter the right way… Paste the following code in the terminal (you might need to stop jupyterlab to reuse the terminal above)
$workingDir = (Get-Item .).FullName
$shell = New-Object -ComObject WScript.Shell
$shortcut = $shell.CreateShortcut("$env:APPDATA\Microsoft\Windows\Start Menu\Programs\JupyterLab.lnk")
$shortcut.TargetPath = "$env:USERPROFILE\.local\bin\uv.exe"
$shortcut.Arguments = 'run jupyter-lab'
$shortcut.WorkingDirectory = $workingDir
$shortcut.IconLocation = "$workingDir\.venv\Lib\site-packages\jupyter_server\static\favicon.ico"
$shortcut.Save()
[System.Runtime.Interopservices.Marshal]::ReleaseComObject($shell)
If you don't trust the script, here's how to do it manually:
- Right click on your desktop -> New Shortcut ![[jupyter-shortcut-1.png]]
- In the input box, type
uvand clickNextor press enter ![[jupyter-shortcut-2.png]] - Give it a name of you liking and click
Finishor press enter ![[jupyter-shortcut-3.png]] - right click on the shortcut and select
Properties![[jupyter-shortcut-4.png]] - in
Target, addrun jupyter-labat the end of the existing text - in
Start in, paste the full path of the directory you initialized above - If you want, you can change the icon here ![[jupyter-shortcut-5.png]]
2. Installing packages with uv inside jupyter or from PS
To install new packages/libraries, run a cell with the !uv add and the package names, for example:
!uv add pandas openpyxl
these will be installed and also added to the pyproject.toml file, so that you can re-create the python/jupyterlab environment on another computer
TIP: You can also run the
uv addcommand (without the leading!) inside a terminal, provided you're in the directory of the environment
NOTE: you can install packages from the systra repository if you have a gitlab.com account, create a personal access token and ask to be added to the
swsengineeringgroup. you need to set theUV_INDEX_URLenvironment variable:setx UV_INDEX_URL https://__token__:<YOUR_TOKEN_HERE>@gitlab.com/api/v4/groups/9596324/-/packages/pypi/simple
code completion
- go to
Settings->Settings Editor(or press ++ctrl+,++) - in the
Search settings…box typecompletion - Under one of the
Code Completionsections selectEnable autocompletionand in the other selectContinuous hinting
3. Develop configuration
While was cloned repository pyfrc with:
$ git clone https://gitlab.com/luigi_paone/pyfrc.git
Go to jupyter folder created with
$ uv add <where is your pyfrc root folder>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfiberc-0.0.7.tar.gz.
File metadata
- Download URL: pyfiberc-0.0.7.tar.gz
- Upload date:
- Size: 140.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
182042567be46f5a52ae08d4aa926b74dd982f2287349eac4e28caffeac36ca8
|
|
| MD5 |
318f7097d8a5d33fa0155c4adee001f2
|
|
| BLAKE2b-256 |
0e6828bece660e13a60d56e811ca73cdc39d635cdb7e9f801d5d6f1f9d905d8b
|
File details
Details for the file pyfiberc-0.0.7-py3-none-any.whl.
File metadata
- Download URL: pyfiberc-0.0.7-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57b1fa3d074f34c2500df063b1bffbed3f4e3bdb26844c24fb04a58012d92090
|
|
| MD5 |
63efdbe827891c34cd7889b137fcd0ea
|
|
| BLAKE2b-256 |
6ec14453795ca3fcfb32f835974ff0664a788b4fb65ca06217793725451ac7a5
|