{"id":28712438,"url":"https://github.com/polusai/sos-xeus-cling","last_synced_at":"2025-06-14T23:05:51.536Z","repository":{"id":101925529,"uuid":"167575449","full_name":"PolusAI/sos-xeus-cling","owner":"PolusAI","description":"SoS extension for C++","archived":false,"fork":false,"pushed_at":"2020-01-29T21:53:37.000Z","size":36,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-14T02:55:36.979Z","etag":null,"topics":["cpp14","jupyter-notebook","sos"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PolusAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2019-01-25T16:10:42.000Z","updated_at":"2022-10-28T17:45:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"de04d991-9f6e-44cc-8460-ca99e0493bf4","html_url":"https://github.com/PolusAI/sos-xeus-cling","commit_stats":null,"previous_names":["labshare/sos-xeus-cling"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PolusAI/sos-xeus-cling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolusAI%2Fsos-xeus-cling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolusAI%2Fsos-xeus-cling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolusAI%2Fsos-xeus-cling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolusAI%2Fsos-xeus-cling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PolusAI","download_url":"https://codeload.github.com/PolusAI/sos-xeus-cling/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolusAI%2Fsos-xeus-cling/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259896237,"owners_count":22928331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp14","jupyter-notebook","sos"],"created_at":"2025-06-14T23:05:50.097Z","updated_at":"2025-06-14T23:05:51.514Z","avatar_url":"https://github.com/PolusAI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/LabShare/sos-xeus-cling.svg?branch=master)](https://travis-ci.com/LabShare/sos-xeus-cling)\n[![PyPI version](https://badge.fury.io/py/sos-xeus-cling.svg)](https://badge.fury.io/py/sos-xeus-cling)\n\n# sos-xeus-cling\n## SoS extension for C++. Developed independently from original SoS team. Please refer to [SoS Homepage](http://vatlab.github.io/SoS/) for details.\n\nThis language extension to SoS allows to use C++ with xeus-cling Jupyter kernel (https://github.com/QuantStack/xeus-cling) and exchange variables with other languages in Polyglot environment\n\n### Dependencies\n\n* gcc \n`apt-get update; apt-get install gcc`\n* xeus-cling\n`conda install xeus-cling xwidgets notebook xtensor xtl xframe -c conda-forge/label/gcc7`\n* sos-notebook `pip install sos-notebook --upgrade; python -m sos_notebook.install`\n\n### Install\n`pip install sos-xeus-cling`\n\n### Supported variable types for transfer\n\n#### From SoS to C++ (`%get` magic):\n\nScalar types\n\n| Source: SoS (Python) type                                                       | Destination: C++ type                  |\n|---------------------------------------------------------------------------------|----------------------------------------|\n| `int` `long int` `np.intc` `np.intp` `np.int8` `np.int16` `np.int32` `np.int64` | `int` `long int` (depending on value)  |\n| `float` `np.float16` `np.float32` `np.float64`                                  | `float` `double`  (depending on value) |\n| `np.longdouble`                                                                 | `long double`                          |\n| `str`                                                                           | `std::string`                          |\n| `bool`                                                                          | `bool`                                 |\n\nNon-scalar types\n\n| Source: SoS (Python) type                             | Destination: C++ type          |\n|-------------------------------------------------------|--------------------------------|\n| `dict` (only homogeneous keys and values)             | `std::map\u003ckey_type, val_type\u003e` |\n| Sequence (`list`, `tuple`; only homogeneous elements) | `std::vector\u003ctype\u003e`            |\n| `numpy.ndarray`                                       | [Xtensor](https://github.com/QuantStack/xtensor) `xt::xarray`           |\n| `pandas.DataFrame`                                    | [Xframe](https://github.com/QuantStack/xframe)                         |\n|                                                       |                                |\n\n#### From C++ to SoS (`%put` magic):\n\nScalar types\n\n| Source: C++ type                             | Destination: SoS (Python) type |\n|----------------------------------------------|--------------------------------|\n| `int` `short int` `long int` `long long int` | `int`                          |\n| `float` `double`                             | `float`                        |\n| `long double`                                | `np.longdouble`                |\n| `char`                                       | `str`                          |\n| `bool`                                       | `bool`                         |\n\nNon-scalar types\n\n| Source: C++ type | Destination: SoS (Python) type |\n|------------------|--------------------------------|\n| `std::map`     | `dict`                         |\n| `std::vector`  | `numpy.ndarray`                |\n| Xtensor          | `numpy.ndarray`                |\n| Xframe         | `pandas.DataFrame`             |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolusai%2Fsos-xeus-cling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolusai%2Fsos-xeus-cling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolusai%2Fsos-xeus-cling/lists"}