Quantcast

problem when include code in Julia

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

problem when include code in Julia

Monica Deng
I kept meeting this problem when try to include codes in Julia:












I'm pretty sure the file has been saved in the right position and as plain text file. And my laptop is mac. 
I'd appreciate for your help.
Thanks. :)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: problem when include code in Julia

Mauro
After your cd(...) command run:

julia> readdir()

It will give a list of files in the directory.  Check that your file is
there.  If not then that is rather strange.

On Thu, 2016-11-17 at 11:50, Monica Deng <[hidden email]> wrote:

> I kept meeting this problem when try to include codes in Julia:
>
> <https://lh3.googleusercontent.com/-B-3FrL-sF_Q/WC2K1xPcNBI/AAAAAAAAACM/ZOsKD40NktUG_DboHXpy6L4vfYn_7cycgCLcB/s1600/%25E5%25B1%258F%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7%2B2016-11-17%2B11.47.31.png>
>
>
>
>
>
>
>
>
>
>
>
> I'm pretty sure the file has been saved in the right position and as plain
> text file. And my laptop is mac.
> I'd appreciate for your help.
> Thanks. :)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: problem when include code in Julia

Monica Deng
Thanks a lot.
after doing "readdir()", I found that I must add ".txt" to the file. but that's not normal right? As I can see, the textbook just do with extension ".jl"
but the problem is solved after all.



在 2016年11月17日星期四 UTC+1下午12:02:49,Mauro写道:
After your cd(...) command run:

julia> readdir()

It will give a list of files in the directory.  Check that your file is
there.  If not then that is rather strange.

On Thu, 2016-11-17 at 11:50, Monica Deng <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="jsSr7SJ1BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xinchen...@...> wrote:

> I kept meeting this problem when try to include codes in Julia:
>
> <<a href="https://lh3.googleusercontent.com/-B-3FrL-sF_Q/WC2K1xPcNBI/AAAAAAAAACM/ZOsKD40NktUG_DboHXpy6L4vfYn_7cycgCLcB/s1600/%25E5%25B1%258F%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7%2B2016-11-17%2B11.47.31.png" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://lh3.googleusercontent.com/-B-3FrL-sF_Q/WC2K1xPcNBI/AAAAAAAAACM/ZOsKD40NktUG_DboHXpy6L4vfYn_7cycgCLcB/s1600/%25E5%25B1%258F%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7%2B2016-11-17%2B11.47.31.png&#39;;return true;" onclick="this.href=&#39;https://lh3.googleusercontent.com/-B-3FrL-sF_Q/WC2K1xPcNBI/AAAAAAAAACM/ZOsKD40NktUG_DboHXpy6L4vfYn_7cycgCLcB/s1600/%25E5%25B1%258F%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7%2B2016-11-17%2B11.47.31.png&#39;;return true;">https://lh3.googleusercontent.com/-B-3FrL-sF_Q/WC2K1xPcNBI/AAAAAAAAACM/ZOsKD40NktUG_DboHXpy6L4vfYn_7cycgCLcB/s1600/%25E5%25B1%258F%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7%2B2016-11-17%2B11.47.31.png>
>
>
>
>
>
>
>
>
>
>
>
> I'm pretty sure the file has been saved in the right position and as plain
> text file. And my laptop is mac.
> I'd appreciate for your help.
> Thanks. :)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: problem when include code in Julia

David P. Sanders
How did you save the .jl file?
It seems your editor added the extra
.txt suffix. You might want to try a different editor that is designed for editing code, e.g. Atom.
Loading...