-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make interactive visualizations default for Jupyter #806
Labels
type: enhancement
It's working, but needs polishing
Comments
|
I am closing this Issue as it seems there is no way to run the interactive visualizations offline, thus making it impossible to have them as default. |
Reopening this to rethink for 0.6 release:
|
mtreinish
added a commit
to mtreinish/qiskit-core
that referenced
this issue
Sep 5, 2018
This commit switches the default graphing method to use the interactive plot_state method if the environment conditions support it. There are 2 conditions when iplot_state can be used, the first is that things are running inside jupyter, the second is that the environment has an internet connection and can reach the js source needed for the visualization. This will verify these 2 conditions by checking if the ipykernel module is present and they trying to do an HTTP GET on the url where the page is hosted to verify the plot function can do the same. The requests library is used directly to perform the HTTP GET call so it is added to the requirements.txt file in this commit. However this was already an implicit requirement for qiskit-terra because it's what the IBMQuantumExperience package uses for its HTTP client. This only adds it to the requirements file because it is now directly called. Fixes Qiskit#806
ajavadia
pushed a commit
that referenced
this issue
Sep 5, 2018
This commit switches the default graphing method to use the interactive plot_state method if the environment conditions support it. There are 2 conditions when iplot_state can be used, the first is that things are running inside jupyter, the second is that the environment has an internet connection and can reach the js source needed for the visualization. This will verify these 2 conditions by checking if the ipykernel module is present and they trying to do an HTTP GET on the url where the page is hosted to verify the plot function can do the same. The requests library is used directly to perform the HTTP GET call so it is added to the requirements.txt file in this commit. However this was already an implicit requirement for qiskit-terra because it's what the IBMQuantumExperience package uses for its HTTP client. This only adds it to the requirements file because it is now directly called. Fixes #806
lia-approves
pushed a commit
to edasgupta/qiskit-terra
that referenced
this issue
Jul 30, 2019
This commit switches the default graphing method to use the interactive plot_state method if the environment conditions support it. There are 2 conditions when iplot_state can be used, the first is that things are running inside jupyter, the second is that the environment has an internet connection and can reach the js source needed for the visualization. This will verify these 2 conditions by checking if the ipykernel module is present and they trying to do an HTTP GET on the url where the page is hosted to verify the plot function can do the same. The requests library is used directly to perform the HTTP GET call so it is added to the requirements.txt file in this commit. However this was already an implicit requirement for qiskit-terra because it's what the IBMQuantumExperience package uses for its HTTP client. This only adds it to the requirements file because it is now directly called. Fixes Qiskit#806
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the expected enhancement?
The interactive visualizations contributed in PR #765 are much better than the static ones, and should be default when the environment is a Jupyter notebook. This is related to Epic #707 for providing better jupyter tools.
Several issues must be solved first:
plot_histogram
vsiplot_histogram
. These should be made similar for consistency. But the interactive visualization is able to plot multiple histograms in one plot.The text was updated successfully, but these errors were encountered: