Skip to content

Commit

Permalink
[SPARK-45195][FOLLOWUP] Update python example (#478)
Browse files Browse the repository at this point in the history
* init

* address comments

address comments

address comments
  • Loading branch information
zhengruifeng authored Sep 19, 2023
1 parent 6b10f7f commit c578724
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,15 @@ navigation:
<div class="tab-content py-5 spark-install" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-python" role="tabpanel" aria-labelledby="nav-python-tab">
<div class="mb-2 title">Run now</div>
<div style="font-size: 16px;">Install with 'pip' or try offical image
<div style="font-size: 16px;">Install with 'pip'
</div>
<div class="code">
<p>$ pip install pyspark</p>
<p>$ pyspark</p>
<p>$ </p>
</div>
<div style="font-size: 16px;">Use the official Docker image
</div>
<div class="code">
<p>$ docker run -it --rm spark:python3 /opt/spark/bin/pyspark</p>
</div>
<div class="examples mt-5">
Expand Down
7 changes: 5 additions & 2 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,15 @@ <h2>What is Apache Spark<span class="tm" style="bottom: 14px;">&trade;</span>?</
<div class="tab-content py-5 spark-install" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-python" role="tabpanel" aria-labelledby="nav-python-tab">
<div class="mb-2 title">Run now</div>
<div style="font-size: 16px;">Install with 'pip' or try offical image
<div style="font-size: 16px;">Install with 'pip'
</div>
<div class="code">
<p>$ pip install pyspark</p>
<p>$ pyspark</p>
<p>$ </p>
</div>
<div style="font-size: 16px;">Use the official Docker image
</div>
<div class="code">
<p>$ docker run -it --rm spark:python3 /opt/spark/bin/pyspark</p>
</div>
<div class="examples mt-5">
Expand Down

0 comments on commit c578724

Please sign in to comment.