-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better document the workarounds on Apple Silicon (#59)
The info box is more prominently placed towards the top of the "Installation" page now. It is still on the "Releases" page in its usual spot. The workaround details are more in-depth now and contain an actual code sample. To not clutter the page, the details are inside a collapsable area which is collapsed by default. Since we have the same information in two places, I factored it out into a React component. --------- Co-authored-by: Michael Haubenschild <[email protected]>
- Loading branch information
1 parent
03c1245
commit b03d33a
Showing
3 changed files
with
54 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react'; | ||
import Admonition from '@theme/Admonition'; | ||
|
||
export function AppleSiliconWorkarounds() { | ||
return ( | ||
<Admonition type="info" title="Apple Silicon Support"> | ||
If you are on Apple Silicon (Apple M1, Apple M2, ...), you will currently need workarounds, as described below. | ||
|
||
<details> | ||
<summary style={{fontWeight: "bold", margin: ".8em .5em"}}>Apple Silicon Workarounds</summary> | ||
<div style={{marginLeft: "1.4em"}}> | ||
<p> | ||
Hyper API runs on Apple Silicon only with [Rosetta 2](https://support.apple.com/en-us/HT211861) | ||
instead of natively. You will have to install Rosetta 2 before installing Hyper API. | ||
</p> | ||
<p> | ||
Furthermore, this means that Hyper API can only be used from within other x86 programs, running | ||
under Rosetta. In particular for Python and Java, this means that the Python interpreter/Java | ||
runtime needs to run with Rosetta, too. | ||
</p> | ||
<p> | ||
To do so, either install the Intel-only version of the Python/Java interpreter, or prefix your | ||
call with <code>arch -x86_64</code>. E.g., for Python, you can use: | ||
</p> | ||
<pre> | ||
arch -x86_64 /usr/bin/python3 -m pip install tableauhyperapi | ||
<br /> | ||
arch -x86_64 /usr/bin/python3 your_script.py | ||
</pre> | ||
</div> | ||
</details> | ||
</Admonition> | ||
); | ||
} |