Skip to content

Command Line Import via Jupyterlab🔗

Impact GUI has a limitation on uploading workspace/library/package which is greater than 100 MB.

On many occasions, the size of the library or workspace or package is more than 100 MB. Attempting to upload such files through Modelon Impact GUI results in an error dialog to appear.

For file size more than 100 MB, use only Jupyterlab to import the workspace/library/package.

How to import via Jupyterlab🔗

Compress the workspace/library/package into a .zip file. The zip archive must have the same name as the workspace/library/package. Make sure the zip file for library/workspace/package is as per the respective Impact directory structure.

Import a workspace🔗

  1. Open Jupyterlab from Modelon Impact through the Apps menu (as shown) in the upper right corner of the browser window. Jupyterlab opens in a new browser tab. The JupyterLab interface consists of a main work area containing tabs of documents and activities, a collapsible left sidebar, and a menu bar.

  1. The left sidebar in Jupyterlab contains a file browser. Upload the Zip (compressed workspace) file in the file browser of jupyterlab window by dragging and dropping files, or by clicking the “Upload Files” button at the top of the file browser. For more information, see the JupyterLab documentation.

  2. The zip file will be uploaded to the current workspace.

  3. To open a new terminal, click the + button in the file browser or press (ctrl+shift+L) and select Terminal in the new Launcher tab

  4. Unzip the uploaded zip file using the following command in jupyterlab terminal.

    unzip <workspace_name>

  5. Move the unzipped workspace folder into the corresponding destination folder using the following command in jupyterlab terminal.

    mv <workspace_name> <destination_folder>

    Eg:- for uploading workspace, destination location is /home/jovyan/impact/workspaces

    mv <workspace_name> /home/jovyan/impact/workspaces

  6. Navigate to the main Modelon Impact window opened in another browser tab. click on the RELOAD button. The workspace would be uploaded to their respective location.

  7. Go to Jupyterlab tab in the browser. Right-click the uploaded zip file present in the file browser and choose delete to remove the zip file for memory management.

Import a library🔗

  1. Open Jupyterlab from Modelon Impact through the Apps menu (as shown) in the upper right corner of the browser window.

  2. The left sidebar in Jupyterlab contains a file browser. Create a new folder inside impact/released_projects

  3. Upload the Zip (compressed library) or .mol file in the file browser of jupyterlab window by dragging and dropping files.

  4. The zip file will be uploaded to the impact/released_projects/<New Folder>

  5. Unzip the uploaded zip file using the following command in jupyterlab terminal
    unzip <library_name>

  6. Open terminal and add command chmod -R 777 <library_name>

  7. Navigate to the main Modelon Impact window opened in another browser tab and open Workspace Management page

  8. Under workspace tab click Edit and search for unzipped (.Zip or .mol) files which is more than 100 MB imported via jupyterlab

Impact GUI has a limitation on uploading workspace/library/package which is greater than 100 MB.

On many occasions, the size of the library or workspace or package is more than 100 MB. Attempting to upload such files through Modelon Impact GUI results in an error dialog to appear.

For file size more than 100 MB, use only impact directory to import the workspace/library/package

How to import via directory🔗

Compress the workspace/library/package into a .zip file. The zip archive must have the same name as the workspace/library/package. Make sure the zip file for library/workspace/package is as per the respective Impact directory structure.

Import a workspace🔗

  1. Open impact directory from c:/users/username/impact and open the workspace folder
  2. Create a new folder inside c:/users/username/impact/workspaces and paste the .zip file inside the created folder which is more than 100 MB file size
  3. Unzip the pasted zip file inside c:/users/username/impact/workspaces/workspacename
  4. Right-click the uploaded zip file present in the file browser and choose delete to remove the zip file for memory management.
  5. Reload the Modelon Impact window, open the workspace on which the 100 MB file is uploaded in the directory.

Import a Package🔗

  1. Open impact directory from c:/users/username/impact/workspaces/workspacename/model_libraries/editable
  2. Paste the .zip file inside the editable folder which is more than 100 MB file size
  3. Unzip the pasted zip file inside c:/users/username/impact/workspaces/workspacename/model_libraries/editable
  4. Right-click the uploaded zip file present in the file browser and choose delete to remove the zip file for memory management.
  5. Click on the reload button in the pop up and check the uploaded package is displayed under editable section.

Import a library🔗

  1. Open impact directory from c:/users/username/impact/workspaces/workspacename/model_libraries a
  2. Create a folder read_only inside c:/users/username/impact/workspaces/workspacename/model_libraries and paste the .zip file inside the read_only folder which is more than 100 MB file size
  3. Unzip the pasted zip file inside c:/users/username/impact/workspaces/workspacename/model_libraries/read_only
  4. Right-click the uploaded zip file present in the file browser and choose delete to remove the zip file for memory management.
  5. Click on the reload button in the pop up and check the uploaded library gets displayed under read-only section.

Download | Upload | Delete | Resource File | Import FMU | Import Workspace