Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

jupyter app.png

AI and Data Analysis: the Jupyter App

MauroRiboniMX
Contributor
Disclaimer

The goal is to use ctrlX CORE or a ctrlX OS as AI/Data analysis platform and code directly over the device without the necessity to create anytime an application.
Jupyter APP ctrXJupyter APP ctrX

Requirements:
  • ctrlX CORE - x3 or x7 or a ctrlX OS installation
  • Please note: Jupyter app is coming soon - Currently only available as B-Sample
STEP0: install the app

Once installed the Jupyter app will be present on the left sidebar. 

Jupyter SidebarJupyter Sidebar

Once we click on the Jupyter icon the app opens up. We can modify the content of the active directory and upload here our files. 

Jupyter codeJupyter code

 

STEP1: Install and use libraries

To install and use PIP downloadable libraries is very simple! First we need to open a new terminal and decide where to install the libraries. The command we need to run is:

pip3 install LIBRARY -t LOCATION


The library is then downloaded and installed in the chosen directory, it is suggested to use:

  • SNAP_DATA: only for the app.
  • SNAP_COMMON: mantained if the up is updated.
  • SNAP_COMMON/solutions/activeConfiguration/YOURLIBRARYFOLDER (see below to create the folder): it is possible to backup and restore the libraries in this way!

For the first and second method we can direclty run the installation command!Install PIP packagesInstall PIP packages

For the last method we need to create the library first, how? We open up a terminal and we run the following command, taking in account thet we want to create a folder that is called "mylibs".

mkdir $SNAP_COMMON/solutions/activeConfiguration/mylibs


create Foldercreate Folder

Once the right libraries are there, we can create our Notebook. We need to add the created folder to the python folders in order to be able to use the libraries!

use folderuse folder

If we used the last method our code should look like this:

use folder persistentuse folder persistent

STEP2: Upload zip files

The app is equipped with the unzip packet. we can upload a file and the use the unzip command to unzip the archive in the local folder!

Have Fun!

MauroRiboniMX
MauroRiboniMX
Hello, I am Mauro a ctrlX DEVELOPR at night and a̶n̶ A̶p̶p̶l̶i̶c̶a̶t̶i̶o̶n̶ E̶n̶g̶i̶n̶e̶e̶r̶ Product Manager during the day 😎 . Ask me anything about ctrlX AUTOMATION but my best topics are IoT, AI, SDK and Communication!
4 Comments
Must Read
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist