<commit_before>ipython-notebook-launcher
=========================

Launch multiple notebook instances for different users based on email addresses.

To create or launch a notebook for each email address found in a file emails.txt (one per line):
```bash
python3 launch-notebook.py init-all-users --emails-file emails.txt --notebooks-dir /path/to/notebooks
```
By default the first port starts at 9005 without retries, so if the port is busy the notebook is not launched. If the notebook profile is created then the password is set to a random value of 4 chars and emailed to the user if you select to.

To create or launch a notebook for a single user:
```bash
python3 launch-notebook.py init-user -e <EMAIL> -p 9005 --notebooks-dir /path/to/notebooks
```
If the notebook profile does not exist then it will be created with a random password to be emailed to the user.

To create or launch a notebook for a single user with a custom password:
```bash
python3 launch-notebook.py init-user -e <EMAIL> -p 9005 -pwd PASSWORD --notebooks-dir /path/to/notebooks
```
To stop all notebooks launched with this script use:
```bash
python3 launch-notebook.py --stop-all
```
The previous just stops the processes and does not remove profiles or notebooks data from disk.
<commit_msg>additional info for lauch-all command<commit_after>ipython-notebook-launcher
=========================

Launch multiple notebook instances for different users based on email addresses.

To create or launch a notebook for each email address found in a file emails.txt (one per line):
```bash
python3 launch-notebook.py init-all-users --emails-file emails.txt --notebooks-dir /path/to/notebooks
```
By default the first port starts at 9005 without retries, so if the port is busy the notebook is not launched. If the notebook profile is created then the password is set to a random value of 4 chars and emailed to the user if you select to.

To create or launch a notebook for a single user:
```bash
python3 launch-notebook.py init-user -e <EMAIL> -p 9005 --notebooks-dir /path/to/notebooks
```
If the notebook profile does not exist then it will be created with a random password to be emailed to the user.

To create or launch a notebook for a single user with a custom password:
```bash
python3 launch-notebook.py init-user -e <EMAIL> -p 9005 -pwd PASSWORD --notebooks-dir /path/to/notebooks
```
To stop all notebooks launched with this script use:
```bash
python3 launch-notebook.py --stop-all
```
The previous just stops the processes and does not remove profiles or notebooks data from disk.

To launch all existent notebooks from the output file email\_ports.dat
```bash
python3 launch-notebook.py launch-all --notebooks-dir /path/to/notebooks
```

{'fraction_non_alphanumeric': 0.08954128440366972, 'fraction_numerical': 0.012844036697247707, 'mean_word_length': 4.252408477842004, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6731912', 'n_tokens_mistral': 805, 'n_tokens_neox': 744, 'n_words': 386}