Skip to content

Commit 609d310

Browse files
[GR-66542] Reorder compatibility page content
PullRequest: graalpython/3867
2 parents be8b417 + 720d2f6 commit 609d310

File tree

2 files changed

+57
-84
lines changed

2 files changed

+57
-84
lines changed

docs/site/03-compatibility.md

Lines changed: 47 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ permalink: compatibility/
66

77
<style>
88
img.pylogo {
9-
width: 80px;
10-
height: 80px;
9+
width: 56px;
10+
height: 56px;
1111
}
1212

1313
.langbenefits__icon_pylogo {
@@ -440,45 +440,17 @@ img.pylogo {
440440
<div class="wrapper">
441441
<div>
442442
<div class="container">
443-
<h3 class="truffle__subtitle">GraalPy: Package Compatibility</h3>
444-
445-
GraalPy is compatible with many packages for Data Science and Machine Learning, including the popular PyTorch, NumPy, and Huggingface Transformers.
446-
To try a package, pick any version and only if you run into problems, consult our table below to see if there is a version that may work better.
447-
448-
<div class="compatibility_page-filter">
449-
<div class="compatibility__row">
450-
<p class="compatibility_page-item compatibility_page-module compatibility_page-active" data-filter="v242">GraalPy 24.2</p>
451-
<p class="compatibility_page-item compatibility_page-module" data-filter="v241">GraalPy 24.1</p>
452-
</div>
453-
</div>
443+
<h3 class="truffle__subtitle">Package Compatibility</h3>
444+
<p class="truffle__subtitle">GraalPy is compatible with many packages for data science and machine learning, including the popular PyTorch, NumPy, and Huggingface Transformers.</p>
454445
</div>
455446
</div>
456447
</div>
457448
</section>
458-
<!-- <section class="content-section download-homescreen">
459-
<div class="wrapper">
460-
<div>
461-
<div class="container">
462-
<h3 class="truffle__subtitle">Download GraalPy from Maven Central</h3>
463-
<div>
464-
<h5 class="download-text">
465-
Have a Java application?
466-
</h5>
467-
<h5 class="download-text">
468-
You can extend it with Python code or leverage packages from the Python ecosystem. GraalPy is available on <a href="https://central.sonatype.com/artifact/org.graalvm.polyglot/python" target="_blank">Maven Central</a> and can be added as a dependency to your Maven or Gradle project as — see <a href="#" target="_blank">setup instructions</a>.
469-
</h5>
470-
</div>
471-
</div>
472-
</div>
473-
</div>
474-
</section> -->
475449
<!-- Benefits -->
476-
477450
<section class="content-section">
478451
<div class="wrapper">
479452
<div class="langbenefits">
480453
<div class="container">
481-
<h3 class="langpage__title-02"></h3>
482454
<div class="langbenefits__row">
483455
<div class="langbenefits__card">
484456
<div class="langbenefits__icon langbenefits__icon_pylogo">
@@ -553,66 +525,57 @@ You can extend it with Python code or leverage packages from the Python ecosyste
553525
</div>
554526
</div>
555527
</section>
556-
<section class="content-section">
557-
<div class="wrapper">
558-
<div class="compatibility">
559-
<div class="container">
560-
<h5 class="compatibility-text">To ensure GraalPy is compatible with common Python packages,
561-
the GraalPy team conducts compatibility testing and creates scripts to build and patch many
562-
of the top packages on PyPI plus some more that are of special interest to us, including
563-
libraries and frameworks such as NumPy, Pandas, and Django.</h5>
564-
<h5 class="compatibility-text">Compatibility testing ensures that
565-
developers can leverage GraalPy's powerful capabilities in their existing applications.
566-
It also enables developers to use GraalPy to create more efficient and productive applications in the areas of
567-
machine learning, data analysis, and web development using their familiar Python
568-
toolsets.</h5>
569-
<h5 class="compatibility-text">Many more Python packages than are on this list work on GraalPy.
570-
If there is a package you are interested in that you cannot find here, chances are that it
571-
might just work. If it does not, please reach out to us on <a href="https://github.com/oracle/graalpython/issues" target="_blank">GitHub</a></h5>
572-
</div>
573-
</div>
574-
</div>
575-
</section>
528+
576529
<section class="boxes">
577530
<div class="wrapper">
578-
<div class="compatibility">
579-
<div class="container compatibility_page-box v231 all">
580-
<div class="compatibility__mid">
581-
<div class="container">
582-
<div class="compatibility__chart">
583-
<div class="compatibility__chart-row">
584-
<div class="chart" id="pie-chart">
585-
</div>
586-
<div class="legend">
587-
<div>
588-
<div class="legend-item legend-item-1"
589-
title="More than 90% of the package's tests run successfully on GraalPy">Compatible: <span id="compatibility-stats-compatible">loading...</span><sup class="info-tooltip"></sup></div>
590-
<div class="legend-item legend-item-2"
591-
title="The package either does not install on GraalPy or is not currently tested">
592-
Currently Untested: <span id="compatibility-stats-untested">loading...</span><sup class="info-tooltip"></sup></div>
593-
</div>
594-
<div>
595-
<div class="legend-item legend-item-3"
596-
title="Fewer than 90% of the package's tests run successfully on GraalPy">Currently
597-
Incompatible: <span id="compatibility-stats-incompatible">loading...</span><sup class="info-tooltip"></sup></div>
598-
<div class="legend-item legend-item-4"
599-
title="We have no plans to test the package">Not
600-
Supported: <span id="compatibility-stats-not-supported">loading...</span><sup class="info-tooltip"></sup></div>
601-
</div>
602-
</div>
603-
</div>
604-
</div>
605-
</div>
606-
</div>
607-
</div>
608-
</div>
531+
<div class="container compatibility_page-box v231 all">
532+
<div class="compatibility__mid">
533+
<div class="container">
534+
<h3 id="compattable-container" class="langpage__title-02">Compatibility per GraalPy Release</h3>
535+
<div class="compatibility_page-filter">
536+
<div class="compatibility__row">
537+
<p class="compatibility_page-item compatibility_page-module compatibility_page-active" data-filter="v242">GraalPy 24.2</p>
538+
<p class="compatibility_page-item compatibility_page-module" data-filter="v241">GraalPy 24.1</p>
539+
</div>
540+
</div>
541+
<div class="compatibility__chart">
542+
<h4 class="comp__chart-title">Over 600 Python packages tested for compatibility with GraalPy</h4>
543+
<div class="compatibility__chart-row">
544+
<div class="chart" id="pie-chart">
545+
</div>
546+
<div class="legend">
547+
<div>
548+
<div class="legend-item legend-item-1"
549+
title="More than 90% of the package's tests run successfully on GraalPy">Compatible: <span id="compatibility-stats-compatible">loading...</span><sup class="info-tooltip"></sup></div>
550+
<div class="legend-item legend-item-2"
551+
title="The package either does not install on GraalPy or is not currently tested">
552+
Currently Untested: <span id="compatibility-stats-untested">loading...</span><sup class="info-tooltip"></sup></div>
553+
</div>
554+
<div>
555+
<div class="legend-item legend-item-3"
556+
title="Fewer than 90% of the package's tests run successfully on GraalPy">Currently
557+
Incompatible: <span id="compatibility-stats-incompatible">loading...</span><sup class="info-tooltip"></sup></div>
558+
<div class="legend-item legend-item-4"
559+
title="We have no plans to test the package">Not
560+
Supported: <span id="compatibility-stats-not-supported">loading...</span><sup class="info-tooltip"></sup></div>
561+
</div>
562+
</div>
563+
</div>
564+
</div>
565+
</div>
566+
</div>
567+
</div>
609568
</div>
610569
</section>
570+
611571
<section class="content-section module-table">
612572
<div class="wrapper">
613573
<div class="compatibility">
614574
<div class="container">
615-
<h3 id="compattable-container" class="langpage__title-02">Python Packages</h3>
575+
<div class="comp-info">
576+
<img class="info-icon" src='{{ "/assets/img/python/info-icon.svg" | relative_url }}' alt="info icon">
577+
<h5 class="compatibility-text">Many more Python packages work on GraalPy than are listed here. If there is a package you are interested in that is not included, chances are that it might just work. If it does not, feel free to create an issue for us on <a href="https://github.com/oracle/graalpython/issues" target="_blank">GitHub</a>.</h5>
578+
</div>
616579
<div class="package__row">
617580
<div class="package__search">
618581
<input type="text" id="compatibility_page__search-field" placeholder="Comma-separated list of packages">
Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)