i don't think they are in the default Java path, they are in separate folders (cloned from github). does building them with sbt add them to the java path? i'm obviously very new to scala and the jvm ecosystem. i can add the packages as sbt dependencies in the console and/or intellij, but i'm not sure how to configure them in a more intelligent way. i didn't get this to work by adding them to local maven repositories yet. would that do the job and make them accessible to the beakerx scala kernel?
publishLocalwill write to the local Ivy repository. There is apparently an undocumented
publishM2command that writes to the local Maven repository, instead. This may require the SBT build file to set
publishMavenStyleto true, which a lot of projects do.
%classpathand/or Groovy Grape?
I'm having troubles getting started ... I just want to display a table in a Python Jupyter notebook...
import pandas as pd from beakerx import * from beakerx.object import beakerx beakerx_table = TableDisplay(pd.read_csv('./dspace_BMTs.csv.bz2')) beakerx_table
There are no errors, but there is also no apparent output. Unfortunately a side-effect is that normal Jupyter Notebook output is also suppressed. I.e., later in the notebook,
df.head() shows nothing.
What is the correct way to do this?
@timkpaine In a
python3 -m venv virtual environment I did
python3 -m pip install -UI beakerx and
It looks like there were install problems?
$ jupyter nbextension enable beakerx --py --sys-prefix Enabling tree extension beakerx/tree... - Validating: problems found: - require? X beakerx/tree Enabling notebook extension beakerx/extension... - Validating: problems found: - require? X beakerx/extension
<dependencyManagement>whereby a project P may itself believe it depends on version X of someLibrary transitively, but if a downstream project Q depends on P, it will pull in version Y of someLibrary instead. (See this SO post for details if interested.) The workaround is to import the project P with
importscope so that its dependency management is also used in project Q. Unfortunately, I cannot currently use this workaround in BeakerX notebooks because
%classpathdoes not (directly) support importing BOMs. Would the development team be interested in receiving a PR adding this feature? If so, what syntax would be preferred?
%classpath import mvn my.org my.bom 1.2.3might make sense. (There could theoretically also be
%classpath import pom '/path/to/local/pom.xml'although personally I would not need this.)
%classpathis natural. Gradle also added support for this since it is a very useful feature.