ijulia-notebook

registering kernels in ipython/jupyter notebook - kernel.json

亡梦爱人 提交于 2021-02-07 02:58:57
问题 With the latest version of IPython , kernels can be registered by placing a kernel.json file in ~/.ipython/kernels/<kernel-name>/ . I am currently trying to add a julia and a R kernel and I am wondering who is responsible for creating and maintaining those kernel.json files. Currently, I googled and created following kernel.json for julia by hand: { "display_name": "Julia", "language": "julia", "argv": [ "julia", "-i", "-F", "/User/<user>/.julia/v0.3/IJulia/src/kernel.jl", "{connection_file}"

How to set Julia Environment for IJulia Jupyter notebook?

自作多情 提交于 2021-01-27 06:04:34
问题 I am encountering package compatibility issues within my global Julia environment for specific packages I want to use in a Jupyter notebook. Is there a way to tell IJulia to use a different environment instead of my global one? 回答1: The default IJulia kernel sets --project=@. so the most convenient way (IMO) is to just keep your project in the same folder as the notebook. The result is that the correct project is used from the start and you don't have to worry about activating it while in the

How to set Julia Environment for IJulia Jupyter notebook?

寵の児 提交于 2021-01-27 06:03:40
问题 I am encountering package compatibility issues within my global Julia environment for specific packages I want to use in a Jupyter notebook. Is there a way to tell IJulia to use a different environment instead of my global one? 回答1: The default IJulia kernel sets --project=@. so the most convenient way (IMO) is to just keep your project in the same folder as the notebook. The result is that the correct project is used from the start and you don't have to worry about activating it while in the

What is “setindex! not defined” error in julia?

烈酒焚心 提交于 2020-06-16 03:23:59
问题 When I run my code one error occurs with my code setindex! not defined for WeakRefStrings.StringArray{String,1} CSV File here. using CSV EVDdata =CSV.read(raw"wikipediaEVDdatesconverted.csv") EVDdata[end-9:end,:] And the Error Code is here rows, cols = size(EVDdata) for j =1:cols for i = 1:rows if !isdigit(string(EVDdata[i, j])[1]) EVDdata[i,j] = 0 end end end I am working with Julia 1.4.1 on Jupter Notebook 回答1: setindex!(collection, item, inds...) is the function that colection[inds...] =

What is “setindex! not defined” error in julia?

北城余情 提交于 2020-06-16 03:23:10
问题 When I run my code one error occurs with my code setindex! not defined for WeakRefStrings.StringArray{String,1} CSV File here. using CSV EVDdata =CSV.read(raw"wikipediaEVDdatesconverted.csv") EVDdata[end-9:end,:] And the Error Code is here rows, cols = size(EVDdata) for j =1:cols for i = 1:rows if !isdigit(string(EVDdata[i, j])[1]) EVDdata[i,j] = 0 end end end I am working with Julia 1.4.1 on Jupter Notebook 回答1: setindex!(collection, item, inds...) is the function that colection[inds...] =

Julia DataFrame output functions

喜欢而已 提交于 2020-01-23 07:58:46
问题 What Julia functions can output a DataFrame so it is converted into text other than the ones shown below? using DataFrames A = DataFrame(randn(10, 7)); print("\n\n\n", "A = DataFrame(randn(10, 7))") print("\n\n\n","print(A)\n") print(A) print("\n\n\n","show(A)\n") show(A) print("\n\n\n","show(A, true)\n") show(A, true) print("\n\n\n","show(A, false)\n") show(A, false) print("\n\n\n","showall(A)\n") showall(A) print("\n\n\n","showall(A, true)\n") showall(A, true) print("\n\n\n","showall(A,

Julia DataFrame output functions

旧巷老猫 提交于 2020-01-23 07:56:48
问题 What Julia functions can output a DataFrame so it is converted into text other than the ones shown below? using DataFrames A = DataFrame(randn(10, 7)); print("\n\n\n", "A = DataFrame(randn(10, 7))") print("\n\n\n","print(A)\n") print(A) print("\n\n\n","show(A)\n") show(A) print("\n\n\n","show(A, true)\n") show(A, true) print("\n\n\n","show(A, false)\n") show(A, false) print("\n\n\n","showall(A)\n") showall(A) print("\n\n\n","showall(A, true)\n") showall(A, true) print("\n\n\n","showall(A,

Troubleshooting: Kernel always dies using IJulia in IPython notebook

馋奶兔 提交于 2020-01-05 14:13:23
问题 I recently began using julia, and I would like to use in with IPython Notebook/Jupyter. So, I installed julia using MacPorts, i.e. sudo port install julia . Following the installation instructions here: https://github.com/JuliaLang/IJulia.jl After the prompt, I used "Pkg.add("IJulia") to install IJulia. However, I cannot use Julia with IPython notebook. After opening the notebook with ipython notebook --profile=julia the kernel for the julia notebook dies instantly and cannot be restarted.

real time plotting with Julia

我们两清 提交于 2019-12-14 01:17:20
问题 I am trying to plot a function evolving in real time with Julia. For that, I saw that GR package could be used in Julia, when I try to apply exactly the example given here : import GR GR.inline("mov") x = [0:0.01:2*pi] for i = 1:200 GR.plot(x, sin.(x + i / 10.0)) end GR.show() I get the following error message while executing the loop part : expected Real or Complex in #plot_args#12(::Symbol, ::Function, ::Tuple{Array{FloatRange{Float64},1},Array{Array{Float64,1},1}}) at /Users/myname/.julia

Adding a local image to an IJulia notebook

安稳与你 提交于 2019-12-12 14:08:00
问题 How do I add a local image to an IJulia notebook? The image is in the same local network folder as the IPYNB file. The folder is accessed via a symbolic link. I've tried both relative and absolute file names. <img src="test.png" alt="Image Test" style="width:600px"> ![Image Test](test.png) Both show up the same, as a broken image link with "Image Test" next to the symbol. Jupyter Info : Python 2.7.12 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:42:40) [GCC 4.4.7 20120313 (Red Hat 4.4