Creation and Use of Notebook

Feedback


Create a Notebook

In SuperMap iServer data science service, you can create and run a Notebook by creating or uploading an existing Notebook . If there is input or output in Notebook, before running Notebook, make sure that the input or output data and the file directory where it is located have permissions that all users can read and write.

Create a new Notebook

Open the data science service home page->click My Server and enter Notebook Editor-> under the File function bar, click the new drop-down menu-> select Python 3 under Notebook, as shown in the following figure.

After completing the above steps, you have successfully created a blank Notebook and will immediately jump to the Notebook page, where you can write, run code, and edit information about the project.

Upload Notebook

Open the data science service home page-> click My Server and enter Notebook Editor-> Under the Files function bar, click Upload-> select Notebook in your computer. Through the above operations, you can upload the existing Notebook in your computer. Upload to Notebook Editor.

Introduction to Notebook composition

Here we take the building extraction of the example Notebook as an example to introduce the components of Notebook Editor:

Use Notebook

Use the big data-related demonstration Notebook that comes with SuperMap iServer data science service to show you how to use it:

Running point density clustering example notebook

The notebook(example_aggregate_points.ipynb) provides the ability to perform point density clustering on a point data set.

The notebook can be run by clicking the "Run" button on the toolbar. As shown in the following figure:

After running, you can view the detailed running progress and results, as shown in the following figure. It can be seen that the point density clustering is successful, and the result is an AggregateResult dataset.

Example of cropping with an image dataset Notebook

The notebook(example_clip_raster) provides the ability to clip the image data.

The notebook can be run by clicking the "Run" button on the toolbar. As shown in the following figure:

After running, you can view the detailed running progress and results, as shown in the figure below. The clipping result is a TIFF. format of the image file.

Running the building extraction example Notebook

example_binary_classification_infer_building.ipynb, it provides the ability to extract the bottom of the building based on the DOM image file.

The notebook can be run by clicking the "Run" button on the toolbar.

After running, you can view the detailed running progress and results, as shown in the following figure: