5.2.6: How to Incorporate Data Files in Your Code Blocks- For SageMath
There are a number of ways data files and can be incorporated into code blocks. However, ensure that you have already followed the steps in the introduction to the CKEditor Binder Plugin Tutorial here .
Method 1: Using Libraries
The CKEditor Binder Plugin supports Python which is what SageMath runs on, libraries that are supported by our version of Python may be used to read in the file. An example code block is provided below. To reuse this, simply exchange the provided url with the one attained from your own page.
Here's a quick example of the things you can do using SageMath. Run the cell and your eyes will be blessed by a wonderful fully 3D parametric egg.