I am trying to do a simple (I think) thing. I want to have a TextField and some variable bound to it and be able to modify this variable and by that the text displayed by the TextField.
I tried:
@bind x TextField()
print(x)
It works fine and…
I am trying to learn Javis.jl with Pluto notebooks. While doing the tutorial, I tried separating the Video object and the Object in different Pluto blocks, as shown:
md"""
Some md here
"""
begin
myvideo = Video(500, 500)
Background(1:70,…
I have a function where I have got the RGB-values from the image and calculate the mean value for each pixel, how can I approach this problem?
function RGB2G_mean(img::Matrix{RGB{T}}) where T<:Fractional
# get RGB-values from img
#…
I'm writing a Pluto notebook and would like to make something like the following cells:
Cell 1:
"""md
## Index
1. [`Section 1`](##Section 1)
"""
Cell 2:
"""md
## Section 1
A bunch of text...
"""
The first cell generates a index with a link, but…
I have this simple while loop that uses i = 1 as an index.
global i = 1
n = rows
while i <= n
if prod(isa.(collect((y)[i,:]),Number))==0
delete!(y,i)
x_axis = x_axis[1:end .!= i]
n -= 1
…
I am plotting a data frame I created from another data frame. Basically, I just took about 5 rows and all N-4 columns and created a new data frame. I wanted to plot this but Julia (on Pluto.jl) is throwing this error:
Cannot convert Array{Any,2} to…
In Python, if you have a variable numbers = 5 and then in the next like you write numbers = 55, the variable's value is updated.
While using Pluto.jl, I declared a variable called y_axis. I decided to change the value of this variable in another…
I have some amount of code in R left over from my past research. It's not very fast, but it works. Julia generously allows to postpone the full migration process for later, using this R code via Rcall, this is very convenient. Recently I decided to…
My Julia plot does show default labels y1 and y2 instead of column names a and b.
using DataFrames, Plots, Statplots
df_test = DataFrame(a = 0:10, b = 20:30, c = 30:40)
@df df_test plot(:a, [:b, :c])
Any suggestions how to solve the issue without…
I am trying to deploy a Pluto notebook using the PlutoSliderServer package and while the deployment does take place, I am observing some buggy behavior with the PlutoUI package elements; specifically the MultiCheckBox. This only happens when the…
In Pluto if I try to include an interpolated value in the markdown string, it renders the string without interpolating the value.
I'd like the string to render as: My variable's value is: 10
Pluto.jl is very nice. However, I have a small problem that I could not solve by myself. Please have a look at the problem through this nWME (not Working, but Minimal Example to explain the situation)
Cell 1: varname = "a";
Cell 2: md"If I use: The…
Every time I execute the code below inside my main.jl file using a Pluto notebook my registry/general folder is deleted automatically and all the packages are automatically reinstalled. After that, the resto of the notebook works perfectly fine but…
How to solve this autonomous ODE using DifferentialEquations.jl?
I'm using Pluto notebooks for the Differential Equations class I'm teaching this semester.
I'm having problems using DifferentialEquations.jl to solve this non-autonomous ODE:
`u'(t) =…