Questions tagged [pluto.jl]

More information:

32 questions
2
votes
2 answers

Two-way binding in PlutoUI.jl?

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…
kwicher
  • 2,092
  • 1
  • 19
  • 28
2
votes
1 answer

Separating Javis.jl `Video` and `Object` two different blocks in Pluto

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,…
c21253
  • 330
  • 4
  • 13
2
votes
1 answer

How to extract the RGB values from the image and calculate its output?

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 #…
Biryanii
  • 81
  • 7
2
votes
1 answer

Is there a way of referencing a cell in Pluto.jl

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…
2
votes
3 answers

Julia throws undefined error when the variable is defined

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 …
Onur-Andros Ozbek
  • 2,998
  • 2
  • 29
  • 78
2
votes
1 answer

Julia not able to convert Array to a series data for plotting

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…
Onur-Andros Ozbek
  • 2,998
  • 2
  • 29
  • 78
2
votes
1 answer

Pluto.jl throws a multiple assigning error when trying to change the values of a variable

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…
Onur-Andros Ozbek
  • 2,998
  • 2
  • 29
  • 78
2
votes
0 answers

Problem with updating R code inserts in Pluto.jl

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…
Anton Degterev
  • 591
  • 2
  • 12
2
votes
1 answer

Julia plot / statsplot does show default labels instead of column names

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…
René
  • 4,594
  • 5
  • 23
  • 52
1
vote
0 answers

PlutoSliderServer buggy with MultiCheckBox

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…
ITA
  • 3,200
  • 3
  • 18
  • 32
1
vote
1 answer

How to interpolate variable into markdown codeblock in Pluto.jl?

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
Alec
  • 4,235
  • 1
  • 34
  • 46
1
vote
0 answers

Displaying math in Pluto.jl

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…
Chris
  • 93
  • 6
1
vote
2 answers

How to fit Pluto.jl output cell to DataFrame size

When I display a DataFrame in Pluto.jl a scrollbar appears. Does somebody know how to make my output cell bigger/fit my dataframe?
Jonas
  • 1,401
  • 9
  • 25
1
vote
1 answer

Julia automatically deleting registry/general

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…
John Ritz
  • 13
  • 2
0
votes
0 answers

How can I solve a non-autonomous ODE using DifferentialEquations.jl and Julia

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) =…