Meterian
Search…
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. If you are running on a CI/CD platform, please use see the specific instructions.
An example of run against the nyc_taxi notebook:
1
$ meterian-docker --process-notebooks --project-url=nyc_taxi
2
3
© 2017-2020 Meterian Ltd - dockerized version 1.3.27.515
4
Meterian Client v1.2.13, build 2960a89-519
5
All rights reserved
6
7
System information:
8
- running locally: yes
9
- interactive mode: off
10
- working on folder: /workspace
11
- autofix mode: off
12
13
Checking folder...
14
Folder /workspace contains a viable project!
15
16
Authorizing the client...
17
Client successfully authorized
18
19
Account: "Meterian Team Account"
20
- Minimum scores:
21
- security: 90
22
- stability: 90
23
- licensing: 90
24
- Analysis scopes:
25
- security: packaged components
26
- stability: all components
27
- licensing: all components
28
29
Loading build status...
30
No build running found!
31
32
Requesting build...
33
Build allowed
34
35
Project information:
36
- url: nyc_taxi
37
- branch: head
38
- commit: n/a
39
40
Python scan - running pipenv 2020.11.15 locally...
41
- python: Now processing 1 notebooks with jupyter 6.2.0 and pipreqs:0.4.10...
42
- python: Processing notebook nyc_taxi - collecting dependencies...
43
- python: Processing notebook nyc_taxi - locking dependencies...
44
- python: loading dependencies from lockfile...
45
- python: python dependencies generated.
46
Execution successful!
47
48
Uploading dependencies information - 41 found...
49
Done!
50
51
Starting build...
52
Current build status: in preparation
53
Current build status: process advices at 2021-04-12T15:15:45.099
54
Current build status: process advices at 2021-04-12T15:15:48.075
55
Current build status: process advices at 2021-04-12T15:15:49.182
56
57
Final results:
58
- security: 100 (minimum: 90)
59
- stability: 98 (minimum: 90)
60
- licensing: 99 (minimum: 90)
61
62
Full report available at:
63
https://www.meterian.com/projects/?pid=c9064bda-a78d-489a-88cc-2caff61d2f15&branch=head&mode=eli
64
65
Build successful!
66
Copied!
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.
Last modified 3mo ago
Copy link