Skip to content

Commit d200c9d

Browse files
Update README
1 parent ef459fa commit d200c9d

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Scala bindings for [plotly.js](https://plot.ly/javascript/)
1111

1212
*plotly-scala* is a Scala library able to output JSON that can be passed to [plotly.js](https://plot.ly/javascript/). Its classes closely follow the API of plotly.js, so that one can use plotly-scala by following the [documentation](https://plot.ly/javascript/) of plotly.js. These classes can be converted to JSON, that can be fed directly to plotly.js.
1313

14-
It can be used from [jupyter-scala](https://github.com/alexarchambault/jupyter-scala), from scala-js, or from a Scala REPL like [Ammonite](https://github.com/lihaoyi/Ammonite), to plot things straightaway in the browser.
14+
It can be used from [almond](https://github.com/jupyter-scala/jupyter-scala/tree/develop), from scala-js, or from a Scala REPL like [Ammonite](https://github.com/lihaoyi/Ammonite), to plot things straightaway in the browser.
1515

1616
It runs demos of the plotly.js documentation during its tests, to ensure that it is fine with all their features. That allows it to reliably cover a wide range of the plotly.js features - namely, all the examples of the supported sections of the plotly.js documentation are guaranteed to be fine.
1717

@@ -24,18 +24,16 @@ It runs demos of the plotly.js documentation during its tests, to ensure that it
2424

2525
## Quick start
2626

27-
### From jupyter-scala
27+
### From almond
2828

29-
Simply add the `org.plotly-scala::plotly-jupyter-scala:0.4.0` dependency to the notebook, initialize plotly-scala, and use it, like
29+
Simply add the `org.plotly-scala::plotly-almond:0.4.2` dependency to the notebook, initialize plotly-scala, and use it, like
3030
```scala
31-
import $ivy.`org.plotly-scala::plotly-jupyter-scala:0.4.0`
31+
import $ivy.`org.plotly-scala::plotly-almond:0.4.2`
3232

3333
import plotly._
3434
import plotly.element._
3535
import plotly.layout._
36-
import plotly.JupyterScala._
37-
38-
plotly.JupyterScala.init()
36+
import plotly.Almond._
3937

4038
val (x, y) = Seq(
4139
"Banana" -> 10,
@@ -50,7 +48,7 @@ Bar(x, y).plot()
5048

5149
Add the corresponding dependency to your project, like
5250
```scala
53-
libraryDependencies += "org.plotly-scala" %%% "plotly-render" % "0.4.0"
51+
libraryDependencies += "org.plotly-scala" %%% "plotly-render" % "0.4.2"
5452
```
5553

5654
Note that there are no version published for scala 2.10 yet, because of the limitation of case classes to 22 members with it.
@@ -87,7 +85,7 @@ plot.plot(
8785

8886
Load the corresponding dependency, and some imports, like
8987
```scala
90-
import $ivy.`org.plotly-scala::plotly-render:0.4.0`
88+
import $ivy.`org.plotly-scala::plotly-render:0.4.2`
9189
import plotly._, element._, layout._, Plotly._
9290
```
9391

0 commit comments

Comments
 (0)