Saravanan666/pypi-org huggingface dataset:
Package: trame-jupyter-extension
trame_jupyter_extensionA JupyterLab extension for trame communication layerThis extension is composed of a Python package namedtrame_jupyter_extensionfor the server extension and a NPM package namedtrame-jupyter-extensionfor the frontend extension.RequirementsJupyterLab >= 4.0.0InstallTo install the extension, execute:pipinstalltrame_jupyter_extensionUninstallTo remove the extension, execute:pipuninstalltrame_jupyter_extensionTroubleshootIf you are seeing the frontend extension, but it is not working, check
that the server extension is enabled:jupyterserverextensionlistIf the server extension is installed and enabled, but you are not seeing
the frontend extension, check the frontend extension is installed:jupyterlabextensionlistContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the trame_jupyter_extension directory# Install package in development modepipinstall-e"."# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Server extension must be manually installed in develop modejupyterserverextensionenabletrame_jupyter_extension# Rebuild extension Typescript source after making changesjlpmbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseDevelopment uninstall# Server extension must be manually disabled in develop modejupyterserverextensiondisabletrame_jupyter_extension
pipuninstalltrame_jupyter_extensionIn development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink namedtrame-jupyter-extensionwithin that folder.Packaging the extensionSeeRELEASE
Package: trame-launcher-nomad
Launcher service fortrame applicationwhen deployed within a Nomad managed cluster.
This code base can be use as-is or as a reference for building your own implementation.Nomadis a simple and felxible scheduler and workload orchestrator to deploy and manage applications execution across on-prem and clouds at scale.This project will offer a docker image to streamline scaling with Nomad on-prem or in the cloud. Additional documentation will be provided on how to setup your environment to manage your trame applications at scale.
In the meantime, you canreach outso we can help you out.Free software: BSD LicenseLicensetrame-launcher-nomadis distributed under the OSI-approved BSD 3-clause License.
Package: trame-markdown
trame-markdown extend tramewidgetswith a component that is capable of rendering Markdown syntax.
Markdown integration into trame allow user to display markdown content easily. If you want are wondering what Markdown is, you can look atsome online guides.Installingtrame-markdown can be installed withpip:pipinstall--upgradetrame-markdownUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.Licensetrame-markdown is made available under the MIT License. For more details, seeLICENSEThis license has been chosen to match the one use byMarkdown It Vuewhich is used under the cover.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.Code samplefromtrame.widgetsimportmarkdownwidget=markdown.Markdown("""
> #### The quarterly results look great!
>
> - Revenue was off the chart.
> - Profits were higher than ever.
>
>  *Everything* is going according to **plan**.
""")widget.update(md_file.read())But if you rather be in control of your variable, you can use the propertycontent.fromtrame.widgetsimportmarkdownwidget=markdown.Markdown(content=("var_name","**hello**"))DevelopmentTo update client side, just update the version and run the following commands.mkdir-ptrame_markdown/module/servecdtrame_markdown/module/servecurl-Lhttps://registry.npmjs.org/markdown-it-vue/-/markdown-it-vue-1.1.7.tgz|tar--strip-components=1-xzv
Package: trame-matplotlib
trame-matplotlib extend tramewidgetswith a component that is capable of rendering Matplotlib plots.
This library allow you to create rich visualization by leveragingMatplotlibwithin trame.Installingtrame-matplotlib can be installed withpip:pipinstall--upgradetrame-matplotlibUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.Licensetrame-matplotlib is made available under the BSD-3 License. For more details, seeLICENSEThis package is under the BSD-3 License as it is compatible withmatplotlibandmpld3which are used underneath that trame widget.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.Code sampleUsing the component methodimportmatplotlib.pyplotaspltfromtrame.widgetsimportmatplotlibfig,ax=plt.subplots(**figure_size)widget=matplotlib.Figure(figure=None)# could pass fig at constructionwidget.update(fig)
Package: trame-mesh-streamer
Client/Server library for progressive delivery of meshes with vtk.js and VTK/ParaView on the server side with trame.Installationpip install trame-mesh-streamerUsageThe example provided in this repository provide a good illustration on how that library can be used.Licensetrame-mesh-streamer is made available under the Apache License, Version 2.0. For more details, see LICENSEDevelopment setupBuild and install the Vue componentscd vue-components
npm i
npm run build
cd -Install the applicationpip install -e .
Package: trame-mnist
Example application usingtramefor exploring MNIST dataset in the context of AI training and XAI thanks toXAITK.Free software: BSD LicenseXAITK Saliency with MNISTXAI Discovery Platform | MNIST Sample DataInstallingFor the Python layer it is recommended to usecondato properly install the various ML packages.conda setup on macOSGo toconda documentationfor your OSbrew install miniforge
conda init zshvenv setup for AI#Neededinordertogetpy3.9withlzma#PYTHON_CONFIGURE_OPTS="--enable-framework"pyenvinstall3.9.9conda create --name trame-mnist python=3.9
conda activate trame-mnist#Fordevelopmentwheninsiderepopip install -e .#Fortesting(noneedtoclonerepo)pip install trame-mnistRunning the applicationconda activate trame-mnist
trame-mnistIfcudais available, the application will use your GPU, but you can also force the usage of your cpu by adding to your command line the following argument:–cpuLicensetrame-mnistis distributed under the OSI-approved BSD 3-clause License.
Package: trame-pvui
Trame widgets which may be used in the Paraview user interface (Pvui)LicenseApache Software LicenseFeaturesThis package includes the following widgets:ColormapperFileBrowserServerBrowserInfoPanelInstallingBuild and install the Vue components:cd vue-components
npm i
npm run build
cd -Getting StartedParaview >= 5.11 is a prerequisite to running this application.
Go tohttps://www.paraview.org/download/for more information.
Once Paraview is installed, take note of its file path.You will also need a python virtual environment
with this application and its requirements installedpython3.9 -m venv ~/venvs/trame
source ~/venvs/trame/bin/activate
pip install -e .
deactivateRunning the example appsTo run the example paraview app, use the following[path_to_paraview]/bin/pvpython example_trame_apps/paraview_app/main.py --venv ~/venvs/trameTo run the example vtk app (which hosts the colormapper widget), use the followingpython3 example_trame_apps/vtk_app/main.pyContributingseeCONTRIBUTING.rst
Package: trame-quasar
Trame bundle for the Quasar Vue library.trame-quasar is made available under the MIT License. For more details, seeLICENSEThis license has been chosen to match the one use byQuasarwhich is the core of that library possible.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.
Package: trame-rca
Remote Controlled Area widget for trame provide components
and communication infrastructure to display remote generated
image based content while allowing interaction forwarding
such as mouse, touch and multi-pointer devices.This library aims to provide a core that can then be extended
or specialized for any backend. But its initial integration
will be focused toward VTK and/or ParaView for enabling
interactive remote rendering.
But because it aims to be generic, you should be able to rely
on its core to connect and drive any kind of backend that could
produce images/video-stream and react to mouse interaction.Licensetrame-rca is made available under the Apache Software License.DevelopmentBuild and install the Vue componentscd vue-components
npm i
npm run build
cd -Install the componentpip install -e .
Package: trame-router
Trame-router extend tramewidgetsanduiwithVue Routercomponents and helper to streamline its usage with trame.
Vue Router is the official router for Vue.js on which trame is based.Installingtrame-router can be installed withpip:pipinstall--upgradetrame-routerUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.The original Vue Router documentationprovide a great introduction resource.The router elements can be used as follow in trame:# [...]fromtrame.ui.routerimportRouterViewLayoutfromtrame.widgetsimportrouterwithRouterViewLayout(server,"/"):withvuetify.VCard():vuetify.VCardTitle("This is home")withRouterViewLayout(server,"/foo"):withvuetify.VCard():vuetify.VCardTitle("This is foo")withRouterViewLayout(server,"/bar/:id"):withvuetify.VList():vuetify.VListItem("Bar {{ $route.params.id }} item 1")vuetify.VListItem("Bar {{ $route.params.id }} item 2")vuetify.VListItem("Bar {{ $route.params.id }} item 3")withSinglePageWithDrawerLayout(server)aslayout:withlayout.toolbar:vuetify.VBtn("Home",to="/")vuetify.VBtn("Foo",to="/foo")vuetify.VBtn("Bar 1",to="/bar/1")vuetify.VBtn("Bar 2",to="/bar/2")vuetify.VBtn("Bar 3",to="/bar/3")withlayout.content:router.RouterView()Licensetrame-router is made available under the MIT License. For more details, seeLICENSEThis license has been chosen to match the one use byVue Routerwhich is used under the cover.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.
Package: trame-sandtank
ParFlow sandtank using trameFree software: Apache Software LicenseDevelopmentCreate a virtual environmentpython3 -m venv .venv
source .venv/bin/activate
pip install -U pipBuild and install ParFlow if not available on your system.
Please look are Linux.readme or MacM1.readme for additional system requiements../parflow/build-parflow.sh
./parflow/build-ecoslim.shBuild and install the Vue componentscd vue-components
npm i
npm run build
cd -Install the applicationpip install -e .Run the applicationsource ./parflow/activate.sh # Only if parflow is not already available
trame-sandtank --input ./templates/default --output ./dataUsage / testingYou will need to run the following set of command line once#getcodegit clone git@github.com:HydroFrame-ML/trame-sandtank.git
cd trame-sandtank#createvenvpython3 -m venv .venv # use 3.9 on Mac M1
source .venv/bin/activate
pip install -U pip#createalocalParFlow+EcoSLIM./parflow/build-parflow.sh
./parflow/build-ecoslim.sh#installsandtankpip install .Then once your environment is setup, you can execute the sandtank
application by running the following command lines.#Activatevenv+parflowsource .venv/bin/activate
source ./parflow/activate.sh#Runagiventemplatetrame-sandtank --input ./templates/default --output ./dataTo use your own ParFlow + EcoSLIM just setPARFLOW_DIRandECOSLIM_EXECenvironment variables.To try within Jupyter once you’ve installed it bypip install jupyterlab#Activatevenv+parflowsource .venv/bin/activate
source ./parflow/activate.sh#Runagiventemplatejupyter-lab
Package: trame-sandtank-ml
Interactive application blending ParFlow execution and AI models for validationFree software: BSD LicenseInstallingFor the Python layer it is recommended to use conda to properly install the various ML packages.macOS conda setupbrew install miniforge
conda init zshvenv creation for AIconda create --name sandtank-ml python=3.9 -y
conda activate sandtank-ml
conda install "pytorch==1.11.0" -c pytorch -y
conda install scipy "scikit-learn==0.24.2" "scikit-image==0.18.3" -c conda-forge -y # For XAITK#A:Fordevelopmentwheninsiderepo(AorBnotboth)pip install -e .#B:Fortestingwithoutrepo(AorBnotboth)pip install trame-sandtank-ml#Buildparflowforsimulationexecution./dependencies/parflow/build.shRun the applicationconda activate sandtank-ml
source ./dependencies/parflow/activate.sh
trame-sandtank-ml
Package: trame-sandtank-xai
AI/XAI exploration in the context of ParFlow simulation codeFree software: BSD LicenseInstallingBuild and install the Vue componentscd vue-components
npm i
npm run build
cd -For the Python layer it is recommended to use conda to properly install the various ML packages.macOS conda setupbrew install miniforge
conda init zshvenv creation for XAIconda create --name sandtank-xai python=3.9 -y
conda activate sandtank-xai
conda install "pytorch==1.11.0" -c pytorch -y
conda install scipy "scikit-learn==0.24.2" "scikit-image==0.18.3" -c conda-forge -y#A:Fordevelopmentwheninsiderepo(AorBnotboth)pip install -e .#B:Fortestingwithoutrepo(AorBnotboth)pip install trame-sandtank-xaiRun the applicationconda activate sandtank-xai
trame-sandtank-xai
Package: trame-server
trame-server is the server implementation oftrame.
This Python library provide the server implementation of the shared state and controller along with the definition of the web server.
The web server aims to be flexible so it can be use within a Jupyter environment or as a standalone desktop application.This package is not supposed to be used by itself but rather should come as a dependency oftrame.
For any specificity, please refer tothe trame documentation.Installingtrame-server can be installed withpip:pipinstall--upgradetrame-serverUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.Environments variablesTRAME_LOG_NETWORK: Path to log file for capturing network exchange. (default: None)TRAME_WS_MAX_MSG_SIZE: Maximum size in bytes of any ws message. (default: 10MB)TRAME_WS_HEART_BEAT: Time in second before assuming the server is non-responsive. (default: 30s)TRAME_DESKTOP_DEBUG: If defined it will allow user to inspect the web content in desktop modeTRAME_SERVER: If set to true, this will prevent browser from opening by defaultLife cycle callbacksLife cycle events are directly managed on the application controller
and are prefixed withon_*.on_server_start: Executed at server.start() call while passing the server as argument.on_server_bind: WSLinkServer is getting bound to trame so you can attach your own routes. Its instance will be passed as argument to callback.on_server_ready: All protocols initialized and available for client to connecton_client_connected: Connection established to serveron_client_exited: Linked to browser “beforeunload” eventon_server_exited: Trame is exiting its event loopon_server_reload: If callback registered it can be use to hot_reload methods like the UI.Licensetrame-server is made available under the Apache License, Version 2.0. For more details, seeLICENSECommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.
Package: trame-simput
Python package that let you create web forms/ui using Trame.
The project include both a Python module along with a generated
Vue based plugin for proxy editing using a set of widgets which
can be extended by the user.IntroductionSimput rely ondefinitionsto describe the set ofproxiesthat it can control.
Aproxyis a virtual object that gather a set ofpropertieswhich as a whole
represent itsstate.Proxiesare meant to streamlinestateupdate and exchange.Aproxycan also be used to control aconcrete objectby mapping its state to it.
This is particularly important when aconcreate objectneeds to live on a remote location
or inside another thread or service. Having aproxyallow us to present and edit itspropertiesin a way that we can easily reconciliate itsstatewith itsconcrete objectcounter part.When initializing or editing aproperty, we may want to bounds the values to a limited set.
To apply constraints to aproperty, you can define adomainssection.
Adomaincan be used to compute a reasonableinitial valueonce all its dependency have
been resolved or limit a value to be within a set of available ones (list, range).On top of the data model, Simput aims to provide UI/forms to help user input and update
any user data. And for that we have some UI needs that could be defined to refine how
the information should be display to the user. By default the data modeldefinitionis all we need, but if you want to add internationalization, you can provide alanguagedefinition to describelabelandhelpof anyproperty. Then if the automatic
property layout is not to your liking, you can create alayoutdefinition to manually place
into a grid where eachpropertyof a givenproxyshould go. Also, you can use thatlayoutto optionally show/hide a subset of properties based on adomain.With definitions for thedata modelswithdomains,languagesandui layouts,
we think we are empowering developers to create applications with complex user input in no time.
High level definitions files allow developers to describe in a concise manner what they want rather
than how to make their data editing possible within their application.Detailed documentsDefinitions explainedAPIExamples:Address book,Widgets,Hints,VTK,Dynamic domainLicense: Apache Software LicenseApache Software License 2.0

