semvec/pypi-packages huggingface dataset:
ipynbname 2025.8.0.0
Simply returns either notebook filename or the full path to the notebook when run from Jupyter notebook in browser.
License: MIT
Requires Python: >=3.4
Keywords: jupyter, notebook, filename

# ipynbname

When run in a Jupyter notebook, simply returns the notebook filename or the full path to the notebook.
I created this to help with automating posting blog posts written in Jupyter notebooks directly to
GitHub Pages.

You would think there was already some built-in way to access the current notebook name, but it took many hours
of searching for a way to do it. As it seems many others did, I tried using Javascript, but the async nature of
JS meant that it was unreliable. Finally I stumbled on this [post](https://forums.fast.ai/t/jupyter-notebook-enhancements-tips-and-tricks/17064/39).
I have refactored the code there so a user can get either the name or path, but credit for most of the code
goes to the author of this post, thanks!

## Examples

Get the notebook name:

```python
import ipynbname
nb_fname = ipynbname.name()
```

Get the full path to the notebook:

```python
import ipynbname
nb_path = ipynbname.path()
```
## Limitations

Note that this only reliably works when running a notebook in a browser. So it does not currently work for things like nbconvert or papermill.

For VS Code there is a [workaround](https://github.com/msm1089/ipynbname/issues/17#issuecomment-1293269863).
yaml-to-openstep-plist 0.2.0
A Python library to convert YAML data to OpenStep plist format.
License: MIT
Requires Python: >=3.6

# yaml_to_openstep_plist

A Python library to convert YAML data to OpenStep plist format.

## Installation

Install the library using pip:

```bash
pip install yaml_to_openstep_plist
```

## Usage

The library provides two main functions:

- `to_plist(yaml_data)`: Convert a Python object (parsed from YAML) to an OpenStep plist string.
- `to_yaml_file(yaml_file_path, plist_file_path)`: Convert a YAML file to an OpenStep plist file.

### Example

```python
import yaml_to_openstep_plist

# Convert YAML file to OpenStep plist file
yaml_to_openstep_plist.to_yaml_file("input.yaml", "output.plist")

# Convert YAML data to OpenStep plist string
yaml_data = {
    "surveyLocalizationEnableMapping": {
        "todayAtApple": False,
        "thankYou": False,
        "account": True,
        "theme": "dark",
        "age": 30,
        "score": 95.5,
        "data": None
    }
}
plist_string = yaml_to_openstep_plist.to_plist(yaml_data)
print(plist_string)
```

### Input YAML Example
```yaml
surveyLocalizationEnableMapping:
  todayAtApple: false
  thankYou: false
  account: true
  theme: dark
  age: 30
  score: 95.5
  data: null
```

### Output Plist Example
```
surveyLocalizationEnableMapping = {
  todayAtApple = false;
  thankYou = false;
  account = true;
  theme = "dark";
  age = 30;
  score = 95.5;
  data = {};
};
```

## Features
- Quotes strings on the right side of `=` (e.g., `theme = "dark";`).
- Leaves numbers unquoted (e.g., `age = 30;`).
- Uses `true`/`false` for booleans.
- Outputs `{}` for `null` values.
- Single space after `=` and 1-space indentation.
- Supports nested dictionaries and top-level key-value pair formatting.

## Requirements
- Python 3.6 or higher
- PyYAML (>=5.1)

## License
MIT