Failed to precompile Plots.jl in Julia - julia

I was starting Julia code in Jupyterlab by commanding using so that I can use Julia packages as usual. It had been working well until this morning. Today I got this error which I do have no clue how to deal with. Please check the attached image. Any helps are appreciated!

Try to use:
using Pkg; Pkg.update()
Credits: #mcabbott (first comment in question)

Related

Julia fails to precompile packages ExcelFiles, Plots and JuMP

I am a beginner with using Julia and I am trying to use the packages. However, when I try to use the packagegs Excelfiles, plots and JuMP. I use this code for the packages:
Pkg.add("JuMP")
using JuMP
I get the error: ERROR: Failed to precompile JuMP [4076af6c-e467-56ae-b986-b466b2749572] to C:\Users\yobbi.julia\compiled\v1.7\JuMP\jl_39BC.tmp. I already updated the packages, restarted my laptop, and downloaded Julia again but I keep getting this error. Can someone help me out? Thanks!
Try:
using Pkg
pkg"build JuMP"
This will either resolve your problem or show you errors in the package build process.
Please also note that "reinstalling" Julia usually not helps as Julia is keeping its files in the .julia folder.
Finally, your folder C:\Users\yobbi.julia looks fishy to me. Maybe it is a typo and it should be C:\Users\yobbi\.julia or you managed to misconfigure something with the JULIA_DEPOT_PATH variable.

Error while Using OpenAerostruct and OpenMDAO together

When I run the code given in the document on combined aero and structure I go this error:
AttributeError: 'module' object has no attribute 'matlib'
Based on the previous answer I had got, I tried to install the updated version of 'matplotlib' , but this has not solved the problem. Any help will greatly help me as I am a FORTRAN era person and a new convert to Python.
It looks like you're trying to use an intel compiled version of python and numpy can't find an necessary underlying library. Something is messed up in your python/numpy install.
This has nothing to do with OpenAeroStruct or OpenMDAO. If you can't fix your install, I suggest trying out the Anaconda python distribution, which should have everything precompiled correctly.
I don't have enough rep to comment, but please view this answer as a comment and I'll edit it once I can answer more properly.
That sounds like a numpy installation issue. Could you please post the entire error trace that you get when you try running the command?
Additionally, what system are you on (Windows, Mac, Linux), how did you install Python, and have you tried any other Python-based code that you can get to work successfully?
Edit: the most recent version of OpenAeroStruct has been modified to avoid this issue altogether.

How to install a package in Julia 1.0 (UndefVarError: Pkg not defined)

I installed Julia 1.0, and want to make a simple plot. The first step is to type this on Julia:
Pkg.add("PyPlot")
However, an error occurs:
ERROR: UndefVarError: Pkg not defined.
The same thing happens when I type:
Pkg.status()
What's the best way to install a package in Julia? I use MacOS.
In Julia 1.0, there are two ways to install a package. First, you can do
using Pkg
Pkg.add("Packagename")
Second, you can use the Pkg REPL mode by pressing ] (similar to ?, help mode, and ;, shell mode):
(v1.0) pkg> add Packagename
You can find more information here: https://docs.julialang.org/en/stable/stdlib/Pkg/#
and here (live demo): https://youtu.be/GBi__3nF-rM?t=28m1s
Julia 1.0 is brand new. It has been released a few days ago, so some packages aren't yet compatible with 1.0. Sometimes it helps to install the master branch of a package instead of the last tagged release. On my machine I had to do
(v1.0) pkg> add LaTeXStrings#master
(v1.0) pkg> add PyPlot
to get PyPlot to work. Hope this helps.
UPDATE: LaTeXStrings has been updated (tagged). The first line above is therefore not necessary anymore.
UPDATE2: Another (shorter) live demo can be found here: https://www.youtube.com/watch?v=76KL8aSz0Sg
UPDATE3: There is a third way of interacting with the package manager, namely "pkg strings":
using Pkg
pkg"add Packagename"
As someone new to Julia, my initial confusion on the Julia 1.0 package manager was directly related to the OP's problem. I have not used pre-Julia 1.0 REPL's, but it would appear that it used to be that Pkg.add("Example") worked right out of the box--no using Pkg was required. There are examples floating around the web of this being the way to get started. The new Julia user, like me, might not initially be aware of this change.
However, the Julia 1.0 REPL requires the user to explicitly state using Pkg before employing the Pkg.add.("Example") command.

unexpected input in "%load_ext rpy2.ipython" in R - ipython

I am new to R and trying to execute the code in this site but unfortunately, I am experiencing this error "Error: unexpected input in "%load_ext rpy2.ipython"" when entering "%load_ext rpy2.ipython" in the R console and I tried searching google for answers but no luck.
Any help would be appreciated. Thank you in advance.
rpy2.ipython is an extension for ipython, and Jupyter, when you use the IPython kernel. Not for R. What you linked to is using IPython and calling into R from IPython, not calling in Python from within R. Not sure why they do that in what you linked, from a quick read they should use a R kernel, which would work without saying %%R each time.
So you should be able to reproduce what's there by not loading the rpy2 magic, skipping the %%R prefixes.
If you want to reproduce exactly you will need to install IPython/jupyter and run the code from the Python console.

Help Window using StatET in Eclipse

I have been getting into R recently and have been using the StatET plugin for Eclipse. When I search for help, it prints the 'contents' of the help to the console. I am hoping to have the help open up in a new window, similar to what happens when in R itself. I am hoping this is just a setting.
Any help will be greatly appreciated!
Brock
I seem to recall that I had a similar problem when I upgraded R and StatET.
Perhaps adding the following line to "RProfile.site" will help. (note RProfile.site for me is currently located in "C:\Program Files\R-2.11.1\etc")
options(help_type="html")

Resources