Skip to content

moosetechnology/FamixJupyterNotebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Famix notebook model

Usage :

Generate metamodel :

FamixNotebookgenerator generate

"Example :"
codeCell := FamixNotebookcodeCell new id: 1; yourself.
codeCell addEntity: (FamixPythonMethod new).
codeCell addEntity: (FamixPythonGlobalVariable new name: 'maVar'; yourself ).
mdCell := FamixNotebooktextCell new isMarkdown: true; content: '#Test'; yourself. 

Create a model from a file :

file := '/Users/mignard/Documents/work/mooseDemo/tmp/Split_with_train_override.ipynb' asFileReference.
NotebookJsonReader new readFrom: file.

Export metamodel to plantUML :

documentor := FamixUMLDocumentor new.
documentor
    model: FamixNotebookEntity ;
    generate.
FamixUMLPlantUMLBackend new export: documentor umlEntities.

About

Notebook metamodel generator and importer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published