ftc45
ftc45
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
Looks great, thanks again!!
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
Whoops I took a look at the site and it should be back up now - thanks for letting me know! I’ll try to monitor it more closely once it’s spotlighted. Could you also tag the lead author Akshay Rao (@raodoesresearch)
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
Thanks for spotlighting it!
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
Yeah our lab Twitter handle is @WE3Lab
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
Thanks! Here's a blurb that my co-authors wrote: The Water Energy Efficiency & Environment (WE3) lab recently published a paper highlighting how ways we can operate water systems more effectively in a transitioning or decarbonizing electric grid. This paper featured many scenario analyses where the results were aggregated visualizations of high dimensional optimization problems. To help readers more closely interact with each data point, the authors deployed a web app with interactive visualizations using Marimo.
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
Hi Akshay! I just wanted to reach back out and let you know the paper accompanying https://lvof.we3lab.tech should be published tomorrow, so if you'd like to spotlight our notebook at any point next week or later that would be great!
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
Thanks! We'd like to wait to spotlight the notebook until the accompanying paper is published, which should be sometime later this year. I will try to remember to reach out at that point so that you know we're ready, but if I forget feel free to reach out! In terms of scalability, one thing I noticed was that the notebooks occassionally crash with the exception ERROR: Exception in ASGI application Traceback. Since I set the Docker container to restart automatically this isn't a major issue, but I attached the full stack trace in case you're able to debug the issue.
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
I never got the port forwarding to work so I gave up on that. My original goal with the port forwarding was to containerize the application and then use a single EC2 instance to house multiple containers with different apps our lab creates and forward requests for each web app. This would still be great to do in the long run, but for now just hosting this notebook is sufficient. Since we didn't want to pay for a load balancer at the moment, for now I've just deployed the docker container directly to the EC2 instance by including the below script in user data. This way there's no manual work needed after deploying the VM.
#!/bin/bash
sudo yum install -y docker
sudo yum install git -y
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
cd /home/ec2-user
git clone https://github.com/we3lab/valuing-flexibility-from-water
cd ./valuing-flexibility-from-water
sudo service docker start
sudo docker build -t lvof .
sudo docker run --restart always -i -p 80:8080 lvof
#!/bin/bash
sudo yum install -y docker
sudo yum install git -y
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
cd /home/ec2-user
git clone https://github.com/we3lab/valuing-flexibility-from-water
cd ./valuing-flexibility-from-water
sudo service docker start
sudo docker build -t lvof .
sudo docker run --restart always -i -p 80:8080 lvof
We don't expect much traffic but I will see how robust it is by asking my colleagues to test it out. The result is here: http://ec2-18-119-106-207.us-east-2.compute.amazonaws.com/
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
I haven’t figured it out yet. I’m going to work on debugging a bit more tonight. After that if I can’t figure it out still I’ll share any more notes and it would be great if you could take a look. Thanks for being so responsive!
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
Thanks I’ll take a look at that link! I tried the allow-origins flag and that did not make a difference
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
To be clear, the command I was running in the original post was: marimo run --port=8080 --host=0.0.0.0 lvof.py And I modified this command to be: marimo run --port=8080 --host=0.0.0.0 --proxy=0.0.0.0:80 lvof.py Since I didn't see any change in behavior, I also tried a couple variations of the domain (with and without the host flag) and none of the following made a difference: marimo run --port=8080 --proxy=0.0.0.0:80 lvof.py marimo run --port=8080 --host=3.19.54.159 --proxy=3.19.54.159:80 lvof.py marimo run --port=8080 --proxy=3.19.54.159:80 lvof.py marimo run --port=8080 --proxy=ec2-3-19-54-159.us-east-2.compute.amazonaws.com:80 lvof.py marimo run --port=8080 --host=ec2-3-19-54-159.us-east-2.compute.amazonaws.com --proxy=ec2-3-19-54-159.us-east-2.compute.amazonaws.com:80 lvof.py
30 replies
Mmarimo
Created by ftc45 on 7/30/2024 in #help-support
"kernel not found" when port forwarding
I'm starting the process with the marimo run command in a Docker container. I didn't know about the --proxy flag so I'll try that and let you know if it works. Thanks!
30 replies