Copyright (c) 2022, Kitware Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.DevelopmentBuild and install the Vue componentscd vue-components
npm i
npm run build
cd -Install the application for developmentpip install -e .
Package: trame-tauri
Widgets/utils library to help with Tauri integration in trame.UsageMore to come, but we currently provide our./examples/*directory to capture mainstream use cases.DevelopmentBuild and install the Vue componentscd vue-components
npm i
npm run build
cd -Install the applicationpip install -e .Licensetrame-tauri is made available under the apache License. For more details, seeLICENSEThis license has been chosen to match the one use byTaurieven is we are not importing Tauri into this library directly.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.
Package: trame-vega
trame-vega extend tramewidgetswith a Figure component that is capable of rendering Vega grammars such asAltairplots.Installingtrame-vega can be installed withpip:pipinstall--upgradetrame-vegaUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.Licensetrame-vega is made available under the BSD-3 License. For more details, seeLICENSEThis license has been chosen to match the one use byVegaandAltairwhich are either used within that trame widget or will be use by the user to create the content for those Figures.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.Example: Vega + AltairThe Python interface ofAltair provide exampleson how to create various visualization.importaltairasaltfromvega_datasetsimportdatafromtrame.widgetsimportvega# Generate chartsource=data.cars()fig=(alt.Chart(source).mark_circle().encode(alt.X(alt.repeat("column"),type="quantitative"),alt.Y(alt.repeat("row"),type="quantitative"),color="Origin:N",).properties(width=200,height=200).repeat(row=["Horsepower","Acceleration","Miles_per_Gallon"],column=["Miles_per_Gallon","Acceleration","Horsepower"],).interactive())# Display itwidget=vega.Figure(figure=None)# could pass fig at constructionwidget.update(fig)# or update later
Package: trame-vuetify
Trame-vuetify extend tramewidgetsanduiwith all the beautiful Vuetify UI components.
Vuetify is a UI Library with beautifully handcrafted Material Components. No design skills required — everything you need to create amazing applications is at your fingertips.This package is not supposed to be used by itself but rather should come as a dependency oftrame.
For any specificity, please refer tothe trame documentation.Installingtrame-vuetify can be installed withpip:pipinstall--upgradetrame-vuetifyUsageTheTrame Tutorialis the place to go to learn how to use the library and start building your own application.TheAPI Referencedocumentation provides API-level documentation.TheVuetify websiteis very well made for exploring components and understanding components’ parameters and controls, while a reference to our wrapper API is availablehere.The way trame translate Vue templates into plain Python code is by doing the following.Material Design WidgetsFirst you need to import thevuetifymodule so you can instantiate the various Material Components like illustrated below. Moreover, in the documentation the component names use dashes as separators while in Python we use the Camelcase notation for the class name.fromtrame.widgetsimportvuetify# <v-btn>Hello World</v-btn>btn=vuetify.VBtn("Hello World")Boolean attributesImplicit attribute values must be made explicit in Python by assigningTrueto them.# <v-text-field disabled />vuetify.VTextField(disabled=True)Dash and colon separatorsAny special characters (-and:) become_in Python.# <v-text-field v-model="myText" />vuetify.VTextField(v_model=("myText",))EventsEvents in vue are prefixed with a@but in Python we declare them the same way we declare regular attributes.defrunMethod():pass# <v-btn @click="runMethod" />vuetify.VBtn(click=runMethod)Licensetrame-vuetify is made available under the MIT License. For more details, seeLICENSEThis license has been chosen to match the one use byVuetifywhich is instrumental for making that library possible.CommunityTrame|Discussions|Issues|RoadMap|Contact UsEnjoying trame?Share your experiencewith a testimonialorwith a brand approval.