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

Explain how to use ROOT from Python with the Snap package #803

Merged
merged 1 commit into from
Aug 26, 2022
Merged
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
13 changes: 13 additions & 0 deletions install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,19 @@ $ snap run root-framework
$ root # and the output of `which root` should contain `/snap`
```

To use ROOT from Python, the Snap package bundles its own Python 3.8 interpreter
that knows where to find the ROOT libraries. This is done to avoid interference
with other system packages. You should use `pyroot` rather than `python` to make
use of the PyROOT features with the Snap package:
```python
$ pyroot
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>>
```

The Snap package uses C++17. See our [dedicated blog post]({{'/blog/snap-announcement/' | relative_url}}) for more information, or visit the official [ROOT Snap package](https://snapcraft.io/root-framework){:target="\_blank"} page.

## Linux package managers
Expand Down