Skip to main content

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.12 option to uv 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 uv and click Next or press enter ![[jupyter-shortcut-2.png]]
  • Give it a name of you liking and click Finish or press enter ![[jupyter-shortcut-3.png]]
  • right click on the shortcut and select Properties ![[jupyter-shortcut-4.png]]
  • in Target, add run jupyter-lab at 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 add command (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 swsengineering group. you need to set the UV_INDEX_URL environment 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 type completion
  • Under one of the Code Completion sections select Enable autocompletion and in the other select Continuous 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

pyfiberc-0.0.8.tar.gz (128.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfiberc-0.0.8-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

Details for the file pyfiberc-0.0.8.tar.gz.

File metadata

  • Download URL: pyfiberc-0.0.8.tar.gz
  • Upload date:
  • Size: 128.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pyfiberc-0.0.8.tar.gz
Algorithm Hash digest
SHA256 9b9900f98e1a8bc28bc6a55d311fa3cc7096de966a88e687875428c1cd09e1e6
MD5 14d47fa50a58cd1cfd6365939d5705c1
BLAKE2b-256 4604bf75b2e872488c5cedce1774d651ebfb5783869dcd0e00b029ce79516a94

See more details on using hashes here.

File details

Details for the file pyfiberc-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: pyfiberc-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 43.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pyfiberc-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 740ed5bf97e4e0006f4485d26ba3890115ea164eacd857553492cf378e9eba19
MD5 492e394de4b4774d9eb83057eb8221e8
BLAKE2b-256 3dba2999a4d8e1d90412fba0ec1323e6300bd25908f82852deaaf84a9ab78b69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page