Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort Unicode: Materials #433

Merged
merged 6 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions python-sort-unicode-strings/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# How to Sort Unicode Strings Alphabetically in Python

This folder contains sample code for the Real Python tutorial [How to Sort Unicode Strings Alphabetically in Python](https://realpython.com/python-sort-unicode-strings/).

## Usage

You can either open the HTML file with the rendered Jupyter notebook or use a Jupyter server to view and interact with the notebook directly.

## Installation

Create and activate a new virtual environment:

```shell
$ python3 -m venv venv/
$ source venv/bin/activate
```

Install the necessary requirements into your virtual environment:

```shell
(venv) $ python -m pip install -r requirements.txt
```

In case of problems, you can try installing these dependencies manually:

- [JupyterLab](https://pypi.org/project/jupyterlab/)
- [natsort](https://pypi.org/project/natsort/)
- [PyICU](https://pypi.org/project/PyICU/)
- [pyuca](https://pypi.org/project/pyuca/)
- [Unidecode](https://pypi.org/project/Unidecode/)

**Note:** PyICU requires a C++ compiler and a few third-party libraries to install correctly. Check the official [README](https://gitlab.pyicu.org/main/pyicu/-/blob/48f4f527a344787346e8c10c68859679435e0cb4/README.md) file for more details if needed.

Open the notebook in Jupyter Lab:

```shell
(venv) python -m jupyter lab python-sort-unicode-strings.ipynb
```
Loading
Loading