A package to convert UR FIDS jupyter notebooks
Project description
URNC
UR FIDS notebook converter
Installation
pip install urnc
Or update from an older version
pip install urnc --upgrade
Usage for a course
This assumes your working directory is somewhere in a course directory
cd my_urnc_course
Check the current course version
urnc version
Edit the course files.
See how the course will look for a student by converting your notebook files
urnc convert . ./student
This will create a copy of all notebook files in the folder student and convert them to the student version.
You can check the output with jupyter. e.g
cd student
jupyter-lab
Once you are happy with your changes commit them. Make sure to delete the student folder again or add it to .gitignore.
In the clean repo use urnc to create a version commit.
urnc version patch
git push --follow-tags
The --follow-tags option is only required if git does not push tags by default.
We recommend configuring git to push tags automatically
git config --global push.followTags true
The version is a semver. You can also run
urnc version minor
urnc version major
This will trigger the ci pipeline of the repo and create a student branch.
Contribution
First check that you have the lateste version of this repo
git pull
urnc version --self
If you want to make changes to urnc update the python files in urnc and commit the changes.
Afterwards use
urnc version --self patch
# or urnc version --self minor
# or urnc version --self major
git push --follow-tags
To create a tagged commit and trigger the Githup actions.
The --follow-tags option is only required if git does not push tags by default.
We recommend configuring git to push tags automatically
git config --global push.followTags true
Project details
Release history Release notifications | RSS feed
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 urnc-1.0.1.tar.gz.
File metadata
- Download URL: urnc-1.0.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8896b7aac176f22a67e2d5dcfaefe5047d5e3e04d7376e8c6042c2ebac59a214
|
|
| MD5 |
78fd27516fd5df497a582bc8545e6cd7
|
|
| BLAKE2b-256 |
8cca50a2a0b11698b73c3f6cffb42699c6564382e5b18a0396e640b6f6fdf6f5
|
File details
Details for the file urnc-1.0.1-py3-none-any.whl.
File metadata
- Download URL: urnc-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
050faf1fef9fba474af6fd8acb05a8b433d7decd8d9300e0d0acec81d1c93ad5
|
|
| MD5 |
7fa2f72ba5c36da5a6446c2e2459faba
|
|
| BLAKE2b-256 |
58466a85bb80f8099eaa8aa1cfb730d3d71ea646df55a63eebdb3f74571eb99d
|