Ax render gives blank image
See original GitHub issueI follow exactly the tutorial at: https://ax.dev/tutorials/gpei_hartmann_loop.html At the last step, render(plot_contour(model=model, param_x=‘x1’, param_y=‘x2’, metric_name=‘hartmann6’)) runs without any error or warning, but gives a blank output image.
There are two relevant posts, but none of the solutions work for me. https://github.com/facebook/Ax/issues/94 https://github.com/facebook/Ax/issues/306
I ran it on conda on Mac M1 (apple sillicon) Monterey, here is the list of my python packages installed:
# packages in environment at /opt/homebrew/Caskroom/miniforge/base:
#
# Name Version Build Channel
aiohttp 3.8.3 py38hb991d35_0 conda-forge
aiosignal 1.2.0 pyhd8ed1ab_0 conda-forge
appnope 0.1.3 pyhd8ed1ab_0 conda-forge
asttokens 2.0.8 pyhd8ed1ab_0 conda-forge
async-timeout 4.0.2 pyhd8ed1ab_0 conda-forge
attrs 22.1.0 pyh71513ae_1 conda-forge
ax-platform 0.2.7.2 pyhd8ed1ab_0 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 py_2 conda-forge
backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge
botorch 0.7.1 pyhd8ed1ab_0 conda-forge
brotli 1.0.9 h1c322ee_7 conda-forge
brotli-bin 1.0.9 h1c322ee_7 conda-forge
brotlipy 0.7.0 py38h33210d7_1004 conda-forge
c-ares 1.18.1 h3422bc3_0 conda-forge
ca-certificates 2022.9.24 h4653dfc_0 conda-forge
cachetools 5.2.0 pyhd8ed1ab_0 conda-forge
certifi 2022.9.24 pyhd8ed1ab_0 conda-forge
cffi 1.14.6 py38h0957451_0 conda-forge
charset-normalizer 2.1.1 pyhd8ed1ab_0 conda-forge
click 8.0.4 pypi_0 pypi
cloudpickle 2.2.0 pyhd8ed1ab_0 conda-forge
colorama 0.4.5 pyhd8ed1ab_0 conda-forge
conda 4.14.0 py38h10201cd_0 conda-forge
conda-package-handling 1.9.0 py38hb991d35_0 conda-forge
contourpy 1.0.5 py38h9dc3d6a_0 conda-forge
cryptography 37.0.4 py38h530bd25_0 conda-forge
cycler 0.11.0 pyhd8ed1ab_0 conda-forge
decorator 5.1.1 pyhd8ed1ab_0 conda-forge
distlib 0.3.6 pypi_0 pypi
executing 1.0.0 pyhd8ed1ab_0 conda-forge
filelock 3.8.0 pypi_0 pypi
fonttools 4.37.3 py38hb991d35_0 conda-forge
freetype 2.12.1 hd633e50_0 conda-forge
frozenlist 1.3.1 py38hbe6f924_0 conda-forge
google-api-core 2.10.1 pyhd8ed1ab_0 conda-forge
google-auth 2.11.1 pyh1a96a4e_0 conda-forge
google-cloud-core 2.3.2 pyhd8ed1ab_0 conda-forge
google-cloud-storage 1.43.0 py38hca03da5_0 anaconda
google-crc32c 1.1.2 py38ha01337b_3 conda-forge
google-resumable-media 2.3.3 pyhd8ed1ab_0 conda-forge
googleapis-common-protos 1.56.4 py38h10201cd_0 conda-forge
gpytorch 1.9.0 pyhd8ed1ab_0 conda-forge
grpc-cpp 1.48.1 h503f348_1 conda-forge
grpcio 1.43.0 py38h69ee544_0 conda-forge
idna 3.4 pyhd8ed1ab_0 conda-forge
importlib-metadata 4.11.4 py38h10201cd_0 conda-forge
importlib_resources 5.9.0 pyhd8ed1ab_0 conda-forge
ipython 8.5.0 pyhd1c38e8_1 conda-forge
jedi 0.18.1 pyhd8ed1ab_2 conda-forge
jinja2 3.1.2 pyhd8ed1ab_1 conda-forge
joblib 1.2.0 pyhd8ed1ab_0 conda-forge
jpeg 9e he4db4b2_2 conda-forge
jsonschema 4.16.0 pyhd8ed1ab_0 conda-forge
jupyter_core 4.11.1 py38h10201cd_0 conda-forge
kaleido-core 0.2.1 h27ca646_0 conda-forge
kiwisolver 1.4.4 py38haa2428a_0 conda-forge
lcms2 2.12 had6a04f_0 conda-forge
lerc 4.0.0 h9a09cb3_0 conda-forge
libabseil 20220623.0 cxx17_h28b99d4_4 conda-forge
libblas 3.9.0 16_osxarm64_openblas conda-forge
libbrotlicommon 1.0.9 h1c322ee_7 conda-forge
libbrotlidec 1.0.9 h1c322ee_7 conda-forge
libbrotlienc 1.0.9 h1c322ee_7 conda-forge
libcblas 3.9.0 16_osxarm64_openblas conda-forge
libcrc32c 1.1.2 hbdafb3b_0 conda-forge
libcxx 14.0.6 h2692d47_0 conda-forge
libdeflate 1.14 h1a8c8d9_0 conda-forge
libffi 3.3 h9f76cd9_2 conda-forge
libgfortran 5.0.0 11_3_0_hd922786_25 conda-forge
libgfortran5 11.3.0 hdaf2cc0_25 conda-forge
liblapack 3.9.0 16_osxarm64_openblas conda-forge
libllvm11 11.1.0 h93073aa_3 conda-forge
libopenblas 0.3.21 openmp_hc731615_3 conda-forge
libpng 1.6.38 h76d750c_0 conda-forge
libprotobuf 3.21.6 hb5ab8b9_1 conda-forge
libsqlite 3.39.3 h76d750c_0 conda-forge
libtiff 4.4.0 hfa0b094_4 conda-forge
libwebp-base 1.2.4 h57fd34a_0 conda-forge
libxcb 1.13 h9b22ae9_1004 conda-forge
libzlib 1.2.12 h03a7124_3 conda-forge
lightgbm 3.3.2 py38hb2dfaa5_0 conda-forge
linear_operator 0.1.1 pyhd8ed1ab_1 conda-forge
llvm-openmp 14.0.4 hd125106_0 conda-forge
llvmlite 0.38.1 py38h8a5a59d_0 conda-forge
markupsafe 2.1.1 py38h33210d7_1 conda-forge
mathjax 2.7.7 hce30654_3 conda-forge
matplotlib 3.6.0 py38h150bfb4_0 conda-forge
matplotlib-base 3.6.0 py38hbbe890c_0 conda-forge
matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge
msgpack 1.0.4 pypi_0 pypi
multidict 6.0.2 py38h33210d7_1 conda-forge
multipledispatch 0.6.0 py_0 conda-forge
munkres 1.1.4 pyh9f0ad1d_0 conda-forge
nbformat 5.6.0 pyhd8ed1ab_0 conda-forge
ncurses 6.3 h07bb92c_1 conda-forge
numba 0.55.2 py38h25e2f74_0 conda-forge
numpy 1.22.4 py38he1fcd3f_0 conda-forge
openjpeg 2.5.0 h5d4e404_1 conda-forge
openssl 1.1.1q ha287fd2_0 conda-forge
opt_einsum 3.3.0 pyhd8ed1ab_1 conda-forge
packaging 21.3 pyhd8ed1ab_0 conda-forge
pandas 1.4.0 py38h3777fb4_0 conda-forge
parso 0.8.3 pyhd8ed1ab_0 conda-forge
patsy 0.5.2 pyhd8ed1ab_0 conda-forge
pexpect 4.8.0 pyh9f0ad1d_2 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pillow 9.2.0 py38h96fe7ce_2 conda-forge
pip 22.2.2 pyhd8ed1ab_0 conda-forge
pkgutil-resolve-name 1.3.10 pyhd8ed1ab_0 conda-forge
platformdirs 2.5.2 pypi_0 pypi
plotly 5.10.0 pyhd8ed1ab_0 conda-forge
prompt-toolkit 3.0.31 pyha770c72_0 conda-forge
protobuf 3.20.2 pypi_0 pypi
pthread-stubs 0.4 h27ca646_1001 conda-forge
ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge
pyasn1 0.4.8 py_0 conda-forge
pyasn1-modules 0.2.7 py_0 conda-forge
pycosat 0.6.3 py38h33210d7_1010 conda-forge
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pygments 2.13.0 pyhd8ed1ab_0 conda-forge
pyopenssl 22.0.0 pyhd8ed1ab_1 conda-forge
pyparsing 3.0.9 pyhd8ed1ab_0 conda-forge
pyro-api 0.1.2 pyhd8ed1ab_0 conda-forge
pyro-ppl 1.8.2 pyhd8ed1ab_0 conda-forge
pyrsistent 0.18.1 py38h33210d7_1 conda-forge
pysocks 1.7.1 pyha2e5f31_6 conda-forge
python 3.8.8 h12cc5a1_0_cpython conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python-fastjsonschema 2.16.2 pyhd8ed1ab_0 conda-forge
python-kaleido 0.2.1 pyhd8ed1ab_0 conda-forge
python_abi 3.8 2_cp38 conda-forge
pytorch 1.12.1 py3.8_0 pytorch
pytz 2022.2.1 pyhd8ed1ab_0 conda-forge
pyu2f 0.1.5 pyhd8ed1ab_0 conda-forge
pyyaml 6.0 pypi_0 pypi
ray 2.0.0 pypi_0 pypi
re2 2022.06.01 h9a09cb3_0 conda-forge
readline 8.1.2 h46ed386_0 conda-forge
requests 2.28.1 pyhd8ed1ab_1 conda-forge
rsa 4.9 pyhd8ed1ab_0 conda-forge
ruamel_yaml 0.15.80 py38he5c2ac2_1007 conda-forge
scikit-learn 1.1.2 py38h6e93f71_0 conda-forge
scipy 1.9.1 py38h3aeb131_0 conda-forge
seaborn 0.12.0 hd8ed1ab_0 conda-forge
seaborn-base 0.12.0 pyhd8ed1ab_0 conda-forge
setuptools 65.3.0 pyhd8ed1ab_1 conda-forge
shap 0.41.0 py38h6724fcd_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
slicer 0.0.7 pyhd8ed1ab_0 conda-forge
sqlite 3.39.3 h2229b38_0 conda-forge
stack_data 0.5.0 pyhd8ed1ab_0 conda-forge
statsmodels 0.13.2 py38hd91e067_0 conda-forge
tabulate 0.8.10 pyhd8ed1ab_0 conda-forge
tenacity 8.1.0 pyhd8ed1ab_0 conda-forge
threadpoolctl 3.1.0 pyh8a188c0_0 conda-forge
tk 8.6.12 he1e0b03_0 conda-forge
toolz 0.12.0 pyhd8ed1ab_0 conda-forge
torchvision 0.2.2 py_3 pytorch
tornado 6.2 py38he5c2ac2_0 conda-forge
tqdm 4.64.1 pyhd8ed1ab_0 conda-forge
traitlets 5.4.0 pyhd8ed1ab_0 conda-forge
typeguard 2.13.3 pyhd8ed1ab_0 conda-forge
typing-extensions 4.3.0 hd8ed1ab_0 conda-forge
typing_extensions 4.3.0 pyha770c72_0 conda-forge
unicodedata2 14.0.0 py38h33210d7_1 conda-forge
urllib3 1.26.11 pyhd8ed1ab_0 conda-forge
virtualenv 20.16.5 pypi_0 pypi
wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge
websocket-client 1.4.1 pyhd8ed1ab_0 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
xgboost 1.6.2 pypi_0 pypi
xorg-libxau 1.0.9 h27ca646_0 conda-forge
xorg-libxdmcp 1.1.3 h27ca646_0 conda-forge
xz 5.2.6 h57fd34a_0 conda-forge
yaml 0.2.5 h3422bc3_2 conda-forge
yarl 1.7.2 py38h33210d7_2 conda-forge
zipp 3.8.1 pyhd8ed1ab_0 conda-forge
zlib 1.2.12 h03a7124_3 conda-forge
zstd 1.5.2 h8128057_4 conda-forge
Thank you!
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Blank image when I render any frame of animation (eevee)
Ok I found what was the problem a few hours ago, I had the "sequencer" option turned on in Output Properties>PostProcessing It need...
Read more >AxesSubplot not rendered after plot() in another cell
My feeling is that it has to do with how artist and renderer are stored and persisted in the Figure or Axes classes...
Read more >Tips to fix Blender render result is completely blank and black
In our Blog's Today, we'll look at some of the reasons why your renderings appear blank or black and tips to fix this...
Read more >Error in report rendering - Microsoft Dynamics AX Forum ...
i mean when we take print of any report.on the print preview it shows us 1 page. but when u take print,3 pages...
Read more >PNG with alpha channel exported as a blank image
I'm using the Corona 1.2 alpha for C4D. I'm trying to save an PNG image with no background selecting the 'alpha channel' thing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actually, tried
pio.renders.default = "chrome"
suggested in your link. Finally works, and it’s interactive. Thanks a lot!This might just be the default plotly renderer not playing well with the notebook viewer in PyCharm (IIRC, pycharm has its own notebook viewer in the IDE). You can try changing the renderer to see how that works. To do that, you need to add this bit to your code:
The “png” here is just one example that works reliably, but it will make the plots non-interactive. There are other interactive renderers that may or may not work. You can try the options listed in https://plotly.com/python/renderers/#setting-the-default-renderer to find one that works best for your use case.