Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for deprecation of Jupyter in Docker #137

Closed
wants to merge 4 commits into from

Conversation

philipturner
Copy link

I simplified the code cell lines, which no longer require manually linking FreeType2. I am having problems with external system dependencies that require passing -I/... and -L/..., so it's good that SwiftPlot now installs those libraries within the package manifest.

I ran the new build lines in your test notebook, linked on Swift-Colab's front page. I recommend that you try doing so by yourself, because the SwiftPM installation process looks so satisfying with Swift-Colab v2.1. The output has text coloring and looks like an actual terminal on macOS. The only downside is apple/swift#58916.

The installation line in the test notebook can now be simplified from:

%install '.package(url: "https://github.com/pvieito/PythonKit.git", .branch("master"))' PythonKit
%install '.package(url: "https://github.com/philipturner/differentiation", .branch("main"))' _Differentiation
%install-swiftpm-flags -Xcc -isystem/usr/include/freetype2 -Xswiftc -lfreetype
%install '.package(url: "https://github.com/KarthikRIyer/swiftplot", .branch("master"))' SwiftPlot AGGRenderer
%include "EnableIPythonDisplay.swift"
import PythonKit
import Differentiation

To:

%install '.package(url: "https://github.com/pvieito/PythonKit.git", .branch("master"))' PythonKit
%install '.package(url: "https://github.com/KarthikRIyer/swiftplot", .branch("master"))' SwiftPlot AGGRenderer
%include "EnableIPythonDisplay.swift"

@philipturner
Copy link
Author

@philipturner philipturner marked this pull request as draft August 10, 2022 17:07
@philipturner
Copy link
Author

Converting to a draft because Swift-Colab has planned support for JupyterLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant