Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
23 views

Closing a custom pop-up menu In Justpy

I'm using Justpy v0.14 and I'm trying to implement a very simple pop-up menu. There is a button, when clicked a pop-up shows up. The pop-up should be closed when a user clicks somewhere outside the ...
Michał B.'s user avatar
0 votes
1 answer
37 views

Get Position of clicked pixel on an image in justpy

In justpy, I would like to load an image and record which pixel a clicked on. So I need the position of the pixel of an image with an offset, not position of the mouse on screen. JustPy click and ...
stupidstudent's user avatar
1 vote
0 answers
53 views

Python JustPy QTable custom row color

I am creating QTable: some_table = jp.QTable( hide_bottom=True, title=f'Some Table Title', data=[], columns=some_table_columns, a=some_table_div, dense=True, style="...
Przemysław Kalita's user avatar
1 vote
0 answers
49 views

Looking for button to navigate to login page in python using justpy

I'm using justpy to make a small scale management system, its a framework for developing web apps in python without css/html/js. The menu displays itself but none of the buttons work.The following is ...
Humza Haroon's user avatar
0 votes
1 answer
90 views

JustPy QuasarPage - where do I put the favicon file in my project tree?

Problem statement I'm trying to set the favicon for my QuasarPages in a JustPy web app, adding the attribute favicon="book_icon_32.png" to my QuasarPage. When looking at the page source in ...
Steve Elkind's user avatar
1 vote
0 answers
154 views

JustPy: How we configure the justpy.env for the session timeout configuration

I want to add the timeout for session in my justpy project but didn't understand the how the configure the justpy.env in justpy. Thank you. I have added the justpy.env file in my project directory, ...
Harshali Zode 's user avatar
1 vote
1 answer
69 views

Justpy: Add Highcharts Stock Options: "hollowcandlestick" & "Stock Tools"

How do I add Highcharts Stock series options to Justpy code? Specifically, I want to add: hollow candlestick Stock tools I am working my way through the Justpy documentation and can't figure out ...
seniorgeek's user avatar
1 vote
1 answer
107 views

JustPy Redirect won't redirect

I feel like I'm doing something rediculously stupid here, but I've been banging my head against the wall all day, and don't seem to be making any progress! I have this function: def ...
RufusWhite's user avatar
1 vote
1 answer
383 views

How to show Ag grid pop up menu above Quasar QDialog

I am using Ag grid inside quasar QDialog. When the dialog is displayed and I click the column option menu, the Ag grid pop up menu appears behind QDialog, see the picture below: is there any way to ...
Kanda's user avatar
  • 67
1 vote
1 answer
380 views

How to set Aggrid style height to 100% in JustPy

I am trying to set the style of Aggrid heigth to 100% but the table does not show. I tried using viewport and pixel, they worked perfectly fine. Fow the width, percentage is also working fine. What I ...
Kanda's user avatar
  • 67
1 vote
0 answers
74 views

How to increment Quasar AjaxBar in JustPy

I have been trying to implement Quasar Ajax Bar in justPy. The code below will increase the value of Ajax bar by 10 when the increment button is clicked. But the increment is not working properly. Can ...
Kanda's user avatar
  • 67
1 vote
1 answer
891 views

Where do we insert an ag-grid enterprice license when using it via justpy?

Somehow this seem to involve this https://www.ag-grid.com/javascript-data-grid/licensing/ And this https://github.com/justpy-org/justpy/search?q=ag-grid-enterprise&type= But I just cant seem to ...
Skunpoj Thanarojsophon's user avatar
1 vote
0 answers
366 views

How do you specify Column number formats using AG-Grid via JustPy?

I am able to render an AG-grid by following the example code laid out on the JustPy website. However when it comes to formatting cells or columns the AG-grid documentation shows using valueFormatter ...
Brandon Bettencourt's user avatar
1 vote
1 answer
3k views

How can i make button in table cell using NiceGui library?

from nicegui import ui Called when a button in a cell is clicked: def buttonClick(*args): print(args) table = ui.table({ 'columnDefs': [ {'headerName': 'Task id', 'field': '...
Stan Sakun's user avatar
1 vote
0 answers
44 views

Trouble with formatting X axis labels in HighCharts

I've been trying to figure this out for a day or two. I'm pretty sure I've typed the exact code from the tutorial I've been watching, but my x axis labels are numbers going from 0 to 1200 in ...
Joe Mcsweeney's user avatar
1 vote
1 answer
206 views

How to show ag-grid floating filter in JustPy Python

I want to show the floating filter on all the columns by setting the defaultColDef.floatingFilter to True. But the floating filter is not displayed at all. Another setting of defaultColDef is set ...
Kanda's user avatar
  • 67
1 vote
1 answer
255 views

HighMap data label is shown rotated

I tried to display some map results in JustPy, but HighMap data labels in JustPy show as rotated, but only the label is roated not the map itself. import justpy as jp my_chart_def = """...
wy1189's user avatar
  • 11
1 vote
0 answers
291 views

How to get the ag-grid filter values on justPy Python

I created function for taking the ag-grid filter values using run_api class in justPy. The code looks like this: import justpy as jp grid_options = """ { rowSelection: 'multiple', ...
Kanda's user avatar
  • 67
1 vote
1 answer
238 views

The element in justpy cannot handle the event properly

After running the codes provided in the tutorial of justpy import justpy as jp def my_click(self, msg): self.text = 'I was clicked' def event_demo(): wp = jp.WebPage() d = jp.Div(text='...
user13291837's user avatar
1 vote
0 answers
141 views

custom sorting in Ag-grid use Justpy

I wanna custom sorting ag-grid use justpy. But when I add 'comparator' to columnDefs and run code =>> It not run. It notify l.column.getColDef(...).comparator enter image description here can ...
Duc Nguyen's user avatar
1 vote
0 answers
197 views

Attribute error while creating web page with justpy

Hi I was creating a simple plain web page with justpy and I got an attribute error. This was the code: import justpy as jp def app(): wp = jp.WebPage() return wp jp.justpy(app) this was ...
Personal Account's user avatar
0 votes
2 answers
779 views

Coloring cell in AG-Grid depending on it's content by using justpy web framework

I encountered a problem using AG-Grid in combination with justpy web framework. JustPy is an object-oriented, component based, high-level Python Web Framework that requires no front-end programming. ...
JWolffEKO's user avatar
4 votes
2 answers
9k views

Ag-grid: how to size columns to fit contents?

Ag-grid has a sizeColumnsToFit function that sizes the columns to fit the screen, but what I want is to size the columns to fit the data. In other words I want each column's width to be the minimum ...
dxj's user avatar
  • 65
1 vote
1 answer
402 views

Is it possible to generate sound within a Python web application deployed with Docker on Google Cloud?

I have built a simple web application, which is supposed to test hearing frequency range of the user. It is built in JustPy framework and it uses pysinewave (in turn based on sounddevice) to generate ...
adambialy's user avatar
2 votes
0 answers
190 views

Justpy QSelect doesn't display values in dropdown when using filter event

I've been trying to create a filtering dropdown menu in Justpy. I've been using a QSelect component to do this. The second dropdown menu here is what I'd like to build. I'm able to get the dropdown ...
hochwe's user avatar
  • 21
1 vote
0 answers
36 views

How to handle null in justpy

I am trying to draw multiple polygons in highcharts and it can be achieved by inserting null separating the polygons in highcharts. $('#container').highcharts({ series: [{ name: 'Polygons',...
william wong's user avatar
1 vote
1 answer
347 views

justPy toggle a Quasar drawer

I copied some HTML from Quasar for a page layout with a drawer and can not figure out how to toggle the drawer (sidebar). The button works to hide the drawer, but can not get it visible again. Or if ...
Mark Simonson's user avatar
1 vote
2 answers
554 views

Pie chart from highcharts does not render via justpy

I am trying to use a pie chart from www.highcharts.com in justpy. Page loads but the chart is not rendered. I used code from this source: https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/...
Oleksandr Yanov's user avatar
1 vote
0 answers
992 views

AttributeError: 'dict' object has no attribute 'has_key' error with Highcharts

I am getting this error for days now . Tried to downgrade from Python3.9.9 to Python3.9.2 for setuptools - demsjon - justpy compatibility reasons. I am trying to convert JavaScript into a Python dict. ...
StrangeCroissant's user avatar
1 vote
1 answer
498 views

Pie Chart Not Popping Up HighCharts

I am trying to make a pie chart that shows that rating of a python course. However every time I try to run it, the pie chart doesn't pop up, only the title. I am using HighCharts to create the pie ...
EpicNinja's user avatar
1 vote
1 answer
823 views

How to configure uvicorn in nginx for justpy

I have an extremely simple flask app that works perfectly with gunicorn and nginx over https with a domain. This shows me that all other configurations are working (IP, ports, https, etc.), but when I ...
Jason Jurotich's user avatar
1 vote
1 answer
365 views

Building web app using justpy, program showing no output

Working on building a web app using justpy. Can't seem to find out what the problem is. Here's the code:- import justpy as jp def app():      wp=jp.QuasarPage     h1=jp.QDiv(a=wp, text= "...
Vinayak.1's user avatar
1 vote
0 answers
90 views

justpy app don't work on AWS Lightsail; no error but also no page visible

A python file with this code: import justpy as jp def hello_world(): wp = jp.WebPage() jp.Hello(a=wp) return wp jp.justpy(hello_world) A justpy.env file with this parameters: HOST = '0.0.0.0' ...
Christian Walter's user avatar
1 vote
1 answer
127 views

Spyder - code change does not reflect on the browser

Executing a program in Python using the Spyder IDE (4.2.5). Created a webapp using the below ```import justpy as jp import nest_asyncio nest_asyncio.apply() def app(): wp=jp.QuasarPage() h1=jp....
Anoop B A's user avatar
1 vote
2 answers
687 views

AgGrid in Python giving blank grid

AgGrid in Python giving blank grid when run with Justpy to display a Dataframe on the webpage. Please find below the python code I am trying to run... It is giving a blank grid can you please help me ...
Gee's user avatar
  • 11
2 votes
1 answer
305 views

Deploying JustPy to Heroku

I'm trying to deploy a JustPy app on Heroku. I'm new to both. Base code, from https://justpy.io/tutorial/getting_started/ # saved as app.py import justpy as jp app = jp.app # added for deployment def ...
Roger's user avatar
  • 90
1 vote
0 answers
262 views

How to deploy a justpy project on pythonanywhere or on anywhere else?

Does anyone know how to deploy a justpy project on python anywhere or even on other similar providers? I am new to this, I confused about how to make it run the server after I uploaded the files and ...
TheEngineer's user avatar
1 vote
1 answer
216 views

JustPy, embed html page in iFrame

I wish to embed an html map within a JustPy generated web page. I get mangled output which I guess means there's a CSS or other clash. Any ideas to get this working will be gratefully received. import ...
Roger's user avatar
  • 90
1 vote
1 answer
992 views

Real time stdout redirect from a python function call to an async method

So I have a heavy time-consuming function call my_heavy_function and I need to redirect that output to a web interface that is calling it, I have a method to send messages to the web interface, let's ...
Pablo's user avatar
  • 3,485
-2 votes
1 answer
393 views

How to rerun Python justpy apps in Visual Studio Code without having to stop the process?

I am using the Python extension in Visual Studio Code and I use the green triangle button to run Python files. However, that button doesn't rerun the file if the file is already running if I am ...
multigoodverse's user avatar
2 votes
2 answers
626 views

Running a justpy web app on Jupyter returns RuntimeError

I am trying to run justpy web apps such as this one down here on Jupyter: import justpy as jp def hello_world(): wp = jp.WebPage() d = jp.Div(text='Hello world!') wp.add(d) return wp ...
multigoodverse's user avatar
8 votes
2 answers
6k views

Making a Highcharts plot with Python

I am working with a new Python web framework called justpy which lets you build both the backend and the frontend of a web app using Python only. The framework also integrates with the javascript ...
multigoodverse's user avatar
6 votes
5 answers
5k views

Widget-based web framework in Python (similar to vaadin, GWT or zkoss)

I am basically from Java, but I need to use Python for a new project. I prefer widget based web framework like zkoss, vaadin, GWT etc. Does python has widget based framework?
Kathick's user avatar
  • 1,405