Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen


Info
titleExplanation

IDE stands for Integrated Development Environment

IDE is additional feature of BellaDati IoT and Advanced Analytic framework making possible script editing.

Pylint is a module of Python. It is a Python source code analyzer which looks for programming errors, helps enforcing a coding standard and sniffs for some code smells 

Pyflakes is a module of Python. Is is a simple program which checks Python source files for errors.

Pyflakes analyzes programs and detects various errors. It works by parsing the source file, not importing it, so it is safe to use on modules with side effects. It’s also much faster.

Introduction 

This  page describes  how to set up and use this power tool for programmers, code editors;

The description includes

  • settings in ML and IDE
  • analyzing code(scripts)
  • running ML scripts in IDE environment


Prerequisite

  • BellaDati license makes possible ( is valid)  for ML ( machine learning) and IDE ( integrated development environment).
  • The server with BelladDati running is equipped with  Python 3.8.12 ( and higher) and components like pip, pylint, pyflakes ... and additional modules required for edited scripts.
  • There is a project in ML (Machine Learning) where a python script is used. ( See added screenshots too.)


Tip

see also pages describing Machine learning, using Python and Python installing 



Setting paths in ML and IDE

How to setup path to Python, Pylint, Pyflakes in Machine Learning


Click on left side icon ⚙ 

insert paths to ML Studio Setting window

Image Modified

Tip
titlePaths

Linux server commands like   which python,  which pylint , which pyflakes  etc...   search - locate the path(s)  expected in setting window ( see also Python installation page)



How to Setup path  in IDE :


Click on left side icon ⚙ 

 insert paths where python, pylint and(or) pyflakes located to IDE Studio Setting window


Image Modified

Note

IDE Studio Settings window makes possible additional options allowing editor options and editor output options ; there are pylint and pyflakes options. Pyflakes is preffered when path inserted i.e.

Pyflakes config - if set is used instead of Pylint.




A script analyzing in IDE ( Integrated Development Environment)


click on the script name

and  checking starts


Note
titletip

After clicking on the script name the script is analyzed by pylint or pyflakes. 

Wait a while - time to finish depends  on which of pylint/pyflakes is used.

The icons for errors or warning  appear later .


The tool - editor shows errors occurring in edited code (script)  - fatal errors ( code will not run), warnings and syntax errors are visible.

Clicking on error indicating icons like  (error) ,  (warning)  causes  an explanation text emerges. 

Some of errors are editable directly some of them indicate e.g. call for additional python modules installation or indicate some missing definition.  




Image Modified



Running ML scripts in IDE


The IDE environment makes possible to run analyzed / edited code directly


  • Select  Machine Learning,
  • select script ML_Script (base code)
  • click on Run 

Image Modified


'Run Project' window appears...


Image Modified



Click on Run project window's Run button

process will start

wait a while ....project is being executed


Image Modified

Image Modified


and finally results are visible .

IDE makes possible to manipulate them


Image Added

Sv translation
languageja


Info
titleExplanation

IDEはIntegrated Development Environment(統合開発環境)の略です。

IDEは、BellaDati IoT and Advanced Analyticフレームワークの追加機能で、スクリプトの編集を可能にするものです。

Pylintは、Pythonのモジュールの一つです。Pythonのソースコードアナライザで、プログラミングエラーの検出、コーディングスタンダードの適用、コードの誤り検出を行います。 

PPyflakesは、Pythonのモジュールです。Pythonのソースファイルにエラーがないかをチェックするシンプルなプログラムです。

Pyflakesはプログラムを解析し、さまざまなエラーを検出します。ソースファイルをインポートするのではなく、解析することで動作するので、副作用のあるモジュールに使っても安全です。また、より高速に動作します。

はじめに

このページでは、プログラマーのためのパワーツール、コードエディタのセットアップと使用方法について説明します;

  • MLやIDEでの設定
  • コード(スクリプト)の解析
  • IDE環境でのMLスクリプトの実行


前提条件

  • BellaDatiのライセンスは、ML(機械学習)やIDE(統合開発環境)を可能にする(有効である)ものです。
  • BelladDatiが動作するサーバーには、Python 3.8.12 ( 以上 ) と pip, pylint, pyflakes ... などのコンポーネント、編集したスクリプトに必要な追加モジュールが搭載されています。
  • ML(機械学習)のプロジェクトで、Pythonスクリプトが使われているものがあります。( 追加されたスクリーンショットもご覧ください。)


Tip

機械学習、Pythonの使い方、Pythonのインストールについては、こちらのページをご覧ください。 



MLやIDEでのパスの設定

機械学習におけるPython, Pylint, Pyflakesへのパスの設定方法


左側のアイコンをクリックします ⚙ 

ML Studio Settingウィンドウへのパスの挿入します

Image Added

Tip
titlePaths

どのPython、どのPylint、どのPyflakesなどのLinuxサーバコマンド 検索 - 設定ウィンドウで期待されるパスを検索します( Pythonインストールページも参照)



IDEでのパスの設定方法 :


左側のアイコンをクリックします ⚙ 

 iIDE Studio Settingウィンドウにpython, pylint, (or) pyflakesがあるパスを挿入します。


Image Added

Note

IDE Studioの設定ウィンドウでは、エディタオプションとエディタ出力オプションの追加オプションが可能です。パスが挿入されている場合、Pyflakesが優先されます。

Pyflakes config - 設定されている場合、Pylintの代わりに使用されます




IDE(統合開発環境)上で解析するスクリプト


スクリプト名をクリックします

チェックが始まります


Note
titletip

スクリプト名をクリックすると、スクリプトがpylintまたはpyflakesによって解析されます。 

終了までの時間は、pylint/pyflakesのどちらを使うかによって異なります。

エラーや警告のアイコンは後で表示されます。


編集したコード(スクリプト)に発生したエラーを表示するツールです。致命的なエラー(コードが実行されない)、警告、シンタックスエラーが表示されます。

このようなエラーを示すアイコンをクリックすると  (error) ,  (warning)  説明文が表示されます。 

エラーの中には、直接編集できるものや、Pythonモジュールの追加インストールを要求しているもの、定義が抜けているものなどがあります。  




Image Added



IDEでのMLスクリプトの実行


IDE環境では、解析・編集したコードを直接実行することができます。


  • 機械学習を選択します
  • ML_Script(ベースコード)を選択します
  • 実行をクリック します 

Image Added


'プロジェクトの実行'ウィンドウが表示されます...


Image Added



プロジェクトウィンドウの「実行」ボタンをクリックします

プロセスが開始されます

しばらくお待ちください ...... 実行中です


Image Added

Image Added


そして最後に結果が表示されます。

IDEで操作が可能です。


Image Modified