Jupyter Notebooks

Meterian can process Jupyter Notebooks that contain Python code. The only requirement, assuming your license has the feature enabled, is to add the parameter --process-notebooks to the client invocation when running it. We also recommend the use of the dockerized client as it contains all the necessary tools. If not, you may need to install extra packages in the Python environment.

An example of run against the nyc_taxi notebook:

$ meterian-docker --process-notebooks --project-url=nyc_taxi
© 2017-2020 Meterian Ltd - dockerized version 1.3.27.515
Meterian Client v1.2.13, build 2960a89-519
All rights reserved
System information:
- running locally: yes
- interactive mode: off
- working on folder: /workspace
- autofix mode: off
Checking folder...
Folder /workspace contains a viable project!
Authorizing the client...
Client successfully authorized
Account: "Meterian Team Account"
- Minimum scores:
- security: 90
- stability: 90
- licensing: 90
- Analysis scopes:
- security: packaged components
- stability: all components
- licensing: all components
Loading build status...
No build running found!
Requesting build...
Build allowed
Project information:
- url: nyc_taxi
- branch: head
- commit: n/a
Python scan - running pipenv 2020.11.15 locally...
- python: Now processing 1 notebooks with jupyter 6.2.0 and pipreqs:0.4.10...
- python: Processing notebook nyc_taxi - collecting dependencies...
- python: Processing notebook nyc_taxi - locking dependencies...
- python: loading dependencies from lockfile...
- python: python dependencies generated.
Execution successful!
Uploading dependencies information - 41 found...
Done!
Starting build...
Current build status: in preparation
Current build status: process advices at 2021-04-12T15:15:45.099
Current build status: process advices at 2021-04-12T15:15:48.075
Current build status: process advices at 2021-04-12T15:15:49.182
Final results:
- security: 100 (minimum: 90)
- stability: 98 (minimum: 90)
- licensing: 99 (minimum: 90)
Full report available at:
https://www.meterian.com/projects/?pid=c9064bda-a78d-489a-88cc-2caff61d2f15&branch=head&mode=eli
Build successful!

Please note that the processing of Jupyter Notebooks can be slower than normal analysis, as it involves further steps in comparison to a standard analysis. .