I've already tried the instructions on the qiskit page and even from this other question What is the location of the Qiskit config file? but it doesn´t work, the circuit keeps looking as text based, even i restarted jupyter notebook, and nothing. The settings.conf file wasn't in the directory so i created one but still no results.
Asked
Active
Viewed 308 times
0
1 Answers
2
To check that the content of the setting.conf file is properly set you can run the following
from qiskit import user_config
user_config.get_config()
{'circuit_drawer': 'mpl'}
If this is not your output, then your setting.conf is out of format or in the wrong location. You can fix the location by setting the env variable QISKIT_SETTINGS. It is possible to do that in a Jupyter notebook with this magic:
%env QISKIT_SETTINGS <path to your setting.conf>
luciano
- 5,763
- 1
- 12
- 34
-
still no changes, first recalling the qisikit user_config but the output gives nothing, then i tried the env variable and again recalling the user_config but gives again nothing – Antonio Vallejo Mar 10 '21 at 20:54
-
-
-
what is output of
user_config.DEFAULT_FILENAME? Could try editing that if it isn't what you expected – Frank Mar 11 '21 at 12:49 -
-
it's not a command. You can do
from qiskit.user_config import DEFAULT_FILENAMEand thenprint(DEFAULT_FILENAME)– luciano Mar 13 '21 at 07:35
circ.draw('mpl')and then `plt.show()'. But you really need to describe the situation specifically because it is not clear what really happens. – Yitian Wang Mar 11 '21 at 06:49