Skip to content

Commit d7b1eac

Browse files
authored
Update README.md
1 parent cf03aa6 commit d7b1eac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,13 @@ brew install freetype
7575
If the above method doesn't work you can also build and install freetype on your own. You can find the source code and build instructions [here](https://www.freetype.org/download.html).
7676

7777
## How to include the library in your Jupyter Notebook
78-
<b>Currently this is broken for the latest release. It will be fixed in the future.</b></br>
79-
Add this line to the first cell:
78+
79+
Add these lines to the first cell:
8080
```swift
81+
%install-swiftpm-flags -Xcc -isystem/usr/include/freetype2 -Xswiftc -lfreetype
8182
%install '.package(url: "https://github.com/KarthikRIyer/swiftplot", from: "0.0.1")' SwiftPlot
8283
```
83-
In order to display the generated plot in the notebook, add this line:
84+
In order to display the generated plot in the notebook, add this line to a new cell:
8485
```swift
8586
%include "EnableJupyterDisplay.swift"
8687
```
@@ -456,7 +457,6 @@ In order to display the plots in Jupyter notebook, we encode the image(which is
456457

457458
## Limitations
458459
- FloatConvertible supports only Float and Double. We plan to extend this to Int in the future.
459-
- The latest release doesn't work with Jupyter. This is because we use FreeType to draw text and the system isn't able to find the FreeType install when building in Jupyter.
460460

461461
## Credits
462462
1. Maxim Shemanarev : The AGG library is directly used to render plots.

0 commit comments

Comments
 (0)