Comments (3)
I agree, it would be extremely helpful to be able to open namespaces once in the beginning of the notebook and never return to this again, like we do in projects. In the notebook katas it is particularly painful - it is very hard for the learner to figure out that they need to open namespace in each cell, especially since the reference solutions in the project don't have this need.
from iqsharp.
I, too am having problems opening one Microsoft.Quantum namespace per code cell as mentioned in IntroToIQSharp/Notebook.ipynb
.
Getting the same errors as @crazy4pi314 above.
Some more info:
➜ ~ dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 2.2.107
Commit: 2212cac826
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.13-x64
Base Path: /usr/local/share/dotnet/sdk/2.2.107/
Host (useful for support):
Version: 2.2.5
Commit: 0a3c9209c0
.NET Core SDKs installed:
2.2.107 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Any help would be appreciated. Thanks
-Edit- Also this might be related?
from iqsharp.
Wanted to bump this again, I really want using Q# in Jupyter to be a good platform for teaching. I am working on lots of notebooks with library use and it is super annoying to have to open the namespaces for each in every cell. If students have any experience with notebooks, its likely in Python where you can just have one cell with imports at the beginning. Not using this same model introduces a lot of confusion.
from iqsharp.
Related Issues (20)
- This repo is missing important files
- qsharp.packages.add("Microsoft.Quantum.Numerics") HOT 2
- User specified QDK package versions silently discarded in favor of latest version
- Use IOfferingsOperations to Determine if Target is Quantum-Executable
- Renaming function impossible without kernel restart HOT 1
- Exception stack traces missing when simulation Q# from python notebooks
- Occasionally simulating an operation will run indefinitely and require a kernel restart to interrupt -- In VScode HOT 2
- Syntax highlighting does not work in python notebooks with qsharp cells HOT 1
- Trace does not visualize from within python with no documentation on how to visualize the instead returned JSON HOT 2
- Iterating QDK full state simulator in a local Anaconda environment freezes HOT 1
- Improve display of status messages in Q# + Python notebooks
- Simulation magic command pages do not specify parameter formatting HOT 1
- Update temporary fix to estimator input arguments
- In Python+Q# notebooks, error messages point to line numbers off-by-one HOT 3
- TypeError on QDK version 0.26.232864 from Jupyter kernel message metadata type mismatch HOT 1
- %debug magic command does not display quantum state visualization. HOT 1
- sparse_simulate not finding magic command
- .NET Core 3.1 should be removed from iqsharp-base since it is EOL
- Apple Silicon support
- https://aka.ms/vsls-linux-prereq-script breaks the QDK release build. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iqsharp.