jverzani / googlecharts.jl Goto Github PK
View Code? Open in Web Editor NEWJulia interface to Google Chart Tools
License: Other
Julia interface to Google Chart Tools
License: Other
Instead of plot(x, y, {:curveType => "function"})
, it would be more Julian to have plot(x, y, curveType="function")
and so on.
Note that if you declare plot
as plot(x, y; kws...)
then kws
will be an array of symbols and values which you can easily convert back into a Dict
if you want (this is what PyCall does for passing keywords through to Python).
We've recently added a general API for multimedia I/O to Julia's standard library. What this allows you to do is to write a writemime
method for any of your types that exports it to any MIME type you know how to write, and then display(x)
on that type will automatically display it on any supporting display that has been loaded. In particular, the upcoming IJulia front-end hooks up with IPython to enable inline display of SVG, PNG, and JPEG graphics.
So, you just need to write a function ``writemime(io::IO, ::@mime("image/svg+xml"), x::GoogleChart) = ...to write
x` to SVG (or PNG, or HTML+Javascript, etcetera), and `display(x)` will automatically do the right thing in any supporting display backend like IJulia.
You may also want a function like plot
to call display
by default. (Or redisplay
, which by default is identical to display
but in IJulia only queues the plot to show after all of the input cell is evaluated.)
If you want to support some functionality specifically for IJulia, you can register a thunk function my_hook()
to be called at the end after a multiline input cell is evaluated, via:
if isdefined(Main,:IJulia)
Main.IJulia.push_postexecute_hook(my_hook)
end
Hi, I'm getting an error that seems like it's something out of date with the DataFrames package. When I run the examples in README.md, I get this:
Use colnames()
at In[40]:1
in make_data_array at C:\Users\Mason\.julia\GoogleCharts\src\utils.jl:34
Seems like a simple fix, just wanted to point that out - I updated all my packages today, but if you think it's something on my end, let me know.
(v1.0) pkg> st
StatusC:\Users\progr\.julia\environments\v1.0\Project.toml
[a93c6f00] DataFrames v0.17.1
[d71aba96] ReadStat v0.4.1
[1463e38c] StatFiles v0.8.0
[c17dfb99] WinRPM v0.4.2(v1.0) pkg> up
Updating registry atC:\Users\progr\.julia\registries\General
Updating git-repohttps://github.com/JuliaRegistries/General.git
Resolving package versions...
UpdatingC:\Users\progr\.julia\environments\v1.0\Project.toml
[no changes]
UpdatingC:\Users\progr\.julia\environments\v1.0\Manifest.toml
[no changes](v1.0) pkg> add GoogleCharts
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package GoogleCharts [2f8fdf4e]:
GoogleCharts [2f8fdf4e] log:
├─possible versions are: 0.0.1-0.0.7 or uninstalled
├─restricted to versions * by an explicit requirement, leaving only versions 0.0.1-0.0.7
└─restricted by compatibility requirements with DataFrames [a93c6f00] to versions: uninstalled — no versions left
└─DataFrames [a93c6f00] log:
├─possible versions are: [0.1.0, 0.2.0-0.2.5, 0.3.0-0.3.16, 0.4.0-0.4.3, 0.5.0-0.5.12, 0.6.0-0.6.11, 0.7.0-0.7.8, 0.8.0-0.8.5, 0.9.0-0.9.1, 0.10.0-0.10.1, 0.11.0-0.11.7, 0.12.0, 0.13.0-0.13.1, 0.14.0-0.14.1, 0.15.0-0.15.2, 0.16.0, 0.17.0-0.17.1] or uninstalled
└─restricted to versions 0.17.1 by an explicit requirement, leaving only versions 0.17.1
On Julia 0.7 is the same
Paul
This issue is being filed by a script, but if you reply, I will see it.
PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their test (if available) on both the stable version of Julia (0.2) and the nightly build of the unstable version (0.3).
The results of this script are used to generate a package listing enhanced with testing results.
The status of this package, GoogleCharts, on...
'No tests, but package loads.' can be due to their being no tests (you should write some if you can!) but can also be due to PackageEvaluator not being able to find your tests. Consider adding a test/runtests.jl
file.
'Package doesn't load.' is the worst-case scenario. Sometimes this arises because your package doesn't have BinDeps support, or needs something that can't be installed with BinDeps. If this is the case for your package, please file an issue and an exception can be made so your package will not be tested.
This automatically filed issue is a one-off message. Starting soon, issues will only be filed when the testing status of your package changes in a negative direction (gets worse). If you'd like to opt-out of these status-change messages, reply to this message.
As described in https://discourse.julialang.org/t/ann-plans-for-removing-packages-that-do-not-yet-support-1-0-from-the-general-registry/ we are planning on removing packages that do not support 1.0 from the General registry. This package has been detected to not support 1.0 and is thus slated to be removed. The removal of packages from the registry will happen approximately a month after this issue is open.
To transition to the new Pkg system using Project.toml
, see https://github.com/JuliaRegistries/Registrator.jl#transitioning-from-require-to-projecttoml.
To then tag a new version of the package, see https://github.com/JuliaRegistries/Registrator.jl#via-the-github-app.
If you believe this package has erroneously been detected as not supporting 1.0 or have any other questions, don't hesitate to discuss it here or in the thread linked at the top of this post.
These are vestige of many moons ago. If this package is of any use, this should be updated.
PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.
Package doesn't load.
Tests fail, but package loads.
Tests fail, but package loads.
means that PackageEvaluator found the tests for your package, executed them, and they didn't pass. However, trying to load your package with using
worked.
Package doesn't load.
means that PackageEvaluator did not find tests for your package. Additionally, trying to load your package with using
failed.
Special message from @IainNZ:
This issue is being filed even though test status improved. Because
there were issues in some important packages like JSON, other test
failures were hidden. I'm filing this issue in the hopes it helps
you find those remaining issues.
This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.
Test log:
>>> 'Pkg.add("GoogleCharts")' log
INFO: Installing ArrayViews v0.4.6
INFO: Installing DataArrays v0.2.2
INFO: Installing DataFrames v0.5.9
INFO: Installing Dates v0.4.4
INFO: Installing GZip v0.2.13
INFO: Installing GoogleCharts v0.0.5
INFO: Installing JSON v0.3.8
INFO: Installing Mustache v0.0.5
INFO: Installing Reexport v0.0.1
INFO: Installing SortingAlgorithms v0.0.1
INFO: Installing StatsBase v0.6.6
INFO: Package database updated
>>> 'using GoogleCharts' log
Warning: requiring "Dates" did not define a corresponding module.
Julia Version 0.4.0-dev+877
Commit beb5486 (2014-09-30 21:43 UTC)
Platform Info:
System: Linux (x86_64-unknown-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
>>> test log
Warning: requiring "Dates" did not define a corresponding module.
Warning: requiring "Dates" did not define a corresponding module.
START /usr/bin/chromium "/tmp/juliai7PLST.html"
[357:357:1001/062512:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliazaaWM0.html"
[1893:1893:1001/062515:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaQrsyre.html"
[3398:3398:1001/062518:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliapwWvUx.html"
[4902:4902:1001/062520:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaefFpaX.html"
[6406:6406:1001/062523:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaDUwjks.html"
[7914:7914:1001/062526:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/julia4y8Ml3.html"
[9420:9420:1001/062528:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaVGTaXJ.html"
[10926:10926:1001/062531:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliamz04hw.html"
[12434:12434:1001/062534:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaVHWYwo.html"
[13947:13947:1001/062536:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/julia2bWExm.html"
[15452:15452:1001/062539:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliajhGUmq.html"
[16956:16956:1001/062542:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliak6dJiA.html"
[18460:18460:1001/062544:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaTQyfQQ.html"
[19967:19967:1001/062548:ERROR:browser_main_loop.cc(207)] Gtk: cannot open display:
ERROR: year not defined
in two_json at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:25
in make_row at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:42
in make_data_array at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:49
in annotated_time_line at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/charts.jl:73
in annotated_time_line at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/charts.jl:76
in include at ./boot.jl:245
in include_from_node1 at ./loading.jl:128
in include at ./boot.jl:245
in include_from_node1 at loading.jl:128
in process_options at ./client.jl:285
in _start at ./client.jl:354
in _start_3B_3742 at /home/idunning/julia04/usr/bin/../lib/julia/sys.so
while loading /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/test/tests.jl, in expression starting on line 212
while loading /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/test/runtests.jl, in expression starting on line 1
INFO: Testing GoogleCharts
============================[ ERROR: GoogleCharts ]=============================
failed process: Process(`/home/idunning/julia04/usr/bin/julia /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/test/runtests.jl`, ProcessExited(1)) [1]
================================================================================
INFO: No packages to install, update or remove
ERROR: GoogleCharts had test errors
in error at error.jl:21
in test at pkg/entry.jl:719
in anonymous at pkg/dir.jl:28
in cd at ./file.jl:20
in cd at pkg/dir.jl:28
in test at pkg.jl:68
in process_options at ./client.jl:213
in _start at ./client.jl:354
in _start_3B_3742 at /home/idunning/julia04/usr/bin/../lib/julia/sys.so
>>> end of log
PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.2) and the nightly build of the unstable version (0.3). The results of this script are used to generate a package listing enhanced with testing results.
Tests fail, but package loads.
Package doesn't load.
Tests fail, but package loads.
means that PackageEvaluator found the tests for your package, executed them, and they didn't pass. However, trying to load your package with using
worked.
Package doesn't load.
means that PackageEvaluator did not find tests for your package. Additionally, trying to load your package with using
failed.
This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.
Test log:
INFO: Installing ArrayViews v0.4.6
INFO: Installing DataArrays v0.1.12
INFO: Installing DataFrames v0.5.6
INFO: Installing Datetime v0.1.6
INFO: Installing GZip v0.2.13
INFO: Installing GoogleCharts v0.0.3
INFO: Installing JSON v0.3.7
INFO: Installing Mustache v0.0.3
INFO: Installing Reexport v0.0.1
INFO: Installing SortingAlgorithms v0.0.1
INFO: Installing StatsBase v0.5.3
INFO: Building Datetime
INFO: Package database updated
Warning: could not import Sort.sortby into DataFrames
Warning: could not import Sort.sortby! into DataFrames
ERROR: repl_show not defined
in include at ./boot.jl:245
in include_from_node1 at ./loading.jl:128
in include at ./boot.jl:245
in include_from_node1 at ./loading.jl:128
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:54
in include at ./boot.jl:245
in include_from_node1 at ./loading.jl:128
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:51
in include at ./boot.jl:245
in include_from_node1 at loading.jl:128
in process_options at ./client.jl:285
in _start at ./client.jl:354
while loading /home/idunning/pkgtest/.julia/v0.3/DataFrames/src/dataframe/reshape.jl, in expression starting on line 163
while loading /home/idunning/pkgtest/.julia/v0.3/DataFrames/src/DataFrames.jl, in expression starting on line 110
while loading /home/idunning/pkgtest/.julia/v0.3/GoogleCharts/src/GoogleCharts.jl, in expression starting on line 6
while loading /home/idunning/pkgtest/.julia/v0.3/GoogleCharts/testusing.jl, in expression starting on line 1
INFO: Package database updated
Note this is possibly due to removal of deprecated functions in Julia 0.3-rc1: JuliaLang/julia#7609
PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.2) and the nightly build of the unstable version (0.3). The results of this script are used to generate a package listing enhanced with testing results.
Tests pass.
.Tests fail, but package loads.
.Tests pass.
means that PackageEvaluator found the tests for your package, executed them, and they all passed.
Tests fail, but package loads.
means that PackageEvaluator found the tests for your package, executed them, and they didn't pass. However, trying to load your package with using
worked.
This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.
Version 0.6.2 (2017-12-13 18:08 UTC)
x86_64-w64-mingw32
julia> Pkg.add("GoogleCharts")
INFO: Installing BinDeps v0.8.6
INFO: Installing Compat v0.55.0
INFO: Installing DataArrays v0.6.2
INFO: Installing DataFrames v0.10.1
INFO: Installing DataStructures v0.7.4
INFO: Installing Dates v0.4.4
INFO: Installing FileIO v0.7.0
INFO: Installing GZip v0.3.0
INFO: Installing GoogleCharts v0.0.7
INFO: Installing JSON v0.17.1
INFO: Installing Missings v0.2.7
INFO: Installing Mustache v0.3.1
INFO: Installing Nullables v0.0.3
INFO: Installing Reexport v0.1.0
INFO: Installing SHA v0.5.6
INFO: Installing SortingAlgorithms v0.2.0
INFO: Installing SpecialFunctions v0.3.8
INFO: Installing StatsBase v0.20.1
INFO: Installing URIParser v0.3.0
INFO: Building SpecialFunctions
INFO: Package database updated
julia> using GoogleCharts
WARNING: requiring "Dates" in module "GoogleCharts" did not define a corresponding module.
ERROR: LoadError: LoadError: UndefVarError: Nothing not defined
Stacktrace:
[1] include_from_node1(::String) at .\loading.jl:576
[2] include(::String) at .\sysimg.jl:14
[3] include_from_node1(::String) at .\loading.jl:576
[4] eval(::Module, ::Any) at .\boot.jl:235
[5] _require(::Symbol) at .\loading.jl:490
[6] require(::Symbol) at .\loading.jl:405
while loading C:\Users\PC.julia\v0.6\GoogleCharts\src\utils.jl, in expression starting on line 8
while loading C:\Users\PC.julia\v0.6\GoogleCharts\src\GoogleCharts.jl, in expression starting on line 15
I was traying "rm", "build" , not work, what now ?
Paul
The JSON.jl package was recently updated to change its API a bit (see JuliaIO/JSON.jl#35). In particular:
parse
is now JSON.parse
print_to_json
is now JSON.print
to_json
is now json
I'm hoping to push this to METADATA soon (as version 0.2), so you'll want to update your package.
PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.
Package doesn't load.
Tests fail, but package loads.
Tests fail, but package loads.
means that PackageEvaluator found the tests for your package, executed them, and they didn't pass. However, trying to load your package with using
worked.
Package doesn't load.
means that PackageEvaluator did not find tests for your package. Additionally, trying to load your package with using
failed.
This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.
Test log:
>>> 'Pkg.add("GoogleCharts")' log
INFO: Installing ArrayViews v0.4.8
INFO: Installing DataArrays v0.2.5
INFO: Installing DataFrames v0.5.11
INFO: Installing Dates v0.4.4
INFO: Installing GZip v0.2.13
INFO: Installing GoogleCharts v0.0.5
INFO: Installing JSON v0.3.8
INFO: Installing Mustache v0.0.6
INFO: Installing Reexport v0.0.2
INFO: Installing SortingAlgorithms v0.0.2
INFO: Installing StatsBase v0.6.8
INFO: Package database updated
>>> 'using GoogleCharts' log
Warning: could not import Base.evaluate into StatsBase
Warning: requiring "Dates" did not define a corresponding module.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:29.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:31.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:33.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:35.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:37.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/charts.jl:20.
Use "Dict{Any,Any}(a=>b, ...)" instead.
... truncated ...
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:143.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:144.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:168.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:168.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:168.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:221.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:247.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:271.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:295.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:295.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:295.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:367.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:409.
Use "Dict{Any,Any}(a=>b, ...)" instead.
Julia Version 0.4.0-dev+1330
Commit 7fdc860 (2014-10-28 03:56 UTC)
Platform Info:
System: Linux (x86_64-unknown-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
>>> test log
Warning: could not import Base.evaluate into StatsBase
Warning: requiring "Dates" did not define a corresponding module.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:29.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:31.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:33.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:35.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:37.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/charts.jl:20.
Use "Dict{Any,Any}(a=>b, ...)" instead.
... truncated ...
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/conveniences.jl:409.
Use "Dict{Any,Any}(a=>b, ...)" instead.
Warning: requiring "Dates" did not define a corresponding module.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/test/tests.jl:15.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/test/tests.jl:15.
Use "Dict{Any,Any}(a=>b, ...)" instead.
WARNING: deprecated syntax "{a=>b, ...}" at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/test/tests.jl:16.
Use "Dict{Any,Any}(a=>b, ...)" instead.
ERROR: `getindex` has no method matching getindex(::Array{Bool,1}, ::Char)
in print_escaped at /home/idunning/pkgtest/.julia/v0.4/JSON/src/JSON.jl:68
in _print at /home/idunning/pkgtest/.julia/v0.4/JSON/src/JSON.jl:81
in print at /home/idunning/pkgtest/.julia/v0.4/JSON/src/JSON.jl:189
in sprint at iostream.jl:229
in two_json at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:17
in make_row at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:42
in make_data_array at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/utils.jl:49
in area_chart at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/charts.jl:73
in area_chart at /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/src/charts.jl:76
in include at ./boot.jl:242
in include_from_node1 at ./loading.jl:128
in include at ./boot.jl:242
in include_from_node1 at loading.jl:128
in process_options at ./client.jl:293
in _start at ./client.jl:362
in _start_3B_3769 at /home/idunning/julia04/usr/bin/../lib/julia/sys.so
while loading /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/test/tests.jl, in expression starting on line 17
while loading /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/test/runtests.jl, in expression starting on line 1
INFO: Testing GoogleCharts
============================[ ERROR: GoogleCharts ]=============================
failed process: Process(`/home/idunning/julia04/usr/bin/julia /home/idunning/pkgtest/.julia/v0.4/GoogleCharts/test/runtests.jl`, ProcessExited(1)) [1]
================================================================================
INFO: No packages to install, update or remove
ERROR: GoogleCharts had test errors
in error at error.jl:21
in test at pkg/entry.jl:719
in anonymous at pkg/dir.jl:28
in cd at ./file.jl:20
in cd at pkg/dir.jl:28
in test at pkg.jl:68
in process_options at ./client.jl:221
in _start at ./client.jl:362
in _start_3B_3769 at /home/idunning/julia04/usr/bin/../lib/julia/sys.so
>>> end of log
using RDatasets
mtcars = data("datasets", "mtcars")
scatter(:wt, :mpg, mtcars)
gives
kwargs not defined
at In[11]:3
in scatter at /Users/stevenj/.julia/GoogleCharts/src/conveniences.jl
HI, Package is very usefull !
after
render(chart)
my html file is in localistaion :
file:///C:/Users/SAMSUNG2/AppData/Local/Temp/jul3C6B.tmp.html
How to change path? Any options?
Paul ?
(Moved from #5.)
I would suggest modifying plot and similar to call redisplay(chart) before returning, since in interactive circumstances I would expect plot to have side-effects. (Or call redisplay(chart) if io==nothing and render(io, chart) otherwise?)
Otherwise, typing e.g. your example
x = linspace(0, 1., 20)
y = rand(20)
plot(x, y) # dot-to-dot plot
plot(x, y, curveType="function")
into a single IJulia cell shows only a single plot.
You are overloading display
in order to customize output. This is the wrong way to do it — see the manual on custom pretty printing.
Instead, to customize REPL output, you should override Base.show(io::IO, ::MIME"text/plain", x::MyType)
, as explained in the manual.
Overriding display
directly will break IJulia, Juno, and other environments that have a custom display
mechanism.
Here's my error message when trying to do the example provided.
julia> using GoogleCharts, DataFrames
WARNING: @MIME("") is deprecated, use MIME"" instead.
in @MIME at multimedia.jl:21
ERROR: no method display(MIME{:text/html},ASCIIString)
you may have intended to import Base.display
in display at multimedia.jl:163
in display at multimedia.jl:101
in include at boot.jl:238
in include_from_node1 at loading.jl:96
in include at boot.jl:238
in include_from_node1 at loading.jl:96
in reload_path at loading.jl:121
in require at loading.jl:50
at /Users/randyzwitch/.julia/GoogleCharts/src/render.jl:145
at /Users/randyzwitch/.julia/GoogleCharts/src/GoogleCharts.jl:12
Would be great have some easy wrapper like plot()
but for plotting boxplots (maybe using quantile()
) and histograms ( using hist()
)
Thanks!!
PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.
Tests pass.
Tests fail, but package loads.
Tests pass.
means that PackageEvaluator found the tests for your package, executed them, and they all passed.
Tests fail, but package loads.
means that PackageEvaluator found the tests for your package, executed them, and they didn't pass. However, trying to load your package with using
worked.
This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.
Test log:
>>> 'Pkg.add("GoogleCharts")' log
INFO: Cloning cache of GoogleCharts from git://github.com/jverzani/GoogleCharts.jl.git
INFO: Installing ArrayViews v0.4.6
INFO: Installing DataArrays v0.2.3
INFO: Installing DataFrames v0.5.10
INFO: Installing Dates v0.3.2
INFO: Installing GZip v0.2.13
INFO: Installing GoogleCharts v0.0.5
INFO: Installing JSON v0.3.8
INFO: Installing Mustache v0.0.6
INFO: Installing Reexport v0.0.1
INFO: Installing SortingAlgorithms v0.0.2
INFO: Installing StatsBase v0.6.8
INFO: Package database updated
>>> 'using GoogleCharts' log
Julia Version 0.3.1
Commit c03f413* (2014-09-21 21:30 UTC)
Platform Info:
System: Linux (x86_64-unknown-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
>>> test log
START /usr/bin/chromium "/tmp/juliaJ9inHy.html"
[2777:2777:1012/023513:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaKiycvt.html"
[4283:4283:1012/023516:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliarRhpuu.html"
[5800:5800:1012/023518:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaC1mEwB.html"
[7304:7304:1012/023521:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/julialh7ktO.html"
[8808:8808:1012/023524:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaAF9Yh7.html"
[10312:10312:1012/023527:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaROnlWv.html"
[11823:11823:1012/023529:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaOVsHh0.html"
[13327:13327:1012/023532:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliafBlDsA.html"
[14831:14831:1012/023534:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/julia2UEfug.html"
[16335:16335:1012/023537:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
... truncated ...
START /usr/bin/chromium "/tmp/juliadyV9aM.html"
[29881:29881:1012/023602:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaCf5B1r.html"
[31385:31385:1012/023605:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/julia3f2tDd.html"
[426:426:1012/023608:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaC891H6.html"
[1977:1977:1012/023612:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaPBXnB6.html"
[3483:3483:1012/023615:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaEPsmZh.html"
[4988:4988:1012/023620:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliafZK7Kz.html"
[6505:6505:1012/023623:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/julia8BdMlX.html"
[8009:8009:1012/023625:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/julialXaVJq.html"
[9513:9513:1012/023628:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
START /usr/bin/chromium "/tmp/juliaCQOnUZ.html"
[11024:11024:1012/023631:ERROR:browser_main_loop.cc(208)] Gtk: cannot open display:
nothing
ERROR: RDatasets not found
in require at loading.jl:47
in include at ./boot.jl:245
in include_from_node1 at ./loading.jl:128
in include at ./boot.jl:245
in include_from_node1 at loading.jl:128
in process_options at ./client.jl:285
in _start at ./client.jl:354
in _start_3B_1712 at /home/idunning/julia03/usr/bin/../lib/julia/sys.so
while loading /home/idunning/pkgtest/.julia/v0.3/GoogleCharts/test/tests.jl, in expression starting on line 301
while loading /home/idunning/pkgtest/.julia/v0.3/GoogleCharts/test/runtests.jl, in expression starting on line 1
INFO: Testing GoogleCharts
============================[ ERROR: GoogleCharts ]=============================
failed process: Process(`/home/idunning/julia03/usr/bin/julia /home/idunning/pkgtest/.julia/v0.3/GoogleCharts/test/runtests.jl`, ProcessExited(1)) [1]
================================================================================
INFO: No packages to install, update or remove
ERROR: GoogleCharts had test errors
in error at error.jl:21
in test at pkg/entry.jl:715
in anonymous at pkg/dir.jl:28
in cd at ./file.jl:20
in cd at pkg/dir.jl:28
in test at pkg.jl:67
in process_options at ./client.jl:213
in _start at ./client.jl:354
in _start_3B_1712 at /home/idunning/julia03/usr/bin/../lib/julia/sys.so
>>> end of log
Your example:
surfaceplot((x,y) -> x^2 + y^2, linspace(0,1,20), linspace(0,2,20))
opens up a new tab in my browser rather than displaying inline.
On a separate note, it also gives the warning:
WARNING: |(x,f::Function) is deprecated, use |>(x,f) instead.
in tool_tip at /Users/stevenj/.julia/GoogleCharts/src/conveniences.jl:138
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.